From a4e7b24218b4ae926d94ed206102d2e462af7e9d Mon Sep 17 00:00:00 2001 From: Shinsuke Sugaya <shinsuke@yahoo.co.jp> Date: Sun, 1 Mar 2015 15:32:21 +0900 Subject: [PATCH] fix #243 and fix #244 --- dbflute_h2/_project.bat | 11 - dbflute_h2/_project.sh | 9 - dbflute_h2/_readme.txt | 70 - dbflute_h2/build.properties | 5 - dbflute_h2/dfprop/_readme.txt | 35 - .../dfprop/additionalForeignKeyMap.dfprop | 42 - .../dfprop/additionalPrimaryKeyMap.dfprop | 26 - dbflute_h2/dfprop/additionalTableMap.dfprop | 42 - .../dfprop/additionalUniqueKeyMap.dfprop | 26 - dbflute_h2/dfprop/allClassCopyright.dfprop | 11 - dbflute_h2/dfprop/basicInfoMap.dfprop | 220 - .../dfprop/classificationDefinitionMap.dfprop | 69 - .../dfprop/classificationDeploymentMap.dfprop | 27 - dbflute_h2/dfprop/commonColumnMap.dfprop | 49 - dbflute_h2/dfprop/databaseInfoMap.dfprop | 112 - .../dfprop/dependencyInjectionMap.dfprop | 116 - .../dfprop/documentDefinitionMap.dfprop | 225 - dbflute_h2/dfprop/includeQueryMap.dfprop | 99 - dbflute_h2/dfprop/littleAdjustmentMap.dfprop | 345 -- .../dfprop/optimisticLockDefinitionMap.dfprop | 28 - .../dfprop/outsideSqlDefinitionMap.dfprop | 187 - dbflute_h2/dfprop/refreshDefinitionMap.dfprop | 19 - .../dfprop/replaceSchemaDefinitionMap.dfprop | 234 - .../dfprop/sequenceDefinitionMap.dfprop | 25 - dbflute_h2/dfprop/typeMappingMap.dfprop | 57 - dbflute_h2/doc.bat | 15 - dbflute_h2/doc.sh | 14 - dbflute_h2/extlib/_readme.txt | 5 - dbflute_h2/generate.bat | 15 - dbflute_h2/generate.sh | 14 - dbflute_h2/jdbc.bat | 15 - dbflute_h2/jdbc.sh | 14 - dbflute_h2/log/_readme.txt | 4 - dbflute_h2/manage.bat | 17 - dbflute_h2/manage.sh | 14 - dbflute_h2/output/doc/_readme.txt | 3 - dbflute_h2/outside-sql-test.bat | 15 - dbflute_h2/outside-sql-test.sh | 14 - dbflute_h2/playsql/_readme.txt | 50 - dbflute_h2/playsql/replace-schema.sql | 1 - dbflute_h2/playsql/take-finally.sql | 1 - dbflute_h2/replace-schema.bat | 15 - dbflute_h2/replace-schema.sh | 14 - dbflute_h2/schema/_readme.txt | 4 - dbflute_h2/sql2entity.bat | 15 - dbflute_h2/sql2entity.sh | 14 - dbflute_mysql/_project.bat | 11 - dbflute_mysql/_project.sh | 9 - dbflute_mysql/_readme.txt | 70 - dbflute_mysql/build.properties | 5 - dbflute_mysql/dfprop/_readme.txt | 35 - .../dfprop/additionalForeignKeyMap.dfprop | 57 - .../dfprop/additionalPrimaryKeyMap.dfprop | 26 - .../dfprop/additionalTableMap.dfprop | 42 - .../dfprop/additionalUniqueKeyMap.dfprop | 26 - dbflute_mysql/dfprop/allClassCopyright.dfprop | 11 - dbflute_mysql/dfprop/basicInfoMap.dfprop | 220 - .../dfprop/classificationDefinitionMap.dfprop | 69 - .../dfprop/classificationDeploymentMap.dfprop | 27 - dbflute_mysql/dfprop/commonColumnMap.dfprop | 49 - dbflute_mysql/dfprop/databaseInfoMap.dfprop | 112 - .../dfprop/dependencyInjectionMap.dfprop | 116 - .../dfprop/documentDefinitionMap.dfprop | 225 - dbflute_mysql/dfprop/includeQueryMap.dfprop | 99 - .../dfprop/littleAdjustmentMap.dfprop | 345 -- .../dfprop/optimisticLockDefinitionMap.dfprop | 28 - .../dfprop/outsideSqlDefinitionMap.dfprop | 187 - .../dfprop/refreshDefinitionMap.dfprop | 19 - .../dfprop/replaceSchemaDefinitionMap.dfprop | 234 - .../dfprop/sequenceDefinitionMap.dfprop | 25 - dbflute_mysql/dfprop/typeMappingMap.dfprop | 57 - dbflute_mysql/doc.bat | 15 - dbflute_mysql/doc.sh | 14 - dbflute_mysql/extlib/_readme.txt | 5 - dbflute_mysql/generate.bat | 15 - dbflute_mysql/generate.sh | 14 - dbflute_mysql/jdbc.bat | 15 - dbflute_mysql/jdbc.sh | 14 - dbflute_mysql/log/_readme.txt | 4 - dbflute_mysql/manage.bat | 17 - dbflute_mysql/manage.sh | 14 - dbflute_mysql/output/doc/_readme.txt | 3 - dbflute_mysql/outside-sql-test.bat | 15 - dbflute_mysql/outside-sql-test.sh | 14 - dbflute_mysql/playsql/_readme.txt | 50 - dbflute_mysql/playsql/replace-schema.sql | 1 - dbflute_mysql/playsql/take-finally.sql | 1 - dbflute_mysql/replace-schema.bat | 15 - dbflute_mysql/replace-schema.sh | 14 - dbflute_mysql/schema/_readme.txt | 4 - dbflute_mysql/sql2entity.bat | 15 - dbflute_mysql/sql2entity.sh | 14 - dbflute_oracle/_project.bat | 11 - dbflute_oracle/_project.sh | 9 - dbflute_oracle/_readme.txt | 70 - dbflute_oracle/build.properties | 5 - dbflute_oracle/dfprop/_readme.txt | 35 - .../dfprop/additionalForeignKeyMap.dfprop | 42 - .../dfprop/additionalPrimaryKeyMap.dfprop | 26 - .../dfprop/additionalTableMap.dfprop | 42 - .../dfprop/additionalUniqueKeyMap.dfprop | 26 - .../dfprop/allClassCopyright.dfprop | 11 - dbflute_oracle/dfprop/basicInfoMap.dfprop | 220 - .../dfprop/classificationDefinitionMap.dfprop | 69 - .../dfprop/classificationDeploymentMap.dfprop | 27 - dbflute_oracle/dfprop/commonColumnMap.dfprop | 49 - dbflute_oracle/dfprop/databaseInfoMap.dfprop | 112 - .../dfprop/dependencyInjectionMap.dfprop | 116 - .../dfprop/documentDefinitionMap.dfprop | 225 - dbflute_oracle/dfprop/includeQueryMap.dfprop | 99 - .../dfprop/littleAdjustmentMap.dfprop | 345 -- .../dfprop/optimisticLockDefinitionMap.dfprop | 28 - .../dfprop/outsideSqlDefinitionMap.dfprop | 187 - .../dfprop/refreshDefinitionMap.dfprop | 19 - .../dfprop/replaceSchemaDefinitionMap.dfprop | 234 - .../dfprop/sequenceDefinitionMap.dfprop | 53 - .../dfprop/table.except.list.dfprop | 6 - dbflute_oracle/dfprop/typeMappingMap.dfprop | 57 - dbflute_oracle/doc.bat | 15 - dbflute_oracle/doc.sh | 14 - dbflute_oracle/extlib/_readme.txt | 5 - dbflute_oracle/generate.bat | 15 - dbflute_oracle/generate.sh | 14 - dbflute_oracle/jdbc.bat | 15 - dbflute_oracle/jdbc.sh | 14 - dbflute_oracle/log/_readme.txt | 4 - dbflute_oracle/manage.bat | 17 - dbflute_oracle/manage.sh | 14 - dbflute_oracle/output/doc/_readme.txt | 3 - dbflute_oracle/outside-sql-test.bat | 15 - dbflute_oracle/outside-sql-test.sh | 14 - dbflute_oracle/playsql/_readme.txt | 50 - dbflute_oracle/playsql/replace-schema.sql | 1 - dbflute_oracle/playsql/take-finally.sql | 1 - dbflute_oracle/replace-schema.bat | 15 - dbflute_oracle/replace-schema.sh | 14 - dbflute_oracle/schema/_readme.txt | 4 - dbflute_oracle/sql2entity.bat | 15 - dbflute_oracle/sql2entity.sh | 14 - pom.xml | 102 +- src/main/config/tablemeta.properties | 38 +- .../java/jp/sf/fess/db/allcommon/CDef.java | 359 -- .../jp/sf/fess/db/allcommon/DBCurrent.java | 89 - .../sf/fess/db/allcommon/DBFluteConfig.java | 981 ---- .../fess/db/allcommon/DBFluteInitializer.java | 151 - .../db/allcommon/DBMetaInstanceHandler.java | 388 -- .../allcommon/EntityDefinedCommonColumn.java | 45 - .../ImplementedBehaviorSelector.java | 259 - .../ImplementedCommonColumnAutoSetupper.java | 68 - .../ImplementedInvokerAssistant.java | 524 --- .../ImplementedSqlClauseCreator.java | 231 - .../fess/db/bsbhv/BsBoostDocumentRuleBhv.java | 1257 ----- .../jp/sf/fess/db/bsbhv/BsClickLogBhv.java | 993 ---- .../fess/db/bsbhv/BsCrawlingSessionBhv.java | 1107 ----- .../db/bsbhv/BsCrawlingSessionInfoBhv.java | 1008 ---- .../BsDataConfigToLabelTypeMappingBhv.java | 1037 ---- .../BsDataConfigToRoleTypeMappingBhv.java | 1036 ---- .../db/bsbhv/BsDataCrawlingConfigBhv.java | 1495 ------ .../jp/sf/fess/db/bsbhv/BsFailureUrlBhv.java | 981 ---- .../jp/sf/fess/db/bsbhv/BsFavoriteLogBhv.java | 1030 ---- .../db/bsbhv/BsFileAuthenticationBhv.java | 1274 ----- .../BsFileConfigToLabelTypeMappingBhv.java | 1037 ---- .../BsFileConfigToRoleTypeMappingBhv.java | 1036 ---- .../db/bsbhv/BsFileCrawlingConfigBhv.java | 1610 ------- .../java/jp/sf/fess/db/bsbhv/BsJobLogBhv.java | 980 ---- .../jp/sf/fess/db/bsbhv/BsKeyMatchBhv.java | 1236 ----- .../jp/sf/fess/db/bsbhv/BsLabelTypeBhv.java | 1701 ------- .../BsLabelTypeToRoleTypeMappingBhv.java | 1034 ---- .../fess/db/bsbhv/BsOverlappingHostBhv.java | 1251 ----- .../jp/sf/fess/db/bsbhv/BsPathMappingBhv.java | 1238 ----- .../sf/fess/db/bsbhv/BsRequestHeaderBhv.java | 1257 ----- .../jp/sf/fess/db/bsbhv/BsRoleTypeBhv.java | 1699 ------- .../sf/fess/db/bsbhv/BsScheduledJobBhv.java | 1240 ----- .../sf/fess/db/bsbhv/BsSearchFieldLogBhv.java | 1000 ---- .../jp/sf/fess/db/bsbhv/BsSearchLogBhv.java | 1229 ----- .../sf/fess/db/bsbhv/BsSuggestBadWordBhv.java | 1248 ----- .../db/bsbhv/BsSuggestElevateWordBhv.java | 1262 ----- .../jp/sf/fess/db/bsbhv/BsUserInfoBhv.java | 1205 ----- .../fess/db/bsbhv/BsWebAuthenticationBhv.java | 1268 ----- .../BsWebConfigToLabelTypeMappingBhv.java | 1036 ---- .../BsWebConfigToRoleTypeMappingBhv.java | 1034 ---- .../fess/db/bsbhv/BsWebCrawlingConfigBhv.java | 1718 ------- .../loader/LoaderOfBoostDocumentRule.java | 102 - .../db/bsbhv/loader/LoaderOfClickLog.java | 115 - .../bsbhv/loader/LoaderOfCrawlingSession.java | 134 - .../loader/LoaderOfCrawlingSessionInfo.java | 116 - .../LoaderOfDataConfigToLabelTypeMapping.java | 130 - .../LoaderOfDataConfigToRoleTypeMapping.java | 130 - .../loader/LoaderOfDataCrawlingConfig.java | 160 - .../db/bsbhv/loader/LoaderOfFailureUrl.java | 101 - .../db/bsbhv/loader/LoaderOfFavoriteLog.java | 115 - .../loader/LoaderOfFileAuthentication.java | 116 - .../LoaderOfFileConfigToLabelTypeMapping.java | 130 - .../LoaderOfFileConfigToRoleTypeMapping.java | 130 - .../loader/LoaderOfFileCrawlingConfig.java | 185 - .../fess/db/bsbhv/loader/LoaderOfJobLog.java | 101 - .../db/bsbhv/loader/LoaderOfKeyMatch.java | 101 - .../db/bsbhv/loader/LoaderOfLabelType.java | 210 - .../LoaderOfLabelTypeToRoleTypeMapping.java | 130 - .../bsbhv/loader/LoaderOfOverlappingHost.java | 102 - .../db/bsbhv/loader/LoaderOfPathMapping.java | 101 - .../bsbhv/loader/LoaderOfRequestHeader.java | 115 - .../db/bsbhv/loader/LoaderOfRoleType.java | 208 - .../db/bsbhv/loader/LoaderOfScheduledJob.java | 101 - .../bsbhv/loader/LoaderOfSearchFieldLog.java | 116 - .../db/bsbhv/loader/LoaderOfSearchLog.java | 168 - .../bsbhv/loader/LoaderOfSuggestBadWord.java | 102 - .../loader/LoaderOfSuggestElevateWord.java | 102 - .../db/bsbhv/loader/LoaderOfUserInfo.java | 154 - .../loader/LoaderOfWebAuthentication.java | 116 - .../LoaderOfWebConfigToLabelTypeMapping.java | 130 - .../LoaderOfWebConfigToRoleTypeMapping.java | 130 - .../loader/LoaderOfWebCrawlingConfig.java | 207 - .../db/bsbhv/pmbean/BsClickUrlRankingPmb.java | 207 - .../db/bsbhv/pmbean/BsClientIpRankingPmb.java | 207 - .../bsbhv/pmbean/BsFavoriteUrlCountPmb.java | 187 - .../bsbhv/pmbean/BsFavoriteUrlRankingPmb.java | 207 - .../bsbhv/pmbean/BsGroupedFieldNamePmb.java | 165 - .../db/bsbhv/pmbean/BsHotSearchWordPmb.java | 207 - .../db/bsbhv/pmbean/BsRefererRankingPmb.java | 207 - .../bsbhv/pmbean/BsSearchFieldRankingPmb.java | 227 - .../bsbhv/pmbean/BsSearchQueryRankingPmb.java | 207 - .../bsbhv/pmbean/BsSearchWordRankingPmb.java | 207 - .../bsbhv/pmbean/BsSolrQueryRankingPmb.java | 207 - .../bsbhv/pmbean/BsUserAgentRankingPmb.java | 207 - .../fess/db/bsentity/BsBoostDocumentRule.java | 580 --- .../jp/sf/fess/db/bsentity/BsClickLog.java | 454 -- .../fess/db/bsentity/BsCrawlingSession.java | 487 -- .../db/bsentity/BsCrawlingSessionInfo.java | 478 -- .../BsDataConfigToLabelTypeMapping.java | 460 -- .../BsDataConfigToRoleTypeMapping.java | 460 -- .../db/bsentity/BsDataCrawlingConfig.java | 754 --- .../jp/sf/fess/db/bsentity/BsFailureUrl.java | 510 -- .../jp/sf/fess/db/bsentity/BsFavoriteLog.java | 468 -- .../db/bsentity/BsFileAuthentication.java | 710 --- .../BsFileConfigToLabelTypeMapping.java | 460 -- .../BsFileConfigToRoleTypeMapping.java | 460 -- .../db/bsentity/BsFileCrawlingConfig.java | 950 ---- .../java/jp/sf/fess/db/bsentity/BsJobLog.java | 533 --- .../jp/sf/fess/db/bsentity/BsKeyMatch.java | 602 --- .../jp/sf/fess/db/bsentity/BsLabelType.java | 779 --- .../BsLabelTypeToRoleTypeMapping.java | 458 -- .../fess/db/bsentity/BsOverlappingHost.java | 580 --- .../jp/sf/fess/db/bsentity/BsPathMapping.java | 702 --- .../sf/fess/db/bsentity/BsRequestHeader.java | 617 --- .../jp/sf/fess/db/bsentity/BsRoleType.java | 733 --- .../sf/fess/db/bsentity/BsScheduledJob.java | 717 --- .../sf/fess/db/bsentity/BsSearchFieldLog.java | 455 -- .../jp/sf/fess/db/bsentity/BsSearchLog.java | 847 ---- .../sf/fess/db/bsentity/BsSuggestBadWord.java | 580 --- .../db/bsentity/BsSuggestElevateWord.java | 626 --- .../jp/sf/fess/db/bsentity/BsUserInfo.java | 494 -- .../fess/db/bsentity/BsWebAuthentication.java | 732 --- .../BsWebConfigToLabelTypeMapping.java | 459 -- .../BsWebConfigToRoleTypeMapping.java | 459 -- .../fess/db/bsentity/BsWebCrawlingConfig.java | 1005 ---- .../bsentity/customize/BsClickUrlRanking.java | 374 -- .../bsentity/customize/BsClientIpRanking.java | 374 -- .../customize/BsFavoriteUrlCount.java | 374 -- .../customize/BsFavoriteUrlRanking.java | 374 -- .../customize/BsGroupedFieldName.java | 347 -- .../bsentity/customize/BsHotSearchWord.java | 347 -- .../bsentity/customize/BsRefererRanking.java | 374 -- .../customize/BsSearchFieldRanking.java | 374 -- .../customize/BsSearchQueryRanking.java | 374 -- .../customize/BsSearchWordRanking.java | 374 -- .../customize/BsSolrQueryRanking.java | 374 -- .../customize/BsUserAgentRanking.java | 374 -- .../customize/dbmeta/ClickUrlRankingDbm.java | 270 -- .../customize/dbmeta/ClientIpRankingDbm.java | 270 -- .../customize/dbmeta/FavoriteUrlCountDbm.java | 270 -- .../dbmeta/FavoriteUrlRankingDbm.java | 270 -- .../customize/dbmeta/GroupedFieldNameDbm.java | 244 - .../customize/dbmeta/HotSearchWordDbm.java | 244 - .../customize/dbmeta/RefererRankingDbm.java | 270 -- .../dbmeta/SearchFieldRankingDbm.java | 270 -- .../dbmeta/SearchQueryRankingDbm.java | 270 -- .../dbmeta/SearchWordRankingDbm.java | 270 -- .../customize/dbmeta/SolrQueryRankingDbm.java | 270 -- .../customize/dbmeta/UserAgentRankingDbm.java | 270 -- .../bsentity/dbmeta/BoostDocumentRuleDbm.java | 539 --- .../fess/db/bsentity/dbmeta/ClickLogDbm.java | 377 -- .../bsentity/dbmeta/CrawlingSessionDbm.java | 379 -- .../dbmeta/CrawlingSessionInfoDbm.java | 406 -- .../DataConfigToLabelTypeMappingDbm.java | 381 -- .../DataConfigToRoleTypeMappingDbm.java | 381 -- .../dbmeta/DataCrawlingConfigDbm.java | 673 --- .../db/bsentity/dbmeta/FailureUrlDbm.java | 446 -- .../db/bsentity/dbmeta/FavoriteLogDbm.java | 377 -- .../dbmeta/FileAuthenticationDbm.java | 685 --- .../FileConfigToLabelTypeMappingDbm.java | 381 -- .../FileConfigToRoleTypeMappingDbm.java | 381 -- .../dbmeta/FileCrawlingConfigDbm.java | 876 ---- .../sf/fess/db/bsentity/dbmeta/JobLogDbm.java | 474 -- .../fess/db/bsentity/dbmeta/KeyMatchDbm.java | 563 --- .../fess/db/bsentity/dbmeta/LabelTypeDbm.java | 648 --- .../dbmeta/LabelTypeToRoleTypeMappingDbm.java | 378 -- .../bsentity/dbmeta/OverlappingHostDbm.java | 540 --- .../db/bsentity/dbmeta/PathMappingDbm.java | 567 --- .../db/bsentity/dbmeta/RequestHeaderDbm.java | 578 --- .../fess/db/bsentity/dbmeta/RoleTypeDbm.java | 591 --- .../db/bsentity/dbmeta/ScheduledJobDbm.java | 698 --- .../db/bsentity/dbmeta/SearchFieldLogDbm.java | 376 -- .../fess/db/bsentity/dbmeta/SearchLogDbm.java | 641 --- .../db/bsentity/dbmeta/SuggestBadWordDbm.java | 540 --- .../dbmeta/SuggestElevateWordDbm.java | 592 --- .../fess/db/bsentity/dbmeta/UserInfoDbm.java | 362 -- .../bsentity/dbmeta/WebAuthenticationDbm.java | 712 --- .../WebConfigToLabelTypeMappingDbm.java | 381 -- .../dbmeta/WebConfigToRoleTypeMappingDbm.java | 381 -- .../bsentity/dbmeta/WebCrawlingConfigDbm.java | 912 ---- .../sf/fess/db/cbean/BoostDocumentRuleCB.java | 30 - .../java/jp/sf/fess/db/cbean/ClickLogCB.java | 30 - .../sf/fess/db/cbean/CrawlingSessionCB.java | 30 - .../fess/db/cbean/CrawlingSessionInfoCB.java | 30 - .../cbean/DataConfigToLabelTypeMappingCB.java | 31 - .../cbean/DataConfigToRoleTypeMappingCB.java | 31 - .../fess/db/cbean/DataCrawlingConfigCB.java | 30 - .../jp/sf/fess/db/cbean/FailureUrlCB.java | 30 - .../jp/sf/fess/db/cbean/FavoriteLogCB.java | 30 - .../fess/db/cbean/FileAuthenticationCB.java | 30 - .../cbean/FileConfigToLabelTypeMappingCB.java | 31 - .../cbean/FileConfigToRoleTypeMappingCB.java | 31 - .../fess/db/cbean/FileCrawlingConfigCB.java | 30 - .../java/jp/sf/fess/db/cbean/JobLogCB.java | 30 - .../java/jp/sf/fess/db/cbean/KeyMatchCB.java | 30 - .../java/jp/sf/fess/db/cbean/LabelTypeCB.java | 30 - .../cbean/LabelTypeToRoleTypeMappingCB.java | 31 - .../sf/fess/db/cbean/OverlappingHostCB.java | 30 - .../jp/sf/fess/db/cbean/PathMappingCB.java | 30 - .../jp/sf/fess/db/cbean/RequestHeaderCB.java | 30 - .../java/jp/sf/fess/db/cbean/RoleTypeCB.java | 30 - .../jp/sf/fess/db/cbean/ScheduledJobCB.java | 30 - .../jp/sf/fess/db/cbean/SearchFieldLogCB.java | 30 - .../java/jp/sf/fess/db/cbean/SearchLogCB.java | 30 - .../jp/sf/fess/db/cbean/SuggestBadWordCB.java | 30 - .../fess/db/cbean/SuggestElevateWordCB.java | 30 - .../java/jp/sf/fess/db/cbean/UserInfoCB.java | 30 - .../sf/fess/db/cbean/WebAuthenticationCB.java | 30 - .../cbean/WebConfigToLabelTypeMappingCB.java | 31 - .../cbean/WebConfigToRoleTypeMappingCB.java | 31 - .../sf/fess/db/cbean/WebCrawlingConfigCB.java | 30 - .../db/cbean/bs/BsBoostDocumentRuleCB.java | 791 ---- .../jp/sf/fess/db/cbean/bs/BsClickLogCB.java | 819 ---- .../fess/db/cbean/bs/BsCrawlingSessionCB.java | 776 --- .../db/cbean/bs/BsCrawlingSessionInfoCB.java | 821 ---- .../bs/BsDataConfigToLabelTypeMappingCB.java | 883 ---- .../bs/BsDataConfigToRoleTypeMappingCB.java | 882 ---- .../db/cbean/bs/BsDataCrawlingConfigCB.java | 896 ---- .../sf/fess/db/cbean/bs/BsFailureUrlCB.java | 765 --- .../sf/fess/db/cbean/bs/BsFavoriteLogCB.java | 821 ---- .../db/cbean/bs/BsFileAuthenticationCB.java | 901 ---- .../bs/BsFileConfigToLabelTypeMappingCB.java | 883 ---- .../bs/BsFileConfigToRoleTypeMappingCB.java | 882 ---- .../db/cbean/bs/BsFileCrawlingConfigCB.java | 986 ---- .../jp/sf/fess/db/cbean/bs/BsJobLogCB.java | 769 --- .../jp/sf/fess/db/cbean/bs/BsKeyMatchCB.java | 795 ---- .../jp/sf/fess/db/cbean/bs/BsLabelTypeCB.java | 948 ---- .../bs/BsLabelTypeToRoleTypeMappingCB.java | 877 ---- .../fess/db/cbean/bs/BsOverlappingHostCB.java | 790 ---- .../sf/fess/db/cbean/bs/BsPathMappingCB.java | 797 ---- .../fess/db/cbean/bs/BsRequestHeaderCB.java | 866 ---- .../jp/sf/fess/db/cbean/bs/BsRoleTypeCB.java | 931 ---- .../sf/fess/db/cbean/bs/BsScheduledJobCB.java | 837 ---- .../fess/db/cbean/bs/BsSearchFieldLogCB.java | 821 ---- .../jp/sf/fess/db/cbean/bs/BsSearchLogCB.java | 942 ---- .../fess/db/cbean/bs/BsSuggestBadWordCB.java | 789 ---- .../db/cbean/bs/BsSuggestElevateWordCB.java | 808 ---- .../jp/sf/fess/db/cbean/bs/BsUserInfoCB.java | 796 ---- .../db/cbean/bs/BsWebAuthenticationCB.java | 908 ---- .../bs/BsWebConfigToLabelTypeMappingCB.java | 882 ---- .../bs/BsWebConfigToRoleTypeMappingCB.java | 881 ---- .../db/cbean/bs/BsWebCrawlingConfigCB.java | 1026 ---- .../fess/db/cbean/cq/BoostDocumentRuleCQ.java | 55 - .../jp/sf/fess/db/cbean/cq/ClickLogCQ.java | 58 - .../fess/db/cbean/cq/CrawlingSessionCQ.java | 58 - .../db/cbean/cq/CrawlingSessionInfoCQ.java | 58 - .../cq/DataConfigToLabelTypeMappingCQ.java | 59 - .../cq/DataConfigToRoleTypeMappingCQ.java | 59 - .../db/cbean/cq/DataCrawlingConfigCQ.java | 58 - .../jp/sf/fess/db/cbean/cq/FailureUrlCQ.java | 58 - .../jp/sf/fess/db/cbean/cq/FavoriteLogCQ.java | 58 - .../db/cbean/cq/FileAuthenticationCQ.java | 58 - .../cq/FileConfigToLabelTypeMappingCQ.java | 59 - .../cq/FileConfigToRoleTypeMappingCQ.java | 59 - .../db/cbean/cq/FileCrawlingConfigCQ.java | 58 - .../java/jp/sf/fess/db/cbean/cq/JobLogCQ.java | 58 - .../jp/sf/fess/db/cbean/cq/KeyMatchCQ.java | 55 - .../jp/sf/fess/db/cbean/cq/LabelTypeCQ.java | 58 - .../cq/LabelTypeToRoleTypeMappingCQ.java | 59 - .../fess/db/cbean/cq/OverlappingHostCQ.java | 58 - .../jp/sf/fess/db/cbean/cq/PathMappingCQ.java | 58 - .../sf/fess/db/cbean/cq/RequestHeaderCQ.java | 58 - .../jp/sf/fess/db/cbean/cq/RoleTypeCQ.java | 58 - .../sf/fess/db/cbean/cq/ScheduledJobCQ.java | 58 - .../sf/fess/db/cbean/cq/SearchFieldLogCQ.java | 58 - .../jp/sf/fess/db/cbean/cq/SearchLogCQ.java | 58 - .../sf/fess/db/cbean/cq/SuggestBadWordCQ.java | 55 - .../db/cbean/cq/SuggestElevateWordCQ.java | 55 - .../jp/sf/fess/db/cbean/cq/UserInfoCQ.java | 58 - .../fess/db/cbean/cq/WebAuthenticationCQ.java | 58 - .../cq/WebConfigToLabelTypeMappingCQ.java | 59 - .../cq/WebConfigToRoleTypeMappingCQ.java | 59 - .../fess/db/cbean/cq/WebCrawlingConfigCQ.java | 58 - .../cq/bs/AbstractBsBoostDocumentRuleCQ.java | 1731 ------- .../db/cbean/cq/bs/AbstractBsClickLogCQ.java | 900 ---- .../cq/bs/AbstractBsCrawlingSessionCQ.java | 1194 ----- .../bs/AbstractBsCrawlingSessionInfoCQ.java | 1037 ---- ...tractBsDataConfigToLabelTypeMappingCQ.java | 865 ---- ...stractBsDataConfigToRoleTypeMappingCQ.java | 862 ---- .../cq/bs/AbstractBsDataCrawlingConfigCQ.java | 2692 ----------- .../cbean/cq/bs/AbstractBsFailureUrlCQ.java | 1450 ------ .../cbean/cq/bs/AbstractBsFavoriteLogCQ.java | 895 ---- .../cq/bs/AbstractBsFileAuthenticationCQ.java | 2394 ---------- ...tractBsFileConfigToLabelTypeMappingCQ.java | 865 ---- ...stractBsFileConfigToRoleTypeMappingCQ.java | 862 ---- .../cq/bs/AbstractBsFileCrawlingConfigCQ.java | 3845 --------------- .../db/cbean/cq/bs/AbstractBsJobLogCQ.java | 1546 ------ .../db/cbean/cq/bs/AbstractBsKeyMatchCQ.java | 1836 -------- .../db/cbean/cq/bs/AbstractBsLabelTypeCQ.java | 2836 ----------- ...bstractBsLabelTypeToRoleTypeMappingCQ.java | 858 ---- .../cq/bs/AbstractBsOverlappingHostCQ.java | 1742 ------- .../cbean/cq/bs/AbstractBsPathMappingCQ.java | 1888 -------- .../cq/bs/AbstractBsRequestHeaderCQ.java | 1787 ------- .../db/cbean/cq/bs/AbstractBsRoleTypeCQ.java | 2518 ---------- .../cbean/cq/bs/AbstractBsScheduledJobCQ.java | 2541 ---------- .../cq/bs/AbstractBsSearchFieldLogCQ.java | 939 ---- .../db/cbean/cq/bs/AbstractBsSearchLogCQ.java | 2559 ---------- .../cq/bs/AbstractBsSuggestBadWordCQ.java | 1809 ------- .../cq/bs/AbstractBsSuggestElevateWordCQ.java | 2076 -------- .../db/cbean/cq/bs/AbstractBsUserInfoCQ.java | 1196 ----- .../cq/bs/AbstractBsWebAuthenticationCQ.java | 2544 ---------- ...stractBsWebConfigToLabelTypeMappingCQ.java | 864 ---- ...bstractBsWebConfigToRoleTypeMappingCQ.java | 861 ---- .../cq/bs/AbstractBsWebCrawlingConfigCQ.java | 4166 ----------------- .../db/cbean/cq/bs/BsBoostDocumentRuleCQ.java | 629 --- .../sf/fess/db/cbean/cq/bs/BsClickLogCQ.java | 447 -- .../db/cbean/cq/bs/BsCrawlingSessionCQ.java | 498 -- .../cbean/cq/bs/BsCrawlingSessionInfoCQ.java | 488 -- .../bs/BsDataConfigToLabelTypeMappingCQ.java | 479 -- .../bs/BsDataConfigToRoleTypeMappingCQ.java | 478 -- .../cbean/cq/bs/BsDataCrawlingConfigCQ.java | 922 ---- .../fess/db/cbean/cq/bs/BsFailureUrlCQ.java | 525 --- .../fess/db/cbean/cq/bs/BsFavoriteLogCQ.java | 448 -- .../cbean/cq/bs/BsFileAuthenticationCQ.java | 829 ---- .../bs/BsFileConfigToLabelTypeMappingCQ.java | 479 -- .../bs/BsFileConfigToRoleTypeMappingCQ.java | 478 -- .../cbean/cq/bs/BsFileCrawlingConfigCQ.java | 1231 ----- .../jp/sf/fess/db/cbean/cq/bs/BsJobLogCQ.java | 559 --- .../sf/fess/db/cbean/cq/bs/BsKeyMatchCQ.java | 661 --- .../sf/fess/db/cbean/cq/bs/BsLabelTypeCQ.java | 1008 ---- .../cq/bs/BsLabelTypeToRoleTypeMappingCQ.java | 475 -- .../db/cbean/cq/bs/BsOverlappingHostCQ.java | 629 --- .../fess/db/cbean/cq/bs/BsPathMappingCQ.java | 662 --- .../db/cbean/cq/bs/BsRequestHeaderCQ.java | 691 --- .../sf/fess/db/cbean/cq/bs/BsRoleTypeCQ.java | 937 ---- .../fess/db/cbean/cq/bs/BsScheduledJobCQ.java | 833 ---- .../db/cbean/cq/bs/BsSearchFieldLogCQ.java | 449 -- .../sf/fess/db/cbean/cq/bs/BsSearchLogCQ.java | 889 ---- .../db/cbean/cq/bs/BsSuggestBadWordCQ.java | 629 --- .../cbean/cq/bs/BsSuggestElevateWordCQ.java | 697 --- .../sf/fess/db/cbean/cq/bs/BsUserInfoCQ.java | 524 --- .../db/cbean/cq/bs/BsWebAuthenticationCQ.java | 862 ---- .../bs/BsWebConfigToLabelTypeMappingCQ.java | 478 -- .../cq/bs/BsWebConfigToRoleTypeMappingCQ.java | 476 -- .../db/cbean/cq/bs/BsWebCrawlingConfigCQ.java | 1334 ------ .../db/cbean/cq/ciq/BoostDocumentRuleCIQ.java | 211 - .../sf/fess/db/cbean/cq/ciq/ClickLogCIQ.java | 187 - .../db/cbean/cq/ciq/CrawlingSessionCIQ.java | 229 - .../cbean/cq/ciq/CrawlingSessionInfoCIQ.java | 195 - .../ciq/DataConfigToLabelTypeMappingCIQ.java | 198 - .../ciq/DataConfigToRoleTypeMappingCIQ.java | 197 - .../cbean/cq/ciq/DataCrawlingConfigCIQ.java | 330 -- .../fess/db/cbean/cq/ciq/FailureUrlCIQ.java | 196 - .../fess/db/cbean/cq/ciq/FavoriteLogCIQ.java | 187 - .../cbean/cq/ciq/FileAuthenticationCIQ.java | 246 - .../ciq/FileConfigToLabelTypeMappingCIQ.java | 198 - .../ciq/FileConfigToRoleTypeMappingCIQ.java | 197 - .../cbean/cq/ciq/FileCrawlingConfigCIQ.java | 413 -- .../jp/sf/fess/db/cbean/cq/ciq/JobLogCIQ.java | 201 - .../sf/fess/db/cbean/cq/ciq/KeyMatchCIQ.java | 216 - .../sf/fess/db/cbean/cq/ciq/LabelTypeCIQ.java | 419 -- .../cq/ciq/LabelTypeToRoleTypeMappingCIQ.java | 195 - .../db/cbean/cq/ciq/OverlappingHostCIQ.java | 211 - .../fess/db/cbean/cq/ciq/PathMappingCIQ.java | 216 - .../db/cbean/cq/ciq/RequestHeaderCIQ.java | 226 - .../sf/fess/db/cbean/cq/ciq/RoleTypeCIQ.java | 407 -- .../fess/db/cbean/cq/ciq/ScheduledJobCIQ.java | 241 - .../db/cbean/cq/ciq/SearchFieldLogCIQ.java | 187 - .../sf/fess/db/cbean/cq/ciq/SearchLogCIQ.java | 322 -- .../db/cbean/cq/ciq/SuggestBadWordCIQ.java | 211 - .../cbean/cq/ciq/SuggestElevateWordCIQ.java | 221 - .../sf/fess/db/cbean/cq/ciq/UserInfoCIQ.java | 265 -- .../db/cbean/cq/ciq/WebAuthenticationCIQ.java | 251 - .../ciq/WebConfigToLabelTypeMappingCIQ.java | 198 - .../cq/ciq/WebConfigToRoleTypeMappingCIQ.java | 196 - .../db/cbean/cq/ciq/WebCrawlingConfigCIQ.java | 465 -- .../jp/sf/fess/db/cbean/nss/ClickLogNss.java | 59 - .../db/cbean/nss/CrawlingSessionInfoNss.java | 57 - .../nss/DataConfigToLabelTypeMappingNss.java | 71 - .../nss/DataConfigToRoleTypeMappingNss.java | 71 - .../sf/fess/db/cbean/nss/FavoriteLogNss.java | 57 - .../db/cbean/nss/FileAuthenticationNss.java | 57 - .../nss/FileConfigToLabelTypeMappingNss.java | 71 - .../nss/FileConfigToRoleTypeMappingNss.java | 71 - .../nss/LabelTypeToRoleTypeMappingNss.java | 71 - .../fess/db/cbean/nss/RequestHeaderNss.java | 57 - .../fess/db/cbean/nss/SearchFieldLogNss.java | 59 - .../jp/sf/fess/db/cbean/nss/SearchLogNss.java | 57 - .../db/cbean/nss/WebAuthenticationNss.java | 57 - .../nss/WebConfigToLabelTypeMappingNss.java | 71 - .../nss/WebConfigToRoleTypeMappingNss.java | 71 - .../jp/sf/fess/db/cbean/sqlclause/.gitkeep | 0 .../sf/fess/helper/HotSearchWordHelper.java | 123 - src/main/java/jp/sf/fess/job/DailyJob.java | 111 - src/main/java/jp/sf/fess/job/HourlyJob.java | 56 - src/main/java/jp/sf/fess/job/MinutelyJob.java | 47 - .../fess/service/CrawlingSessionService.java | 307 -- .../jp/sf/fess/service/UserInfoService.java | 158 - .../sf => org/codelibs}/fess/Constants.java | 22 +- .../codelibs}/fess/FessSystemException.java | 2 +- .../codelibs}/fess/InvalidQueryException.java | 2 +- .../fess/ResultOffsetExceededException.java | 2 +- .../fess/UnsupportedSearchException.java | 2 +- .../codelibs}/fess/WebApiException.java | 2 +- .../codelibs}/fess/action/AppletAction.java | 9 +- .../codelibs}/fess/action/ErrorAction.java | 5 +- .../codelibs}/fess/action/IndexAction.java | 108 +- .../codelibs}/fess/action/LoginAction.java | 15 +- .../action/admin/BoostDocumentRuleAction.java | 29 +- .../fess/action/admin/CrawlAction.java | 11 +- .../action/admin/CrawlingSessionAction.java | 13 +- .../fess/action/admin/DataAction.java | 21 +- .../admin/DataCrawlingConfigAction.java | 43 +- .../fess/action/admin/DesignAction.java | 13 +- .../fess/action/admin/DictAction.java | 13 +- .../fess/action/admin/DocumentAction.java | 18 +- .../fess/action/admin/FailureUrlAction.java | 9 +- .../fess/action/admin/FavoriteLogAction.java | 11 +- .../admin/FileAuthenticationAction.java | 35 +- .../admin/FileCrawlingConfigAction.java | 39 +- .../fess/action/admin/IndexAction.java | 5 +- .../fess/action/admin/JobLogAction.java | 11 +- .../fess/action/admin/KeyMatchAction.java | 31 +- .../fess/action/admin/LabelTypeAction.java | 33 +- .../fess/action/admin/LogAction.java | 11 +- .../action/admin/OverlappingHostAction.java | 29 +- .../fess/action/admin/PathMappingAction.java | 31 +- .../action/admin/RequestHeaderAction.java | 33 +- .../fess/action/admin/RoleTypeAction.java | 29 +- .../fess/action/admin/ScheduledJobAction.java | 39 +- .../fess/action/admin/SearchListAction.java | 23 +- .../fess/action/admin/SearchLogAction.java | 13 +- .../fess/action/admin/StatsAction.java | 15 +- .../action/admin/SuggestBadWordAction.java | 35 +- .../admin/SuggestElevateWordAction.java | 35 +- .../fess/action/admin/SystemAction.java | 21 +- .../fess/action/admin/SystemInfoAction.java | 9 +- .../fess/action/admin/UserInfoAction.java | 9 +- .../action/admin/WebAuthenticationAction.java | 35 +- .../action/admin/WebCrawlingConfigAction.java | 41 +- .../fess/action/admin/WizardAction.java | 33 +- .../fess/action/admin/dict/SynonymAction.java | 23 +- .../action/admin/dict/UserDictAction.java | 23 +- .../fess/annotation/CronExpression.java | 2 +- .../codelibs}/fess/annotation/UriType.java | 2 +- .../codelibs}/fess/api/BaseApiManager.java | 2 +- .../codelibs}/fess/api/WebApiManager.java | 2 +- .../fess/api/WebApiManagerFactory.java | 2 +- .../codelibs}/fess/api/WebApiRequest.java | 2 +- .../codelibs}/fess/api/WebApiResponse.java | 2 +- .../fess/api/json/JsonApiManager.java | 34 +- .../codelibs}/fess/api/xml/XmlApiManager.java | 34 +- .../codelibs}/fess/crud/CommonConstants.java | 2 +- .../fess/crud/CrudMessageException.java | 2 +- .../admin/BsBoostDocumentRuleAction.java | 17 +- .../action/admin/BsCrawlingSessionAction.java | 17 +- .../admin/BsDataCrawlingConfigAction.java | 17 +- .../crud/action/admin/BsFailureUrlAction.java | 17 +- .../action/admin/BsFavoriteLogAction.java | 17 +- .../admin/BsFileAuthenticationAction.java | 17 +- .../admin/BsFileCrawlingConfigAction.java | 17 +- .../crud/action/admin/BsJobLogAction.java | 17 +- .../crud/action/admin/BsKeyMatchAction.java | 17 +- .../crud/action/admin/BsLabelTypeAction.java | 17 +- .../action/admin/BsOverlappingHostAction.java | 17 +- .../action/admin/BsPathMappingAction.java | 17 +- .../action/admin/BsRequestHeaderAction.java | 17 +- .../crud/action/admin/BsRoleTypeAction.java | 17 +- .../action/admin/BsScheduledJobAction.java | 17 +- .../crud/action/admin/BsSearchLogAction.java | 17 +- .../action/admin/BsSuggestBadWordAction.java | 17 +- .../admin/BsSuggestElevateWordAction.java | 17 +- .../crud/action/admin/BsUserInfoAction.java | 19 +- .../admin/BsWebAuthenticationAction.java | 17 +- .../admin/BsWebCrawlingConfigAction.java | 17 +- .../fess/crud/creator/PagerCreator.java | 2 +- .../form/admin/BsBoostDocumentRuleForm.java | 5 +- .../form/admin/BsCrawlingSessionForm.java | 2 +- .../form/admin/BsDataCrawlingConfigForm.java | 5 +- .../crud/form/admin/BsFailureUrlForm.java | 5 +- .../crud/form/admin/BsFavoriteLogForm.java | 5 +- .../form/admin/BsFileAuthenticationForm.java | 5 +- .../form/admin/BsFileCrawlingConfigForm.java | 7 +- .../fess/crud/form/admin/BsJobLogForm.java | 5 +- .../fess/crud/form/admin/BsKeyMatchForm.java | 5 +- .../fess/crud/form/admin/BsLabelTypeForm.java | 5 +- .../form/admin/BsOverlappingHostForm.java | 5 +- .../crud/form/admin/BsPathMappingForm.java | 5 +- .../crud/form/admin/BsRequestHeaderForm.java | 5 +- .../fess/crud/form/admin/BsRoleTypeForm.java | 5 +- .../crud/form/admin/BsScheduledJobForm.java | 7 +- .../fess/crud/form/admin/BsSearchLogForm.java | 2 +- .../crud/form/admin/BsSuggestBadWordForm.java | 5 +- .../form/admin/BsSuggestElevateWordForm.java | 5 +- .../fess/crud/form/admin/BsUserInfoForm.java | 5 +- .../form/admin/BsWebAuthenticationForm.java | 5 +- .../form/admin/BsWebCrawlingConfigForm.java | 7 +- .../crud/pager/BsBoostDocumentRulePager.java | 2 +- .../crud/pager/BsCrawlingSessionPager.java | 2 +- .../crud/pager/BsDataCrawlingConfigPager.java | 2 +- .../fess/crud/pager/BsFailureUrlPager.java | 2 +- .../fess/crud/pager/BsFavoriteLogPager.java | 2 +- .../crud/pager/BsFileAuthenticationPager.java | 2 +- .../crud/pager/BsFileCrawlingConfigPager.java | 2 +- .../fess/crud/pager/BsJobLogPager.java | 2 +- .../fess/crud/pager/BsKeyMatchPager.java | 2 +- .../fess/crud/pager/BsLabelTypePager.java | 2 +- .../crud/pager/BsOverlappingHostPager.java | 2 +- .../fess/crud/pager/BsPathMappingPager.java | 2 +- .../fess/crud/pager/BsRequestHeaderPager.java | 2 +- .../fess/crud/pager/BsRoleTypePager.java | 2 +- .../fess/crud/pager/BsScheduledJobPager.java | 2 +- .../fess/crud/pager/BsSearchLogPager.java | 2 +- .../crud/pager/BsSuggestBadWordPager.java | 2 +- .../crud/pager/BsSuggestElevateWordPager.java | 2 +- .../fess/crud/pager/BsUserInfoPager.java | 2 +- .../crud/pager/BsWebAuthenticationPager.java | 2 +- .../crud/pager/BsWebCrawlingConfigPager.java | 2 +- .../service/BsBoostDocumentRuleService.java | 47 +- .../service/BsCrawlingSessionService.java | 49 +- .../service/BsDataCrawlingConfigService.java | 48 +- .../crud/service/BsFailureUrlService.java | 48 +- .../crud/service/BsFavoriteLogService.java | 48 +- .../service/BsFileAuthenticationService.java | 47 +- .../service/BsFileCrawlingConfigService.java | 47 +- .../fess/crud/service/BsJobLogService.java | 49 +- .../fess/crud/service/BsKeyMatchService.java | 48 +- .../fess/crud/service/BsLabelTypeService.java | 48 +- .../service/BsOverlappingHostService.java | 49 +- .../crud/service/BsPathMappingService.java | 48 +- .../crud/service/BsRequestHeaderService.java | 50 +- .../fess/crud/service/BsRoleTypeService.java | 48 +- .../crud/service/BsScheduledJobService.java | 48 +- .../fess/crud/service/BsSearchLogService.java | 48 +- .../crud/service/BsSuggestBadWordService.java | 51 +- .../service/BsSuggestElevateWordService.java | 47 +- .../fess/crud/service/BsUserInfoService.java | 48 +- .../service/BsWebAuthenticationService.java | 47 +- .../service/BsWebCrawlingConfigService.java | 47 +- .../fess/crud/util/SAStrutsUtil.java | 2 +- .../fess/db/exbhv/BoostDocumentRuleBhv.java | 4 +- .../codelibs}/fess/db/exbhv/ClickLogBhv.java | 4 +- .../fess/db/exbhv/CrawlingSessionBhv.java | 4 +- .../fess/db/exbhv/CrawlingSessionInfoBhv.java | 4 +- .../DataConfigToLabelTypeMappingBhv.java | 4 +- .../exbhv/DataConfigToRoleTypeMappingBhv.java | 4 +- .../fess/db/exbhv/DataCrawlingConfigBhv.java | 4 +- .../fess/db/exbhv/FailureUrlBhv.java | 4 +- .../fess/db/exbhv/FavoriteLogBhv.java | 4 +- .../fess/db/exbhv/FileAuthenticationBhv.java | 4 +- .../FileConfigToLabelTypeMappingBhv.java | 4 +- .../exbhv/FileConfigToRoleTypeMappingBhv.java | 4 +- .../fess/db/exbhv/FileCrawlingConfigBhv.java | 4 +- .../codelibs}/fess/db/exbhv/JobLogBhv.java | 4 +- .../codelibs}/fess/db/exbhv/KeyMatchBhv.java | 4 +- .../codelibs}/fess/db/exbhv/LabelTypeBhv.java | 4 +- .../exbhv/LabelTypeToRoleTypeMappingBhv.java | 4 +- .../fess/db/exbhv/OverlappingHostBhv.java | 4 +- .../fess/db/exbhv/PathMappingBhv.java | 4 +- .../fess/db/exbhv/RequestHeaderBhv.java | 4 +- .../codelibs}/fess/db/exbhv/RoleTypeBhv.java | 4 +- .../fess/db/exbhv/ScheduledJobBhv.java | 4 +- .../fess/db/exbhv/SearchFieldLogBhv.java | 4 +- .../codelibs}/fess/db/exbhv/SearchLogBhv.java | 4 +- .../fess/db/exbhv/SuggestBadWordBhv.java | 4 +- .../fess/db/exbhv/SuggestElevateWordBhv.java | 4 +- .../codelibs}/fess/db/exbhv/UserInfoBhv.java | 4 +- .../fess/db/exbhv/WebAuthenticationBhv.java | 4 +- .../exbhv/WebConfigToLabelTypeMappingBhv.java | 4 +- .../exbhv/WebConfigToRoleTypeMappingBhv.java | 4 +- .../fess/db/exbhv/WebCrawlingConfigBhv.java | 4 +- .../db/exbhv/pmbean/ClickUrlRankingPmb.java | 4 +- .../db/exbhv/pmbean/ClientIpRankingPmb.java | 4 +- .../db/exbhv/pmbean/FavoriteUrlCountPmb.java | 4 +- .../exbhv/pmbean/FavoriteUrlRankingPmb.java | 4 +- .../db/exbhv/pmbean/GroupedFieldNamePmb.java | 4 +- .../db/exbhv/pmbean/HotSearchWordPmb.java | 4 +- .../db/exbhv/pmbean/RefererRankingPmb.java | 4 +- .../exbhv/pmbean/SearchFieldRankingPmb.java | 4 +- .../exbhv/pmbean/SearchQueryRankingPmb.java | 4 +- .../db/exbhv/pmbean/SearchWordRankingPmb.java | 4 +- .../db/exbhv/pmbean/SolrQueryRankingPmb.java | 4 +- .../db/exbhv/pmbean/UserAgentRankingPmb.java | 4 +- .../fess/db/exentity/BoostDocumentRule.java | 4 +- .../codelibs}/fess/db/exentity/ClickLog.java | 14 +- .../fess/db/exentity/CrawlingConfig.java | 2 +- .../fess/db/exentity/CrawlingSession.java | 4 +- .../fess/db/exentity/CrawlingSessionInfo.java | 5 +- .../DataConfigToLabelTypeMapping.java | 4 +- .../exentity/DataConfigToRoleTypeMapping.java | 4 +- .../fess/db/exentity/DataCrawlingConfig.java | 17 +- .../fess/db/exentity/FailureUrl.java | 9 +- .../fess/db/exentity/FavoriteLog.java | 4 +- .../fess/db/exentity/FileAuthentication.java | 4 +- .../FileConfigToLabelTypeMapping.java | 4 +- .../exentity/FileConfigToRoleTypeMapping.java | 4 +- .../fess/db/exentity/FileCrawlingConfig.java | 23 +- .../codelibs}/fess/db/exentity/JobLog.java | 11 +- .../codelibs}/fess/db/exentity/KeyMatch.java | 4 +- .../codelibs}/fess/db/exentity/LabelType.java | 9 +- .../exentity/LabelTypeToRoleTypeMapping.java | 4 +- .../fess/db/exentity/OverlappingHost.java | 4 +- .../fess/db/exentity/PathMapping.java | 4 +- .../fess/db/exentity/RequestHeader.java | 4 +- .../codelibs}/fess/db/exentity/RoleType.java | 4 +- .../fess/db/exentity/ScheduledJob.java | 10 +- .../fess/db/exentity/SearchFieldLog.java | 4 +- .../codelibs}/fess/db/exentity/SearchLog.java | 7 +- .../fess/db/exentity/SuggestBadWord.java | 4 +- .../fess/db/exentity/SuggestElevateWord.java | 4 +- .../codelibs}/fess/db/exentity/UserInfo.java | 4 +- .../fess/db/exentity/WebAuthentication.java | 9 +- .../exentity/WebConfigToLabelTypeMapping.java | 4 +- .../exentity/WebConfigToRoleTypeMapping.java | 4 +- .../fess/db/exentity/WebCrawlingConfig.java | 25 +- .../exentity/customize/ClickUrlRanking.java | 4 +- .../exentity/customize/ClientIpRanking.java | 4 +- .../exentity/customize/FavoriteUrlCount.java | 4 +- .../customize/FavoriteUrlRanking.java | 4 +- .../exentity/customize/GroupedFieldName.java | 4 +- .../db/exentity/customize/HotSearchWord.java | 4 +- .../db/exentity/customize/RefererRanking.java | 4 +- .../customize/SearchFieldRanking.java | 4 +- .../customize/SearchQueryRanking.java | 4 +- .../exentity/customize/SearchWordRanking.java | 4 +- .../exentity/customize/SolrQueryRanking.java | 4 +- .../exentity/customize/UserAgentRanking.java | 4 +- .../fess/dict/DictionaryException.java | 4 +- .../fess/dict/DictionaryExpiredException.java | 2 +- .../codelibs}/fess/dict/DictionaryFile.java | 2 +- .../codelibs}/fess/dict/DictionaryItem.java | 2 +- .../fess/dict/DictionaryLocator.java | 5 +- .../fess/dict/DictionaryManager.java | 2 +- .../fess/dict/synonym/SynonymFile.java | 9 +- .../fess/dict/synonym/SynonymItem.java | 5 +- .../fess/dict/synonym/SynonymLocator.java | 9 +- .../fess/dict/userdict/UserDictFile.java | 9 +- .../fess/dict/userdict/UserDictItem.java | 4 +- .../fess/dict/userdict/UserDictLocator.java | 9 +- .../codelibs}/fess/ds/DataStore.java | 4 +- .../fess/ds/DataStoreCrawlingException.java | 2 +- .../codelibs}/fess/ds/DataStoreException.java | 4 +- .../codelibs}/fess/ds/DataStoreFactory.java | 2 +- .../fess/ds/IndexUpdateCallback.java | 2 +- .../fess/ds/impl/AbstractDataStoreImpl.java | 24 +- .../fess/ds/impl/CsvDataStoreImpl.java | 14 +- .../fess/ds/impl/DatabaseDataStoreImpl.java | 11 +- .../fess/ds/impl/FileListDataStoreImpl.java | 20 +- .../fess/ds/impl/IndexUpdateCallbackImpl.java | 21 +- .../codelibs}/fess/entity/FacetInfo.java | 2 +- .../codelibs}/fess/entity/FacetQueryView.java | 2 +- .../fess/entity/FieldAnalysisResponse.java | 2 +- .../codelibs}/fess/entity/GeoInfo.java | 2 +- .../codelibs}/fess/entity/LoginInfo.java | 5 +- .../fess/entity/MoreLikeThisInfo.java | 2 +- .../codelibs}/fess/entity/PingResponse.java | 2 +- .../codelibs}/fess/entity/SearchQuery.java | 5 +- .../codelibs}/fess/exec/Crawler.java | 40 +- .../fess/filter/AdLoginInfoFilter.java | 9 +- .../fess/filter/AdminAuthFilter.java | 5 +- .../fess/filter/FessEncodingFilter.java | 2 +- .../fess/filter/LoginInfoFilter.java | 9 +- .../codelibs}/fess/filter/WebApiFilter.java | 8 +- .../codelibs}/fess/form/AppletForm.java | 2 +- .../codelibs}/fess/form/ErrorForm.java | 2 +- .../codelibs}/fess/form/IndexForm.java | 11 +- .../codelibs}/fess/form/LoginForm.java | 2 +- .../form/admin/BoostDocumentRuleForm.java | 4 +- .../codelibs}/fess/form/admin/CrawlForm.java | 2 +- .../fess/form/admin/CrawlingSessionForm.java | 4 +- .../form/admin/DataCrawlingConfigForm.java | 6 +- .../codelibs}/fess/form/admin/DataForm.java | 2 +- .../codelibs}/fess/form/admin/DesignForm.java | 2 +- .../codelibs}/fess/form/admin/DictForm.java | 2 +- .../fess/form/admin/DocumentForm.java | 2 +- .../fess/form/admin/FailureUrlForm.java | 4 +- .../fess/form/admin/FavoriteLogForm.java | 4 +- .../form/admin/FileAuthenticationForm.java | 6 +- .../form/admin/FileCrawlingConfigForm.java | 6 +- .../codelibs}/fess/form/admin/JobLogForm.java | 4 +- .../fess/form/admin/KeyMatchForm.java | 4 +- .../fess/form/admin/LabelTypeForm.java | 6 +- .../codelibs}/fess/form/admin/LogForm.java | 2 +- .../fess/form/admin/OverlappingHostForm.java | 6 +- .../fess/form/admin/PathMappingForm.java | 6 +- .../fess/form/admin/RequestHeaderForm.java | 6 +- .../fess/form/admin/RoleTypeForm.java | 6 +- .../fess/form/admin/ScheduledJobForm.java | 6 +- .../fess/form/admin/SearchListForm.java | 2 +- .../fess/form/admin/SearchLogForm.java | 6 +- .../codelibs}/fess/form/admin/StatsForm.java | 5 +- .../fess/form/admin/SuggestBadWordForm.java | 5 +- .../form/admin/SuggestElevateWordForm.java | 5 +- .../codelibs}/fess/form/admin/SystemForm.java | 2 +- .../fess/form/admin/SystemInfoForm.java | 2 +- .../fess/form/admin/UserInfoForm.java | 4 +- .../form/admin/WebAuthenticationForm.java | 6 +- .../form/admin/WebCrawlingConfigForm.java | 9 +- .../codelibs}/fess/form/admin/WizardForm.java | 2 +- .../fess/form/admin/dict/SynonymForm.java | 2 +- .../fess/form/admin/dict/UserDictForm.java | 2 +- .../codelibs}/fess/helper/AdRoleHelper.java | 2 +- .../fess/helper/CrawlingConfigHelper.java | 21 +- .../fess/helper/CrawlingSessionHelper.java | 31 +- .../fess/helper/DataIndexHelper.java | 17 +- .../codelibs}/fess/helper/DatabaseHelper.java | 2 +- .../codelibs}/fess/helper/DocumentHelper.java | 5 +- .../codelibs}/fess/helper/FieldHelper.java | 2 +- .../codelibs}/fess/helper/FileTypeHelper.java | 2 +- .../fess/helper/HotSearchWordHelper.java | 113 + .../codelibs}/fess/helper/IndexingHelper.java | 5 +- .../fess/helper/IntervalControlHelper.java | 4 +- .../codelibs}/fess/helper/JobHelper.java | 11 +- .../codelibs}/fess/helper/KeyMatchHelper.java | 11 +- .../fess/helper/LabelTypeHelper.java | 9 +- .../codelibs}/fess/helper/MailHelper.java | 6 +- .../fess/helper/OpenSearchHelper.java | 7 +- .../fess/helper/OverlappingHostHelper.java | 7 +- .../fess/helper/PathMappingHelper.java | 22 +- .../codelibs}/fess/helper/QueryHelper.java | 23 +- .../codelibs}/fess/helper/RobotLogHelper.java | 9 +- .../fess/helper/RoleQueryHelper.java | 2 +- .../codelibs}/fess/helper/SambaHelper.java | 2 +- .../fess/helper/SearchLogHelper.java | 27 +- .../codelibs}/fess/helper/SuggestHelper.java | 40 +- .../codelibs}/fess/helper/SystemHelper.java | 19 +- .../fess/helper/UserAgentHelper.java | 2 +- .../codelibs}/fess/helper/UserInfoHelper.java | 2 +- .../codelibs}/fess/helper/ViewHelper.java | 15 +- .../fess/helper/WebFsIndexHelper.java | 29 +- .../fess/helper/WebManagementHelper.java | 2 +- .../helper/impl/CookieUserInfoHelperImpl.java | 15 +- .../fess/helper/impl/DatabaseHelperImpl.java | 5 +- .../helper/impl/EmptyDatabaseHelperImpl.java | 4 +- .../impl/EmptyManagementHelperImpl.java | 4 +- .../helper/impl/H2DatabaseHelperImpl.java | 9 +- .../fess/helper/impl/RoleQueryHelperImpl.java | 11 +- .../fess/helper/impl/SearchLogHelperImpl.java | 62 +- .../impl/TomcatManagementHelperImpl.java | 21 +- .../FessActionMessagesThrowsInterceptor.java | 5 +- .../fess/interval/FessIntervalController.java | 7 +- .../codelibs}/fess/job/AggregateLogJob.java | 7 +- .../codelibs}/fess/job/CrawlJob.java | 21 +- .../codelibs}/fess/job/JobExecutor.java | 2 +- .../codelibs}/fess/job/JobScheduler.java | 34 +- .../codelibs}/fess/job/PurgeLogJob.java | 20 +- .../fess/job/ScheduledJobException.java | 4 +- .../codelibs}/fess/job/TriggeredJob.java | 21 +- .../codelibs}/fess/job/UpdateHotWordJob.java | 7 +- .../codelibs}/fess/job/UpdateStatsJob.java | 7 +- .../fess/job/impl/GroovyExecutor.java | 4 +- .../fess/pager/BoostDocumentRulePager.java | 6 +- .../fess/pager/CrawlingSessionPager.java | 6 +- .../fess/pager/DataCrawlingConfigPager.java | 6 +- .../codelibs}/fess/pager/FailureUrlPager.java | 7 +- .../fess/pager/FavoriteLogPager.java | 6 +- .../fess/pager/FileAuthenticationPager.java | 6 +- .../fess/pager/FileCrawlingConfigPager.java | 6 +- .../codelibs}/fess/pager/JobLogPager.java | 6 +- .../codelibs}/fess/pager/KeyMatchPager.java | 6 +- .../codelibs}/fess/pager/LabelTypePager.java | 6 +- .../fess/pager/OverlappingHostPager.java | 6 +- .../fess/pager/PathMappingPager.java | 6 +- .../fess/pager/RequestHeaderPager.java | 6 +- .../codelibs}/fess/pager/RoleTypePager.java | 6 +- .../fess/pager/ScheduledJobPager.java | 6 +- .../codelibs}/fess/pager/SearchLogPager.java | 6 +- .../codelibs}/fess/pager/StatsPager.java | 57 +- .../fess/pager/SuggestBadWordPager.java | 6 +- .../fess/pager/SuggestElevateWordPager.java | 6 +- .../codelibs}/fess/pager/SynonymPager.java | 4 +- .../codelibs}/fess/pager/UserDictPager.java | 4 +- .../codelibs}/fess/pager/UserInfoPager.java | 10 +- .../fess/pager/WebAuthenticationPager.java | 6 +- .../fess/pager/WebCrawlingConfigPager.java | 6 +- .../fess/robot/FessS2RobotThread.java | 20 +- .../fess/screenshot/ScreenShotGenerator.java | 2 +- .../fess/screenshot/ScreenShotManager.java | 11 +- .../impl/BaseScreenShotGenerator.java | 4 +- .../screenshot/impl/CommandGenerator.java | 2 +- .../screenshot/impl/WebDriverGenerator.java | 2 +- .../service/BoostDocumentRuleService.java | 18 +- .../fess/service/ClickLogService.java | 68 +- .../fess/service/CrawlingSessionService.java | 312 ++ .../service/DataCrawlingConfigService.java | 121 +- .../fess/service/DatabaseService.java | 503 +- .../fess/service/FailureUrlService.java | 71 +- .../fess/service/FavoriteLogService.java | 156 +- .../service/FileAuthenticationService.java | 16 +- .../service/FileCrawlingConfigService.java | 121 +- .../codelibs}/fess/service/JobLogService.java | 33 +- .../fess/service/KeyMatchService.java | 16 +- .../fess/service/LabelTypeService.java | 72 +- .../fess/service/OverlappingHostService.java | 24 +- .../fess/service/PathMappingService.java | 24 +- .../fess/service/RequestHeaderService.java | 18 +- .../fess/service/RoleTypeService.java | 20 +- .../fess/service/ScheduledJobService.java | 36 +- .../fess/service/SearchFieldLogService.java | 15 +- .../fess/service/SearchLogService.java | 358 +- .../codelibs}/fess/service/SearchService.java | 33 +- .../codelibs}/fess/service/StatsService.java | 165 +- .../fess/service/SuggestBadWordService.java | 83 +- .../service/SuggestElevateWordService.java | 102 +- .../fess/service/SynonymService.java | 19 +- .../fess/service/UserDictService.java | 19 +- .../fess/service/UserInfoService.java | 193 + .../service/WebAuthenticationService.java | 16 +- .../service/WebCrawlingConfigService.java | 119 +- .../fess/servlet/H2ConfigServlet.java | 2 +- .../fess/servlet/Tomcat6ConfigServlet.java | 2 +- .../fess/servlet/Tomcat7ConfigServlet.java | 2 +- .../fess/solr/BoostDocumentRule.java | 5 +- .../fess/solr/FessSolrQueryException.java | 2 +- .../codelibs}/fess/solr/IndexUpdater.java | 39 +- .../fess/solr/policy/FessStatusPolicy.java | 11 +- .../struts/action/FessRequestProcessor.java | 9 +- .../codelibs}/fess/taglib/FessFunctions.java | 23 +- .../AbstractFessFileTransformer.java | 31 +- .../AbstractFessXpathTransformer.java | 7 +- .../fess/transformer/FessFileTransformer.java | 7 +- .../fess/transformer/FessTikaTransformer.java | 5 +- .../transformer/FessXpathTransformer.java | 34 +- .../codelibs}/fess/util/ComponentUtil.java | 61 +- .../codelibs}/fess/util/FacetResponse.java | 2 +- .../codelibs}/fess/util/FessBeans.java | 2 +- .../codelibs}/fess/util/FessCopy.java | 5 +- .../fess/util/InputStreamThread.java | 5 +- .../codelibs}/fess/util/JobProcess.java | 4 +- .../fess/util/MoreLikeThisResponse.java | 2 +- .../codelibs}/fess/util/ParameterUtil.java | 7 +- .../fess/util/QueryResponseList.java | 9 +- .../codelibs}/fess/util/QueryUtil.java | 4 +- .../codelibs}/fess/util/ResourceUtil.java | 2 +- .../codelibs}/fess/util/SearchParamMap.java | 4 +- .../codelibs}/fess/util/WebApiUtil.java | 5 +- .../fess/validator/CronExpressionChecks.java | 2 +- .../fess/validator/UriTypeChecks.java | 5 +- .../webapp/WEB-INF/cmd/resources/app.dicon | 24 +- src/main/mysql/webapp/WEB-INF/web.xml | 12 +- src/main/oracle/resources/jdbc.dicon | 44 - src/main/oracle/resources/s2robot_jdbc.dicon | 44 - .../webapp/WEB-INF/cmd/resources/app.dicon | 98 - src/main/oracle/webapp/WEB-INF/web.xml | 338 -- src/main/resources/app.dicon | 41 +- src/main/resources/convention.dicon | 2 +- src/main/resources/creator.dicon | 2 +- src/main/resources/dbflute.dicon | 47 - src/main/resources/fess.dicon | 26 +- src/main/resources/fess_api.dicon | 6 +- src/main/resources/fess_dict.dicon | 6 +- src/main/resources/fess_ds.dicon | 10 +- src/main/resources/fess_job.dicon | 21 +- src/main/resources/fess_suggest.dicon | 18 +- .../ClickLogBhv_selectClickUrlRanking.sql | 26 - .../FavoriteLogBhv_selectFavoriteUrlCount.sql | 22 - ...avoriteLogBhv_selectFavoriteUrlRanking.sql | 26 - ...archFieldLogBhv_selectGroupedFieldName.sql | 15 - .../SearchLogBhv_selectClientIpRanking.sql | 26 - .../SearchLogBhv_selectHotSearchWord.sql | 26 - .../SearchLogBhv_selectRefererRanking.sql | 26 - .../SearchLogBhv_selectSearchFieldRanking.sql | 27 - .../SearchLogBhv_selectSearchQueryRanking.sql | 26 - .../SearchLogBhv_selectSearchWordRanking.sql | 26 - .../SearchLogBhv_selectSolrQueryRanking.sql | 26 - .../SearchLogBhv_selectUserAgentRanking.sql | 26 - src/main/resources/log4j.xml | 2 +- src/main/resources/s2robot_db.dicon | 2 +- src/main/resources/s2robot_interval.dicon | 2 +- src/main/resources/s2robot_jdbc.dicon | 2 +- src/main/resources/s2robot_log.dicon | 2 +- src/main/resources/s2robot_transformer.dicon | 6 +- src/main/resources/solrlib.dicon | 6 +- .../webapp/WEB-INF/cmd/resources/app.dicon | 26 +- .../WEB-INF/cmd/resources/creator.dicon | 2 +- src/main/webapp/WEB-INF/fe.tld | 26 +- src/main/webapp/WEB-INF/struts-config.xml | 9 +- src/main/webapp/WEB-INF/validator-rules.xml | 4 +- src/main/webapp/WEB-INF/view/login/error.jsp | 4 +- src/main/webapp/WEB-INF/web.xml | 14 +- .../sf => org/codelibs}/fess/FessClass.java | 2 +- .../fess/dict/DictionaryManagerTest.java | 7 +- .../fess/dict/synonym/SynonymFileTest.java | 7 +- .../fess/dict/synonym/SynonymItemTest.java | 2 +- .../fess/dict/synonym/SynonymLocatorTest.java | 9 +- .../fess/dict/userdict/UserDictFileTest.java | 7 +- .../fess/dict/userdict/UserDictItemTest.java | 2 +- .../dict/userdict/UserDictLocatorTest.java | 9 +- .../ds/impl/DatabaseDataStoreImplTest.java | 2 +- .../codelibs}/fess/entity/Document.java | 5 +- .../codelibs}/fess/entity/GeoInfoTest.java | 2 +- .../fess/filter/FessEncodingFilterTest.java | 2 +- .../helper/CrawlingSessionHelperTest.java | 2 +- .../helper/IntervalControlHelperTest.java | 4 +- .../helper/OverlappingHostHelperTest.java | 4 +- .../fess/helper/PathMappingHelperTest.java | 7 +- .../fess/helper/QueryHelperTest.java | 15 +- .../fess/helper/SystemHelperTest.java | 4 +- .../codelibs}/fess/helper/ViewHelperTest.java | 4 +- .../helper/impl/RoleQueryHelperImplTest.java | 4 +- .../fess/solr/BoostDocumentRuleTest.java | 2 +- .../transformer/FessFileTransformerTest.java | 7 +- .../transformer/FessXpathTransformerTest.java | 2 +- .../fess/util/ParameterUtilTest.java | 2 +- .../fess/util/QueryResponseListTest.java | 2 +- .../codelibs}/fess/util/ResourceUtilTest.java | 2 +- .../fess/validator/UriTypeChecksTest.java | 2 +- src/test/resources/app_ut.dicon | 28 +- src/test/resources/fess.dicon | 8 +- src/test/resources/jdbc.dicon | 2 +- .../fess/helper/intervalControl.dicon | 2 +- .../fess/helper/overlappingHost.dicon | 6 +- .../codelibs}/fess/helper/pathMapping.dicon | 2 +- .../codelibs}/fess/helper/query.dicon | 6 +- .../codelibs}/fess/helper/system.dicon | 4 +- .../codelibs}/fess/helper/view.dicon | 8 +- src/test/resources/s2robot_jdbc.dicon | 2 +- src/test/resources/solrlib.dicon | 4 +- 1039 files changed, 4209 insertions(+), 215015 deletions(-) delete mode 100644 dbflute_h2/_project.bat delete mode 100644 dbflute_h2/_project.sh delete mode 100644 dbflute_h2/_readme.txt delete mode 100644 dbflute_h2/build.properties delete mode 100644 dbflute_h2/dfprop/_readme.txt delete mode 100644 dbflute_h2/dfprop/additionalForeignKeyMap.dfprop delete mode 100644 dbflute_h2/dfprop/additionalPrimaryKeyMap.dfprop delete mode 100644 dbflute_h2/dfprop/additionalTableMap.dfprop delete mode 100644 dbflute_h2/dfprop/additionalUniqueKeyMap.dfprop delete mode 100644 dbflute_h2/dfprop/allClassCopyright.dfprop delete mode 100644 dbflute_h2/dfprop/basicInfoMap.dfprop delete mode 100644 dbflute_h2/dfprop/classificationDefinitionMap.dfprop delete mode 100644 dbflute_h2/dfprop/classificationDeploymentMap.dfprop delete mode 100644 dbflute_h2/dfprop/commonColumnMap.dfprop delete mode 100644 dbflute_h2/dfprop/databaseInfoMap.dfprop delete mode 100644 dbflute_h2/dfprop/dependencyInjectionMap.dfprop delete mode 100644 dbflute_h2/dfprop/documentDefinitionMap.dfprop delete mode 100644 dbflute_h2/dfprop/includeQueryMap.dfprop delete mode 100644 dbflute_h2/dfprop/littleAdjustmentMap.dfprop delete mode 100644 dbflute_h2/dfprop/optimisticLockDefinitionMap.dfprop delete mode 100644 dbflute_h2/dfprop/outsideSqlDefinitionMap.dfprop delete mode 100644 dbflute_h2/dfprop/refreshDefinitionMap.dfprop delete mode 100644 dbflute_h2/dfprop/replaceSchemaDefinitionMap.dfprop delete mode 100644 dbflute_h2/dfprop/sequenceDefinitionMap.dfprop delete mode 100644 dbflute_h2/dfprop/typeMappingMap.dfprop delete mode 100644 dbflute_h2/doc.bat delete mode 100644 dbflute_h2/doc.sh delete mode 100644 dbflute_h2/extlib/_readme.txt delete mode 100644 dbflute_h2/generate.bat delete mode 100644 dbflute_h2/generate.sh delete mode 100644 dbflute_h2/jdbc.bat delete mode 100644 dbflute_h2/jdbc.sh delete mode 100644 dbflute_h2/log/_readme.txt delete mode 100644 dbflute_h2/manage.bat delete mode 100644 dbflute_h2/manage.sh delete mode 100644 dbflute_h2/output/doc/_readme.txt delete mode 100644 dbflute_h2/outside-sql-test.bat delete mode 100644 dbflute_h2/outside-sql-test.sh delete mode 100644 dbflute_h2/playsql/_readme.txt delete mode 100644 dbflute_h2/playsql/replace-schema.sql delete mode 100644 dbflute_h2/playsql/take-finally.sql delete mode 100644 dbflute_h2/replace-schema.bat delete mode 100644 dbflute_h2/replace-schema.sh delete mode 100644 dbflute_h2/schema/_readme.txt delete mode 100644 dbflute_h2/sql2entity.bat delete mode 100644 dbflute_h2/sql2entity.sh delete mode 100644 dbflute_mysql/_project.bat delete mode 100644 dbflute_mysql/_project.sh delete mode 100644 dbflute_mysql/_readme.txt delete mode 100644 dbflute_mysql/build.properties delete mode 100644 dbflute_mysql/dfprop/_readme.txt delete mode 100644 dbflute_mysql/dfprop/additionalForeignKeyMap.dfprop delete mode 100644 dbflute_mysql/dfprop/additionalPrimaryKeyMap.dfprop delete mode 100644 dbflute_mysql/dfprop/additionalTableMap.dfprop delete mode 100644 dbflute_mysql/dfprop/additionalUniqueKeyMap.dfprop delete mode 100644 dbflute_mysql/dfprop/allClassCopyright.dfprop delete mode 100644 dbflute_mysql/dfprop/basicInfoMap.dfprop delete mode 100644 dbflute_mysql/dfprop/classificationDefinitionMap.dfprop delete mode 100644 dbflute_mysql/dfprop/classificationDeploymentMap.dfprop delete mode 100644 dbflute_mysql/dfprop/commonColumnMap.dfprop delete mode 100644 dbflute_mysql/dfprop/databaseInfoMap.dfprop delete mode 100644 dbflute_mysql/dfprop/dependencyInjectionMap.dfprop delete mode 100644 dbflute_mysql/dfprop/documentDefinitionMap.dfprop delete mode 100644 dbflute_mysql/dfprop/includeQueryMap.dfprop delete mode 100644 dbflute_mysql/dfprop/littleAdjustmentMap.dfprop delete mode 100644 dbflute_mysql/dfprop/optimisticLockDefinitionMap.dfprop delete mode 100644 dbflute_mysql/dfprop/outsideSqlDefinitionMap.dfprop delete mode 100644 dbflute_mysql/dfprop/refreshDefinitionMap.dfprop delete mode 100644 dbflute_mysql/dfprop/replaceSchemaDefinitionMap.dfprop delete mode 100644 dbflute_mysql/dfprop/sequenceDefinitionMap.dfprop delete mode 100644 dbflute_mysql/dfprop/typeMappingMap.dfprop delete mode 100644 dbflute_mysql/doc.bat delete mode 100644 dbflute_mysql/doc.sh delete mode 100644 dbflute_mysql/extlib/_readme.txt delete mode 100644 dbflute_mysql/generate.bat delete mode 100644 dbflute_mysql/generate.sh delete mode 100644 dbflute_mysql/jdbc.bat delete mode 100644 dbflute_mysql/jdbc.sh delete mode 100644 dbflute_mysql/log/_readme.txt delete mode 100644 dbflute_mysql/manage.bat delete mode 100644 dbflute_mysql/manage.sh delete mode 100644 dbflute_mysql/output/doc/_readme.txt delete mode 100644 dbflute_mysql/outside-sql-test.bat delete mode 100644 dbflute_mysql/outside-sql-test.sh delete mode 100644 dbflute_mysql/playsql/_readme.txt delete mode 100644 dbflute_mysql/playsql/replace-schema.sql delete mode 100644 dbflute_mysql/playsql/take-finally.sql delete mode 100644 dbflute_mysql/replace-schema.bat delete mode 100644 dbflute_mysql/replace-schema.sh delete mode 100644 dbflute_mysql/schema/_readme.txt delete mode 100644 dbflute_mysql/sql2entity.bat delete mode 100644 dbflute_mysql/sql2entity.sh delete mode 100644 dbflute_oracle/_project.bat delete mode 100644 dbflute_oracle/_project.sh delete mode 100644 dbflute_oracle/_readme.txt delete mode 100644 dbflute_oracle/build.properties delete mode 100644 dbflute_oracle/dfprop/_readme.txt delete mode 100644 dbflute_oracle/dfprop/additionalForeignKeyMap.dfprop delete mode 100644 dbflute_oracle/dfprop/additionalPrimaryKeyMap.dfprop delete mode 100644 dbflute_oracle/dfprop/additionalTableMap.dfprop delete mode 100644 dbflute_oracle/dfprop/additionalUniqueKeyMap.dfprop delete mode 100644 dbflute_oracle/dfprop/allClassCopyright.dfprop delete mode 100644 dbflute_oracle/dfprop/basicInfoMap.dfprop delete mode 100644 dbflute_oracle/dfprop/classificationDefinitionMap.dfprop delete mode 100644 dbflute_oracle/dfprop/classificationDeploymentMap.dfprop delete mode 100644 dbflute_oracle/dfprop/commonColumnMap.dfprop delete mode 100644 dbflute_oracle/dfprop/databaseInfoMap.dfprop delete mode 100644 dbflute_oracle/dfprop/dependencyInjectionMap.dfprop delete mode 100644 dbflute_oracle/dfprop/documentDefinitionMap.dfprop delete mode 100644 dbflute_oracle/dfprop/includeQueryMap.dfprop delete mode 100644 dbflute_oracle/dfprop/littleAdjustmentMap.dfprop delete mode 100644 dbflute_oracle/dfprop/optimisticLockDefinitionMap.dfprop delete mode 100644 dbflute_oracle/dfprop/outsideSqlDefinitionMap.dfprop delete mode 100644 dbflute_oracle/dfprop/refreshDefinitionMap.dfprop delete mode 100644 dbflute_oracle/dfprop/replaceSchemaDefinitionMap.dfprop delete mode 100644 dbflute_oracle/dfprop/sequenceDefinitionMap.dfprop delete mode 100644 dbflute_oracle/dfprop/table.except.list.dfprop delete mode 100644 dbflute_oracle/dfprop/typeMappingMap.dfprop delete mode 100644 dbflute_oracle/doc.bat delete mode 100644 dbflute_oracle/doc.sh delete mode 100644 dbflute_oracle/extlib/_readme.txt delete mode 100644 dbflute_oracle/generate.bat delete mode 100644 dbflute_oracle/generate.sh delete mode 100644 dbflute_oracle/jdbc.bat delete mode 100644 dbflute_oracle/jdbc.sh delete mode 100644 dbflute_oracle/log/_readme.txt delete mode 100644 dbflute_oracle/manage.bat delete mode 100644 dbflute_oracle/manage.sh delete mode 100644 dbflute_oracle/output/doc/_readme.txt delete mode 100644 dbflute_oracle/outside-sql-test.bat delete mode 100644 dbflute_oracle/outside-sql-test.sh delete mode 100644 dbflute_oracle/playsql/_readme.txt delete mode 100644 dbflute_oracle/playsql/replace-schema.sql delete mode 100644 dbflute_oracle/playsql/take-finally.sql delete mode 100644 dbflute_oracle/replace-schema.bat delete mode 100644 dbflute_oracle/replace-schema.sh delete mode 100644 dbflute_oracle/schema/_readme.txt delete mode 100644 dbflute_oracle/sql2entity.bat delete mode 100644 dbflute_oracle/sql2entity.sh delete mode 100644 src/main/java/jp/sf/fess/db/allcommon/CDef.java delete mode 100644 src/main/java/jp/sf/fess/db/allcommon/DBCurrent.java delete mode 100644 src/main/java/jp/sf/fess/db/allcommon/DBFluteConfig.java delete mode 100644 src/main/java/jp/sf/fess/db/allcommon/DBFluteInitializer.java delete mode 100644 src/main/java/jp/sf/fess/db/allcommon/DBMetaInstanceHandler.java delete mode 100644 src/main/java/jp/sf/fess/db/allcommon/EntityDefinedCommonColumn.java delete mode 100644 src/main/java/jp/sf/fess/db/allcommon/ImplementedBehaviorSelector.java delete mode 100644 src/main/java/jp/sf/fess/db/allcommon/ImplementedCommonColumnAutoSetupper.java delete mode 100644 src/main/java/jp/sf/fess/db/allcommon/ImplementedInvokerAssistant.java delete mode 100644 src/main/java/jp/sf/fess/db/allcommon/ImplementedSqlClauseCreator.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsBoostDocumentRuleBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsClickLogBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsCrawlingSessionBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsCrawlingSessionInfoBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsDataConfigToLabelTypeMappingBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsDataConfigToRoleTypeMappingBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsDataCrawlingConfigBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsFailureUrlBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsFavoriteLogBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsFileAuthenticationBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsFileConfigToLabelTypeMappingBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsFileConfigToRoleTypeMappingBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsFileCrawlingConfigBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsJobLogBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsKeyMatchBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsLabelTypeBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsLabelTypeToRoleTypeMappingBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsOverlappingHostBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsPathMappingBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsRequestHeaderBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsRoleTypeBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsScheduledJobBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsSearchFieldLogBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsSearchLogBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsSuggestBadWordBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsSuggestElevateWordBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsUserInfoBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsWebAuthenticationBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsWebConfigToLabelTypeMappingBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsWebConfigToRoleTypeMappingBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/BsWebCrawlingConfigBhv.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfBoostDocumentRule.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfClickLog.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfCrawlingSession.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfCrawlingSessionInfo.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfDataConfigToLabelTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfDataConfigToRoleTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfDataCrawlingConfig.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFailureUrl.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFavoriteLog.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileAuthentication.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileConfigToLabelTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileConfigToRoleTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileCrawlingConfig.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfJobLog.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfKeyMatch.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfLabelType.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfLabelTypeToRoleTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfOverlappingHost.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfPathMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfRequestHeader.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfRoleType.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfScheduledJob.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSearchFieldLog.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSearchLog.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSuggestBadWord.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSuggestElevateWord.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfUserInfo.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebAuthentication.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebConfigToLabelTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebConfigToRoleTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebCrawlingConfig.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsClickUrlRankingPmb.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsClientIpRankingPmb.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsFavoriteUrlCountPmb.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsFavoriteUrlRankingPmb.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsGroupedFieldNamePmb.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsHotSearchWordPmb.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsRefererRankingPmb.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSearchFieldRankingPmb.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSearchQueryRankingPmb.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSearchWordRankingPmb.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSolrQueryRankingPmb.java delete mode 100644 src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsUserAgentRankingPmb.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsBoostDocumentRule.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsClickLog.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsCrawlingSession.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsCrawlingSessionInfo.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsDataConfigToLabelTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsDataConfigToRoleTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsDataCrawlingConfig.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsFailureUrl.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsFavoriteLog.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsFileAuthentication.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsFileConfigToLabelTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsFileConfigToRoleTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsFileCrawlingConfig.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsJobLog.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsKeyMatch.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsLabelType.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsLabelTypeToRoleTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsOverlappingHost.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsPathMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsRequestHeader.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsRoleType.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsScheduledJob.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsSearchFieldLog.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsSearchLog.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsSuggestBadWord.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsSuggestElevateWord.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsUserInfo.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsWebAuthentication.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsWebConfigToLabelTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsWebConfigToRoleTypeMapping.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/BsWebCrawlingConfig.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/BsClickUrlRanking.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/BsClientIpRanking.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/BsFavoriteUrlCount.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/BsFavoriteUrlRanking.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/BsGroupedFieldName.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/BsHotSearchWord.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/BsRefererRanking.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/BsSearchFieldRanking.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/BsSearchQueryRanking.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/BsSearchWordRanking.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/BsSolrQueryRanking.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/BsUserAgentRanking.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/ClickUrlRankingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/ClientIpRankingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/FavoriteUrlCountDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/FavoriteUrlRankingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/GroupedFieldNameDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/HotSearchWordDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/RefererRankingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SearchFieldRankingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SearchQueryRankingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SearchWordRankingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SolrQueryRankingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/UserAgentRankingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/BoostDocumentRuleDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/ClickLogDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/CrawlingSessionDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/CrawlingSessionInfoDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/DataConfigToLabelTypeMappingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/DataConfigToRoleTypeMappingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/DataCrawlingConfigDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/FailureUrlDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/FavoriteLogDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileAuthenticationDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileConfigToLabelTypeMappingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileConfigToRoleTypeMappingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileCrawlingConfigDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/JobLogDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/KeyMatchDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/LabelTypeDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/LabelTypeToRoleTypeMappingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/OverlappingHostDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/PathMappingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/RequestHeaderDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/RoleTypeDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/ScheduledJobDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/SearchFieldLogDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/SearchLogDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/SuggestBadWordDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/SuggestElevateWordDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/UserInfoDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebAuthenticationDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebConfigToLabelTypeMappingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebConfigToRoleTypeMappingDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebCrawlingConfigDbm.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/BoostDocumentRuleCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/ClickLogCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/CrawlingSessionCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/CrawlingSessionInfoCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/DataConfigToLabelTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/DataConfigToRoleTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/DataCrawlingConfigCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/FailureUrlCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/FavoriteLogCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/FileAuthenticationCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/FileConfigToLabelTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/FileConfigToRoleTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/FileCrawlingConfigCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/JobLogCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/KeyMatchCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/LabelTypeCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/LabelTypeToRoleTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/OverlappingHostCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/PathMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/RequestHeaderCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/RoleTypeCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/ScheduledJobCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/SearchFieldLogCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/SearchLogCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/SuggestBadWordCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/SuggestElevateWordCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/UserInfoCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/WebAuthenticationCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/WebConfigToLabelTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/WebConfigToRoleTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/WebCrawlingConfigCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsBoostDocumentRuleCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsClickLogCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsCrawlingSessionCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsCrawlingSessionInfoCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsDataConfigToLabelTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsDataConfigToRoleTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsDataCrawlingConfigCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsFailureUrlCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsFavoriteLogCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsFileAuthenticationCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsFileConfigToLabelTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsFileConfigToRoleTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsFileCrawlingConfigCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsJobLogCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsKeyMatchCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsLabelTypeCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsLabelTypeToRoleTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsOverlappingHostCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsPathMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsRequestHeaderCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsRoleTypeCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsScheduledJobCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsSearchFieldLogCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsSearchLogCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsSuggestBadWordCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsSuggestElevateWordCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsUserInfoCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsWebAuthenticationCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsWebConfigToLabelTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsWebConfigToRoleTypeMappingCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/bs/BsWebCrawlingConfigCB.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/BoostDocumentRuleCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ClickLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/CrawlingSessionCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/CrawlingSessionInfoCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/DataConfigToLabelTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/DataConfigToRoleTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/DataCrawlingConfigCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/FailureUrlCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/FavoriteLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/FileAuthenticationCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/FileConfigToLabelTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/FileConfigToRoleTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/FileCrawlingConfigCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/JobLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/KeyMatchCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/LabelTypeCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/LabelTypeToRoleTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/OverlappingHostCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/PathMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/RequestHeaderCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/RoleTypeCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ScheduledJobCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/SearchFieldLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/SearchLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/SuggestBadWordCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/SuggestElevateWordCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/UserInfoCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/WebAuthenticationCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/WebConfigToLabelTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/WebConfigToRoleTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/WebCrawlingConfigCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsBoostDocumentRuleCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsClickLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsCrawlingSessionCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsCrawlingSessionInfoCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsDataConfigToLabelTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsDataConfigToRoleTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsDataCrawlingConfigCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFailureUrlCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFavoriteLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileAuthenticationCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileConfigToLabelTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileConfigToRoleTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileCrawlingConfigCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsJobLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsKeyMatchCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsLabelTypeCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsLabelTypeToRoleTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsOverlappingHostCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsPathMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsRequestHeaderCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsRoleTypeCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsScheduledJobCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSearchFieldLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSearchLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSuggestBadWordCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSuggestElevateWordCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsUserInfoCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebAuthenticationCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebConfigToLabelTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebConfigToRoleTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebCrawlingConfigCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsBoostDocumentRuleCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsClickLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsCrawlingSessionCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsCrawlingSessionInfoCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsDataConfigToLabelTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsDataConfigToRoleTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsDataCrawlingConfigCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFailureUrlCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFavoriteLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileAuthenticationCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileConfigToLabelTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileConfigToRoleTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileCrawlingConfigCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsJobLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsKeyMatchCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsLabelTypeCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsLabelTypeToRoleTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsOverlappingHostCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsPathMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsRequestHeaderCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsRoleTypeCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsScheduledJobCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSearchFieldLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSearchLogCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSuggestBadWordCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSuggestElevateWordCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsUserInfoCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebAuthenticationCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebConfigToLabelTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebConfigToRoleTypeMappingCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebCrawlingConfigCQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/BoostDocumentRuleCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/ClickLogCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/CrawlingSessionCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/CrawlingSessionInfoCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/DataConfigToLabelTypeMappingCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/DataConfigToRoleTypeMappingCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/DataCrawlingConfigCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/FailureUrlCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/FavoriteLogCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileAuthenticationCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileConfigToLabelTypeMappingCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileConfigToRoleTypeMappingCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileCrawlingConfigCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/JobLogCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/KeyMatchCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/LabelTypeCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/LabelTypeToRoleTypeMappingCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/OverlappingHostCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/PathMappingCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/RequestHeaderCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/RoleTypeCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/ScheduledJobCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/SearchFieldLogCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/SearchLogCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/SuggestBadWordCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/SuggestElevateWordCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/UserInfoCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebAuthenticationCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebConfigToLabelTypeMappingCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebConfigToRoleTypeMappingCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebCrawlingConfigCIQ.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/ClickLogNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/CrawlingSessionInfoNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/DataConfigToLabelTypeMappingNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/DataConfigToRoleTypeMappingNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/FavoriteLogNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/FileAuthenticationNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/FileConfigToLabelTypeMappingNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/FileConfigToRoleTypeMappingNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/LabelTypeToRoleTypeMappingNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/RequestHeaderNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/SearchFieldLogNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/SearchLogNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/WebAuthenticationNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/WebConfigToLabelTypeMappingNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/nss/WebConfigToRoleTypeMappingNss.java delete mode 100644 src/main/java/jp/sf/fess/db/cbean/sqlclause/.gitkeep delete mode 100644 src/main/java/jp/sf/fess/helper/HotSearchWordHelper.java delete mode 100644 src/main/java/jp/sf/fess/job/DailyJob.java delete mode 100644 src/main/java/jp/sf/fess/job/HourlyJob.java delete mode 100644 src/main/java/jp/sf/fess/job/MinutelyJob.java delete mode 100644 src/main/java/jp/sf/fess/service/CrawlingSessionService.java delete mode 100644 src/main/java/jp/sf/fess/service/UserInfoService.java rename src/main/java/{jp/sf => org/codelibs}/fess/Constants.java (92%) rename src/main/java/{jp/sf => org/codelibs}/fess/FessSystemException.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/InvalidQueryException.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/ResultOffsetExceededException.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/UnsupportedSearchException.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/WebApiException.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/AppletAction.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/ErrorAction.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/IndexAction.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/LoginAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/BoostDocumentRuleAction.java (86%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/CrawlAction.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/CrawlingSessionAction.java (84%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/DataAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/DataCrawlingConfigAction.java (85%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/DesignAction.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/DictAction.java (83%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/DocumentAction.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/FailureUrlAction.java (86%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/FavoriteLogAction.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/FileAuthenticationAction.java (87%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/FileCrawlingConfigAction.java (84%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/IndexAction.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/JobLogAction.java (86%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/KeyMatchAction.java (86%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/LabelTypeAction.java (84%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/LogAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/OverlappingHostAction.java (86%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/PathMappingAction.java (85%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/RequestHeaderAction.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/RoleTypeAction.java (87%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/ScheduledJobAction.java (87%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/SearchListAction.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/SearchLogAction.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/StatsAction.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/SuggestBadWordAction.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/SuggestElevateWordAction.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/SystemAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/SystemInfoAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/UserInfoAction.java (86%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/WebAuthenticationAction.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/WebCrawlingConfigAction.java (83%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/WizardAction.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/dict/SynonymAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/action/admin/dict/UserDictAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/annotation/CronExpression.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/annotation/UriType.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/api/BaseApiManager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/api/WebApiManager.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/api/WebApiManagerFactory.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/api/WebApiRequest.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/api/WebApiResponse.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/api/json/JsonApiManager.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/api/xml/XmlApiManager.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/CommonConstants.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/CrudMessageException.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsBoostDocumentRuleAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsCrawlingSessionAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsDataCrawlingConfigAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsFailureUrlAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsFavoriteLogAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsFileAuthenticationAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsFileCrawlingConfigAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsJobLogAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsKeyMatchAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsLabelTypeAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsOverlappingHostAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsPathMappingAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsRequestHeaderAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsRoleTypeAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsScheduledJobAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsSearchLogAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsSuggestBadWordAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsSuggestElevateWordAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsUserInfoAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsWebAuthenticationAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/action/admin/BsWebCrawlingConfigAction.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/creator/PagerCreator.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsBoostDocumentRuleForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsCrawlingSessionForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsDataCrawlingConfigForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsFailureUrlForm.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsFavoriteLogForm.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsFileAuthenticationForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsFileCrawlingConfigForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsJobLogForm.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsKeyMatchForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsLabelTypeForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsOverlappingHostForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsPathMappingForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsRequestHeaderForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsRoleTypeForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsScheduledJobForm.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsSearchLogForm.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsSuggestBadWordForm.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsSuggestElevateWordForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsUserInfoForm.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsWebAuthenticationForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/form/admin/BsWebCrawlingConfigForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsBoostDocumentRulePager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsCrawlingSessionPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsDataCrawlingConfigPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsFailureUrlPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsFavoriteLogPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsFileAuthenticationPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsFileCrawlingConfigPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsJobLogPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsKeyMatchPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsLabelTypePager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsOverlappingHostPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsPathMappingPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsRequestHeaderPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsRoleTypePager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsScheduledJobPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsSearchLogPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsSuggestBadWordPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsSuggestElevateWordPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsUserInfoPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsWebAuthenticationPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/pager/BsWebCrawlingConfigPager.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsBoostDocumentRuleService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsCrawlingSessionService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsDataCrawlingConfigService.java (74%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsFailureUrlService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsFavoriteLogService.java (74%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsFileAuthenticationService.java (74%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsFileCrawlingConfigService.java (74%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsJobLogService.java (68%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsKeyMatchService.java (70%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsLabelTypeService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsOverlappingHostService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsPathMappingService.java (74%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsRequestHeaderService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsRoleTypeService.java (70%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsScheduledJobService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsSearchLogService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsSuggestBadWordService.java (71%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsSuggestElevateWordService.java (74%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsUserInfoService.java (70%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsWebAuthenticationService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/service/BsWebCrawlingConfigService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/crud/util/SAStrutsUtil.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/BoostDocumentRuleBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/ClickLogBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/CrawlingSessionBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/CrawlingSessionInfoBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/DataConfigToLabelTypeMappingBhv.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/DataConfigToRoleTypeMappingBhv.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/DataCrawlingConfigBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/FailureUrlBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/FavoriteLogBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/FileAuthenticationBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/FileConfigToLabelTypeMappingBhv.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/FileConfigToRoleTypeMappingBhv.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/FileCrawlingConfigBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/JobLogBhv.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/KeyMatchBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/LabelTypeBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/LabelTypeToRoleTypeMappingBhv.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/OverlappingHostBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/PathMappingBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/RequestHeaderBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/RoleTypeBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/ScheduledJobBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/SearchFieldLogBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/SearchLogBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/SuggestBadWordBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/SuggestElevateWordBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/UserInfoBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/WebAuthenticationBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/WebConfigToLabelTypeMappingBhv.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/WebConfigToRoleTypeMappingBhv.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/WebCrawlingConfigBhv.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/pmbean/ClickUrlRankingPmb.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/pmbean/ClientIpRankingPmb.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/pmbean/FavoriteUrlCountPmb.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/pmbean/FavoriteUrlRankingPmb.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/pmbean/GroupedFieldNamePmb.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/pmbean/HotSearchWordPmb.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/pmbean/RefererRankingPmb.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/pmbean/SearchFieldRankingPmb.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/pmbean/SearchQueryRankingPmb.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/pmbean/SearchWordRankingPmb.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/pmbean/SolrQueryRankingPmb.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exbhv/pmbean/UserAgentRankingPmb.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/BoostDocumentRule.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/ClickLog.java (87%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/CrawlingConfig.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/CrawlingSession.java (92%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/CrawlingSessionInfo.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/DataConfigToLabelTypeMapping.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/DataConfigToRoleTypeMapping.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/DataCrawlingConfig.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/FailureUrl.java (92%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/FavoriteLog.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/FileAuthentication.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/FileConfigToLabelTypeMapping.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/FileConfigToRoleTypeMapping.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/FileCrawlingConfig.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/JobLog.java (85%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/KeyMatch.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/LabelType.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/LabelTypeToRoleTypeMapping.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/OverlappingHost.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/PathMapping.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/RequestHeader.java (92%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/RoleType.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/ScheduledJob.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/SearchFieldLog.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/SearchLog.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/SuggestBadWord.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/SuggestElevateWord.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/UserInfo.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/WebAuthentication.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/WebConfigToLabelTypeMapping.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/WebConfigToRoleTypeMapping.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/WebCrawlingConfig.java (92%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/customize/ClickUrlRanking.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/customize/ClientIpRanking.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/customize/FavoriteUrlCount.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/customize/FavoriteUrlRanking.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/customize/GroupedFieldName.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/customize/HotSearchWord.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/customize/RefererRanking.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/customize/SearchFieldRanking.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/customize/SearchQueryRanking.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/customize/SearchWordRanking.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/customize/SolrQueryRanking.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/db/exentity/customize/UserAgentRanking.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/dict/DictionaryException.java (92%) rename src/main/java/{jp/sf => org/codelibs}/fess/dict/DictionaryExpiredException.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/dict/DictionaryFile.java (99%) rename src/main/java/{jp/sf => org/codelibs}/fess/dict/DictionaryItem.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/dict/DictionaryLocator.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/dict/DictionaryManager.java (99%) rename src/main/java/{jp/sf => org/codelibs}/fess/dict/synonym/SynonymFile.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/dict/synonym/SynonymItem.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/dict/synonym/SynonymLocator.java (92%) rename src/main/java/{jp/sf => org/codelibs}/fess/dict/userdict/UserDictFile.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/dict/userdict/UserDictItem.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/dict/userdict/UserDictLocator.java (92%) rename src/main/java/{jp/sf => org/codelibs}/fess/ds/DataStore.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/ds/DataStoreCrawlingException.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/ds/DataStoreException.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/ds/DataStoreFactory.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/ds/IndexUpdateCallback.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/ds/impl/AbstractDataStoreImpl.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/ds/impl/CsvDataStoreImpl.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/ds/impl/DatabaseDataStoreImpl.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/ds/impl/FileListDataStoreImpl.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/ds/impl/IndexUpdateCallbackImpl.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/entity/FacetInfo.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/entity/FacetQueryView.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/entity/FieldAnalysisResponse.java (99%) rename src/main/java/{jp/sf => org/codelibs}/fess/entity/GeoInfo.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/entity/LoginInfo.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/entity/MoreLikeThisInfo.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/entity/PingResponse.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/entity/SearchQuery.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/exec/Crawler.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/filter/AdLoginInfoFilter.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/filter/AdminAuthFilter.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/filter/FessEncodingFilter.java (99%) rename src/main/java/{jp/sf => org/codelibs}/fess/filter/LoginInfoFilter.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/filter/WebApiFilter.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/AppletForm.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/ErrorForm.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/IndexForm.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/LoginForm.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/BoostDocumentRuleForm.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/CrawlForm.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/CrawlingSessionForm.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/DataCrawlingConfigForm.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/DataForm.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/DesignForm.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/DictForm.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/DocumentForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/FailureUrlForm.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/FavoriteLogForm.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/FileAuthenticationForm.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/FileCrawlingConfigForm.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/JobLogForm.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/KeyMatchForm.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/LabelTypeForm.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/LogForm.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/OverlappingHostForm.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/PathMappingForm.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/RequestHeaderForm.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/RoleTypeForm.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/ScheduledJobForm.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/SearchListForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/SearchLogForm.java (87%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/StatsForm.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/SuggestBadWordForm.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/SuggestElevateWordForm.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/SystemForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/SystemInfoForm.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/UserInfoForm.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/WebAuthenticationForm.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/WebCrawlingConfigForm.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/WizardForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/dict/SynonymForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/form/admin/dict/UserDictForm.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/AdRoleHelper.java (99%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/CrawlingConfigHelper.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/CrawlingSessionHelper.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/DataIndexHelper.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/DatabaseHelper.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/DocumentHelper.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/FieldHelper.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/FileTypeHelper.java (97%) create mode 100644 src/main/java/org/codelibs/fess/helper/HotSearchWordHelper.java rename src/main/java/{jp/sf => org/codelibs}/fess/helper/IndexingHelper.java (99%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/IntervalControlHelper.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/JobHelper.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/KeyMatchHelper.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/LabelTypeHelper.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/MailHelper.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/OpenSearchHelper.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/OverlappingHostHelper.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/PathMappingHelper.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/QueryHelper.java (99%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/RobotLogHelper.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/RoleQueryHelper.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/SambaHelper.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/SearchLogHelper.java (81%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/SuggestHelper.java (86%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/SystemHelper.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/UserAgentHelper.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/UserInfoHelper.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/ViewHelper.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/WebFsIndexHelper.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/WebManagementHelper.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/impl/CookieUserInfoHelperImpl.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/impl/DatabaseHelperImpl.java (92%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/impl/EmptyDatabaseHelperImpl.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/impl/EmptyManagementHelperImpl.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/impl/H2DatabaseHelperImpl.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/impl/RoleQueryHelperImpl.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/impl/SearchLogHelperImpl.java (85%) rename src/main/java/{jp/sf => org/codelibs}/fess/helper/impl/TomcatManagementHelperImpl.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/interceptor/FessActionMessagesThrowsInterceptor.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/interval/FessIntervalController.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/job/AggregateLogJob.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/job/CrawlJob.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/job/JobExecutor.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/job/JobScheduler.java (84%) rename src/main/java/{jp/sf => org/codelibs}/fess/job/PurgeLogJob.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/job/ScheduledJobException.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/job/TriggeredJob.java (90%) rename src/main/java/{jp/sf => org/codelibs}/fess/job/UpdateHotWordJob.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/job/UpdateStatsJob.java (92%) rename src/main/java/{jp/sf => org/codelibs}/fess/job/impl/GroovyExecutor.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/BoostDocumentRulePager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/CrawlingSessionPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/DataCrawlingConfigPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/FailureUrlPager.java (92%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/FavoriteLogPager.java (91%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/FileAuthenticationPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/FileCrawlingConfigPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/JobLogPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/KeyMatchPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/LabelTypePager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/OverlappingHostPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/PathMappingPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/RequestHeaderPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/RoleTypePager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/ScheduledJobPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/SearchLogPager.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/StatsPager.java (76%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/SuggestBadWordPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/SuggestElevateWordPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/SynonymPager.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/UserDictPager.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/UserInfoPager.java (83%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/WebAuthenticationPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/pager/WebCrawlingConfigPager.java (88%) rename src/main/java/{jp/sf => org/codelibs}/fess/robot/FessS2RobotThread.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/screenshot/ScreenShotGenerator.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/screenshot/ScreenShotManager.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/screenshot/impl/BaseScreenShotGenerator.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/screenshot/impl/CommandGenerator.java (99%) rename src/main/java/{jp/sf => org/codelibs}/fess/screenshot/impl/WebDriverGenerator.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/BoostDocumentRuleService.java (81%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/ClickLogService.java (67%) create mode 100644 src/main/java/org/codelibs/fess/service/CrawlingSessionService.java rename src/main/java/{jp/sf => org/codelibs}/fess/service/DataCrawlingConfigService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/DatabaseService.java (79%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/FailureUrlService.java (76%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/FavoriteLogService.java (61%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/FileAuthenticationService.java (83%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/FileCrawlingConfigService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/JobLogService.java (69%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/KeyMatchService.java (83%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/LabelTypeService.java (73%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/OverlappingHostService.java (78%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/PathMappingService.java (78%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/RequestHeaderService.java (82%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/RoleTypeService.java (80%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/ScheduledJobService.java (75%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/SearchFieldLogService.java (80%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/SearchLogService.java (54%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/SearchService.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/StatsService.java (70%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/SuggestBadWordService.java (70%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/SuggestElevateWordService.java (69%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/SynonymService.java (86%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/UserDictService.java (87%) create mode 100644 src/main/java/org/codelibs/fess/service/UserInfoService.java rename src/main/java/{jp/sf => org/codelibs}/fess/service/WebAuthenticationService.java (83%) rename src/main/java/{jp/sf => org/codelibs}/fess/service/WebCrawlingConfigService.java (72%) rename src/main/java/{jp/sf => org/codelibs}/fess/servlet/H2ConfigServlet.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/servlet/Tomcat6ConfigServlet.java (99%) rename src/main/java/{jp/sf => org/codelibs}/fess/servlet/Tomcat7ConfigServlet.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/solr/BoostDocumentRule.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/solr/FessSolrQueryException.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/solr/IndexUpdater.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/solr/policy/FessStatusPolicy.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/struts/action/FessRequestProcessor.java (83%) rename src/main/java/{jp/sf => org/codelibs}/fess/taglib/FessFunctions.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/transformer/AbstractFessFileTransformer.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/transformer/AbstractFessXpathTransformer.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/transformer/FessFileTransformer.java (92%) rename src/main/java/{jp/sf => org/codelibs}/fess/transformer/FessTikaTransformer.java (93%) rename src/main/java/{jp/sf => org/codelibs}/fess/transformer/FessXpathTransformer.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/ComponentUtil.java (84%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/FacetResponse.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/FessBeans.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/FessCopy.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/InputStreamThread.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/JobProcess.java (94%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/MoreLikeThisResponse.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/ParameterUtil.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/QueryResponseList.java (98%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/QueryUtil.java (95%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/ResourceUtil.java (99%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/SearchParamMap.java (89%) rename src/main/java/{jp/sf => org/codelibs}/fess/util/WebApiUtil.java (96%) rename src/main/java/{jp/sf => org/codelibs}/fess/validator/CronExpressionChecks.java (97%) rename src/main/java/{jp/sf => org/codelibs}/fess/validator/UriTypeChecks.java (96%) delete mode 100644 src/main/oracle/resources/jdbc.dicon delete mode 100644 src/main/oracle/resources/s2robot_jdbc.dicon delete mode 100644 src/main/oracle/webapp/WEB-INF/cmd/resources/app.dicon delete mode 100644 src/main/oracle/webapp/WEB-INF/web.xml delete mode 100644 src/main/resources/dbflute.dicon delete mode 100644 src/main/resources/jp/sf/fess/db/exbhv/ClickLogBhv_selectClickUrlRanking.sql delete mode 100644 src/main/resources/jp/sf/fess/db/exbhv/FavoriteLogBhv_selectFavoriteUrlCount.sql delete mode 100644 src/main/resources/jp/sf/fess/db/exbhv/FavoriteLogBhv_selectFavoriteUrlRanking.sql delete mode 100644 src/main/resources/jp/sf/fess/db/exbhv/SearchFieldLogBhv_selectGroupedFieldName.sql delete mode 100644 src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectClientIpRanking.sql delete mode 100644 src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectHotSearchWord.sql delete mode 100644 src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectRefererRanking.sql delete mode 100644 src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSearchFieldRanking.sql delete mode 100644 src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSearchQueryRanking.sql delete mode 100644 src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSearchWordRanking.sql delete mode 100644 src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSolrQueryRanking.sql delete mode 100644 src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectUserAgentRanking.sql rename src/test/java/{jp/sf => org/codelibs}/fess/FessClass.java (96%) rename src/test/java/{jp/sf => org/codelibs}/fess/dict/DictionaryManagerTest.java (95%) rename src/test/java/{jp/sf => org/codelibs}/fess/dict/synonym/SynonymFileTest.java (98%) rename src/test/java/{jp/sf => org/codelibs}/fess/dict/synonym/SynonymItemTest.java (99%) rename src/test/java/{jp/sf => org/codelibs}/fess/dict/synonym/SynonymLocatorTest.java (95%) rename src/test/java/{jp/sf => org/codelibs}/fess/dict/userdict/UserDictFileTest.java (98%) rename src/test/java/{jp/sf => org/codelibs}/fess/dict/userdict/UserDictItemTest.java (98%) rename src/test/java/{jp/sf => org/codelibs}/fess/dict/userdict/UserDictLocatorTest.java (95%) rename src/test/java/{jp/sf => org/codelibs}/fess/ds/impl/DatabaseDataStoreImplTest.java (98%) rename src/test/java/{jp/sf => org/codelibs}/fess/entity/Document.java (98%) rename src/test/java/{jp/sf => org/codelibs}/fess/entity/GeoInfoTest.java (99%) rename src/test/java/{jp/sf => org/codelibs}/fess/filter/FessEncodingFilterTest.java (99%) rename src/test/java/{jp/sf => org/codelibs}/fess/helper/CrawlingSessionHelperTest.java (98%) rename src/test/java/{jp/sf => org/codelibs}/fess/helper/IntervalControlHelperTest.java (97%) rename src/test/java/{jp/sf => org/codelibs}/fess/helper/OverlappingHostHelperTest.java (95%) rename src/test/java/{jp/sf => org/codelibs}/fess/helper/PathMappingHelperTest.java (95%) rename src/test/java/{jp/sf => org/codelibs}/fess/helper/QueryHelperTest.java (99%) rename src/test/java/{jp/sf => org/codelibs}/fess/helper/SystemHelperTest.java (96%) rename src/test/java/{jp/sf => org/codelibs}/fess/helper/ViewHelperTest.java (98%) rename src/test/java/{jp/sf => org/codelibs}/fess/helper/impl/RoleQueryHelperImplTest.java (99%) rename src/test/java/{jp/sf => org/codelibs}/fess/solr/BoostDocumentRuleTest.java (98%) rename src/test/java/{jp/sf => org/codelibs}/fess/transformer/FessFileTransformerTest.java (98%) rename src/test/java/{jp/sf => org/codelibs}/fess/transformer/FessXpathTransformerTest.java (99%) rename src/test/java/{jp/sf => org/codelibs}/fess/util/ParameterUtilTest.java (99%) rename src/test/java/{jp/sf => org/codelibs}/fess/util/QueryResponseListTest.java (99%) rename src/test/java/{jp/sf => org/codelibs}/fess/util/ResourceUtilTest.java (98%) rename src/test/java/{jp/sf => org/codelibs}/fess/validator/UriTypeChecksTest.java (98%) rename src/test/resources/{jp/sf => org/codelibs}/fess/helper/intervalControl.dicon (72%) rename src/test/resources/{jp/sf => org/codelibs}/fess/helper/overlappingHost.dicon (73%) rename src/test/resources/{jp/sf => org/codelibs}/fess/helper/pathMapping.dicon (74%) rename src/test/resources/{jp/sf => org/codelibs}/fess/helper/query.dicon (60%) rename src/test/resources/{jp/sf => org/codelibs}/fess/helper/system.dicon (57%) rename src/test/resources/{jp/sf => org/codelibs}/fess/helper/view.dicon (50%) diff --git a/dbflute_h2/_project.bat b/dbflute_h2/_project.bat deleted file mode 100644 index 0c1831a1c..000000000 --- a/dbflute_h2/_project.bat +++ /dev/null @@ -1,11 +0,0 @@ -@echo off - -set ANT_OPTS=-Xmx512m - -set DBFLUTE_HOME=..\mydbflute\dbflute-1.0.5L - -set MY_PROJECT_NAME=h2 - -set MY_PROPERTIES_PATH=build.properties - -if "%pause_at_end%"=="" set pause_at_end=y diff --git a/dbflute_h2/_project.sh b/dbflute_h2/_project.sh deleted file mode 100644 index a5bff229a..000000000 --- a/dbflute_h2/_project.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -export ANT_OPTS=-Xmx512m - -export DBFLUTE_HOME=../mydbflute/dbflute-1.0.5L - -export MY_PROJECT_NAME=h2 - -export MY_PROPERTIES_PATH=build.properties diff --git a/dbflute_h2/_readme.txt b/dbflute_h2/_readme.txt deleted file mode 100644 index a90ac5067..000000000 --- a/dbflute_h2/_readme.txt +++ /dev/null @@ -1,70 +0,0 @@ -Directory for DBFlute client - -jdbc.bat, jdbc.sh: -A execution command of JDBC task -which gets your schema info and saves it to SchemaXML -located to the "schema" directory. -This task should be executed after ReplaceSchema task -and before other tasks(e.g. Generate, Document task). - -doc.bat, doc.sh: -A execution command of Document task -which creates documents, for example, SchemaHTML, HistoryHTML -to the "output/doc" directory. - -generate.bat, generate.sh: -A execution command of Generate task -which generates classes corresponding your tables, -for example, entities, condition-beans to specified -directories by DBFlute properties on "dfprop" directory. - -Generated structures (directories and classes) are like this: -/- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -allcommon : classes bridging to DBFlute Runtime -bsbhv : base behaviors -bsentity : base entities -cbean : condition-beans (both base and extended) -exbhv : extended behaviors -exentity : extended entities -- - - - - - - - - -/ - -For example, if a table called "MEMBER" exists, -you can use these classes like this: -/- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -MemberCB cb = new MemberCB(); -cb.query().setMemberId_Equal(3); -Member member = memberBhv.selectEntity(cb); -// MemberCB : ConditionBean -// memberBhv : Behavior (instance) -// Member : Entity -- - - - - - - - - -/ - -sql2entity.bat, sql2entity.sh: -A execution command of Sql2Entity task -which generates classes corresponding your outside-SQL files, -for example, entities, parameter-beans to specified -directories by DBFlute properties on "dfprop" directory. - -replace-schema.bat, replace-schema.sh: -A execution command of ReplaceSchema task -which creates your tables and loads data by -resources located to the "playsql" directory. - -outside-sql-test.bat, outside-sql-test.sh: -A execution command of OutsideSqlTest task -which executes outside-SQL files and you can check -whether the SQLs have correct formats. - -The directories are for DBFlute tasks: -/- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -dfprop : Directory for DBFlute properties -extlib : Directory for Directory for library extension -log : Directory for log files of DBFlute tasks -output/doc : Directory for auto-generated documents -playsql : Directory for ReplaceSchema task -schema : Directory for files of schema info -- - - - - - - - - -/ - -The files, _project.bat, _project.sh, build.properties -are for internal processes of DBFlute tasks so basically -you don't need to touch them. diff --git a/dbflute_h2/build.properties b/dbflute_h2/build.properties deleted file mode 100644 index 180616169..000000000 --- a/dbflute_h2/build.properties +++ /dev/null @@ -1,5 +0,0 @@ - -# ------------------------------------------------------------------- -# P R O J E C T -# ------------------------------------------------------------------- -torque.project = fess diff --git a/dbflute_h2/dfprop/_readme.txt b/dbflute_h2/dfprop/_readme.txt deleted file mode 100644 index e839c244e..000000000 --- a/dbflute_h2/dfprop/_readme.txt +++ /dev/null @@ -1,35 +0,0 @@ -Directory for DBFlute properties - -Required (Basic) Properties: -o basicInfoMap.dfprop -o databaseInfoMap.dfprop -At first, you should set these properties -before executions of DBFlute tasks. - -Properties for additional informations: -o additionalForeignKeyMap.dfprop -o additionalPrimaryKeyMap.dfprop -o additionalUniqueKeyMap.dfprop -o additionalTableMap.dfprop - -Properties for implementation environments: -o commonColumnMap.dfprop -o classificationDefinitionMap.dfprop -o classificationDeploymentMap.dfprop -o optimisticLockDefinitionMap.dfprop -o outsideSqlDefinitionMap.dfprop -o sequenceDefinitionMap.dfprop -o dependencyInjectionMap.dfprop -o littleAdjustmentMap.dfprop -o includeQueryMap.dfprop -o typeMappingMap.dfprop - -Properties for ReplaceSchema: -o replaceSchemaDefinitionMap.dfprop - -Properties for documents: -o documentDefinitionMap.dfprop - -Properties for non-functional adjustments: -o allClassCopyright.dfprop -o refreshDefinitionMap.dfprop diff --git a/dbflute_h2/dfprop/additionalForeignKeyMap.dfprop b/dbflute_h2/dfprop/additionalForeignKeyMap.dfprop deleted file mode 100644 index abf2f12ba..000000000 --- a/dbflute_h2/dfprop/additionalForeignKeyMap.dfprop +++ /dev/null @@ -1,42 +0,0 @@ -# /--------------------------------------------------------------------------- -# additionalForeignKeyMap: (NotRequired - Default map:{}) -# -# If foreign key does not exist in your database, -# you can set up here as virtual foreign key for DBFlute. -# -# And it's one-to-one relation if you add one fixed condition to referrer table, -# you can set virtual foreign key with fixedCondition and fixedSuffix. -# And you can use it to view objects too. -# -# If local column name is same as foreign column name, -# you can omit the setting of localColumnName and foreignColumnName. -# The names are treated as case insensitive. -# -# Example: -# map:{ -# ; FK_MEMBER_MEMBER_STATUS_CODE = map:{ -# ; localTableName = MEMBER ; foreignTableName = MEMBER_STATUS -# ; localColumnName = MEMBER_STATUS_CODE ; foreignColumnName = MEMBER_STATUS_CODE -# } -# ; FK_PURCHASE_MEMBER_ID = map:{ -# ; localTableName = PURCHASE ; foreignTableName = MEMBER -# } -# ; FK_MEMBER_MEMBER_ADDRESS_VALID = map:{ -# ; localTableName = MEMBER ; foreignTableName = MEMBER_ADDRESS -# ; localColumnName = MEMBER_ID ; foreignColumnName = MEMBER_ID -# ; fixedCondition = -# $$foreignAlias$$.VALID_BEGIN_DATE <= /*targetDate(Date)*/null -# and $$foreignAlias$$.VALID_END_DATE >= /*targetDate(Date)*/null -# ; fixedSuffix = AsValid -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; FK_MEMBER_MEMBER_STATUS_CODE = map:{ - # ; localTableName = MEMBER ; foreignTableName = MEMBER_STATUS - # ; localColumnName = MEMBER_STATUS_CODE ; foreignColumnName = MEMBER_STATUS_CODE - #} -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/additionalPrimaryKeyMap.dfprop b/dbflute_h2/dfprop/additionalPrimaryKeyMap.dfprop deleted file mode 100644 index 75b350dad..000000000 --- a/dbflute_h2/dfprop/additionalPrimaryKeyMap.dfprop +++ /dev/null @@ -1,26 +0,0 @@ -# /--------------------------------------------------------------------------- -# additionalPrimaryKeyMap: (NotRequired - Default map:{}) -# -# If primary key does not exist in your database, -# you can set up here as virtual primary key for DBFlute. -# And you can use it to view objects too. -# The names are treated as case insensitive. -# -# Example: -# map:{ -# ; PK_MEMBER = map:{ -# ; tableName = MEMBER ; columnName = MEMBER_ID -# } -# ; PK_PURCHASE = map:{ -# ; tableName = PURCHASE ; columnName = PURCHASE_ID -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; PK_MEMBER = map:{ - # ; tableName = MEMBER ; columnName = MEMBER_ID - #} -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/additionalTableMap.dfprop b/dbflute_h2/dfprop/additionalTableMap.dfprop deleted file mode 100644 index 6a670a1c9..000000000 --- a/dbflute_h2/dfprop/additionalTableMap.dfprop +++ /dev/null @@ -1,42 +0,0 @@ -# /--------------------------------------------------------------------------- -# additionalTableMap: (NotRequired - Default map:{}) -# -# This property is valid at only JDBC task. -# You should use this when JDBC can not provide table information -# and when you have no table but call stored procedures only. -# -# The element 'columnMap' is only required in table elements. -# The element 'type' is only required in column elements. -# -# Specification: -# map: { -# [table-name] = map:{ -# columnMap = map:{ -# [column-name] = map:{ -# type = [column JDBC type] ; dbType = [column DB type] -# ; required = [true or false] ; size = [column size] -# ; primaryKey = [true or false] ; pkName = [PK constraint name] -# ; autoIncrement = [true or false] -# ; default = [default value] ; comment = [column comment] -# } -# } -# ; comment = [table comment] -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; FOO_TABLE = map:{ - # ; columnMap = map:{ - # FOO_ID = map:{ type = INTEGER ; dbType = INTEGER - # ; required = true ; primaryKey = true ; autoIncrement = true - # } - # FOO_NAME = map:{ type = VARCHAR ; required = true ; size = 123 } - # FOO_DATE = map:{ type = DATE } - # } - #} -} -# ----------------/ -# -# *Refer to typeMappingMap.dfprop for JDBC type reference. diff --git a/dbflute_h2/dfprop/additionalUniqueKeyMap.dfprop b/dbflute_h2/dfprop/additionalUniqueKeyMap.dfprop deleted file mode 100644 index c3b2ea909..000000000 --- a/dbflute_h2/dfprop/additionalUniqueKeyMap.dfprop +++ /dev/null @@ -1,26 +0,0 @@ -# /--------------------------------------------------------------------------- -# additionalUniqueKeyMap: (NotRequired - Default map:{}) -# -# If unique key does not exist in your database, -# you can set up here as virtual unique key for DBFlute. -# And you can use it to view objects too. -# The names are treated as case insensitive. -# -# Example: -# map:{ -# ; UQ_MEMBER = map:{ -# ; tableName = MEMBER ; columnName = MEMBER_ACCOUNT -# } -# ; UQ_PRODUCT = map:{ -# ; tableName = PRODUCT ; columnName = PRODUCT_HANDLE_CODE -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; UQ_MEMBER = map:{ - # ; tableName = MEMBER ; columnName = MEMBER_ACCOUNT - #} -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/allClassCopyright.dfprop b/dbflute_h2/dfprop/allClassCopyright.dfprop deleted file mode 100644 index 737b875bf..000000000 --- a/dbflute_h2/dfprop/allClassCopyright.dfprop +++ /dev/null @@ -1,11 +0,0 @@ -# /--------------------------------------------------------------------------- -# allClassCopyright: (NotRequired - Default '') -# -# The copyright for all classes. -# This property is NOT map style. -# You should specify before your first generating. -# -#/* -# * Copyright(c) DBFlute TestCo.,TestLtd. All Rights Reserved. -# */ -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/basicInfoMap.dfprop b/dbflute_h2/dfprop/basicInfoMap.dfprop deleted file mode 100644 index 6ba01adf4..000000000 --- a/dbflute_h2/dfprop/basicInfoMap.dfprop +++ /dev/null @@ -1,220 +0,0 @@ -# /--------------------------------------------------------------------------- -# basicInfoMap: (Required) -# -# The basic information for the tasks of DBFlute. -# You should specify before your first generating. -# -# Core Properties: -# o database: (Required) -# o targetLanguage: (Required) -# o targetContainer: (Required) -# o packageBase: (Required) -# -# Adjustment Properties: -# o generateOutputDirectory: (NotRequired - Default Java:'../src/main/java' CSharp:'../source') -# o resourceOutputDirectory: (NotRequired - Default '../resources') -# o isTableNameCamelCase: (NotRequired - Default false) -# o isColumnNameCamelCase: (NotRequired - Default false) -# o projectPrefix: (NotRequired - Default '') -# o classAuthor: (NotRequired - Default 'DBFlute(AutoGenerator)') -# o sourceFileEncoding: (NotRequired - Default 'UTF-8') -# o sourceCodeLineSeparator: (NotRequired - Default no setting) -# o applicationBehaviorMap: (NotRequired - Default map:{}) -# o outputPackageAdjustmentMap: (NotRequired - Default map:{}) -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o database: (Required) - # This is the target database, only considered when generating - # the SQL for your DBFlute project. - # Your possible choices are: - # - # mysql, postgresql, oracle, db2, sqlserver, - # h2, derby, (sqlite, msaccess) - # - ; database = h2 - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetLanguage: (Required) - # The target language. - # Your possible choices are: - # - # java, csharp, scala - # - ; targetLanguage = java - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetContainer: (Required) - # The target DI container. - # If your target language is 'csharp', you can specify 'seasar' only. - # Your possible choices are: - # - # seasar, spring, guice, cdi - # - ; targetContainer = seasar - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o packageBase: (Required) - # The base directory of package for generated class. - # The class package is 'this property value + detail package value'. - # However, detail packages have default value so basically - # you only have to specify the property 'packageBase'. - # If this property is specified and detail package properties is not specified, - # Then the packages of generated class are as follows: - # - # e.g. packageBase = com.example.dbflute.basic.dbflute - # --> com.example.dbflute.basic.dbflute.allcommon - # --> com.example.dbflute.basic.dbflute.bsbhv - # --> com.example.dbflute.basic.dbflute.bsentity - # --> com.example.dbflute.basic.dbflute.cbean - # --> com.example.dbflute.basic.dbflute.exbhv - # --> com.example.dbflute.basic.dbflute.exentity - # - ; packageBase = jp.sf.fess.db - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o generateOutputDirectory: (NotRequired - Default Java:'../src/main/java' CSharp:'../source') - # The base output directory for generating. - # Basically you don't need to specify this if the project style is as follows: - # - # *Java Project Style - # If this value is '../src/main/java' and your project is under the Maven, - # you don't need to set up this property! - # - # {app-project} - # | - # |-dbflute_[project] - # | |-dfprop - # | |-... - # | - # |-src/main/java // *Here! - # |-src/main/resources - # |-... - # - # *CSharp Project Style - # [app-solution]/dbflute_[project]/dfprop - # [app-solution]/mydbflute/dbflute-0.9.6 - # [app-solution]/source/[app-solution].sln - # [app-solution]/source/[app-project(top-namespace)]/[part-namespace]/AllCommon - # [app-solution]/source/[app-project(top-namespace)]/[part-namespace]/BsBhv - # [app-solution]/source/[app-project(top-namespace)]/[part-namespace]/... - # [app-solution]/source/[app-project(top-namespace)]/Resources/... - # - #; generateOutputDirectory = ../src/main/java - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o resourceOutputDirectory: (NotRequired - Default '../resources') - # The base output directory for resource files that contain DI configurations. - # Basically you don't need to specify this if your project is under the Maven. - # - #; resourceOutputDirectory = ../resources - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isTableNameCamelCase: (NotRequired - Default false) - # Is the table name camel case? - # Basically you don't need this if the style of table name is like 'FOO_STATUS'. - # [true] - # The table name is camel case. - # e.g. If the table name is 'OrderDetail', the class name is 'OrderDetail'. - # - # [false] - # e.g. If the table name is 'ORDER_DETAIL', the class name is 'OrderDetail'. - # e.g. If the table name is 'OrderDetail', the class name is 'Orderdetail'. - # - #; isTableNameCamelCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isColumnNameCamelCase: (NotRequired - Default false) - # Is the column name camel case? - # Basically you don't need this if the style of column name is like 'FOO_NAME'. - # [true] - # The column name is camel case. - # e.g. If the column name is 'OrderDetailId', the class name is 'OrderDetailId'. - # - # [false] - # e.g. If the column name is 'ORDER_DETAIL_ID', the class name is 'OrderDetailId'. - # e.g. If the column name is 'OrderDetailId', the class name is 'Orderdetailid'. - # - #; isColumnNameCamelCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o projectPrefix: (NotRequired - Default '') - # If the value is 'Ld', all class names are 'LdXxx'. - # Basically you don't need this if you don't want the common prefix of class name. - # - #; projectPrefix = Ld - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o classAuthor: (NotRequired - Default 'DBFlute(AutoGenerator)') - # The value of the author tag in java-doc of generated classes. - # All classes are target. - # - # @JavaOnly - #; classAuthor = DBFlute(AutoGenerator) - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sourceFileEncoding: (NotRequired - Default 'UTF-8') - # The value of an encoding for source files that are generated classes. - # If source files of your project are not UTF-8, specify your encoding here. - # - #; sourceFileEncoding = UTF-8 - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sourceCodeLineSeparator: (NotRequired - Default no setting) - # The line separator setting for source code of generated classes. - # LF -> converted to LF - # CRLF -> converted to CRLF - # (no setting) -> no convert (template default is CRLF) - # - #; sourceCodeLineSeparator = LF - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o applicationBehaviorMap: (NotRequired - Default map:{}) - # The settings for Application Behavior. - # Elements of this map are as below: - # o isApplicationBehaviorProject: (NotRequired - Default false) - # Does the project is for application behaviors? - # This property is a main signal for Application Behavior. - # Other properties (for Application Behavior) work when this is true. - # o libraryProjectPackageBase: (NotRequired - Default same as application's one) - # If application package base is different from library's one, - # set the property a value 'library's one'. - # - #; applicationBehaviorMap = map:{ - # ; isApplicationBehaviorProject = false - # ; libraryProjectPackageBase = - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o outputPackageAdjustmentMap: (NotRequired - Default map:{}) - # The adjustments for output package. - # Elements of this map are as below: - # o flatDirectoryPackage: (Required - Default '') - # This is only for CSharp. - # e.g. Aaa.Bbb.DBFlute --> Directory: source/Aaa.Bbb.DBFlute/AllCommon - # o omitDirectoryPackage: (NotRequired - Default '') - # This is only for CSharp. - # e.g. Aaa --> Directory: source/Bbb/DBFlute/AllCommon - # - #; outputPackageAdjustmentMap = map:{ - # ; flatDirectoryPackage = Aaa.Bbb.DBFlute - # ; omitDirectoryPackage = Aaa - #} - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/classificationDefinitionMap.dfprop b/dbflute_h2/dfprop/classificationDefinitionMap.dfprop deleted file mode 100644 index 12949781c..000000000 --- a/dbflute_h2/dfprop/classificationDefinitionMap.dfprop +++ /dev/null @@ -1,69 +0,0 @@ -# /--------------------------------------------------------------------------- -# classificationDefinitionMap: (NotRequired - Default map:{}) -# -# The definition of classification. -# -# Specification: -# map: { -# [classification-name] = list:{ -# ; map:{ -# ; topComment=[comment]; codeType=[String(default) or Number or Boolean]} -# ; isCheckImplicitSet=[true or false(default)] -# ; isUseDocumentOnly=[true or false(default)] -# ; isSuppressAutoDeploy=[true or false(default)] -# ; groupingMap = map:{ -# ; [group-name] = map:{ -# ; groupComment=[comment] -# ; elementList=list:{[the list of classification element's name]} -# } -# } -# } -# # classification elements for implicit classification -# ; map:{ -# ; code=[code]; name=[name]; alias=[alias]; comment=[comment] -# ; sisterCode=[code or code-list]; subItemMap=map:{[free-map]} -# } -# # settings for table classification -# ; map:{ -# ; table=[table-name] -# ; code=[column-name for code]; name=[column-name for name] -# ; alias=[column-name for alias]; comment=[column-name for comment]} -# ; where=[condition for select]; orderBy=[column-name for ordering] -# ; exceptCodeList=[the list of except code] -# } -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - # example for implicit classification - #; Flg = list:{ - # ; map:{topComment=general boolean classification for every flg-column; codeType=Number} - # ; map:{code=1; name=True ; alias=Checked ; comment=means yes; sisterCode=true} - # ; map:{code=0; name=False; alias=Unchecked; comment=means no ; sisterCode=false} - #} - # example for table classification - #; MemberStatus = list:{ - # ; map:{topComment=status of member from entry to withdrawal; codeType=String} - # ; map:{ - # ; table=MEMBER_STATUS - # ; code=MEMBER_STATUS_CODE; name=MEMBER_STATUS_NAME - # ; comment=DESCRIPTION; orderBy=DISPLAY_ORDER - # } - #} - ; ProcessType = list:{ - ; map:{topComment=Processing Type} - ; map:{code=C;name=Crawling;alias=Crawling;comment=Process When Crawling} - ; map:{code=D;name=Displaying;alias=Displaying;comment=Process When Displaying} - ; map:{code=B;name=Both;alias=Both;comment=Process When Crawling/Displaying} - } - ; AccessType = list:{ - ; map:{topComment=Access Type} - ; map:{code=W;name=Web;alias=Web;comment=Web} - ; map:{code=X;name=Xml;alias=Xml;comment=Xml} - ; map:{code=J;name=Json;alias=Json;comment=Json} - ; map:{code=O;name=Others;alias=Others;comment=Others} - } -} -# ----------------/ diff --git a/dbflute_h2/dfprop/classificationDeploymentMap.dfprop b/dbflute_h2/dfprop/classificationDeploymentMap.dfprop deleted file mode 100644 index 1f3dae622..000000000 --- a/dbflute_h2/dfprop/classificationDeploymentMap.dfprop +++ /dev/null @@ -1,27 +0,0 @@ -# /--------------------------------------------------------------------------- -# classificationDeploymentMap: (NotRequired - Default map:{}) -# -# The relation between column and classification. -# -# This property uses classification names of classificationDefinitionMap. -# The table name '$$ALL$$' means all tables are target. -# The table names and column names are treated as case insensitive. -# -# You don't need specify here about table classifications. -# Because table classifications are auto-deployed by relation information. -# -# Specification: -# map: { -# [table-name or $$ALL$$] = map:{ -# ; [column-name (with hint)]=[classification-name] -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; $$ALL$$ = map:{suffix:_FLG=Flg} - ; PATH_MAPPING = map:{PROCESS_TYPE=ProcessType} - ; SEARCH_LOG = map:{ACCESS_TYPE=AccessType} -} -# ----------------/ diff --git a/dbflute_h2/dfprop/commonColumnMap.dfprop b/dbflute_h2/dfprop/commonColumnMap.dfprop deleted file mode 100644 index 862d45c8f..000000000 --- a/dbflute_h2/dfprop/commonColumnMap.dfprop +++ /dev/null @@ -1,49 +0,0 @@ -# /--------------------------------------------------------------------------- -# commonColumnMap: (Default map:{}) -# -# The definition of common column(contains auto set-up). -# For example, the date you registered the record, -# the user who updated the record and so on... -# The column names are treated as case insensitive. -# -# The variable '$$AccessContext$$' means allcommon.AccessContext. -# -# Example: -# map:{ -# ; commonColumnMap = map:{ -# ; REGISTER_DATETIME=TIMESTAMP ; REGISTER_USER=VARCHAR -# ; UPDATE_DATETIME=TIMESTAMP ; UPDATE_USER=VARCHAR -# } -# ; beforeInsertMap = map:{ -# ; REGISTER_DATETIME = $$AccessContext$$.getAccessTimestampOnThread() -# ; REGISTER_USER = $$AccessContext$$.getAccessUserOnThread() -# ; UPDATE_DATETIME = entity.getRegisterDatetime() -# ; UPDATE_USER = entity.getRegisterUser() -# } -# ; beforeUpdateMap = map:{ -# ; UPDATE_DATETIME = $$AccessContext$$.getAccessTimestampOnThread() -# ; UPDATE_USER = $$AccessContext$$.getAccessUserOnThread() -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; commonColumnMap = map:{ - # ; REGISTER_DATETIME=TIMESTAMP ; REGISTER_USER=VARCHAR - # ; UPDATE_DATETIME=TIMESTAMP ; UPDATE_USER=VARCHAR - #} - #; beforeInsertMap = map:{ - # ; REGISTER_DATETIME = $$AccessContext$$.getAccessTimestampOnThread() - # ; REGISTER_USER = $$AccessContext$$.getAccessUserOnThread() - # ; UPDATE_DATETIME = entity.getRegisterDatetime() - # ; UPDATE_USER = entity.getRegisterUser() - #} - #; beforeUpdateMap = map:{ - # ; UPDATE_DATETIME = $$AccessContext$$.getAccessTimestampOnThread() - # ; UPDATE_USER = $$AccessContext$$.getAccessUserOnThread() - #} -} -# ----------------/ -# -# *Refer to typeMappingMap.dfprop for JDBC type reference. diff --git a/dbflute_h2/dfprop/databaseInfoMap.dfprop b/dbflute_h2/dfprop/databaseInfoMap.dfprop deleted file mode 100644 index 17c4e2406..000000000 --- a/dbflute_h2/dfprop/databaseInfoMap.dfprop +++ /dev/null @@ -1,112 +0,0 @@ -# /--------------------------------------------------------------------------- -# databaseInfoMap: (Required) -# -# The database information for the tasks of DBFlute. -# You should specify before your first generating. -# -# o driver -- The class name of JDBC-Driver. -# o url -- The URL for connecting database. -# o schema -- The schema name. -# o user -- The database user name. -# o password -- The database password. -# o propertiesMap -- The properties that depends on the database. -# o variousMap -- The various settings about JDBC task. -# -# *The line that starts with '#' means comment-out. -# -map:{ - ; driver = org.h2.Driver - ; url = jdbc:h2:file:../src/main/h2/webapp/WEB-INF/db/fess - ; schema = - ; user = sa - ; password = - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o propertiesMap: (NotRequired - Default map:{}) - # The properties that depends on the database. - # - ; propertiesMap = map:{ - # If you use Oracle and its Synonym, specify this property. - #; includeSynonyms=true - } - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o variousMap: (NotRequired - Default map:{}) - # The various settings about JDBC task mainly. - # - ; variousMap = map:{ - # o objectTypeTargetList: (NotRequired - Default list:{TABLE;VIEW}) - # If you want to include other object types in generating target, - # you should specify the list of included object types as adding. - # e.g. Synonym of Oracle --> list:{TABLE ; VIEW ; SYNONYM} - # This is only for the main schema. Additional schemas are unconcerned. - # However ReplaceSchema and Sql2Entity task also uses this. - # But you can set ReplaceSchema-original setting in its own dfprop. - # - #; objectTypeTargetList = list:{TABLE ; VIEW} - - # o tableExceptList: (NotRequired - Default list:{}) - # If you want to exclude some tables in generating target, - # you should specify the list of excepted table hints. - # e.g. list:{PRODUCT_STATUS ; prefix:TMP_} - # This is only for the main schema. Additional schemas are unconcerned. - # And ReplaceSchema task basically ignores this. - # - # Normally this 'except' means no getting meta data for excepted tables. - # (so the tables are not existing in SchemaHTML and HistoryHTML and so on). - # But you can specify the '@gen' suffix that means generate-only except. - # A table with the mark can be treated as documents but no generating classes. - # - #; tableExceptList = list:{FOO_TABLE@gen ; prefix:FOO_@gen ; suffix:_FOO ; contain:_FOO_} - - # o tableTargetList: (NotRequired - Default list:{}) - # If you want to include some tables in generating target expressly, - # you should specify the list of target table hints. - # e.g. list:{PURCHASE ; contain:MEMBER} - # This is only for the main schema. Additional schemas are unconcerned. - # And ReplaceSchema task basically ignores this. - # - #; tableTargetList = list:{FOO_TABLE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - - # o columnExceptMap: (NotRequired - Default map:{}) - # If you want to exclude some columns in generating target, - # you should specify the list of excepted column hints. - # e.g. map:{HEAVY_MASTER = list:{APP_NOT_USED_ID; suffix:_IMAGE}} - # This is only for the main schema. Additional schemas are unconcerned. - # - #; columnExceptMap = map:{ - # ; FOO_TABLE = list:{FOO_COLUMN ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - #} - - # o additionalSchemaMap: (NotRequired - Default map:{}) - # If you want to include other schemas in generating target, - # you should specify the map of included schemas. - # Additional schemas have original settings apart from the main schema. - # The settings are objectTypeTargetList, tableExceptList, - # tableTargetList, and columnExceptMap. - # They have the same specification as ones of the main schema. - # Elements of this map are as below: - # o objectTypeTargetList: (NotRequired - Default 'map:{TABLE;VIEW}') - # o tableExceptList: (NotRequired - Default list:{}) - # o tableTargetList: (NotRequired - Default list:{}) - # o columnExceptMap: (NotRequired - Default map:{}) - # o isSuppressCommonColumn: (NotRequired - Default false) - # o isSuppressProcedure: (NotRequired - Default false) - # - #; additionalSchemaMap = map:{ - # ; NEXTEXAMPLEDB = map:{ - # ; objectTypeTargetList=list:{TABLE ; VIEW} - # ; tableExceptList=list:{FOO_TABLE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # ; tableTargetList=list:{FOO_TABLE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # ; columnExceptMap=map:{ - # ; FOO_TABLE = list:{FOO_COLUMN ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # } - # ; isSuppressCommonColumn=false - # ; isSuppressProcedure=false - # } - #} - } - # - - - - - - - - - -/ -} -# ----------------/ diff --git a/dbflute_h2/dfprop/dependencyInjectionMap.dfprop b/dbflute_h2/dfprop/dependencyInjectionMap.dfprop deleted file mode 100644 index ff7425604..000000000 --- a/dbflute_h2/dfprop/dependencyInjectionMap.dfprop +++ /dev/null @@ -1,116 +0,0 @@ -# /--------------------------------------------------------------------------- -# dependencyInjectionMap: (NotRequired - Default map:{}) -# -# The various settings about dependency injection(DI Container). -# -# {Java} Seasar Only: -# o dbfluteDiconNamespace: (NotRequired - Default 'dbflute') -# o dbfluteDiconPackageName (NotRequired - Default '../resources') -# o dbfluteDiconFileName: (NotRequired - Default 'dbflute.dicon') -# o j2eeDiconResourceName: (NotRequired - Default 'j2ee.dicon') -# o dbfluteDiconBeforeJ2eeIncludeDefinitionMap: (NotRequired - Default map:{}) -# o dbfluteDiconOtherIncludeDefinitionMap: (NotRequired - Default map:{}) -# -# {Java} Spring and Lucy Only: -# o dbfluteBeansPackageName (NotRequired - Default '../resources') -# o dbfluteBeansFileName: (NotRequired - Default 'dbfluteBeans.xml') -# o dbfluteBeansDataSourceName: (NotRequired - Default 'dataSource') -# o dbfluteBeansDefaultAttribute: (NotRequired - Default '') -# -# {CSharp} Quill(CSharp Seasar) Only: -# o quillDataSourceName: (NotRequired - Default '') -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconNamespace: (NotRequired - Default 'dbflute') - # The namespace of DBFlute DI configuration. - # - # @JavaSeasarOnly - #; dbfluteDiconNamespace = dbflute - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconPackageName (NotRequired - Default '../resources') - # The package name(output directory) of DBFlute DI configuration for Seasar. - # - # @JavaSeasarOnly - #; dbfluteDiconPackageName = ../resources - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconFileName: (NotRequired - Default 'dbflute.dicon') - # The file name of DBFlute DI configuration for Seasar. - # - # @JavaSeasarOnly - #; dbfluteDiconFileName = dbflute.dicon - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o j2eeDiconResourceName: (NotRequired - Default 'j2ee.dicon') - # The file name of J2EE DI configuration. - # - # @JavaSeasarOnly - #; j2eeDiconResourceName = j2ee.dicon - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconBeforeJ2eeIncludeDefinitionMap: (NotRequired - Default map:{}) - # The include definition of DBFlute DI configuration before j2ee including. - # e.g. map:{ jdbc-xxx.dicon = dummy } - # - # @JavaSeasarOnly - #; dbfluteDiconBeforeJ2eeIncludeDefinitionMap = map:{} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconOtherIncludeDefinitionMap: (NotRequired - Default map:{}) - # The other include definition of DBFlute DI configuration. - # e.g. map:{ common.dicon = dummy } - # - # @JavaSeasarOnly - #; dbfluteDiconOtherIncludeDefinitionMap = map:{} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteBeansPackageName (NotRequired - Default '../resources') - # The package name(output directory) of DBFlute DI configuration for Spring and Lucy. - # - # @JavaSpringLucyOnly - #; dbfluteBeansPackageName = ../resources - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteBeansFileName: (NotRequired - Default 'dbfluteBeans.xml') - # The file name of DBFlute DI configuration for Spring and Lucy. - # - # @JavaSpringLucyOnly - #; dbfluteBeansFileName = dbfluteBeans.xml - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteBeansDataSourceName: (NotRequired - Default 'dataSource') - # The data source name that DBFlute(Behaviors) uses. - # - # @JavaSpringLucyOnly - #; dbfluteBeansDataSourceName = exampleDataSource - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteBeansPackageName (NotRequired - Default '') - # The default attribute expression of DBFlute DI configuration for Spring and Lucy. - # - # @JavaSpringLucyOnly - #; dbfluteBeansDefaultAttribute = default-lazy-init="true" - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o quillDataSourceName: (NotRequired - Default '') - # The data source name of Quill(CSharp Seasar). - # - # @CSharpQuillOnly - #; quillDataSourceName = ExampleDB - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/documentDefinitionMap.dfprop b/dbflute_h2/dfprop/documentDefinitionMap.dfprop deleted file mode 100644 index a5c2672b1..000000000 --- a/dbflute_h2/dfprop/documentDefinitionMap.dfprop +++ /dev/null @@ -1,225 +0,0 @@ -# /--------------------------------------------------------------------------- -# documentDefinitionMap: (NotRequired - Default map:{}) -# -# o documentOutputDirectory (NotRequired - Default './output/doc') -# o aliasDelimiterInDbComment (NotRequired - Default '') -# o isDbCommentOnAliasBasis (NotRequired - Default false) -# o isEntityJavaDocDbCommentValid (NotRequired - Default false) -# o isEntityDBMetaDbCommentValid (NotRequired - Default false) -# o schemaHtmlFileName (NotRequired - Default 'schema-[project-name].html') -# o isSuppressSchemaHtmlOutsideSql (NotRequired - Default false) -# o isSuppressSchemaHtmlProcedure (NotRequired - Default false) -# o historyHtmlFileName (NotRequired - Default 'history-[project-name].html') -# o isCheckColumnDefOrderDiff (NotRequired - Default false) -# o isCheckDbCommentDiff (NotRequired - Default false) -# o isCheckProcedureDiff (NotRequired - Default false) -# o loadDataReverseMap (NotRequired - Default map:{}) -# o schemaSyncCheckMap (NotRequired - Default map:{}) -# o propertiesHtmlMap: (NotRequired - Default map:{}) -# -# Example: -# map:{ -# ; documentOutputDirectory = ./output/doc -# ; aliasDelimiterInDbComment = : -# ; isDbCommentOnAliasBasis = true -# ; isEntityJavaDocDbCommentValid = true -# ; isEntityDBMetaDbCommentValid = true -# ; schemaHtmlFileName = xxx.html -# ; isSuppressSchemaHtmlOutsideSql = false -# ; isSuppressSchemaHtmlProcedure = false -# ; historyHtmlFileName = xxx.html -# ; isCheckColumnDefOrderDiff = true -# ; isCheckDbCommentDiff = true -# ; isCheckProcedureDiff = true -# ; loadDataReverseMap = map:{ -# ; recordLimit = -1 -# ; isReplaceSchemaDirectUse = true -# ; isOverrideExistingDataFile = false -# ; isSynchronizeOriginDate = false -# } -# ; schemaSyncCheckMap = map:{ -# ; url = jdbc:... -# ; schema = EXAMPLEDB -# ; user = exampuser -# ; password = exampword -# } -# ; propertiesHtmlMap = map:{ -# ; ApplicationProperties = map:{ -# ; rootFile = ../src/main/resources/application_ja.properties -# } -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o documentOutputDirectory (NotRequired - Default './output/doc') - # The output directory mainly for SchemaHtml and DataXlsTemplate. - # Basically you don't need this. - # It is considered of value that it always exists at same plain. - # - #; documentOutputDirectory = ./output/doc - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o aliasDelimiterInDbComment (NotRequired - Default '') - # If the alias exists in its DB comment like as follows: - # member name : The name of member's full name - # you can use the alias in DBFlute world, java-doc, SchemaHTML... - # DB comment which does not have the delimiter is not treated - # as alias, treated as description (real comment). - # But you can change it by 'isDbCommentOnAliasBasis'. - # - #; aliasDelimiterInDbComment = : - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isDbCommentOnAliasBasis (NotRequired - Default false) - # Is DB comment on alias basis? - # (Is DB comment alias name when it has no alias delimiter?) - # This property works with 'aliasDelimiterInDbComment'. - # - #; isDbCommentOnAliasBasis = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isEntityJavaDocDbCommentValid (NotRequired - Default true) - # Does it allow DB comment to be on java-doc? - # - #; isEntityJavaDocDbCommentValid = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isEntityDBMetaDbCommentValid (NotRequired - Default false) - # Does it allow DB comment to be on DB meta of entity? - # - #; isEntityDBMetaDbCommentValid = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o schemaHtmlFileName (NotRequired - Default 'schema-[project-name].html') - # The file name (not contain path) of SchemaHtml. - # Basically you don't need this. - # (For example, when you use Application Behavior, you need this) - # - #; schemaHtmlFileName = xxx.html - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressSchemaHtmlOutsideSql (NotRequired - Default false) - # Does it remove outsideSql information from SchemaHtml? - # Basically you don't need this. - # OutsideSql information (related to tables) is very useful. - # - #; isSuppressSchemaHtmlOutsideSql = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressSchemaHtmlProcedure (NotRequired - Default false) - # Does it remove procedure information from SchemaHtml? - # Basically you don't need this. - # Procedure information is very useful. - # - #; isSuppressSchemaHtmlProcedure = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o historyHtmlFileName (NotRequired - Default 'history-[project-name].html') - # The file name (not contain path) of HistoryHtml. - # Basically you don't need this. - # (For example, when you use Application Behavior, you need this) - # - #; historyHtmlFileName = xxx.html - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isCheckColumnDefOrderDiff (NotRequired - Default false) - # Does it check differences of column-def order? - # (except added or deleted columns) - # - #; isCheckColumnDefOrderDiff = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isCheckDbCommentDiff (NotRequired - Default false) - # Does it check differences of table or column or others comment? - # - #; isCheckDbCommentDiff = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isCheckProcedureDiff (NotRequired - Default false) - # Does it check differences of procedures? - # - #; isCheckProcedureDiff = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o loadDataReverseMap: (NotRequired - Default map:{}) - # You can set LoadDataReverse settings. - # This property is valid when the property 'recordLimit' is set. - # Elements of this map are as below: - # o recordLimit: The limit of records to output. Minus means no limit. (NotRequired - Default '') - # o isReplaceSchemaDirectUse: Does it output the data to playsql directly? (NotRequired - Default false) - # o isOverrideExistingDataFile: Does it output to existing files? (NotRequired - Default false) - # o isSynchronizeOriginDate: Does it synchronize origin date for date adjustment? (NotRequired - Default false) - # - #; loadDataReverseMap = map:{ - # ; recordLimit = -1 - # ; isReplaceSchemaDirectUse = false - # ; isOverrideExistingDataFile = false - # ; isSynchronizeOriginDate = false - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o schemaSyncCheckMap: (NotRequired - Default map:{}) - # You can set SchemaSyncCheck settings. - # This property is valid when the property 'user' is set. - # Elements of this map are as below: - # o url: The URL for connecting database. (NotRequired - Default same as databaseInfoMap) - # o schema: The schema name. (NotRequired - Default '' e.g. no setting when MySQL) - # o user: The database user name. (Required) - # o password: The database password. (NotRequired - Default '') - # - #; schemaSyncCheckMap = map:{ - # ; url = jdbc:... - # ; schema = EXAMPLEDB - # ; user = exampuser - # ; password = exampword - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o propertiesHtmlMap: (NotRequired - Default map:{}) - # You can set PropertiesHtml settings. - # Elements of this map are as below: - # o key of map: Properties Title Name - # o baseDir: base directory for directory property. (NotRequired) - # o rootFile: root file to read properties (Required) - # o environmentMap: map of environment files, the value is dir path (NotRequired) - # o diffIgnoredKeyList: list of ignored keys for differences (NotRequired) - # o maskedKeyList: list of masked keys for security (NotRequired) - # o isEnvOnlyFloatLeft: is it environment only? (and show as float-left?) (NotRequired) - # o extendsPropRequest: other request name of exnteds-properties (NotRequired) - # o isCheckImplicitOverride: does it check implicit override? (NotRequired) - # - #; propertiesHtmlMap = map:{ - # ; ApplicationProperties = map:{ - # ; baseDir = ../src - # ; rootFile = $$baseDir$$/main/resources/application_ja.properties - # ; environmentMap = map:{ - # ; integration = $$baseDir$$/integration/resources - # ; production = $$baseDir$$/production/resources - # } - # ; diffIgnoredKeyList = list:{} - # ; maskedKeyList = list:{} - # ; isEnvOnlyFloatLeft = false - # ; extendsPropRequest = null - # ; isCheckImplicitOverride = false - # } - #} - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/includeQueryMap.dfprop b/dbflute_h2/dfprop/includeQueryMap.dfprop deleted file mode 100644 index 6ab84be3f..000000000 --- a/dbflute_h2/dfprop/includeQueryMap.dfprop +++ /dev/null @@ -1,99 +0,0 @@ -# /--------------------------------------------------------------------------- -# includeQueryMap: (NotRequired - Default map:{}) -# -# Specification: -# map:{ -# ; [property-type] = map:{ -# ; [condition-key] = map:{ [table] = list:{ [column] ; [column] } } -# } -# -# property-type: String, Number, Date, OrderBy, ... -# condition-key: NotEqual, GreaterThan, LessThan, GreaterEqual, LessEqual -# , InScope, NotInScope, PrefixSearch, LikeSearch, NotLikeSearch -# , EmptyString, FromTo, DateFromTo, RangeOf, ... -# , (and prefix '!' means excluding, '%' means reviving) -# table: table name (hint) or $$ALL$$ -# column: column name (hint) or $$CommonColumn$$ or $$VersionNo$$ -# -# Example: -# map:{ -# # This means that String includes GreaterThan at MEMBER.MEMBER_ACCOUNT only -# # and LessThan at PRODUCT.PRODUCT_NAME and PRODUCT.PRODUCT_HANDLE_CODE, -# # and InScope for LONGVARCHAR(e.g. text type) is excluded. -# ; String = map:{ -# ; GreaterThan = map:{ MEMBER = list:{ MEMBER_ACCOUNT } } -# ; LessThan = map:{ PRODUCT = list:{ PRODUCT_NAME ; PRODUCT_HANDLE_CODE } } -# ; !InScope = map:{ $$ALL$$ = list:{ type:LONGVARCHAR } } -# } -# # This means that Number excludes all version-no's NotEqual. -# ; Number = map:{ -# ; !NotEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } -# } -# # This means that Date does not includes NotEqual at all tables. -# ; Date = map:{ -# ; NotEqual = map:{} -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - ; String = map:{ - # [Include] - # String columns may not be needed - # to be set these condition-keys basically. - #; GreaterThan = map:{} - #; LessThan = map:{} - #; GreaterEqual = map:{} - #; LessEqual = map:{} - - # [Exclude] - # Common columns of String type may not be needed - # to be set these condition-keys basically. - #; !NotEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !GreaterThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LessThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !GreaterEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LessEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !InScope = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !NotInScope = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !PrefixSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LikeSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !NotLikeSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - } - ; Number = map:{ - # [Include] - # ... - - # [Exclude] - # VersionNo column may not be needed - # to be set these condition-keys basically. - #; !NotEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !GreaterThan = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !LessThan = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !GreaterEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !LessEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !RangeOf = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !InScope = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !NotInScope = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - } - ; Date = map:{ - # [Include] - # Date columns may not be needed - # to be set these condition-keys basically. - ; NotEqual = map:{} - ; InScope = map:{} - ; NotInScope = map:{} - - # [Exclude] - # Common columns of Date type may not be needed - # to be set these condition-keys basically. - #; !GreaterThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LessThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !GreaterEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LessEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !FromTo = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !DateFromTo = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - } -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/littleAdjustmentMap.dfprop b/dbflute_h2/dfprop/littleAdjustmentMap.dfprop deleted file mode 100644 index 8eef4a1ea..000000000 --- a/dbflute_h2/dfprop/littleAdjustmentMap.dfprop +++ /dev/null @@ -1,345 +0,0 @@ -# /--------------------------------------------------------------------------- -# littleAdjustmentMap: (NotRequired - Default map:{}) -# -# The various settings about a little adjustment. -# -# o isAvailableAddingSchemaToTableSqlName: (NotRequired - Default false) -# o isAvailableAddingCatalogToTableSqlName: (NotRequired - Default false) -# o isAvailableDatabaseDependency: (NotRequired - Default false) -# o isAvailableDatabaseNativeJDBC: (NotRequired - Default false) -# o isAvailableNonPrimaryKeyWritable: (NotRequired - Default false) -# o isCheckSelectedClassification: (NotRequired - Default false) -# o isForceClassificationSetting: (NotRequired - Default false) -# o isMakeEntityChaseRelation: (NotRequired - Default false) -# o isEntityConvertEmptyStringToNull: (NotRequired - Default false) -# o isMakeConditionQueryEqualEmptyString: (NotRequired - Default false) -# o isPagingCountLater: (NotRequired - Default true) -# o isPagingCountLeastJoin: (NotRequired - Default true) -# o isInnerJoinAutoDetect: (NotRequired - Default true) -# o isTableDispNameUpperCase: (NotRequired - Default false) -# o isTableSqlNameUpperCase: (NotRequired - Default false) -# o isColumnSqlNameUpperCase: (NotRequired - Default false) -# o isMakeDeprecated: (NotRequired - Default false) -# o isMakeRecentlyDeprecated: (NotRequired - Default true) -# o extendedDBFluteInitializerClass: (NotRequired - Default '') -# o extendedImplementedInvokerAssistantClass: (NotRequired - Default '') -# o extendedImplementedCommonColumnAutoSetupperClass: (NotRequired - Default '') -# o extendedS2DaoSettingClass: (NotRequired - Default '') -# o shortCharHandlingMode: (NotRequired - Default NONE) -# o quoteTableNameList: (NotRequired - Default list:{}) -# o quoteColumnNameList: (NotRequired - Default list:{}) -# o relationalNullObjectMap: (NotRequired - Default map:{}) -# o cursorSelectFetchSize: (NotRequired - Default null) -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableAddingSchemaToTableSqlName: (NotRequired - Default false) - # [true] - # Add schema to table SQL name. (The table name on query is SCHEMA.TABLE) - # - # [false] - # Non. - # - #; isAvailableAddingSchemaToTableSqlName = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableAddingCatalogToTableSqlName: (NotRequired - Default false) - # [true] - # Add catalog to table SQL name. (The table name on query is CATALOG.SCHEMA.TABLE) - # This property works only when isAvailableAddingSchemaToTableSqlName is true. - # - # [false] - # Non. - # - #; isAvailableAddingCatalogToTableSqlName = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableDatabaseDependency: (NotRequired - Default false) - # [true] - # Generate the method that depends on the database. - # For example: cb.lockWithRR() at DB2. - # - # [false] - # Non. - # - #; isAvailableDatabaseDependency = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableDatabaseNativeJDBC: (NotRequired - Default false) - # [true] - # Use classes of database native JDBC on generated classes - # to get best performances of DB access. - # Your project needs to refer to database native JDBC. - # - # [false] - # Non. - # - #; isAvailableDatabaseNativeJDBC = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableNonPrimaryKeyWritable: (NotRequired - Default false) - # [true] - # Generate writable methods at non-primary-key table. - # - # [false] - # Non. - # - #; isAvailableNonPrimaryKeyWritable = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isCheckSelectedClassification: (NotRequired - Default false) - # [true] - # Check a code of a column related to classification - # whether it's one of classification when it's selected. - # If wrong, throws an exception (when selecting). - # - # [false] - # Non. - # - #; isCheckSelectedClassification = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isForceClassificationSetting: (NotRequired - Default false) - # [true] - # Force developer to set a code of a column related to classification - # by classification type-safe method of Entity and ConditionBean. - # A setter method of original type becomes 'protected' scope. - # - # [false] - # Non. - # - #; isForceClassificationSetting = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isMakeEntityChaseRelation: (NotRequired - Default false) - # [true] - # Make chase-relation methods of entity. - # For example: member.chaseMemberStatus().getMemberStatusName() - # This statement doesn't have a null pointer if the MemberStatus doesn't exist. - # - # [false] - # Non. - # - #; isMakeEntityChaseRelation = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isEntityConvertEmptyStringToNull: (NotRequired - Default false) - # [true] - # Convert empty-string data to null in entity. - # - # [false] - # Non. - # - #; isEntityConvertEmptyStringToNull = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isMakeConditionQueryEqualEmptyString: (NotRequired - Default false) - # [true] - # Make equal-empty-string methods of condition-query. - # For example: cb.query().setMemberName_Equal_EmptyString() - # - # [false] - # Non. - # - #; isMakeConditionQueryEqualEmptyString = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isPagingCountLater: (NotRequired - Default true) - # [true] - # The count SQL for paging are executed after paging main select. - # - # [false] - # Non. - # - #; isPagingCountLater = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isPagingCountLeastJoin: (NotRequired - Default true) - # [true] - # Join statements in count SQL of paging select are trimmed - # for performance tuning. (only countable joins are valid) - # - # [false] - # Non. - # - #; isPagingCountLeastJoin = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isInnerJoinAutoDetect: (NotRequired - Default true) - # [true] - # Joins that can be inner-join on condition-bean are auto-detected - # for performance tuning. (DBFlute uses NotNull constraint info) - # - # [false] - # Non. - # - #; isInnerJoinAutoDetect = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isTableDispNameUpperCase: (NotRequired - Default false) - # [true] - # Table names for display, e.g. on documents, - # are forcedly treated as upper case. - # - # [false] - # Non. - # - #; isTableDispNameUpperCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isTableSqlNameUpperCase: (NotRequired - Default false) - # [true] - # Table names on SQL executed by condition-bean or behavior - # are forcedly treated as upper case. (except outside-SQL) - # - # [false] - # Non. - # - #; isTableSqlNameUpperCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isColumnSqlNameUpperCase: (NotRequired - Default false) - # [true] - # Column names on SQL executed by condition-bean or behavior - # are forcedly treated as upper case. (except outside-SQL) - # - # [false] - # Non. - # - #; isColumnSqlNameUpperCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isMakeDeprecated: (NotRequired - Default false) - # [true] - # Make deprecated method and class and so on... - # *You should specify this property 'false'! - # - # [false] - # Non. - # - #; isMakeDeprecated = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isMakeRecentlyDeprecated: (NotRequired - Default true) - # [true] - # Make RECENTLY deprecated method and class and so on... - # *You should specify this property 'false'! - # - # [false] - # Non. - # - #; isMakeRecentlyDeprecated = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o extendedDBFluteInitializerClass: (NotRequired - Default '') - # If you want to extend the embedded DBFlute initializer, - # specify the class name of your original initializer - # that extends the embedded one. - # *Basically for fixed DBFluteConfig settings - # - # @JavaOnly - #; extendedDBFluteInitializerClass = com.example.ExtendedDBFluteInitializer - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o extendedImplementedInvokerAssistantClass: (NotRequired - Default '') - # If you want to extend the embedded invoker assistant, - # specify the class name of your original invoker assistant - # that extends the embedded one. - # *Basically you SHOULD NOT specify this property! - # - # @JavaOnly - #; extendedImplementedInvokerAssistantClass = com.example.ExtendedImplementedInvokerAssistant - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o extendedImplementedCommonColumnAutoSetupperClass: (NotRequired - Default '') - # If you want to extend the embedded common column auto setupper, - # specify the class name of your original common column auto setupper - # that extends the embedded one. - # *Basically you SHOULD NOT specify this property! - # - # @JavaOnly - #; extendedImplementedCommonColumnAutoSetupperClass = com.example.ExtendedImplementedCommonColumnAutoSetupper - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o extendedS2DaoSettingClass: (NotRequired - Default '') - # If you want to extend the embedded S2Dao setting, - # specify the class name of your original S2Dao setting - # that extends the embedded one. - # *Basically you SHOULD NOT specify this property! - # - # @CSharpOnly - #; extendedS2DaoSettingClass = Com.Example.ExtendedS2DaoSetting - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o shortCharHandlingMode: (NotRequired - Default NONE) - # If the parameter of condition-bean or parameter-bean has short size, - # NONE - Do nothing. (default) - # EXCEPTION - It throws an exception. - # RFILL - It fills the parameter by right spaces. - # LFILL - It fills the parameter by left spaces. - # - #; shortCharHandlingMode = NONE - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o quoteTableNameList: (NotRequired - Default list:{}) - # The list of table DB names that need to be quoted. - # Specified tables is quoted on auto-generated SQL. - # - #; quoteTableNameList = list:{} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o quoteColumnNameList: (NotRequired - Default list:{}) - # The list of column DB names that need to be quoted. - # Specified columns is quoted on auto-generated SQL. - # - #; quoteColumnNameList = list:{} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o relationalNullObjectMap: (NotRequired - Default map:{}) - # You can get a null object when the relation is null. - # - #; relationalNullObjectMap = map:{ - # ; providerPackage = $$packageBase$$.nogen.cache - # ; foreignMap = map:{ - # ; MEMBER_STATUS = CachedMemberStatus.get($$PrimaryKey$$) - # ; MEMBER_SECURITY = CachedMemberSecurity.get($$PrimaryKey$$) - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o cursorSelectFetchSize: (NotRequired - Default null) - # The fetch size of JDBC parameter for cursor select. - # For example, specify Integer.MIN_VALUE to enable fetch of MySQL. - # - #; cursorSelectFetchSize = Integer.MIN_VALUE - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/optimisticLockDefinitionMap.dfprop b/dbflute_h2/dfprop/optimisticLockDefinitionMap.dfprop deleted file mode 100644 index 840fe0641..000000000 --- a/dbflute_h2/dfprop/optimisticLockDefinitionMap.dfprop +++ /dev/null @@ -1,28 +0,0 @@ -# /--------------------------------------------------------------------------- -# optimisticLockDefinitionMap: (NotRequired - Default map:{}) -# -# The definition for optimistic lock of DBFlute. -# -# o updateDateFieldName: (NotRequired - Default '') -# o versionNoFieldName: (NotRequired - Default 'VERSION_NO') -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o updateDateFieldName: (NotRequired - Default '') - # The column name of update date for optimistic lock. - # - #; updateDateFieldName = UPDATE_DATE - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o versionNoFieldName: (NotRequired - Default 'VERSION_NO') - # The column name of version no for optimistic lock. - # Basically you don't need this if your tables have the column 'VERSION_NO'. - # because the default value is 'VERSION_NO'. - # - #; versionNoFieldName = VERSION_NO - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/outsideSqlDefinitionMap.dfprop b/dbflute_h2/dfprop/outsideSqlDefinitionMap.dfprop deleted file mode 100644 index 0026e15b6..000000000 --- a/dbflute_h2/dfprop/outsideSqlDefinitionMap.dfprop +++ /dev/null @@ -1,187 +0,0 @@ -# /--------------------------------------------------------------------------- -# outsideSqlDefinitionMap: (NotRequired - Default map:{}) -# -# The various settings about outsideSql. -# -# o isGenerateProcedureParameterBean: (NotRequired - Default false) -# o isGenerateProcedureCustomizeEntity: (NotRequired - Default false) -# o targetProcedureCatalogList: (NotRequired - Default list:{}) -# o targetProcedureSchemaList: (NotRequired - Default list:{}) -# o targetProcedureNameList: (NotRequired - Default list:{}) -# o executionMetaProcedureNameList: (NotRequired - Default list:{}) -# o procedureSynonymHandlingType: (NotRequired - Default NONE) -# o isRequiredSqlTitle: (NotRequired - Default false) -# o isRequiredSqlDescription: (NotRequired - Default false) -# o sqlFileEncoding: (NotRequired - Default 'UTF-8') -# o sqlDirectory: (NotRequired - Default generateOutputDirectory & resourceOutputDirectory) -# o sql2EntityOutputDirectory: (NotRequired - Default generateOutputDirectory) -# o applicationOutsideSqlMap: (NotRequired - Default map:{}) -# o sqlPackage: (NotRequired - Default all packages) -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isGenerateProcedureParameterBean: (NotRequired - Default false) - # [true] - # The parameter beans for procedure are auto-generated. - # If you call the procedure from DBFlute, you should specify 'true'! - # - # [false] - # Non. - # - ; isGenerateProcedureParameterBean = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isGenerateProcedureCustomizeEntity: (NotRequired - Default false) - # [true] - # The customize entities for procedure's out-parameter - # and not-param-result are auto-generated. - # And also not-param-result's properties are auto-generated. - # Target procedures are executed actually at Sql2Entity task. - # (because of getting from execution meta data (result set meta data)) - # This property is valid only when isGenerateProcedureParameterBean is true. - # - # [false] - # Non. - # - ; isGenerateProcedureCustomizeEntity = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetProcedureCatalogList: (NotRequired - Default list:{}) - # You can specify target catalog of generated parameter bean for procedure. - # This property is valid only when generateProcedureParameterBean is valid. - # - #; targetProcedureCatalogList = list:{FOO_CATALOG ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetProcedureSchemaList: (NotRequired - Default list:{}) - # You can specify target schema of generated parameter bean for procedure. - # This property is valid only when generateProcedureParameterBean is valid. - # e.g. list:{PROCEDUREDB} - # - #; targetProcedureSchemaList = list:{FOO_SCHEMA ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetProcedureNameList: (NotRequired - Default list:{}) - # You can specify target name of generated parameter bean for procedure. - # This property is valid only when isGenerateProcedureParameterBean is valid. - # e.g. list:{prefix:SP_} - # And you can specify procedures through DB link. - # This is treated as additional setting - # so it is independent from specifications for main schema. - # e.g. SP_FOO@NEXT_LINK (when DB link name is 'NEXT_LINK') - # - #; targetProcedureNameList = list:{FOO_PROCEDURE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o executionMetaProcedureNameList: (NotRequired - Default list:{}) - # You can specify target name of generated customize entity for procedure. - # This property is valid only when isGenerateProcedureCustomizeEntity is valid. - # e.g. list:{prefix:SP_} - # - #; executionMetaProcedureNameList = list:{FOO_PROCEDURE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o procedureSynonymHandlingType: (NotRequired - Default NONE) - # You can specify the handling type of procedure synonym. - # NONE - No handling. (default) - # INCLUDE - It includes procedure synonyms. - # SWITCH - It switches all normal procedures to procedure synonyms. - # - #; procedureSynonymHandlingType = NONE - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isRequiredSqlTitle: (NotRequired - Default false) - # [true] - # You should always write the title of outsideSql. - # If it doesn't exist, the OutsideSqlTest task fails. - # - # [false] - # Non. - # - #; isRequiredSqlTitle = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isRequiredSqlDescription: (NotRequired - Default false) - # [true] - # You should always write the description of outsideSql. - # If it doesn't exist, the OutsideSqlTest task fails. - # - # [false] - # Non. - # - #; isRequiredSqlDescription = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sqlFileEncoding: (NotRequired - Default 'UTF-8') - # The encoding of SQL file for outsideSql. - # Basically you don't need this. - # - #; sqlFileEncoding = UTF-8 - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sqlDirectory: (NotRequired - Default generateOutputDirectory & resourceOutputDirectory) - # The directory of SQL file for outsideSql. - # Basically you don't need this if your directory structure is same as default. - # It's also for DBFlute library project when you use ApplicationOutsideSql. - # - #; sqlDirectory = ../src/main/resources - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sql2EntityOutputDirectory: (NotRequired - Default generateOutputDirectory) - # The output directory of classes that is generated by Sql2Entity. - # Basically you don't need this if your directory structure is same as default. - # It's also for DBFlute library project when you use ApplicationOutsideSql. - # - #; sql2EntityOutputDirectory = ../src/main/java - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o applicationOutsideSqlMap: (NotRequired - Default map:{}) - # You can set additional users. - # Elements of this map are as below: - # o key of map: a relative path to the application project from DBFlute client - # o sqlDirectory: SQL directory as a relative path from the application directory - # (NotRequired - Default Java:'src/main/java' & 'src/main/resources' CSharp:'source') - # o sql2EntityOutputDirectory: source output directory from as a relative path from the application directory - # (NotRequired - Default Java:'src/main/java' CSharp:'source') - # - #; applicationOutsideSqlMap = map:{ - # ; ../../app1 = map:{ - # ; sqlDirectory = src/main/resources - # ; sql2EntityOutputDirectory = src/main/java - # } - # ; ../../app2 = map:{ - # ; sqlDirectory = src/main/resources - # ; sql2EntityOutputDirectory = src/main/java - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sqlPackage: (NotRequired - Default all packages) - # The package of SQL file for outsideSql. - # This is basically for narrowing SQL-searching target, - # for example, when the project has SQL files for other framework. - # So basically you don't need this. - # - # You can use variable '$$PACKAGE_BASE$$' that means 'packageBase'. - # But you need to make SQL files at 'exbhv' under the set package - # if you use BehaviorQueryPath (MemberBhv_selectSimpleMember.sql). - # - #; sqlPackage = $$PACKAGE_BASE$$ - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/refreshDefinitionMap.dfprop b/dbflute_h2/dfprop/refreshDefinitionMap.dfprop deleted file mode 100644 index 72dec681a..000000000 --- a/dbflute_h2/dfprop/refreshDefinitionMap.dfprop +++ /dev/null @@ -1,19 +0,0 @@ -# /--------------------------------------------------------------------------- -# refreshDefinitionMap: (NotRequired - Default map:{}) -# -# If you use ResourceSynchronizer and specify this property, -# You don't need to refresh(F5) your eclipse project. -# -# Specification: -# map:{ -# ; projectName = [Eclipse Project1] / [Eclipse Project2] / ... -# ; requestUrl = [ResourceSynchronizer's URL] -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; projectName = dbflute-basic-example - #; requestUrl = http://localhost:8386/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/replaceSchemaDefinitionMap.dfprop b/dbflute_h2/dfprop/replaceSchemaDefinitionMap.dfprop deleted file mode 100644 index 11b8705b8..000000000 --- a/dbflute_h2/dfprop/replaceSchemaDefinitionMap.dfprop +++ /dev/null @@ -1,234 +0,0 @@ -# /--------------------------------------------------------------------------- -# replaceSchemaDefinitionMap: (NotRequired - Default map:{}) -# -# The various settings about replace-schema. -# -# o repsEnvType: (NotRequired - Default inherits or 'ut') -# o isLoggingInsertSql: (NotRequired - Default true) -# o isLoggingReplaceSql: (NotRequired - Default true) -# o isErrorSqlContinue: (NotRequired - Default false) -# o sqlFileEncoding: (NotRequired - Default 'UTF-8') -# o skipSheet: (NotRequired - Default '') -# o isIncrementSequenceToDataMax: (NotRequired - Default false) -# o isSuppressBatchUpdate: (NotRequired - Default false) -# o objectTypeTargetList: (NotRequired - Default databaseInfoMap's) -# o filterVariablesMap: (NotRequired - Default map:{}) -# o additionalUserMap: (NotRequired - Default map:{}) -# o additionalDropMapList: (NotRequired - Default list:{}) -# o playSqlDirectory: (NotRequired - Default 'playsql') -# o applicationPlaySqlDirectory: (NotRequired - Default '') -# o arrangeBeforeRepsMap: (NotRequired - Default map:{}) -# o isSuppressTruncateTable: (NotRequired - Default false) -# o isSuppressDropForeignKey: (NotRequired - Default false) -# o isSuppressDropTable: (NotRequired - Default false) -# o isSuppressDropSequence: (NotRequired - Default false) -# o isSuppressDropProcedure: (NotRequired - Default false) -# o isSuppressDropDBLink: (NotRequired - Default false) -# o initializeFirstSqlList: (NotRequired - Default list:{}) -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o repsEnvType: (NotRequired - Default inherits or 'ut') - # The environment type of ReplaceSchema. - # e.g. if ut, data files in './playsql/data/ut/...' are loaded - # If DBFlute environment type is specified, inherits it as default. - # - #; repsEnvType = ut - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isLoggingInsertSql: (NotRequired - Default true) - # Does it show insert values on log? - # - #; isLoggingInsertSql = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isLoggingReplaceSql: (NotRequired - Default true) - # Does it show replace-SQL on log? - # - #; isLoggingReplaceSql = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isErrorSqlContinue: (NotRequired - Default false) - # Does it continue the task when error SQL exists? - # - #; isErrorSqlContinue = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sqlFileEncoding: (NotRequired - Default 'UTF-8') - # The encoding of SQL(DDL) file for Replace Schema. - # Basically you don't need this. - # - #; sqlFileEncoding = UTF-8 - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o skipSheet: (NotRequired - Default '') - # You can specify the skip sheet by regular expression - # - #; skipSheet = P.+ - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isIncrementSequenceToDataMax: (NotRequired - Default false) - # Does it increment sequence values to max value of table data? - # Referring the property 'sequenceDefinitionMap'. - # - #; isIncrementSequenceToDataMax = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressBatchUpdate: (NotRequired - Default false) - # Does it suppress batch update at loading data? - # When you have a data error, you may get details for the error - # by this property changing. Because it is possible that - # the BatchUpdateException information is very short for debug. - # - #; isSuppressBatchUpdate = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o objectTypeTargetList: (NotRequired - Default databaseInfoMap's) - # This property overrides databaseInfoMap's one for ReplaceSchema. - # e.g. Synonym of Oracle --> list:{TABLE ; VIEW ; SYNONYM} - # - #; objectTypeTargetList = list:{TABLE ; VIEW} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o filterVariablesMap: (NotRequired - Default map:{}) - # You can specify the filter variables for DDL. - # - #; filterVariablesMap = map:{abc=AAA} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o additionalUserMap: (NotRequired - Default map:{}) - # You can set additional users. - # Elements of this map are as below: - # o key of map: User Definition Name (userDefName) - # o url: (NotRequired - Default same as one of main schema) - # o schema: (NotRequired - Default treated as no schema setting) - # o user: (Required) - # o password: password plainly or path to password file (with default password) - # e.g. foo or df:dfprop/system-password.txt|foo - # (NotRequired - Default '') - # o isSkipIfNotFoundPasswordFileAndDefault: Does it skip the user SQL statement - # when using password file but not found it and also default password? - # (NotRequired - Default false) - # - #; additionalUserMap = map:{ - # ; system = map:{ - # #; url = ... - # #; schema = ... - # ; user = system - # ; password = df:dfprop/system-password.txt - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o additionalDropMapList: (NotRequired - Default list:{}) - # You can drop additional other schemas. - # Elements of this map are as below: - # o url: (NotRequired - Default same as main schema) - # o schema: (Required: if empty schema means valid schema, not required) - # o user: (NotRequired - Default same as main schema) - # o password: (NotRequired - Default same as main schema) - # o propertiesMap: (NotRequired - Default map:{}) - # o objectTypeTargetList: (NotRequired - Default list{TABLE;VIEW}) - # - #; additionalDropMapList = list:{ - # ; map:{ - # ; url = jdbc:oracle:thin:... - # ; schema = NEXTEXAMPLEDB - # ; user = NEXTEXAMPLEDB - # ; password = NEXTEXAMPLEDB - # ; propertiesMap = map:{} - # ; objectTypeTargetList = list:{TABLE;VIEW} - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o playSqlDirectory: (NotRequired - Default 'playsql' relative to DBFlute client) - # This property is relative path to (main) PlaySql directory, - # You should not use this property easily. - # - #; playSqlDirectory = ../../foo-project/playsql - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o applicationPlaySqlDirectory: (NotRequired - Default '') - # This property is relative path to Application PlaySql directory, - # which is basically used with ApplicationBehavior. - # - #; applicationPlaySqlDirectory = ../../foo-project/dbflute_apbranch/playsql - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o arrangeBeforeRepsMap: (NotRequired - Default map:{}) - # You can arrange resource files before ReplaceSchema. - # - #; arrangeBeforeRepsMap = map:{ - # ; copy = map:{ - # ; ../erd/*.ddl = ./playsql/replace-schema-10-basic.sql - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressTruncateTable: (NotRequired - Default false) - # You can suppress truncating tables at initializing schema. - # - #; isSuppressTruncateTable = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropForeignKey: (NotRequired - Default false) - # You can suppress dropping foreign keys at initializing schema. - # - #; isSuppressDropForeignKey = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropTable: (NotRequired - Default false) - # You can suppress dropping tables at initializing schema. - # - #; isSuppressDropTable = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropSequence: (NotRequired - Default false) - # You can suppress dropping sequences at initializing schema. - # - #; isSuppressDropSequence = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropProcedure: (NotRequired - Default false) - # You can suppress dropping procedures at initializing schema. - # - #; isSuppressDropProcedure = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropDBLink: (NotRequired - Default false) - # You can suppress dropping DB links at initializing schema. - # - #; isSuppressDropDBLink = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o initializeFirstSqlList: (NotRequired - Default list:{}) - # You can execute the SQL statements before initializing schema. - # - #; initializeFirstSqlList = list:{} - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/sequenceDefinitionMap.dfprop b/dbflute_h2/dfprop/sequenceDefinitionMap.dfprop deleted file mode 100644 index f04451cae..000000000 --- a/dbflute_h2/dfprop/sequenceDefinitionMap.dfprop +++ /dev/null @@ -1,25 +0,0 @@ -# /--------------------------------------------------------------------------- -# sequenceDefinitionMap: (NotRequired - Default map:{}) -# -# The relation mappings between sequence and table. -# If you don't specify the mappings, you cannot insert -# a record of the table by sequence. -# The table names are treated as case insensitive. -# -# Example: -# map:{ -# ; PURCHASE = SEQ_PURCHASE -# ; MEMBER = SEQ_MEMBER -# ; MEMBER_LOGIN = SEQ_MEMBER_LOGIN -# ; PRODUCT = SEQ_PRODUCT -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; PURCHASE = SEQ_PURCHASE - #; MEMBER = SEQ_MEMBER - #; MEMBER_LOGIN = SEQ_MEMBER_LOGIN - #; PRODUCT = SEQ_PRODUCT -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_h2/dfprop/typeMappingMap.dfprop b/dbflute_h2/dfprop/typeMappingMap.dfprop deleted file mode 100644 index 0b5b734d9..000000000 --- a/dbflute_h2/dfprop/typeMappingMap.dfprop +++ /dev/null @@ -1,57 +0,0 @@ -# /--------------------------------------------------------------------------- -# typeMappingMap: (NotRequired - Default map:{}) -# -# If you want to change mappings from default mappings, -# you can specify your original mappings. -# But it is possible that unanticipated problems occurs, so be careful! -# -# About '$$AutoMapping$$': -# If the database is Oracle, they often use this. -# For example, if you use this for NUMERIC. -# o Numeric( 1 - 9 , 0) is mapping to INTEGER -# o Numeric(10 - 18 , 0) is mapping to BIGINT -# o Numeric(19 - 38 , 0) is mapping to NUMERIC -# o Numeric( 1 - 38 , 2) is mapping to NUMERIC -# -# Example: -# map:{ -# ; INTEGER = java.lang.Integer -# ; BIGINT = java.lang.Long -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - # AutoMapping for Numeric and Decimal - ; NUMERIC = $$AutoMapping$$ ; DECIMAL = $$AutoMapping$$ -} -# ----------------/ -# -# Default mapping as follows: -# -------------------------------------------------------- -# | JDBC Type | Java Native | CSharp Native | -# | ------------------------------------------------------ -# | CHAR | java.lang.String | String | -# | VARCHAR | java.lang.String | String | -# | LONGVARCHAR | java.lang.String | String | -# | NUMERIC | java.math.BigDecimal | decimal? | -# | DECIMAL | java.math.BigDecimal | decimal? | -# | TINYINT | java.lang.Integer | int? | -# | SMALLINT | java.lang.Integer | int? | -# | INTEGER | java.lang.Integer | int? | -# | BIGINT | java.lang.Long | long? | -# | REAL | java.math.BigDecimal | decimal? | -# | FLOAT | java.math.BigDecimal | decimal? | -# | DOUBLE | java.math.BigDecimal | decimal? | -# | DATE | java.util.Date | DateTime? | -# | TIME | java.sql.Time | DateTime? | -# | TIMESTAMP | java.sql.Timestamp | DateTime? | -# | BIT | java.lang.Boolean | bool? | -# | BOOLEAN | java.lang.Boolean | bool? | -# | BINARY | byte[] | byte[] | -# | VARBINARY | byte[] | byte[] | -# | LONGVARBINARY | byte[] | byte[] | -# | BLOB | byte[] | byte[] | -# | ARRAY | *Unsupported | *Unsupported | -# | UUID | java.util.UUID | *Unsupported | -# -------------------------------------------------------- diff --git a/dbflute_h2/doc.bat b/dbflute_h2/doc.bat deleted file mode 100644 index 3c5ce3f01..000000000 --- a/dbflute_h2/doc.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the Document task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-doc.cmd %MY_PROPERTIES_PATH% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_h2/doc.sh b/dbflute_h2/doc.sh deleted file mode 100644 index 5c5c22117..000000000 --- a/dbflute_h2/doc.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the Document task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-doc.sh $MY_PROPERTIES_PATH -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_h2/extlib/_readme.txt b/dbflute_h2/extlib/_readme.txt deleted file mode 100644 index f5503c636..000000000 --- a/dbflute_h2/extlib/_readme.txt +++ /dev/null @@ -1,5 +0,0 @@ -Directory for library extension - -If you use a database that DBFlute does not have its JDBC driver, -put your own JDBC driver for the database here. -(e.g. Oracle, DB2, SQLServer) diff --git a/dbflute_h2/generate.bat b/dbflute_h2/generate.bat deleted file mode 100644 index 5876c15c9..000000000 --- a/dbflute_h2/generate.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the Generate task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-generate.cmd %MY_PROPERTIES_PATH% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_h2/generate.sh b/dbflute_h2/generate.sh deleted file mode 100644 index 7665c1bf7..000000000 --- a/dbflute_h2/generate.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the Generate task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-generate.sh $MY_PROPERTIES_PATH -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_h2/jdbc.bat b/dbflute_h2/jdbc.bat deleted file mode 100644 index 410e3da5e..000000000 --- a/dbflute_h2/jdbc.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the JDBC task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-jdbc.cmd %MY_PROPERTIES_PATH% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_h2/jdbc.sh b/dbflute_h2/jdbc.sh deleted file mode 100644 index 24985faa9..000000000 --- a/dbflute_h2/jdbc.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the JDBC task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-jdbc.sh $MY_PROPERTIES_PATH -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_h2/log/_readme.txt b/dbflute_h2/log/_readme.txt deleted file mode 100644 index d3f17ea30..000000000 --- a/dbflute_h2/log/_readme.txt +++ /dev/null @@ -1,4 +0,0 @@ -Directory for log files of DBFlute tasks - -If your execution of DBFlute task fails, -look the log file "dbflute.log" for debug. diff --git a/dbflute_h2/manage.bat b/dbflute_h2/manage.bat deleted file mode 100644 index 05124c37d..000000000 --- a/dbflute_h2/manage.bat +++ /dev/null @@ -1,17 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -set FIRST_ARG=%1 -if "%FIRST_ARG%"=="" set FIRST_ARG="" -set SECOND_ARG=%2 -if "%SECOND_ARG%"=="" set SECOND_ARG="" - -call %DBFLUTE_HOME%\etc\cmd\_df-manage.cmd %MY_PROPERTIES_PATH% %FIRST_ARG% %SECOND_ARG% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_h2/manage.sh b/dbflute_h2/manage.sh deleted file mode 100644 index d2fb74628..000000000 --- a/dbflute_h2/manage.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -FIRST_ARG=$1 -SECOND_ARG=$2 - -sh $DBFLUTE_HOME/etc/cmd/_df-manage.sh $MY_PROPERTIES_PATH $FIRST_ARG $SECOND_ARG -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_h2/output/doc/_readme.txt b/dbflute_h2/output/doc/_readme.txt deleted file mode 100644 index ee75f754c..000000000 --- a/dbflute_h2/output/doc/_readme.txt +++ /dev/null @@ -1,3 +0,0 @@ -Directory for auto-generated documents - -e.g. SchemaHTML, HistoryHTML diff --git a/dbflute_h2/outside-sql-test.bat b/dbflute_h2/outside-sql-test.bat deleted file mode 100644 index a86099b31..000000000 --- a/dbflute_h2/outside-sql-test.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the OutsiteSqlTest task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-outside-sql-test.cmd %MY_PROPERTIES_PATH% %1 - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_h2/outside-sql-test.sh b/dbflute_h2/outside-sql-test.sh deleted file mode 100644 index 3a45f9285..000000000 --- a/dbflute_h2/outside-sql-test.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the OutsiteSqlTest task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-outside-sql-test.sh $MY_PROPERTIES_PATH $1 -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_h2/playsql/_readme.txt b/dbflute_h2/playsql/_readme.txt deleted file mode 100644 index c2f56c4ea..000000000 --- a/dbflute_h2/playsql/_readme.txt +++ /dev/null @@ -1,50 +0,0 @@ -Directory for ReplaceSchema task - -replace-schema-*.sql: -DDL statements for creation of your schema. -You should write your own DDL statements in this file. -(A SQL separator is semicolon ";") - -take-finally-*.sql: -SQL statements for check loaded data (or DDL after data loading) -You should write your own SQL statements in this file. -(basically same specifications as replace-schema.sql) - -The "data" directory is for data loading like this: -/- - - - - - - - - - - - - - - - - - - - -playsql - |-data - |-common - | |-xls - | |-10-master.xls - | |-defaultValueMap.dataprop - |-ut - |-xls - |-20-member.xls - |-30-product.xls - |-defaultValueMap.dataprop -- - - - - - - - - -/ - -The format of a xls file is like this: -/- - - - - - - - - - - - - - - - - - - - -|MEMBER_ID|MEMBER_NAME|BIRTHDATE | -| 1|Stojkovic |1965/03/03| -| 2|Savicevic | | -| 3|... |... | - -(Sheet) -MEMBER / MEMBER_LOGIN / MEMBER_SECURITY -- - - - - - - - - -/ - -The defaultValueMap.dataprop is for common columns like this: -/- - - - - - - - - - - - - - - - - - - - -map:{ - ; REGISTER_DATETIME = sysdate - ; REGISTER_USER = foo - ; REGISTER_PROCESS = bar - ; UPDATE_DATETIME = sysdate - ; UPDATE_USER = foo - ; UPDATE_PROCESS = bar - ; VERSION_NO = 0 -} -- - - - - - - - - -/ diff --git a/dbflute_h2/playsql/replace-schema.sql b/dbflute_h2/playsql/replace-schema.sql deleted file mode 100644 index 0519ecba6..000000000 --- a/dbflute_h2/playsql/replace-schema.sql +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dbflute_h2/playsql/take-finally.sql b/dbflute_h2/playsql/take-finally.sql deleted file mode 100644 index 0519ecba6..000000000 --- a/dbflute_h2/playsql/take-finally.sql +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dbflute_h2/replace-schema.bat b/dbflute_h2/replace-schema.bat deleted file mode 100644 index 75ad5e391..000000000 --- a/dbflute_h2/replace-schema.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the ReplaceSchema task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-replace-schema.cmd %MY_PROPERTIES_PATH% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_h2/replace-schema.sh b/dbflute_h2/replace-schema.sh deleted file mode 100644 index 35490a782..000000000 --- a/dbflute_h2/replace-schema.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the ReplaceSchema task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-replace-schema.sh $MY_PROPERTIES_PATH -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_h2/schema/_readme.txt b/dbflute_h2/schema/_readme.txt deleted file mode 100644 index 2fa906858..000000000 --- a/dbflute_h2/schema/_readme.txt +++ /dev/null @@ -1,4 +0,0 @@ -Directory for files of schema info - -Files are auto-generated by DBFlute tasks. -Basically you don't need to touch this directory. diff --git a/dbflute_h2/sql2entity.bat b/dbflute_h2/sql2entity.bat deleted file mode 100644 index 55f81b9df..000000000 --- a/dbflute_h2/sql2entity.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the Sql2Entity task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-sql2entity.cmd %MY_PROPERTIES_PATH% %1 - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_h2/sql2entity.sh b/dbflute_h2/sql2entity.sh deleted file mode 100644 index 26e3edd9b..000000000 --- a/dbflute_h2/sql2entity.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the Sql2Entity task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-sql2entity.sh $MY_PROPERTIES_PATH $1 -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_mysql/_project.bat b/dbflute_mysql/_project.bat deleted file mode 100644 index 5a835426d..000000000 --- a/dbflute_mysql/_project.bat +++ /dev/null @@ -1,11 +0,0 @@ -@echo off - -set ANT_OPTS=-Xmx512m - -set DBFLUTE_HOME=..\mydbflute\dbflute-1.0.5L - -set MY_PROJECT_NAME=mysql - -set MY_PROPERTIES_PATH=build.properties - -if "%pause_at_end%"=="" set pause_at_end=y diff --git a/dbflute_mysql/_project.sh b/dbflute_mysql/_project.sh deleted file mode 100644 index 25e3f86e6..000000000 --- a/dbflute_mysql/_project.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -export ANT_OPTS=-Xmx512m - -export DBFLUTE_HOME=../mydbflute/dbflute-1.0.5L - -export MY_PROJECT_NAME=mysql - -export MY_PROPERTIES_PATH=build.properties diff --git a/dbflute_mysql/_readme.txt b/dbflute_mysql/_readme.txt deleted file mode 100644 index a90ac5067..000000000 --- a/dbflute_mysql/_readme.txt +++ /dev/null @@ -1,70 +0,0 @@ -Directory for DBFlute client - -jdbc.bat, jdbc.sh: -A execution command of JDBC task -which gets your schema info and saves it to SchemaXML -located to the "schema" directory. -This task should be executed after ReplaceSchema task -and before other tasks(e.g. Generate, Document task). - -doc.bat, doc.sh: -A execution command of Document task -which creates documents, for example, SchemaHTML, HistoryHTML -to the "output/doc" directory. - -generate.bat, generate.sh: -A execution command of Generate task -which generates classes corresponding your tables, -for example, entities, condition-beans to specified -directories by DBFlute properties on "dfprop" directory. - -Generated structures (directories and classes) are like this: -/- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -allcommon : classes bridging to DBFlute Runtime -bsbhv : base behaviors -bsentity : base entities -cbean : condition-beans (both base and extended) -exbhv : extended behaviors -exentity : extended entities -- - - - - - - - - -/ - -For example, if a table called "MEMBER" exists, -you can use these classes like this: -/- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -MemberCB cb = new MemberCB(); -cb.query().setMemberId_Equal(3); -Member member = memberBhv.selectEntity(cb); -// MemberCB : ConditionBean -// memberBhv : Behavior (instance) -// Member : Entity -- - - - - - - - - -/ - -sql2entity.bat, sql2entity.sh: -A execution command of Sql2Entity task -which generates classes corresponding your outside-SQL files, -for example, entities, parameter-beans to specified -directories by DBFlute properties on "dfprop" directory. - -replace-schema.bat, replace-schema.sh: -A execution command of ReplaceSchema task -which creates your tables and loads data by -resources located to the "playsql" directory. - -outside-sql-test.bat, outside-sql-test.sh: -A execution command of OutsideSqlTest task -which executes outside-SQL files and you can check -whether the SQLs have correct formats. - -The directories are for DBFlute tasks: -/- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -dfprop : Directory for DBFlute properties -extlib : Directory for Directory for library extension -log : Directory for log files of DBFlute tasks -output/doc : Directory for auto-generated documents -playsql : Directory for ReplaceSchema task -schema : Directory for files of schema info -- - - - - - - - - -/ - -The files, _project.bat, _project.sh, build.properties -are for internal processes of DBFlute tasks so basically -you don't need to touch them. diff --git a/dbflute_mysql/build.properties b/dbflute_mysql/build.properties deleted file mode 100644 index 180616169..000000000 --- a/dbflute_mysql/build.properties +++ /dev/null @@ -1,5 +0,0 @@ - -# ------------------------------------------------------------------- -# P R O J E C T -# ------------------------------------------------------------------- -torque.project = fess diff --git a/dbflute_mysql/dfprop/_readme.txt b/dbflute_mysql/dfprop/_readme.txt deleted file mode 100644 index e839c244e..000000000 --- a/dbflute_mysql/dfprop/_readme.txt +++ /dev/null @@ -1,35 +0,0 @@ -Directory for DBFlute properties - -Required (Basic) Properties: -o basicInfoMap.dfprop -o databaseInfoMap.dfprop -At first, you should set these properties -before executions of DBFlute tasks. - -Properties for additional informations: -o additionalForeignKeyMap.dfprop -o additionalPrimaryKeyMap.dfprop -o additionalUniqueKeyMap.dfprop -o additionalTableMap.dfprop - -Properties for implementation environments: -o commonColumnMap.dfprop -o classificationDefinitionMap.dfprop -o classificationDeploymentMap.dfprop -o optimisticLockDefinitionMap.dfprop -o outsideSqlDefinitionMap.dfprop -o sequenceDefinitionMap.dfprop -o dependencyInjectionMap.dfprop -o littleAdjustmentMap.dfprop -o includeQueryMap.dfprop -o typeMappingMap.dfprop - -Properties for ReplaceSchema: -o replaceSchemaDefinitionMap.dfprop - -Properties for documents: -o documentDefinitionMap.dfprop - -Properties for non-functional adjustments: -o allClassCopyright.dfprop -o refreshDefinitionMap.dfprop diff --git a/dbflute_mysql/dfprop/additionalForeignKeyMap.dfprop b/dbflute_mysql/dfprop/additionalForeignKeyMap.dfprop deleted file mode 100644 index 3af6efe35..000000000 --- a/dbflute_mysql/dfprop/additionalForeignKeyMap.dfprop +++ /dev/null @@ -1,57 +0,0 @@ -# /--------------------------------------------------------------------------- -# additionalForeignKeyMap: (NotRequired - Default map:{}) -# -# If foreign key does not exist in your database, -# you can set up here as virtual foreign key for DBFlute. -# -# And it's one-to-one relation if you add one fixed condition to referrer table, -# you can set virtual foreign key with fixedCondition and fixedSuffix. -# And you can use it to view objects too. -# -# If local column name is same as foreign column name, -# you can omit the setting of localColumnName and foreignColumnName. -# The names are treated as case insensitive. -# -# Example: -# map:{ -# ; FK_MEMBER_MEMBER_STATUS_CODE = map:{ -# ; localTableName = MEMBER ; foreignTableName = MEMBER_STATUS -# ; localColumnName = MEMBER_STATUS_CODE ; foreignColumnName = MEMBER_STATUS_CODE -# } -# ; FK_PURCHASE_MEMBER_ID = map:{ -# ; localTableName = PURCHASE ; foreignTableName = MEMBER -# } -# ; FK_MEMBER_MEMBER_ADDRESS_VALID = map:{ -# ; localTableName = MEMBER ; foreignTableName = MEMBER_ADDRESS -# ; localColumnName = MEMBER_ID ; foreignColumnName = MEMBER_ID -# ; fixedCondition = -# $$foreignAlias$$.VALID_BEGIN_DATE <= /*targetDate(Date)*/null -# and $$foreignAlias$$.VALID_END_DATE >= /*targetDate(Date)*/null -# ; fixedSuffix = AsValid -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; FK_MEMBER_MEMBER_STATUS_CODE = map:{ - # ; localTableName = MEMBER ; foreignTableName = MEMBER_STATUS - # ; localColumnName = MEMBER_STATUS_CODE ; foreignColumnName = MEMBER_STATUS_CODE - #} - ;FK_REQUEST_HEADER_WEB_CRAWLING_CONFIG = map:{ localTableName = REQUEST_HEADER; localColumnName = WEB_CRAWLING_CONFIG_ID; foreignTableName = WEB_CRAWLING_CONFIG; foreignColumnName = ID } - ;FK_WEB_AUTHENTICATION_WEB_CRAWLING_CONFIG = map:{ localTableName = WEB_AUTHENTICATION; localColumnName = WEB_CRAWLING_CONFIG_ID; foreignTableName = WEB_CRAWLING_CONFIG; foreignColumnName = ID } - ;FK_CRAWLING_SESSION_INFO_CRAWLING_SESSION = map:{ localTableName = CRAWLING_SESSION_INFO; localColumnName = CRAWLING_SESSION_ID; foreignTableName = CRAWLING_SESSION; foreignColumnName = ID } - ;FK_FILE_CONFIG_TO_LABEL_TYPE_MAPPING_LABEL_TYPE = map:{ localTableName = FILE_CONFIG_TO_LABEL_TYPE_MAPPING; localColumnName = LABEL_TYPE_ID; foreignTableName = LABEL_TYPE; foreignColumnName = ID } ;FK_FILE_CONFIG_TO_LABEL_TYPE_MAPPING_FILE_CRAWLING_CONFIG = map:{ localTableName = FILE_CONFIG_TO_LABEL_TYPE_MAPPING; localColumnName = FILE_CONFIG_ID; foreignTableName = FILE_CRAWLING_CONFIG; foreignColumnName = ID } - ;FK_WEB_CONFIG_TO_LABEL_TYPE_MAPPING_LABEL_TYPE = map:{ localTableName = WEB_CONFIG_TO_LABEL_TYPE_MAPPING; localColumnName = LABEL_TYPE_ID; foreignTableName = LABEL_TYPE; foreignColumnName = ID } ;FK_WEB_CONFIG_TO_LABEL_TYPE_MAPPING_WEB_CRAWLING_CONFIG = map:{ localTableName = WEB_CONFIG_TO_LABEL_TYPE_MAPPING; localColumnName = WEB_CONFIG_ID; foreignTableName = WEB_CRAWLING_CONFIG; foreignColumnName = ID } - ;FK_FILE_CONFIG_TO_ROLE_TYPE_MAPPING_FILE_CRAWLING_CONFIG = map:{ localTableName = FILE_CONFIG_TO_ROLE_TYPE_MAPPING; localColumnName = FILE_CONFIG_ID; foreignTableName = FILE_CRAWLING_CONFIG; foreignColumnName = ID } ;FK_FILE_CONFIG_TO_ROLE_TYPE_MAPPING_ROLE_TYPE = map:{ localTableName = FILE_CONFIG_TO_ROLE_TYPE_MAPPING; localColumnName = ROLE_TYPE_ID; foreignTableName = ROLE_TYPE; foreignColumnName = ID } - ;FK_WEB_CONFIG_TO_ROLE_TYPE_MAPPING_WEB_CRAWLING_CONFIG = map:{ localTableName = WEB_CONFIG_TO_ROLE_TYPE_MAPPING; localColumnName = WEB_CONFIG_ID; foreignTableName = WEB_CRAWLING_CONFIG; foreignColumnName = ID } ;FK_WEB_CONFIG_TO_ROLE_TYPE_MAPPING_ROLE_TYPE = map:{ localTableName = WEB_CONFIG_TO_ROLE_TYPE_MAPPING; localColumnName = ROLE_TYPE_ID; foreignTableName = ROLE_TYPE; foreignColumnName = ID } - ;FK_DATA_CONFIG_TO_ROLE_TYPE_MAPPING_DATA_CRAWLING_CONFIG = map:{ localTableName = DATA_CONFIG_TO_ROLE_TYPE_MAPPING; localColumnName = DATA_CONFIG_ID; foreignTableName = DATA_CRAWLING_CONFIG; foreignColumnName = ID } ;FK_DATA_CONFIG_TO_ROLE_TYPE_MAPPING_ROLE_TYPE = map:{ localTableName = DATA_CONFIG_TO_ROLE_TYPE_MAPPING; localColumnName = ROLE_TYPE_ID; foreignTableName = ROLE_TYPE; foreignColumnName = ID } - ;FK_DATA_CONFIG_TO_LABEL_TYPE_MAPPING_DATA_CRAWLING_CONFIG = map:{ localTableName = DATA_CONFIG_TO_LABEL_TYPE_MAPPING; localColumnName = DATA_CONFIG_ID; foreignTableName = DATA_CRAWLING_CONFIG; foreignColumnName = ID } ;FK_DATA_CONFIG_TO_LABEL_TYPE_MAPPING_LABEL_TYPE = map:{ localTableName = DATA_CONFIG_TO_LABEL_TYPE_MAPPING; localColumnName = LABEL_TYPE_ID; foreignTableName = LABEL_TYPE; foreignColumnName = ID } - ;FK_SEARCH_LOG_USER_INFO = map:{ localTableName = SEARCH_LOG; localColumnName = USER_ID; foreignTableName = USER_INFO; foreignColumnName = ID } - ;FK_LABEL_TYPE_TO_ROLE_TYPE_MAPPING_LABEL_TYPE = map:{ localTableName = LABEL_TYPE_TO_ROLE_TYPE_MAPPING; localColumnName = LABEL_TYPE_ID; foreignTableName = LABEL_TYPE; foreignColumnName = ID } ;FK_LABEL_TYPE_TO_ROLE_TYPE_MAPPING_ROLE_TYPE = map:{ localTableName = LABEL_TYPE_TO_ROLE_TYPE_MAPPING; localColumnName = ROLE_TYPE_ID; foreignTableName = ROLE_TYPE; foreignColumnName = ID } - ;FK_CLICK_LOG_SEARCH_LOG = map:{ localTableName = CLICK_LOG; localColumnName = SEARCH_ID; foreignTableName = SEARCH_LOG; foreignColumnName = ID } - ;FK_FILE_AUTHENTICATION_FILE_CRAWLING_CONFIG = map:{ localTableName = FILE_AUTHENTICATION; localColumnName = FILE_CRAWLING_CONFIG_ID; foreignTableName = FILE_CRAWLING_CONFIG; foreignColumnName = ID } - ;FK_SEARCH_FIELD_LOG_SEARCH_LOG = map:{ localTableName = SEARCH_FIELD_LOG; localColumnName = SEARCH_ID; foreignTableName = SEARCH_LOG; foreignColumnName = ID } - ;FK_FAVORITE_LOG_USER_INFO = map:{ localTableName = FAVORITE_LOG; localColumnName = USER_ID; foreignTableName = USER_INFO; foreignColumnName = ID } -} -# ----------------/ diff --git a/dbflute_mysql/dfprop/additionalPrimaryKeyMap.dfprop b/dbflute_mysql/dfprop/additionalPrimaryKeyMap.dfprop deleted file mode 100644 index 75b350dad..000000000 --- a/dbflute_mysql/dfprop/additionalPrimaryKeyMap.dfprop +++ /dev/null @@ -1,26 +0,0 @@ -# /--------------------------------------------------------------------------- -# additionalPrimaryKeyMap: (NotRequired - Default map:{}) -# -# If primary key does not exist in your database, -# you can set up here as virtual primary key for DBFlute. -# And you can use it to view objects too. -# The names are treated as case insensitive. -# -# Example: -# map:{ -# ; PK_MEMBER = map:{ -# ; tableName = MEMBER ; columnName = MEMBER_ID -# } -# ; PK_PURCHASE = map:{ -# ; tableName = PURCHASE ; columnName = PURCHASE_ID -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; PK_MEMBER = map:{ - # ; tableName = MEMBER ; columnName = MEMBER_ID - #} -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_mysql/dfprop/additionalTableMap.dfprop b/dbflute_mysql/dfprop/additionalTableMap.dfprop deleted file mode 100644 index 6a670a1c9..000000000 --- a/dbflute_mysql/dfprop/additionalTableMap.dfprop +++ /dev/null @@ -1,42 +0,0 @@ -# /--------------------------------------------------------------------------- -# additionalTableMap: (NotRequired - Default map:{}) -# -# This property is valid at only JDBC task. -# You should use this when JDBC can not provide table information -# and when you have no table but call stored procedures only. -# -# The element 'columnMap' is only required in table elements. -# The element 'type' is only required in column elements. -# -# Specification: -# map: { -# [table-name] = map:{ -# columnMap = map:{ -# [column-name] = map:{ -# type = [column JDBC type] ; dbType = [column DB type] -# ; required = [true or false] ; size = [column size] -# ; primaryKey = [true or false] ; pkName = [PK constraint name] -# ; autoIncrement = [true or false] -# ; default = [default value] ; comment = [column comment] -# } -# } -# ; comment = [table comment] -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; FOO_TABLE = map:{ - # ; columnMap = map:{ - # FOO_ID = map:{ type = INTEGER ; dbType = INTEGER - # ; required = true ; primaryKey = true ; autoIncrement = true - # } - # FOO_NAME = map:{ type = VARCHAR ; required = true ; size = 123 } - # FOO_DATE = map:{ type = DATE } - # } - #} -} -# ----------------/ -# -# *Refer to typeMappingMap.dfprop for JDBC type reference. diff --git a/dbflute_mysql/dfprop/additionalUniqueKeyMap.dfprop b/dbflute_mysql/dfprop/additionalUniqueKeyMap.dfprop deleted file mode 100644 index c3b2ea909..000000000 --- a/dbflute_mysql/dfprop/additionalUniqueKeyMap.dfprop +++ /dev/null @@ -1,26 +0,0 @@ -# /--------------------------------------------------------------------------- -# additionalUniqueKeyMap: (NotRequired - Default map:{}) -# -# If unique key does not exist in your database, -# you can set up here as virtual unique key for DBFlute. -# And you can use it to view objects too. -# The names are treated as case insensitive. -# -# Example: -# map:{ -# ; UQ_MEMBER = map:{ -# ; tableName = MEMBER ; columnName = MEMBER_ACCOUNT -# } -# ; UQ_PRODUCT = map:{ -# ; tableName = PRODUCT ; columnName = PRODUCT_HANDLE_CODE -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; UQ_MEMBER = map:{ - # ; tableName = MEMBER ; columnName = MEMBER_ACCOUNT - #} -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_mysql/dfprop/allClassCopyright.dfprop b/dbflute_mysql/dfprop/allClassCopyright.dfprop deleted file mode 100644 index 737b875bf..000000000 --- a/dbflute_mysql/dfprop/allClassCopyright.dfprop +++ /dev/null @@ -1,11 +0,0 @@ -# /--------------------------------------------------------------------------- -# allClassCopyright: (NotRequired - Default '') -# -# The copyright for all classes. -# This property is NOT map style. -# You should specify before your first generating. -# -#/* -# * Copyright(c) DBFlute TestCo.,TestLtd. All Rights Reserved. -# */ -# ----------------/ \ No newline at end of file diff --git a/dbflute_mysql/dfprop/basicInfoMap.dfprop b/dbflute_mysql/dfprop/basicInfoMap.dfprop deleted file mode 100644 index 1e3472dd9..000000000 --- a/dbflute_mysql/dfprop/basicInfoMap.dfprop +++ /dev/null @@ -1,220 +0,0 @@ -# /--------------------------------------------------------------------------- -# basicInfoMap: (Required) -# -# The basic information for the tasks of DBFlute. -# You should specify before your first generating. -# -# Core Properties: -# o database: (Required) -# o targetLanguage: (Required) -# o targetContainer: (Required) -# o packageBase: (Required) -# -# Adjustment Properties: -# o generateOutputDirectory: (NotRequired - Default Java:'../src/main/java' CSharp:'../source') -# o resourceOutputDirectory: (NotRequired - Default '../resources') -# o isTableNameCamelCase: (NotRequired - Default false) -# o isColumnNameCamelCase: (NotRequired - Default false) -# o projectPrefix: (NotRequired - Default '') -# o classAuthor: (NotRequired - Default 'DBFlute(AutoGenerator)') -# o sourceFileEncoding: (NotRequired - Default 'UTF-8') -# o sourceCodeLineSeparator: (NotRequired - Default no setting) -# o applicationBehaviorMap: (NotRequired - Default map:{}) -# o outputPackageAdjustmentMap: (NotRequired - Default map:{}) -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o database: (Required) - # This is the target database, only considered when generating - # the SQL for your DBFlute project. - # Your possible choices are: - # - # mysql, postgresql, oracle, db2, sqlserver, - # h2, derby, (sqlite, msaccess) - # - ; database = mysql - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetLanguage: (Required) - # The target language. - # Your possible choices are: - # - # java, csharp, scala - # - ; targetLanguage = java - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetContainer: (Required) - # The target DI container. - # If your target language is 'csharp', you can specify 'seasar' only. - # Your possible choices are: - # - # seasar, spring, guice, cdi - # - ; targetContainer = seasar - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o packageBase: (Required) - # The base directory of package for generated class. - # The class package is 'this property value + detail package value'. - # However, detail packages have default value so basically - # you only have to specify the property 'packageBase'. - # If this property is specified and detail package properties is not specified, - # Then the packages of generated class are as follows: - # - # e.g. packageBase = com.example.dbflute.basic.dbflute - # --> com.example.dbflute.basic.dbflute.allcommon - # --> com.example.dbflute.basic.dbflute.bsbhv - # --> com.example.dbflute.basic.dbflute.bsentity - # --> com.example.dbflute.basic.dbflute.cbean - # --> com.example.dbflute.basic.dbflute.exbhv - # --> com.example.dbflute.basic.dbflute.exentity - # - ; packageBase = jp.sf.fess.db - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o generateOutputDirectory: (NotRequired - Default Java:'../src/main/java' CSharp:'../source') - # The base output directory for generating. - # Basically you don't need to specify this if the project style is as follows: - # - # *Java Project Style - # If this value is '../src/main/java' and your project is under the Maven, - # you don't need to set up this property! - # - # {app-project} - # | - # |-dbflute_[project] - # | |-dfprop - # | |-... - # | - # |-src/main/java // *Here! - # |-src/main/resources - # |-... - # - # *CSharp Project Style - # [app-solution]/dbflute_[project]/dfprop - # [app-solution]/mydbflute/dbflute-0.9.6 - # [app-solution]/source/[app-solution].sln - # [app-solution]/source/[app-project(top-namespace)]/[part-namespace]/AllCommon - # [app-solution]/source/[app-project(top-namespace)]/[part-namespace]/BsBhv - # [app-solution]/source/[app-project(top-namespace)]/[part-namespace]/... - # [app-solution]/source/[app-project(top-namespace)]/Resources/... - # - #; generateOutputDirectory = ../src/main/java - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o resourceOutputDirectory: (NotRequired - Default '../resources') - # The base output directory for resource files that contain DI configurations. - # Basically you don't need to specify this if your project is under the Maven. - # - #; resourceOutputDirectory = ../resources - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isTableNameCamelCase: (NotRequired - Default false) - # Is the table name camel case? - # Basically you don't need this if the style of table name is like 'FOO_STATUS'. - # [true] - # The table name is camel case. - # e.g. If the table name is 'OrderDetail', the class name is 'OrderDetail'. - # - # [false] - # e.g. If the table name is 'ORDER_DETAIL', the class name is 'OrderDetail'. - # e.g. If the table name is 'OrderDetail', the class name is 'Orderdetail'. - # - #; isTableNameCamelCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isColumnNameCamelCase: (NotRequired - Default false) - # Is the column name camel case? - # Basically you don't need this if the style of column name is like 'FOO_NAME'. - # [true] - # The column name is camel case. - # e.g. If the column name is 'OrderDetailId', the class name is 'OrderDetailId'. - # - # [false] - # e.g. If the column name is 'ORDER_DETAIL_ID', the class name is 'OrderDetailId'. - # e.g. If the column name is 'OrderDetailId', the class name is 'Orderdetailid'. - # - #; isColumnNameCamelCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o projectPrefix: (NotRequired - Default '') - # If the value is 'Ld', all class names are 'LdXxx'. - # Basically you don't need this if you don't want the common prefix of class name. - # - #; projectPrefix = Ld - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o classAuthor: (NotRequired - Default 'DBFlute(AutoGenerator)') - # The value of the author tag in java-doc of generated classes. - # All classes are target. - # - # @JavaOnly - #; classAuthor = DBFlute(AutoGenerator) - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sourceFileEncoding: (NotRequired - Default 'UTF-8') - # The value of an encoding for source files that are generated classes. - # If source files of your project are not UTF-8, specify your encoding here. - # - #; sourceFileEncoding = UTF-8 - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sourceCodeLineSeparator: (NotRequired - Default no setting) - # The line separator setting for source code of generated classes. - # LF -> converted to LF - # CRLF -> converted to CRLF - # (no setting) -> no convert (template default is CRLF) - # - #; sourceCodeLineSeparator = LF - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o applicationBehaviorMap: (NotRequired - Default map:{}) - # The settings for Application Behavior. - # Elements of this map are as below: - # o isApplicationBehaviorProject: (NotRequired - Default false) - # Does the project is for application behaviors? - # This property is a main signal for Application Behavior. - # Other properties (for Application Behavior) work when this is true. - # o libraryProjectPackageBase: (NotRequired - Default same as application's one) - # If application package base is different from library's one, - # set the property a value 'library's one'. - # - #; applicationBehaviorMap = map:{ - # ; isApplicationBehaviorProject = false - # ; libraryProjectPackageBase = - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o outputPackageAdjustmentMap: (NotRequired - Default map:{}) - # The adjustments for output package. - # Elements of this map are as below: - # o flatDirectoryPackage: (Required - Default '') - # This is only for CSharp. - # e.g. Aaa.Bbb.DBFlute --> Directory: source/Aaa.Bbb.DBFlute/AllCommon - # o omitDirectoryPackage: (NotRequired - Default '') - # This is only for CSharp. - # e.g. Aaa --> Directory: source/Bbb/DBFlute/AllCommon - # - #; outputPackageAdjustmentMap = map:{ - # ; flatDirectoryPackage = Aaa.Bbb.DBFlute - # ; omitDirectoryPackage = Aaa - #} - # - - - - - - - - - -/ -} -# ----------------/ diff --git a/dbflute_mysql/dfprop/classificationDefinitionMap.dfprop b/dbflute_mysql/dfprop/classificationDefinitionMap.dfprop deleted file mode 100644 index 12949781c..000000000 --- a/dbflute_mysql/dfprop/classificationDefinitionMap.dfprop +++ /dev/null @@ -1,69 +0,0 @@ -# /--------------------------------------------------------------------------- -# classificationDefinitionMap: (NotRequired - Default map:{}) -# -# The definition of classification. -# -# Specification: -# map: { -# [classification-name] = list:{ -# ; map:{ -# ; topComment=[comment]; codeType=[String(default) or Number or Boolean]} -# ; isCheckImplicitSet=[true or false(default)] -# ; isUseDocumentOnly=[true or false(default)] -# ; isSuppressAutoDeploy=[true or false(default)] -# ; groupingMap = map:{ -# ; [group-name] = map:{ -# ; groupComment=[comment] -# ; elementList=list:{[the list of classification element's name]} -# } -# } -# } -# # classification elements for implicit classification -# ; map:{ -# ; code=[code]; name=[name]; alias=[alias]; comment=[comment] -# ; sisterCode=[code or code-list]; subItemMap=map:{[free-map]} -# } -# # settings for table classification -# ; map:{ -# ; table=[table-name] -# ; code=[column-name for code]; name=[column-name for name] -# ; alias=[column-name for alias]; comment=[column-name for comment]} -# ; where=[condition for select]; orderBy=[column-name for ordering] -# ; exceptCodeList=[the list of except code] -# } -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - # example for implicit classification - #; Flg = list:{ - # ; map:{topComment=general boolean classification for every flg-column; codeType=Number} - # ; map:{code=1; name=True ; alias=Checked ; comment=means yes; sisterCode=true} - # ; map:{code=0; name=False; alias=Unchecked; comment=means no ; sisterCode=false} - #} - # example for table classification - #; MemberStatus = list:{ - # ; map:{topComment=status of member from entry to withdrawal; codeType=String} - # ; map:{ - # ; table=MEMBER_STATUS - # ; code=MEMBER_STATUS_CODE; name=MEMBER_STATUS_NAME - # ; comment=DESCRIPTION; orderBy=DISPLAY_ORDER - # } - #} - ; ProcessType = list:{ - ; map:{topComment=Processing Type} - ; map:{code=C;name=Crawling;alias=Crawling;comment=Process When Crawling} - ; map:{code=D;name=Displaying;alias=Displaying;comment=Process When Displaying} - ; map:{code=B;name=Both;alias=Both;comment=Process When Crawling/Displaying} - } - ; AccessType = list:{ - ; map:{topComment=Access Type} - ; map:{code=W;name=Web;alias=Web;comment=Web} - ; map:{code=X;name=Xml;alias=Xml;comment=Xml} - ; map:{code=J;name=Json;alias=Json;comment=Json} - ; map:{code=O;name=Others;alias=Others;comment=Others} - } -} -# ----------------/ diff --git a/dbflute_mysql/dfprop/classificationDeploymentMap.dfprop b/dbflute_mysql/dfprop/classificationDeploymentMap.dfprop deleted file mode 100644 index 1f3dae622..000000000 --- a/dbflute_mysql/dfprop/classificationDeploymentMap.dfprop +++ /dev/null @@ -1,27 +0,0 @@ -# /--------------------------------------------------------------------------- -# classificationDeploymentMap: (NotRequired - Default map:{}) -# -# The relation between column and classification. -# -# This property uses classification names of classificationDefinitionMap. -# The table name '$$ALL$$' means all tables are target. -# The table names and column names are treated as case insensitive. -# -# You don't need specify here about table classifications. -# Because table classifications are auto-deployed by relation information. -# -# Specification: -# map: { -# [table-name or $$ALL$$] = map:{ -# ; [column-name (with hint)]=[classification-name] -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; $$ALL$$ = map:{suffix:_FLG=Flg} - ; PATH_MAPPING = map:{PROCESS_TYPE=ProcessType} - ; SEARCH_LOG = map:{ACCESS_TYPE=AccessType} -} -# ----------------/ diff --git a/dbflute_mysql/dfprop/commonColumnMap.dfprop b/dbflute_mysql/dfprop/commonColumnMap.dfprop deleted file mode 100644 index 862d45c8f..000000000 --- a/dbflute_mysql/dfprop/commonColumnMap.dfprop +++ /dev/null @@ -1,49 +0,0 @@ -# /--------------------------------------------------------------------------- -# commonColumnMap: (Default map:{}) -# -# The definition of common column(contains auto set-up). -# For example, the date you registered the record, -# the user who updated the record and so on... -# The column names are treated as case insensitive. -# -# The variable '$$AccessContext$$' means allcommon.AccessContext. -# -# Example: -# map:{ -# ; commonColumnMap = map:{ -# ; REGISTER_DATETIME=TIMESTAMP ; REGISTER_USER=VARCHAR -# ; UPDATE_DATETIME=TIMESTAMP ; UPDATE_USER=VARCHAR -# } -# ; beforeInsertMap = map:{ -# ; REGISTER_DATETIME = $$AccessContext$$.getAccessTimestampOnThread() -# ; REGISTER_USER = $$AccessContext$$.getAccessUserOnThread() -# ; UPDATE_DATETIME = entity.getRegisterDatetime() -# ; UPDATE_USER = entity.getRegisterUser() -# } -# ; beforeUpdateMap = map:{ -# ; UPDATE_DATETIME = $$AccessContext$$.getAccessTimestampOnThread() -# ; UPDATE_USER = $$AccessContext$$.getAccessUserOnThread() -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; commonColumnMap = map:{ - # ; REGISTER_DATETIME=TIMESTAMP ; REGISTER_USER=VARCHAR - # ; UPDATE_DATETIME=TIMESTAMP ; UPDATE_USER=VARCHAR - #} - #; beforeInsertMap = map:{ - # ; REGISTER_DATETIME = $$AccessContext$$.getAccessTimestampOnThread() - # ; REGISTER_USER = $$AccessContext$$.getAccessUserOnThread() - # ; UPDATE_DATETIME = entity.getRegisterDatetime() - # ; UPDATE_USER = entity.getRegisterUser() - #} - #; beforeUpdateMap = map:{ - # ; UPDATE_DATETIME = $$AccessContext$$.getAccessTimestampOnThread() - # ; UPDATE_USER = $$AccessContext$$.getAccessUserOnThread() - #} -} -# ----------------/ -# -# *Refer to typeMappingMap.dfprop for JDBC type reference. diff --git a/dbflute_mysql/dfprop/databaseInfoMap.dfprop b/dbflute_mysql/dfprop/databaseInfoMap.dfprop deleted file mode 100644 index d497b7c20..000000000 --- a/dbflute_mysql/dfprop/databaseInfoMap.dfprop +++ /dev/null @@ -1,112 +0,0 @@ -# /--------------------------------------------------------------------------- -# databaseInfoMap: (Required) -# -# The database information for the tasks of DBFlute. -# You should specify before your first generating. -# -# o driver -- The class name of JDBC-Driver. -# o url -- The URL for connecting database. -# o schema -- The schema name. -# o user -- The database user name. -# o password -- The database password. -# o propertiesMap -- The properties that depends on the database. -# o variousMap -- The various settings about JDBC task. -# -# *The line that starts with '#' means comment-out. -# -map:{ - ; driver = com.mysql.jdbc.Driver - ; url = jdbc:mysql://localhost:3306/fess_db?noDatetimeStringSync=true&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true - ; schema = - ; user = fess_user - ; password = fess_pass - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o propertiesMap: (NotRequired - Default map:{}) - # The properties that depends on the database. - # - ; propertiesMap = map:{ - # If you use Oracle and its Synonym, specify this property. - #; includeSynonyms=true - } - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o variousMap: (NotRequired - Default map:{}) - # The various settings about JDBC task mainly. - # - ; variousMap = map:{ - # o objectTypeTargetList: (NotRequired - Default list:{TABLE;VIEW}) - # If you want to include other object types in generating target, - # you should specify the list of included object types as adding. - # e.g. Synonym of Oracle --> list:{TABLE ; VIEW ; SYNONYM} - # This is only for the main schema. Additional schemas are unconcerned. - # However ReplaceSchema and Sql2Entity task also uses this. - # But you can set ReplaceSchema-original setting in its own dfprop. - # - #; objectTypeTargetList = list:{TABLE ; VIEW} - - # o tableExceptList: (NotRequired - Default list:{}) - # If you want to exclude some tables in generating target, - # you should specify the list of excepted table hints. - # e.g. list:{PRODUCT_STATUS ; prefix:TMP_} - # This is only for the main schema. Additional schemas are unconcerned. - # And ReplaceSchema task basically ignores this. - # - # Normally this 'except' means no getting meta data for excepted tables. - # (so the tables are not existing in SchemaHTML and HistoryHTML and so on). - # But you can specify the '@gen' suffix that means generate-only except. - # A table with the mark can be treated as documents but no generating classes. - # - #; tableExceptList = list:{FOO_TABLE@gen ; prefix:FOO_@gen ; suffix:_FOO ; contain:_FOO_} - - # o tableTargetList: (NotRequired - Default list:{}) - # If you want to include some tables in generating target expressly, - # you should specify the list of target table hints. - # e.g. list:{PURCHASE ; contain:MEMBER} - # This is only for the main schema. Additional schemas are unconcerned. - # And ReplaceSchema task basically ignores this. - # - #; tableTargetList = list:{FOO_TABLE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - - # o columnExceptMap: (NotRequired - Default map:{}) - # If you want to exclude some columns in generating target, - # you should specify the list of excepted column hints. - # e.g. map:{HEAVY_MASTER = list:{APP_NOT_USED_ID; suffix:_IMAGE}} - # This is only for the main schema. Additional schemas are unconcerned. - # - #; columnExceptMap = map:{ - # ; FOO_TABLE = list:{FOO_COLUMN ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - #} - - # o additionalSchemaMap: (NotRequired - Default map:{}) - # If you want to include other schemas in generating target, - # you should specify the map of included schemas. - # Additional schemas have original settings apart from the main schema. - # The settings are objectTypeTargetList, tableExceptList, - # tableTargetList, and columnExceptMap. - # They have the same specification as ones of the main schema. - # Elements of this map are as below: - # o objectTypeTargetList: (NotRequired - Default 'map:{TABLE;VIEW}') - # o tableExceptList: (NotRequired - Default list:{}) - # o tableTargetList: (NotRequired - Default list:{}) - # o columnExceptMap: (NotRequired - Default map:{}) - # o isSuppressCommonColumn: (NotRequired - Default false) - # o isSuppressProcedure: (NotRequired - Default false) - # - #; additionalSchemaMap = map:{ - # ; NEXTEXAMPLEDB = map:{ - # ; objectTypeTargetList=list:{TABLE ; VIEW} - # ; tableExceptList=list:{FOO_TABLE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # ; tableTargetList=list:{FOO_TABLE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # ; columnExceptMap=map:{ - # ; FOO_TABLE = list:{FOO_COLUMN ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # } - # ; isSuppressCommonColumn=false - # ; isSuppressProcedure=false - # } - #} - } - # - - - - - - - - - -/ -} -# ----------------/ diff --git a/dbflute_mysql/dfprop/dependencyInjectionMap.dfprop b/dbflute_mysql/dfprop/dependencyInjectionMap.dfprop deleted file mode 100644 index ff7425604..000000000 --- a/dbflute_mysql/dfprop/dependencyInjectionMap.dfprop +++ /dev/null @@ -1,116 +0,0 @@ -# /--------------------------------------------------------------------------- -# dependencyInjectionMap: (NotRequired - Default map:{}) -# -# The various settings about dependency injection(DI Container). -# -# {Java} Seasar Only: -# o dbfluteDiconNamespace: (NotRequired - Default 'dbflute') -# o dbfluteDiconPackageName (NotRequired - Default '../resources') -# o dbfluteDiconFileName: (NotRequired - Default 'dbflute.dicon') -# o j2eeDiconResourceName: (NotRequired - Default 'j2ee.dicon') -# o dbfluteDiconBeforeJ2eeIncludeDefinitionMap: (NotRequired - Default map:{}) -# o dbfluteDiconOtherIncludeDefinitionMap: (NotRequired - Default map:{}) -# -# {Java} Spring and Lucy Only: -# o dbfluteBeansPackageName (NotRequired - Default '../resources') -# o dbfluteBeansFileName: (NotRequired - Default 'dbfluteBeans.xml') -# o dbfluteBeansDataSourceName: (NotRequired - Default 'dataSource') -# o dbfluteBeansDefaultAttribute: (NotRequired - Default '') -# -# {CSharp} Quill(CSharp Seasar) Only: -# o quillDataSourceName: (NotRequired - Default '') -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconNamespace: (NotRequired - Default 'dbflute') - # The namespace of DBFlute DI configuration. - # - # @JavaSeasarOnly - #; dbfluteDiconNamespace = dbflute - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconPackageName (NotRequired - Default '../resources') - # The package name(output directory) of DBFlute DI configuration for Seasar. - # - # @JavaSeasarOnly - #; dbfluteDiconPackageName = ../resources - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconFileName: (NotRequired - Default 'dbflute.dicon') - # The file name of DBFlute DI configuration for Seasar. - # - # @JavaSeasarOnly - #; dbfluteDiconFileName = dbflute.dicon - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o j2eeDiconResourceName: (NotRequired - Default 'j2ee.dicon') - # The file name of J2EE DI configuration. - # - # @JavaSeasarOnly - #; j2eeDiconResourceName = j2ee.dicon - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconBeforeJ2eeIncludeDefinitionMap: (NotRequired - Default map:{}) - # The include definition of DBFlute DI configuration before j2ee including. - # e.g. map:{ jdbc-xxx.dicon = dummy } - # - # @JavaSeasarOnly - #; dbfluteDiconBeforeJ2eeIncludeDefinitionMap = map:{} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconOtherIncludeDefinitionMap: (NotRequired - Default map:{}) - # The other include definition of DBFlute DI configuration. - # e.g. map:{ common.dicon = dummy } - # - # @JavaSeasarOnly - #; dbfluteDiconOtherIncludeDefinitionMap = map:{} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteBeansPackageName (NotRequired - Default '../resources') - # The package name(output directory) of DBFlute DI configuration for Spring and Lucy. - # - # @JavaSpringLucyOnly - #; dbfluteBeansPackageName = ../resources - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteBeansFileName: (NotRequired - Default 'dbfluteBeans.xml') - # The file name of DBFlute DI configuration for Spring and Lucy. - # - # @JavaSpringLucyOnly - #; dbfluteBeansFileName = dbfluteBeans.xml - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteBeansDataSourceName: (NotRequired - Default 'dataSource') - # The data source name that DBFlute(Behaviors) uses. - # - # @JavaSpringLucyOnly - #; dbfluteBeansDataSourceName = exampleDataSource - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteBeansPackageName (NotRequired - Default '') - # The default attribute expression of DBFlute DI configuration for Spring and Lucy. - # - # @JavaSpringLucyOnly - #; dbfluteBeansDefaultAttribute = default-lazy-init="true" - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o quillDataSourceName: (NotRequired - Default '') - # The data source name of Quill(CSharp Seasar). - # - # @CSharpQuillOnly - #; quillDataSourceName = ExampleDB - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_mysql/dfprop/documentDefinitionMap.dfprop b/dbflute_mysql/dfprop/documentDefinitionMap.dfprop deleted file mode 100644 index a5c2672b1..000000000 --- a/dbflute_mysql/dfprop/documentDefinitionMap.dfprop +++ /dev/null @@ -1,225 +0,0 @@ -# /--------------------------------------------------------------------------- -# documentDefinitionMap: (NotRequired - Default map:{}) -# -# o documentOutputDirectory (NotRequired - Default './output/doc') -# o aliasDelimiterInDbComment (NotRequired - Default '') -# o isDbCommentOnAliasBasis (NotRequired - Default false) -# o isEntityJavaDocDbCommentValid (NotRequired - Default false) -# o isEntityDBMetaDbCommentValid (NotRequired - Default false) -# o schemaHtmlFileName (NotRequired - Default 'schema-[project-name].html') -# o isSuppressSchemaHtmlOutsideSql (NotRequired - Default false) -# o isSuppressSchemaHtmlProcedure (NotRequired - Default false) -# o historyHtmlFileName (NotRequired - Default 'history-[project-name].html') -# o isCheckColumnDefOrderDiff (NotRequired - Default false) -# o isCheckDbCommentDiff (NotRequired - Default false) -# o isCheckProcedureDiff (NotRequired - Default false) -# o loadDataReverseMap (NotRequired - Default map:{}) -# o schemaSyncCheckMap (NotRequired - Default map:{}) -# o propertiesHtmlMap: (NotRequired - Default map:{}) -# -# Example: -# map:{ -# ; documentOutputDirectory = ./output/doc -# ; aliasDelimiterInDbComment = : -# ; isDbCommentOnAliasBasis = true -# ; isEntityJavaDocDbCommentValid = true -# ; isEntityDBMetaDbCommentValid = true -# ; schemaHtmlFileName = xxx.html -# ; isSuppressSchemaHtmlOutsideSql = false -# ; isSuppressSchemaHtmlProcedure = false -# ; historyHtmlFileName = xxx.html -# ; isCheckColumnDefOrderDiff = true -# ; isCheckDbCommentDiff = true -# ; isCheckProcedureDiff = true -# ; loadDataReverseMap = map:{ -# ; recordLimit = -1 -# ; isReplaceSchemaDirectUse = true -# ; isOverrideExistingDataFile = false -# ; isSynchronizeOriginDate = false -# } -# ; schemaSyncCheckMap = map:{ -# ; url = jdbc:... -# ; schema = EXAMPLEDB -# ; user = exampuser -# ; password = exampword -# } -# ; propertiesHtmlMap = map:{ -# ; ApplicationProperties = map:{ -# ; rootFile = ../src/main/resources/application_ja.properties -# } -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o documentOutputDirectory (NotRequired - Default './output/doc') - # The output directory mainly for SchemaHtml and DataXlsTemplate. - # Basically you don't need this. - # It is considered of value that it always exists at same plain. - # - #; documentOutputDirectory = ./output/doc - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o aliasDelimiterInDbComment (NotRequired - Default '') - # If the alias exists in its DB comment like as follows: - # member name : The name of member's full name - # you can use the alias in DBFlute world, java-doc, SchemaHTML... - # DB comment which does not have the delimiter is not treated - # as alias, treated as description (real comment). - # But you can change it by 'isDbCommentOnAliasBasis'. - # - #; aliasDelimiterInDbComment = : - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isDbCommentOnAliasBasis (NotRequired - Default false) - # Is DB comment on alias basis? - # (Is DB comment alias name when it has no alias delimiter?) - # This property works with 'aliasDelimiterInDbComment'. - # - #; isDbCommentOnAliasBasis = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isEntityJavaDocDbCommentValid (NotRequired - Default true) - # Does it allow DB comment to be on java-doc? - # - #; isEntityJavaDocDbCommentValid = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isEntityDBMetaDbCommentValid (NotRequired - Default false) - # Does it allow DB comment to be on DB meta of entity? - # - #; isEntityDBMetaDbCommentValid = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o schemaHtmlFileName (NotRequired - Default 'schema-[project-name].html') - # The file name (not contain path) of SchemaHtml. - # Basically you don't need this. - # (For example, when you use Application Behavior, you need this) - # - #; schemaHtmlFileName = xxx.html - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressSchemaHtmlOutsideSql (NotRequired - Default false) - # Does it remove outsideSql information from SchemaHtml? - # Basically you don't need this. - # OutsideSql information (related to tables) is very useful. - # - #; isSuppressSchemaHtmlOutsideSql = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressSchemaHtmlProcedure (NotRequired - Default false) - # Does it remove procedure information from SchemaHtml? - # Basically you don't need this. - # Procedure information is very useful. - # - #; isSuppressSchemaHtmlProcedure = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o historyHtmlFileName (NotRequired - Default 'history-[project-name].html') - # The file name (not contain path) of HistoryHtml. - # Basically you don't need this. - # (For example, when you use Application Behavior, you need this) - # - #; historyHtmlFileName = xxx.html - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isCheckColumnDefOrderDiff (NotRequired - Default false) - # Does it check differences of column-def order? - # (except added or deleted columns) - # - #; isCheckColumnDefOrderDiff = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isCheckDbCommentDiff (NotRequired - Default false) - # Does it check differences of table or column or others comment? - # - #; isCheckDbCommentDiff = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isCheckProcedureDiff (NotRequired - Default false) - # Does it check differences of procedures? - # - #; isCheckProcedureDiff = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o loadDataReverseMap: (NotRequired - Default map:{}) - # You can set LoadDataReverse settings. - # This property is valid when the property 'recordLimit' is set. - # Elements of this map are as below: - # o recordLimit: The limit of records to output. Minus means no limit. (NotRequired - Default '') - # o isReplaceSchemaDirectUse: Does it output the data to playsql directly? (NotRequired - Default false) - # o isOverrideExistingDataFile: Does it output to existing files? (NotRequired - Default false) - # o isSynchronizeOriginDate: Does it synchronize origin date for date adjustment? (NotRequired - Default false) - # - #; loadDataReverseMap = map:{ - # ; recordLimit = -1 - # ; isReplaceSchemaDirectUse = false - # ; isOverrideExistingDataFile = false - # ; isSynchronizeOriginDate = false - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o schemaSyncCheckMap: (NotRequired - Default map:{}) - # You can set SchemaSyncCheck settings. - # This property is valid when the property 'user' is set. - # Elements of this map are as below: - # o url: The URL for connecting database. (NotRequired - Default same as databaseInfoMap) - # o schema: The schema name. (NotRequired - Default '' e.g. no setting when MySQL) - # o user: The database user name. (Required) - # o password: The database password. (NotRequired - Default '') - # - #; schemaSyncCheckMap = map:{ - # ; url = jdbc:... - # ; schema = EXAMPLEDB - # ; user = exampuser - # ; password = exampword - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o propertiesHtmlMap: (NotRequired - Default map:{}) - # You can set PropertiesHtml settings. - # Elements of this map are as below: - # o key of map: Properties Title Name - # o baseDir: base directory for directory property. (NotRequired) - # o rootFile: root file to read properties (Required) - # o environmentMap: map of environment files, the value is dir path (NotRequired) - # o diffIgnoredKeyList: list of ignored keys for differences (NotRequired) - # o maskedKeyList: list of masked keys for security (NotRequired) - # o isEnvOnlyFloatLeft: is it environment only? (and show as float-left?) (NotRequired) - # o extendsPropRequest: other request name of exnteds-properties (NotRequired) - # o isCheckImplicitOverride: does it check implicit override? (NotRequired) - # - #; propertiesHtmlMap = map:{ - # ; ApplicationProperties = map:{ - # ; baseDir = ../src - # ; rootFile = $$baseDir$$/main/resources/application_ja.properties - # ; environmentMap = map:{ - # ; integration = $$baseDir$$/integration/resources - # ; production = $$baseDir$$/production/resources - # } - # ; diffIgnoredKeyList = list:{} - # ; maskedKeyList = list:{} - # ; isEnvOnlyFloatLeft = false - # ; extendsPropRequest = null - # ; isCheckImplicitOverride = false - # } - #} - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_mysql/dfprop/includeQueryMap.dfprop b/dbflute_mysql/dfprop/includeQueryMap.dfprop deleted file mode 100644 index 6ab84be3f..000000000 --- a/dbflute_mysql/dfprop/includeQueryMap.dfprop +++ /dev/null @@ -1,99 +0,0 @@ -# /--------------------------------------------------------------------------- -# includeQueryMap: (NotRequired - Default map:{}) -# -# Specification: -# map:{ -# ; [property-type] = map:{ -# ; [condition-key] = map:{ [table] = list:{ [column] ; [column] } } -# } -# -# property-type: String, Number, Date, OrderBy, ... -# condition-key: NotEqual, GreaterThan, LessThan, GreaterEqual, LessEqual -# , InScope, NotInScope, PrefixSearch, LikeSearch, NotLikeSearch -# , EmptyString, FromTo, DateFromTo, RangeOf, ... -# , (and prefix '!' means excluding, '%' means reviving) -# table: table name (hint) or $$ALL$$ -# column: column name (hint) or $$CommonColumn$$ or $$VersionNo$$ -# -# Example: -# map:{ -# # This means that String includes GreaterThan at MEMBER.MEMBER_ACCOUNT only -# # and LessThan at PRODUCT.PRODUCT_NAME and PRODUCT.PRODUCT_HANDLE_CODE, -# # and InScope for LONGVARCHAR(e.g. text type) is excluded. -# ; String = map:{ -# ; GreaterThan = map:{ MEMBER = list:{ MEMBER_ACCOUNT } } -# ; LessThan = map:{ PRODUCT = list:{ PRODUCT_NAME ; PRODUCT_HANDLE_CODE } } -# ; !InScope = map:{ $$ALL$$ = list:{ type:LONGVARCHAR } } -# } -# # This means that Number excludes all version-no's NotEqual. -# ; Number = map:{ -# ; !NotEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } -# } -# # This means that Date does not includes NotEqual at all tables. -# ; Date = map:{ -# ; NotEqual = map:{} -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - ; String = map:{ - # [Include] - # String columns may not be needed - # to be set these condition-keys basically. - #; GreaterThan = map:{} - #; LessThan = map:{} - #; GreaterEqual = map:{} - #; LessEqual = map:{} - - # [Exclude] - # Common columns of String type may not be needed - # to be set these condition-keys basically. - #; !NotEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !GreaterThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LessThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !GreaterEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LessEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !InScope = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !NotInScope = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !PrefixSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LikeSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !NotLikeSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - } - ; Number = map:{ - # [Include] - # ... - - # [Exclude] - # VersionNo column may not be needed - # to be set these condition-keys basically. - #; !NotEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !GreaterThan = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !LessThan = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !GreaterEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !LessEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !RangeOf = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !InScope = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !NotInScope = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - } - ; Date = map:{ - # [Include] - # Date columns may not be needed - # to be set these condition-keys basically. - ; NotEqual = map:{} - ; InScope = map:{} - ; NotInScope = map:{} - - # [Exclude] - # Common columns of Date type may not be needed - # to be set these condition-keys basically. - #; !GreaterThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LessThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !GreaterEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LessEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !FromTo = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !DateFromTo = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - } -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_mysql/dfprop/littleAdjustmentMap.dfprop b/dbflute_mysql/dfprop/littleAdjustmentMap.dfprop deleted file mode 100644 index 8eef4a1ea..000000000 --- a/dbflute_mysql/dfprop/littleAdjustmentMap.dfprop +++ /dev/null @@ -1,345 +0,0 @@ -# /--------------------------------------------------------------------------- -# littleAdjustmentMap: (NotRequired - Default map:{}) -# -# The various settings about a little adjustment. -# -# o isAvailableAddingSchemaToTableSqlName: (NotRequired - Default false) -# o isAvailableAddingCatalogToTableSqlName: (NotRequired - Default false) -# o isAvailableDatabaseDependency: (NotRequired - Default false) -# o isAvailableDatabaseNativeJDBC: (NotRequired - Default false) -# o isAvailableNonPrimaryKeyWritable: (NotRequired - Default false) -# o isCheckSelectedClassification: (NotRequired - Default false) -# o isForceClassificationSetting: (NotRequired - Default false) -# o isMakeEntityChaseRelation: (NotRequired - Default false) -# o isEntityConvertEmptyStringToNull: (NotRequired - Default false) -# o isMakeConditionQueryEqualEmptyString: (NotRequired - Default false) -# o isPagingCountLater: (NotRequired - Default true) -# o isPagingCountLeastJoin: (NotRequired - Default true) -# o isInnerJoinAutoDetect: (NotRequired - Default true) -# o isTableDispNameUpperCase: (NotRequired - Default false) -# o isTableSqlNameUpperCase: (NotRequired - Default false) -# o isColumnSqlNameUpperCase: (NotRequired - Default false) -# o isMakeDeprecated: (NotRequired - Default false) -# o isMakeRecentlyDeprecated: (NotRequired - Default true) -# o extendedDBFluteInitializerClass: (NotRequired - Default '') -# o extendedImplementedInvokerAssistantClass: (NotRequired - Default '') -# o extendedImplementedCommonColumnAutoSetupperClass: (NotRequired - Default '') -# o extendedS2DaoSettingClass: (NotRequired - Default '') -# o shortCharHandlingMode: (NotRequired - Default NONE) -# o quoteTableNameList: (NotRequired - Default list:{}) -# o quoteColumnNameList: (NotRequired - Default list:{}) -# o relationalNullObjectMap: (NotRequired - Default map:{}) -# o cursorSelectFetchSize: (NotRequired - Default null) -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableAddingSchemaToTableSqlName: (NotRequired - Default false) - # [true] - # Add schema to table SQL name. (The table name on query is SCHEMA.TABLE) - # - # [false] - # Non. - # - #; isAvailableAddingSchemaToTableSqlName = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableAddingCatalogToTableSqlName: (NotRequired - Default false) - # [true] - # Add catalog to table SQL name. (The table name on query is CATALOG.SCHEMA.TABLE) - # This property works only when isAvailableAddingSchemaToTableSqlName is true. - # - # [false] - # Non. - # - #; isAvailableAddingCatalogToTableSqlName = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableDatabaseDependency: (NotRequired - Default false) - # [true] - # Generate the method that depends on the database. - # For example: cb.lockWithRR() at DB2. - # - # [false] - # Non. - # - #; isAvailableDatabaseDependency = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableDatabaseNativeJDBC: (NotRequired - Default false) - # [true] - # Use classes of database native JDBC on generated classes - # to get best performances of DB access. - # Your project needs to refer to database native JDBC. - # - # [false] - # Non. - # - #; isAvailableDatabaseNativeJDBC = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableNonPrimaryKeyWritable: (NotRequired - Default false) - # [true] - # Generate writable methods at non-primary-key table. - # - # [false] - # Non. - # - #; isAvailableNonPrimaryKeyWritable = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isCheckSelectedClassification: (NotRequired - Default false) - # [true] - # Check a code of a column related to classification - # whether it's one of classification when it's selected. - # If wrong, throws an exception (when selecting). - # - # [false] - # Non. - # - #; isCheckSelectedClassification = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isForceClassificationSetting: (NotRequired - Default false) - # [true] - # Force developer to set a code of a column related to classification - # by classification type-safe method of Entity and ConditionBean. - # A setter method of original type becomes 'protected' scope. - # - # [false] - # Non. - # - #; isForceClassificationSetting = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isMakeEntityChaseRelation: (NotRequired - Default false) - # [true] - # Make chase-relation methods of entity. - # For example: member.chaseMemberStatus().getMemberStatusName() - # This statement doesn't have a null pointer if the MemberStatus doesn't exist. - # - # [false] - # Non. - # - #; isMakeEntityChaseRelation = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isEntityConvertEmptyStringToNull: (NotRequired - Default false) - # [true] - # Convert empty-string data to null in entity. - # - # [false] - # Non. - # - #; isEntityConvertEmptyStringToNull = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isMakeConditionQueryEqualEmptyString: (NotRequired - Default false) - # [true] - # Make equal-empty-string methods of condition-query. - # For example: cb.query().setMemberName_Equal_EmptyString() - # - # [false] - # Non. - # - #; isMakeConditionQueryEqualEmptyString = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isPagingCountLater: (NotRequired - Default true) - # [true] - # The count SQL for paging are executed after paging main select. - # - # [false] - # Non. - # - #; isPagingCountLater = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isPagingCountLeastJoin: (NotRequired - Default true) - # [true] - # Join statements in count SQL of paging select are trimmed - # for performance tuning. (only countable joins are valid) - # - # [false] - # Non. - # - #; isPagingCountLeastJoin = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isInnerJoinAutoDetect: (NotRequired - Default true) - # [true] - # Joins that can be inner-join on condition-bean are auto-detected - # for performance tuning. (DBFlute uses NotNull constraint info) - # - # [false] - # Non. - # - #; isInnerJoinAutoDetect = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isTableDispNameUpperCase: (NotRequired - Default false) - # [true] - # Table names for display, e.g. on documents, - # are forcedly treated as upper case. - # - # [false] - # Non. - # - #; isTableDispNameUpperCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isTableSqlNameUpperCase: (NotRequired - Default false) - # [true] - # Table names on SQL executed by condition-bean or behavior - # are forcedly treated as upper case. (except outside-SQL) - # - # [false] - # Non. - # - #; isTableSqlNameUpperCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isColumnSqlNameUpperCase: (NotRequired - Default false) - # [true] - # Column names on SQL executed by condition-bean or behavior - # are forcedly treated as upper case. (except outside-SQL) - # - # [false] - # Non. - # - #; isColumnSqlNameUpperCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isMakeDeprecated: (NotRequired - Default false) - # [true] - # Make deprecated method and class and so on... - # *You should specify this property 'false'! - # - # [false] - # Non. - # - #; isMakeDeprecated = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isMakeRecentlyDeprecated: (NotRequired - Default true) - # [true] - # Make RECENTLY deprecated method and class and so on... - # *You should specify this property 'false'! - # - # [false] - # Non. - # - #; isMakeRecentlyDeprecated = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o extendedDBFluteInitializerClass: (NotRequired - Default '') - # If you want to extend the embedded DBFlute initializer, - # specify the class name of your original initializer - # that extends the embedded one. - # *Basically for fixed DBFluteConfig settings - # - # @JavaOnly - #; extendedDBFluteInitializerClass = com.example.ExtendedDBFluteInitializer - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o extendedImplementedInvokerAssistantClass: (NotRequired - Default '') - # If you want to extend the embedded invoker assistant, - # specify the class name of your original invoker assistant - # that extends the embedded one. - # *Basically you SHOULD NOT specify this property! - # - # @JavaOnly - #; extendedImplementedInvokerAssistantClass = com.example.ExtendedImplementedInvokerAssistant - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o extendedImplementedCommonColumnAutoSetupperClass: (NotRequired - Default '') - # If you want to extend the embedded common column auto setupper, - # specify the class name of your original common column auto setupper - # that extends the embedded one. - # *Basically you SHOULD NOT specify this property! - # - # @JavaOnly - #; extendedImplementedCommonColumnAutoSetupperClass = com.example.ExtendedImplementedCommonColumnAutoSetupper - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o extendedS2DaoSettingClass: (NotRequired - Default '') - # If you want to extend the embedded S2Dao setting, - # specify the class name of your original S2Dao setting - # that extends the embedded one. - # *Basically you SHOULD NOT specify this property! - # - # @CSharpOnly - #; extendedS2DaoSettingClass = Com.Example.ExtendedS2DaoSetting - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o shortCharHandlingMode: (NotRequired - Default NONE) - # If the parameter of condition-bean or parameter-bean has short size, - # NONE - Do nothing. (default) - # EXCEPTION - It throws an exception. - # RFILL - It fills the parameter by right spaces. - # LFILL - It fills the parameter by left spaces. - # - #; shortCharHandlingMode = NONE - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o quoteTableNameList: (NotRequired - Default list:{}) - # The list of table DB names that need to be quoted. - # Specified tables is quoted on auto-generated SQL. - # - #; quoteTableNameList = list:{} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o quoteColumnNameList: (NotRequired - Default list:{}) - # The list of column DB names that need to be quoted. - # Specified columns is quoted on auto-generated SQL. - # - #; quoteColumnNameList = list:{} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o relationalNullObjectMap: (NotRequired - Default map:{}) - # You can get a null object when the relation is null. - # - #; relationalNullObjectMap = map:{ - # ; providerPackage = $$packageBase$$.nogen.cache - # ; foreignMap = map:{ - # ; MEMBER_STATUS = CachedMemberStatus.get($$PrimaryKey$$) - # ; MEMBER_SECURITY = CachedMemberSecurity.get($$PrimaryKey$$) - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o cursorSelectFetchSize: (NotRequired - Default null) - # The fetch size of JDBC parameter for cursor select. - # For example, specify Integer.MIN_VALUE to enable fetch of MySQL. - # - #; cursorSelectFetchSize = Integer.MIN_VALUE - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_mysql/dfprop/optimisticLockDefinitionMap.dfprop b/dbflute_mysql/dfprop/optimisticLockDefinitionMap.dfprop deleted file mode 100644 index 840fe0641..000000000 --- a/dbflute_mysql/dfprop/optimisticLockDefinitionMap.dfprop +++ /dev/null @@ -1,28 +0,0 @@ -# /--------------------------------------------------------------------------- -# optimisticLockDefinitionMap: (NotRequired - Default map:{}) -# -# The definition for optimistic lock of DBFlute. -# -# o updateDateFieldName: (NotRequired - Default '') -# o versionNoFieldName: (NotRequired - Default 'VERSION_NO') -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o updateDateFieldName: (NotRequired - Default '') - # The column name of update date for optimistic lock. - # - #; updateDateFieldName = UPDATE_DATE - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o versionNoFieldName: (NotRequired - Default 'VERSION_NO') - # The column name of version no for optimistic lock. - # Basically you don't need this if your tables have the column 'VERSION_NO'. - # because the default value is 'VERSION_NO'. - # - #; versionNoFieldName = VERSION_NO - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_mysql/dfprop/outsideSqlDefinitionMap.dfprop b/dbflute_mysql/dfprop/outsideSqlDefinitionMap.dfprop deleted file mode 100644 index 0026e15b6..000000000 --- a/dbflute_mysql/dfprop/outsideSqlDefinitionMap.dfprop +++ /dev/null @@ -1,187 +0,0 @@ -# /--------------------------------------------------------------------------- -# outsideSqlDefinitionMap: (NotRequired - Default map:{}) -# -# The various settings about outsideSql. -# -# o isGenerateProcedureParameterBean: (NotRequired - Default false) -# o isGenerateProcedureCustomizeEntity: (NotRequired - Default false) -# o targetProcedureCatalogList: (NotRequired - Default list:{}) -# o targetProcedureSchemaList: (NotRequired - Default list:{}) -# o targetProcedureNameList: (NotRequired - Default list:{}) -# o executionMetaProcedureNameList: (NotRequired - Default list:{}) -# o procedureSynonymHandlingType: (NotRequired - Default NONE) -# o isRequiredSqlTitle: (NotRequired - Default false) -# o isRequiredSqlDescription: (NotRequired - Default false) -# o sqlFileEncoding: (NotRequired - Default 'UTF-8') -# o sqlDirectory: (NotRequired - Default generateOutputDirectory & resourceOutputDirectory) -# o sql2EntityOutputDirectory: (NotRequired - Default generateOutputDirectory) -# o applicationOutsideSqlMap: (NotRequired - Default map:{}) -# o sqlPackage: (NotRequired - Default all packages) -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isGenerateProcedureParameterBean: (NotRequired - Default false) - # [true] - # The parameter beans for procedure are auto-generated. - # If you call the procedure from DBFlute, you should specify 'true'! - # - # [false] - # Non. - # - ; isGenerateProcedureParameterBean = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isGenerateProcedureCustomizeEntity: (NotRequired - Default false) - # [true] - # The customize entities for procedure's out-parameter - # and not-param-result are auto-generated. - # And also not-param-result's properties are auto-generated. - # Target procedures are executed actually at Sql2Entity task. - # (because of getting from execution meta data (result set meta data)) - # This property is valid only when isGenerateProcedureParameterBean is true. - # - # [false] - # Non. - # - ; isGenerateProcedureCustomizeEntity = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetProcedureCatalogList: (NotRequired - Default list:{}) - # You can specify target catalog of generated parameter bean for procedure. - # This property is valid only when generateProcedureParameterBean is valid. - # - #; targetProcedureCatalogList = list:{FOO_CATALOG ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetProcedureSchemaList: (NotRequired - Default list:{}) - # You can specify target schema of generated parameter bean for procedure. - # This property is valid only when generateProcedureParameterBean is valid. - # e.g. list:{PROCEDUREDB} - # - #; targetProcedureSchemaList = list:{FOO_SCHEMA ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetProcedureNameList: (NotRequired - Default list:{}) - # You can specify target name of generated parameter bean for procedure. - # This property is valid only when isGenerateProcedureParameterBean is valid. - # e.g. list:{prefix:SP_} - # And you can specify procedures through DB link. - # This is treated as additional setting - # so it is independent from specifications for main schema. - # e.g. SP_FOO@NEXT_LINK (when DB link name is 'NEXT_LINK') - # - #; targetProcedureNameList = list:{FOO_PROCEDURE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o executionMetaProcedureNameList: (NotRequired - Default list:{}) - # You can specify target name of generated customize entity for procedure. - # This property is valid only when isGenerateProcedureCustomizeEntity is valid. - # e.g. list:{prefix:SP_} - # - #; executionMetaProcedureNameList = list:{FOO_PROCEDURE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o procedureSynonymHandlingType: (NotRequired - Default NONE) - # You can specify the handling type of procedure synonym. - # NONE - No handling. (default) - # INCLUDE - It includes procedure synonyms. - # SWITCH - It switches all normal procedures to procedure synonyms. - # - #; procedureSynonymHandlingType = NONE - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isRequiredSqlTitle: (NotRequired - Default false) - # [true] - # You should always write the title of outsideSql. - # If it doesn't exist, the OutsideSqlTest task fails. - # - # [false] - # Non. - # - #; isRequiredSqlTitle = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isRequiredSqlDescription: (NotRequired - Default false) - # [true] - # You should always write the description of outsideSql. - # If it doesn't exist, the OutsideSqlTest task fails. - # - # [false] - # Non. - # - #; isRequiredSqlDescription = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sqlFileEncoding: (NotRequired - Default 'UTF-8') - # The encoding of SQL file for outsideSql. - # Basically you don't need this. - # - #; sqlFileEncoding = UTF-8 - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sqlDirectory: (NotRequired - Default generateOutputDirectory & resourceOutputDirectory) - # The directory of SQL file for outsideSql. - # Basically you don't need this if your directory structure is same as default. - # It's also for DBFlute library project when you use ApplicationOutsideSql. - # - #; sqlDirectory = ../src/main/resources - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sql2EntityOutputDirectory: (NotRequired - Default generateOutputDirectory) - # The output directory of classes that is generated by Sql2Entity. - # Basically you don't need this if your directory structure is same as default. - # It's also for DBFlute library project when you use ApplicationOutsideSql. - # - #; sql2EntityOutputDirectory = ../src/main/java - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o applicationOutsideSqlMap: (NotRequired - Default map:{}) - # You can set additional users. - # Elements of this map are as below: - # o key of map: a relative path to the application project from DBFlute client - # o sqlDirectory: SQL directory as a relative path from the application directory - # (NotRequired - Default Java:'src/main/java' & 'src/main/resources' CSharp:'source') - # o sql2EntityOutputDirectory: source output directory from as a relative path from the application directory - # (NotRequired - Default Java:'src/main/java' CSharp:'source') - # - #; applicationOutsideSqlMap = map:{ - # ; ../../app1 = map:{ - # ; sqlDirectory = src/main/resources - # ; sql2EntityOutputDirectory = src/main/java - # } - # ; ../../app2 = map:{ - # ; sqlDirectory = src/main/resources - # ; sql2EntityOutputDirectory = src/main/java - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sqlPackage: (NotRequired - Default all packages) - # The package of SQL file for outsideSql. - # This is basically for narrowing SQL-searching target, - # for example, when the project has SQL files for other framework. - # So basically you don't need this. - # - # You can use variable '$$PACKAGE_BASE$$' that means 'packageBase'. - # But you need to make SQL files at 'exbhv' under the set package - # if you use BehaviorQueryPath (MemberBhv_selectSimpleMember.sql). - # - #; sqlPackage = $$PACKAGE_BASE$$ - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_mysql/dfprop/refreshDefinitionMap.dfprop b/dbflute_mysql/dfprop/refreshDefinitionMap.dfprop deleted file mode 100644 index 72dec681a..000000000 --- a/dbflute_mysql/dfprop/refreshDefinitionMap.dfprop +++ /dev/null @@ -1,19 +0,0 @@ -# /--------------------------------------------------------------------------- -# refreshDefinitionMap: (NotRequired - Default map:{}) -# -# If you use ResourceSynchronizer and specify this property, -# You don't need to refresh(F5) your eclipse project. -# -# Specification: -# map:{ -# ; projectName = [Eclipse Project1] / [Eclipse Project2] / ... -# ; requestUrl = [ResourceSynchronizer's URL] -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; projectName = dbflute-basic-example - #; requestUrl = http://localhost:8386/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_mysql/dfprop/replaceSchemaDefinitionMap.dfprop b/dbflute_mysql/dfprop/replaceSchemaDefinitionMap.dfprop deleted file mode 100644 index 11b8705b8..000000000 --- a/dbflute_mysql/dfprop/replaceSchemaDefinitionMap.dfprop +++ /dev/null @@ -1,234 +0,0 @@ -# /--------------------------------------------------------------------------- -# replaceSchemaDefinitionMap: (NotRequired - Default map:{}) -# -# The various settings about replace-schema. -# -# o repsEnvType: (NotRequired - Default inherits or 'ut') -# o isLoggingInsertSql: (NotRequired - Default true) -# o isLoggingReplaceSql: (NotRequired - Default true) -# o isErrorSqlContinue: (NotRequired - Default false) -# o sqlFileEncoding: (NotRequired - Default 'UTF-8') -# o skipSheet: (NotRequired - Default '') -# o isIncrementSequenceToDataMax: (NotRequired - Default false) -# o isSuppressBatchUpdate: (NotRequired - Default false) -# o objectTypeTargetList: (NotRequired - Default databaseInfoMap's) -# o filterVariablesMap: (NotRequired - Default map:{}) -# o additionalUserMap: (NotRequired - Default map:{}) -# o additionalDropMapList: (NotRequired - Default list:{}) -# o playSqlDirectory: (NotRequired - Default 'playsql') -# o applicationPlaySqlDirectory: (NotRequired - Default '') -# o arrangeBeforeRepsMap: (NotRequired - Default map:{}) -# o isSuppressTruncateTable: (NotRequired - Default false) -# o isSuppressDropForeignKey: (NotRequired - Default false) -# o isSuppressDropTable: (NotRequired - Default false) -# o isSuppressDropSequence: (NotRequired - Default false) -# o isSuppressDropProcedure: (NotRequired - Default false) -# o isSuppressDropDBLink: (NotRequired - Default false) -# o initializeFirstSqlList: (NotRequired - Default list:{}) -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o repsEnvType: (NotRequired - Default inherits or 'ut') - # The environment type of ReplaceSchema. - # e.g. if ut, data files in './playsql/data/ut/...' are loaded - # If DBFlute environment type is specified, inherits it as default. - # - #; repsEnvType = ut - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isLoggingInsertSql: (NotRequired - Default true) - # Does it show insert values on log? - # - #; isLoggingInsertSql = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isLoggingReplaceSql: (NotRequired - Default true) - # Does it show replace-SQL on log? - # - #; isLoggingReplaceSql = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isErrorSqlContinue: (NotRequired - Default false) - # Does it continue the task when error SQL exists? - # - #; isErrorSqlContinue = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sqlFileEncoding: (NotRequired - Default 'UTF-8') - # The encoding of SQL(DDL) file for Replace Schema. - # Basically you don't need this. - # - #; sqlFileEncoding = UTF-8 - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o skipSheet: (NotRequired - Default '') - # You can specify the skip sheet by regular expression - # - #; skipSheet = P.+ - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isIncrementSequenceToDataMax: (NotRequired - Default false) - # Does it increment sequence values to max value of table data? - # Referring the property 'sequenceDefinitionMap'. - # - #; isIncrementSequenceToDataMax = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressBatchUpdate: (NotRequired - Default false) - # Does it suppress batch update at loading data? - # When you have a data error, you may get details for the error - # by this property changing. Because it is possible that - # the BatchUpdateException information is very short for debug. - # - #; isSuppressBatchUpdate = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o objectTypeTargetList: (NotRequired - Default databaseInfoMap's) - # This property overrides databaseInfoMap's one for ReplaceSchema. - # e.g. Synonym of Oracle --> list:{TABLE ; VIEW ; SYNONYM} - # - #; objectTypeTargetList = list:{TABLE ; VIEW} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o filterVariablesMap: (NotRequired - Default map:{}) - # You can specify the filter variables for DDL. - # - #; filterVariablesMap = map:{abc=AAA} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o additionalUserMap: (NotRequired - Default map:{}) - # You can set additional users. - # Elements of this map are as below: - # o key of map: User Definition Name (userDefName) - # o url: (NotRequired - Default same as one of main schema) - # o schema: (NotRequired - Default treated as no schema setting) - # o user: (Required) - # o password: password plainly or path to password file (with default password) - # e.g. foo or df:dfprop/system-password.txt|foo - # (NotRequired - Default '') - # o isSkipIfNotFoundPasswordFileAndDefault: Does it skip the user SQL statement - # when using password file but not found it and also default password? - # (NotRequired - Default false) - # - #; additionalUserMap = map:{ - # ; system = map:{ - # #; url = ... - # #; schema = ... - # ; user = system - # ; password = df:dfprop/system-password.txt - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o additionalDropMapList: (NotRequired - Default list:{}) - # You can drop additional other schemas. - # Elements of this map are as below: - # o url: (NotRequired - Default same as main schema) - # o schema: (Required: if empty schema means valid schema, not required) - # o user: (NotRequired - Default same as main schema) - # o password: (NotRequired - Default same as main schema) - # o propertiesMap: (NotRequired - Default map:{}) - # o objectTypeTargetList: (NotRequired - Default list{TABLE;VIEW}) - # - #; additionalDropMapList = list:{ - # ; map:{ - # ; url = jdbc:oracle:thin:... - # ; schema = NEXTEXAMPLEDB - # ; user = NEXTEXAMPLEDB - # ; password = NEXTEXAMPLEDB - # ; propertiesMap = map:{} - # ; objectTypeTargetList = list:{TABLE;VIEW} - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o playSqlDirectory: (NotRequired - Default 'playsql' relative to DBFlute client) - # This property is relative path to (main) PlaySql directory, - # You should not use this property easily. - # - #; playSqlDirectory = ../../foo-project/playsql - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o applicationPlaySqlDirectory: (NotRequired - Default '') - # This property is relative path to Application PlaySql directory, - # which is basically used with ApplicationBehavior. - # - #; applicationPlaySqlDirectory = ../../foo-project/dbflute_apbranch/playsql - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o arrangeBeforeRepsMap: (NotRequired - Default map:{}) - # You can arrange resource files before ReplaceSchema. - # - #; arrangeBeforeRepsMap = map:{ - # ; copy = map:{ - # ; ../erd/*.ddl = ./playsql/replace-schema-10-basic.sql - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressTruncateTable: (NotRequired - Default false) - # You can suppress truncating tables at initializing schema. - # - #; isSuppressTruncateTable = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropForeignKey: (NotRequired - Default false) - # You can suppress dropping foreign keys at initializing schema. - # - #; isSuppressDropForeignKey = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropTable: (NotRequired - Default false) - # You can suppress dropping tables at initializing schema. - # - #; isSuppressDropTable = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropSequence: (NotRequired - Default false) - # You can suppress dropping sequences at initializing schema. - # - #; isSuppressDropSequence = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropProcedure: (NotRequired - Default false) - # You can suppress dropping procedures at initializing schema. - # - #; isSuppressDropProcedure = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropDBLink: (NotRequired - Default false) - # You can suppress dropping DB links at initializing schema. - # - #; isSuppressDropDBLink = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o initializeFirstSqlList: (NotRequired - Default list:{}) - # You can execute the SQL statements before initializing schema. - # - #; initializeFirstSqlList = list:{} - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_mysql/dfprop/sequenceDefinitionMap.dfprop b/dbflute_mysql/dfprop/sequenceDefinitionMap.dfprop deleted file mode 100644 index f04451cae..000000000 --- a/dbflute_mysql/dfprop/sequenceDefinitionMap.dfprop +++ /dev/null @@ -1,25 +0,0 @@ -# /--------------------------------------------------------------------------- -# sequenceDefinitionMap: (NotRequired - Default map:{}) -# -# The relation mappings between sequence and table. -# If you don't specify the mappings, you cannot insert -# a record of the table by sequence. -# The table names are treated as case insensitive. -# -# Example: -# map:{ -# ; PURCHASE = SEQ_PURCHASE -# ; MEMBER = SEQ_MEMBER -# ; MEMBER_LOGIN = SEQ_MEMBER_LOGIN -# ; PRODUCT = SEQ_PRODUCT -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; PURCHASE = SEQ_PURCHASE - #; MEMBER = SEQ_MEMBER - #; MEMBER_LOGIN = SEQ_MEMBER_LOGIN - #; PRODUCT = SEQ_PRODUCT -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_mysql/dfprop/typeMappingMap.dfprop b/dbflute_mysql/dfprop/typeMappingMap.dfprop deleted file mode 100644 index 0b5b734d9..000000000 --- a/dbflute_mysql/dfprop/typeMappingMap.dfprop +++ /dev/null @@ -1,57 +0,0 @@ -# /--------------------------------------------------------------------------- -# typeMappingMap: (NotRequired - Default map:{}) -# -# If you want to change mappings from default mappings, -# you can specify your original mappings. -# But it is possible that unanticipated problems occurs, so be careful! -# -# About '$$AutoMapping$$': -# If the database is Oracle, they often use this. -# For example, if you use this for NUMERIC. -# o Numeric( 1 - 9 , 0) is mapping to INTEGER -# o Numeric(10 - 18 , 0) is mapping to BIGINT -# o Numeric(19 - 38 , 0) is mapping to NUMERIC -# o Numeric( 1 - 38 , 2) is mapping to NUMERIC -# -# Example: -# map:{ -# ; INTEGER = java.lang.Integer -# ; BIGINT = java.lang.Long -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - # AutoMapping for Numeric and Decimal - ; NUMERIC = $$AutoMapping$$ ; DECIMAL = $$AutoMapping$$ -} -# ----------------/ -# -# Default mapping as follows: -# -------------------------------------------------------- -# | JDBC Type | Java Native | CSharp Native | -# | ------------------------------------------------------ -# | CHAR | java.lang.String | String | -# | VARCHAR | java.lang.String | String | -# | LONGVARCHAR | java.lang.String | String | -# | NUMERIC | java.math.BigDecimal | decimal? | -# | DECIMAL | java.math.BigDecimal | decimal? | -# | TINYINT | java.lang.Integer | int? | -# | SMALLINT | java.lang.Integer | int? | -# | INTEGER | java.lang.Integer | int? | -# | BIGINT | java.lang.Long | long? | -# | REAL | java.math.BigDecimal | decimal? | -# | FLOAT | java.math.BigDecimal | decimal? | -# | DOUBLE | java.math.BigDecimal | decimal? | -# | DATE | java.util.Date | DateTime? | -# | TIME | java.sql.Time | DateTime? | -# | TIMESTAMP | java.sql.Timestamp | DateTime? | -# | BIT | java.lang.Boolean | bool? | -# | BOOLEAN | java.lang.Boolean | bool? | -# | BINARY | byte[] | byte[] | -# | VARBINARY | byte[] | byte[] | -# | LONGVARBINARY | byte[] | byte[] | -# | BLOB | byte[] | byte[] | -# | ARRAY | *Unsupported | *Unsupported | -# | UUID | java.util.UUID | *Unsupported | -# -------------------------------------------------------- diff --git a/dbflute_mysql/doc.bat b/dbflute_mysql/doc.bat deleted file mode 100644 index 3c5ce3f01..000000000 --- a/dbflute_mysql/doc.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the Document task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-doc.cmd %MY_PROPERTIES_PATH% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_mysql/doc.sh b/dbflute_mysql/doc.sh deleted file mode 100644 index 5c5c22117..000000000 --- a/dbflute_mysql/doc.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the Document task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-doc.sh $MY_PROPERTIES_PATH -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_mysql/extlib/_readme.txt b/dbflute_mysql/extlib/_readme.txt deleted file mode 100644 index f5503c636..000000000 --- a/dbflute_mysql/extlib/_readme.txt +++ /dev/null @@ -1,5 +0,0 @@ -Directory for library extension - -If you use a database that DBFlute does not have its JDBC driver, -put your own JDBC driver for the database here. -(e.g. Oracle, DB2, SQLServer) diff --git a/dbflute_mysql/generate.bat b/dbflute_mysql/generate.bat deleted file mode 100644 index 5876c15c9..000000000 --- a/dbflute_mysql/generate.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the Generate task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-generate.cmd %MY_PROPERTIES_PATH% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_mysql/generate.sh b/dbflute_mysql/generate.sh deleted file mode 100644 index 7665c1bf7..000000000 --- a/dbflute_mysql/generate.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the Generate task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-generate.sh $MY_PROPERTIES_PATH -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_mysql/jdbc.bat b/dbflute_mysql/jdbc.bat deleted file mode 100644 index 410e3da5e..000000000 --- a/dbflute_mysql/jdbc.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the JDBC task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-jdbc.cmd %MY_PROPERTIES_PATH% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_mysql/jdbc.sh b/dbflute_mysql/jdbc.sh deleted file mode 100644 index 24985faa9..000000000 --- a/dbflute_mysql/jdbc.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the JDBC task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-jdbc.sh $MY_PROPERTIES_PATH -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_mysql/log/_readme.txt b/dbflute_mysql/log/_readme.txt deleted file mode 100644 index d3f17ea30..000000000 --- a/dbflute_mysql/log/_readme.txt +++ /dev/null @@ -1,4 +0,0 @@ -Directory for log files of DBFlute tasks - -If your execution of DBFlute task fails, -look the log file "dbflute.log" for debug. diff --git a/dbflute_mysql/manage.bat b/dbflute_mysql/manage.bat deleted file mode 100644 index 05124c37d..000000000 --- a/dbflute_mysql/manage.bat +++ /dev/null @@ -1,17 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -set FIRST_ARG=%1 -if "%FIRST_ARG%"=="" set FIRST_ARG="" -set SECOND_ARG=%2 -if "%SECOND_ARG%"=="" set SECOND_ARG="" - -call %DBFLUTE_HOME%\etc\cmd\_df-manage.cmd %MY_PROPERTIES_PATH% %FIRST_ARG% %SECOND_ARG% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_mysql/manage.sh b/dbflute_mysql/manage.sh deleted file mode 100644 index d2fb74628..000000000 --- a/dbflute_mysql/manage.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -FIRST_ARG=$1 -SECOND_ARG=$2 - -sh $DBFLUTE_HOME/etc/cmd/_df-manage.sh $MY_PROPERTIES_PATH $FIRST_ARG $SECOND_ARG -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_mysql/output/doc/_readme.txt b/dbflute_mysql/output/doc/_readme.txt deleted file mode 100644 index ee75f754c..000000000 --- a/dbflute_mysql/output/doc/_readme.txt +++ /dev/null @@ -1,3 +0,0 @@ -Directory for auto-generated documents - -e.g. SchemaHTML, HistoryHTML diff --git a/dbflute_mysql/outside-sql-test.bat b/dbflute_mysql/outside-sql-test.bat deleted file mode 100644 index a86099b31..000000000 --- a/dbflute_mysql/outside-sql-test.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the OutsiteSqlTest task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-outside-sql-test.cmd %MY_PROPERTIES_PATH% %1 - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_mysql/outside-sql-test.sh b/dbflute_mysql/outside-sql-test.sh deleted file mode 100644 index 3a45f9285..000000000 --- a/dbflute_mysql/outside-sql-test.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the OutsiteSqlTest task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-outside-sql-test.sh $MY_PROPERTIES_PATH $1 -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_mysql/playsql/_readme.txt b/dbflute_mysql/playsql/_readme.txt deleted file mode 100644 index c2f56c4ea..000000000 --- a/dbflute_mysql/playsql/_readme.txt +++ /dev/null @@ -1,50 +0,0 @@ -Directory for ReplaceSchema task - -replace-schema-*.sql: -DDL statements for creation of your schema. -You should write your own DDL statements in this file. -(A SQL separator is semicolon ";") - -take-finally-*.sql: -SQL statements for check loaded data (or DDL after data loading) -You should write your own SQL statements in this file. -(basically same specifications as replace-schema.sql) - -The "data" directory is for data loading like this: -/- - - - - - - - - - - - - - - - - - - - -playsql - |-data - |-common - | |-xls - | |-10-master.xls - | |-defaultValueMap.dataprop - |-ut - |-xls - |-20-member.xls - |-30-product.xls - |-defaultValueMap.dataprop -- - - - - - - - - -/ - -The format of a xls file is like this: -/- - - - - - - - - - - - - - - - - - - - -|MEMBER_ID|MEMBER_NAME|BIRTHDATE | -| 1|Stojkovic |1965/03/03| -| 2|Savicevic | | -| 3|... |... | - -(Sheet) -MEMBER / MEMBER_LOGIN / MEMBER_SECURITY -- - - - - - - - - -/ - -The defaultValueMap.dataprop is for common columns like this: -/- - - - - - - - - - - - - - - - - - - - -map:{ - ; REGISTER_DATETIME = sysdate - ; REGISTER_USER = foo - ; REGISTER_PROCESS = bar - ; UPDATE_DATETIME = sysdate - ; UPDATE_USER = foo - ; UPDATE_PROCESS = bar - ; VERSION_NO = 0 -} -- - - - - - - - - -/ diff --git a/dbflute_mysql/playsql/replace-schema.sql b/dbflute_mysql/playsql/replace-schema.sql deleted file mode 100644 index 0519ecba6..000000000 --- a/dbflute_mysql/playsql/replace-schema.sql +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dbflute_mysql/playsql/take-finally.sql b/dbflute_mysql/playsql/take-finally.sql deleted file mode 100644 index 0519ecba6..000000000 --- a/dbflute_mysql/playsql/take-finally.sql +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dbflute_mysql/replace-schema.bat b/dbflute_mysql/replace-schema.bat deleted file mode 100644 index 75ad5e391..000000000 --- a/dbflute_mysql/replace-schema.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the ReplaceSchema task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-replace-schema.cmd %MY_PROPERTIES_PATH% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_mysql/replace-schema.sh b/dbflute_mysql/replace-schema.sh deleted file mode 100644 index 35490a782..000000000 --- a/dbflute_mysql/replace-schema.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the ReplaceSchema task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-replace-schema.sh $MY_PROPERTIES_PATH -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_mysql/schema/_readme.txt b/dbflute_mysql/schema/_readme.txt deleted file mode 100644 index 2fa906858..000000000 --- a/dbflute_mysql/schema/_readme.txt +++ /dev/null @@ -1,4 +0,0 @@ -Directory for files of schema info - -Files are auto-generated by DBFlute tasks. -Basically you don't need to touch this directory. diff --git a/dbflute_mysql/sql2entity.bat b/dbflute_mysql/sql2entity.bat deleted file mode 100644 index 55f81b9df..000000000 --- a/dbflute_mysql/sql2entity.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the Sql2Entity task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-sql2entity.cmd %MY_PROPERTIES_PATH% %1 - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_mysql/sql2entity.sh b/dbflute_mysql/sql2entity.sh deleted file mode 100644 index 26e3edd9b..000000000 --- a/dbflute_mysql/sql2entity.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the Sql2Entity task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-sql2entity.sh $MY_PROPERTIES_PATH $1 -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_oracle/_project.bat b/dbflute_oracle/_project.bat deleted file mode 100644 index f46e7dca6..000000000 --- a/dbflute_oracle/_project.bat +++ /dev/null @@ -1,11 +0,0 @@ -@echo off - -set ANT_OPTS=-Xmx512m - -set DBFLUTE_HOME=..\mydbflute\dbflute-1.0.5L - -set MY_PROJECT_NAME=oracle - -set MY_PROPERTIES_PATH=build.properties - -if "%pause_at_end%"=="" set pause_at_end=y diff --git a/dbflute_oracle/_project.sh b/dbflute_oracle/_project.sh deleted file mode 100644 index 45e60b9ba..000000000 --- a/dbflute_oracle/_project.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -export ANT_OPTS=-Xmx512m - -export DBFLUTE_HOME=../mydbflute/dbflute-1.0.5L - -export MY_PROJECT_NAME=oracle - -export MY_PROPERTIES_PATH=build.properties diff --git a/dbflute_oracle/_readme.txt b/dbflute_oracle/_readme.txt deleted file mode 100644 index a90ac5067..000000000 --- a/dbflute_oracle/_readme.txt +++ /dev/null @@ -1,70 +0,0 @@ -Directory for DBFlute client - -jdbc.bat, jdbc.sh: -A execution command of JDBC task -which gets your schema info and saves it to SchemaXML -located to the "schema" directory. -This task should be executed after ReplaceSchema task -and before other tasks(e.g. Generate, Document task). - -doc.bat, doc.sh: -A execution command of Document task -which creates documents, for example, SchemaHTML, HistoryHTML -to the "output/doc" directory. - -generate.bat, generate.sh: -A execution command of Generate task -which generates classes corresponding your tables, -for example, entities, condition-beans to specified -directories by DBFlute properties on "dfprop" directory. - -Generated structures (directories and classes) are like this: -/- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -allcommon : classes bridging to DBFlute Runtime -bsbhv : base behaviors -bsentity : base entities -cbean : condition-beans (both base and extended) -exbhv : extended behaviors -exentity : extended entities -- - - - - - - - - -/ - -For example, if a table called "MEMBER" exists, -you can use these classes like this: -/- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -MemberCB cb = new MemberCB(); -cb.query().setMemberId_Equal(3); -Member member = memberBhv.selectEntity(cb); -// MemberCB : ConditionBean -// memberBhv : Behavior (instance) -// Member : Entity -- - - - - - - - - -/ - -sql2entity.bat, sql2entity.sh: -A execution command of Sql2Entity task -which generates classes corresponding your outside-SQL files, -for example, entities, parameter-beans to specified -directories by DBFlute properties on "dfprop" directory. - -replace-schema.bat, replace-schema.sh: -A execution command of ReplaceSchema task -which creates your tables and loads data by -resources located to the "playsql" directory. - -outside-sql-test.bat, outside-sql-test.sh: -A execution command of OutsideSqlTest task -which executes outside-SQL files and you can check -whether the SQLs have correct formats. - -The directories are for DBFlute tasks: -/- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -dfprop : Directory for DBFlute properties -extlib : Directory for Directory for library extension -log : Directory for log files of DBFlute tasks -output/doc : Directory for auto-generated documents -playsql : Directory for ReplaceSchema task -schema : Directory for files of schema info -- - - - - - - - - -/ - -The files, _project.bat, _project.sh, build.properties -are for internal processes of DBFlute tasks so basically -you don't need to touch them. diff --git a/dbflute_oracle/build.properties b/dbflute_oracle/build.properties deleted file mode 100644 index 180616169..000000000 --- a/dbflute_oracle/build.properties +++ /dev/null @@ -1,5 +0,0 @@ - -# ------------------------------------------------------------------- -# P R O J E C T -# ------------------------------------------------------------------- -torque.project = fess diff --git a/dbflute_oracle/dfprop/_readme.txt b/dbflute_oracle/dfprop/_readme.txt deleted file mode 100644 index e839c244e..000000000 --- a/dbflute_oracle/dfprop/_readme.txt +++ /dev/null @@ -1,35 +0,0 @@ -Directory for DBFlute properties - -Required (Basic) Properties: -o basicInfoMap.dfprop -o databaseInfoMap.dfprop -At first, you should set these properties -before executions of DBFlute tasks. - -Properties for additional informations: -o additionalForeignKeyMap.dfprop -o additionalPrimaryKeyMap.dfprop -o additionalUniqueKeyMap.dfprop -o additionalTableMap.dfprop - -Properties for implementation environments: -o commonColumnMap.dfprop -o classificationDefinitionMap.dfprop -o classificationDeploymentMap.dfprop -o optimisticLockDefinitionMap.dfprop -o outsideSqlDefinitionMap.dfprop -o sequenceDefinitionMap.dfprop -o dependencyInjectionMap.dfprop -o littleAdjustmentMap.dfprop -o includeQueryMap.dfprop -o typeMappingMap.dfprop - -Properties for ReplaceSchema: -o replaceSchemaDefinitionMap.dfprop - -Properties for documents: -o documentDefinitionMap.dfprop - -Properties for non-functional adjustments: -o allClassCopyright.dfprop -o refreshDefinitionMap.dfprop diff --git a/dbflute_oracle/dfprop/additionalForeignKeyMap.dfprop b/dbflute_oracle/dfprop/additionalForeignKeyMap.dfprop deleted file mode 100644 index abf2f12ba..000000000 --- a/dbflute_oracle/dfprop/additionalForeignKeyMap.dfprop +++ /dev/null @@ -1,42 +0,0 @@ -# /--------------------------------------------------------------------------- -# additionalForeignKeyMap: (NotRequired - Default map:{}) -# -# If foreign key does not exist in your database, -# you can set up here as virtual foreign key for DBFlute. -# -# And it's one-to-one relation if you add one fixed condition to referrer table, -# you can set virtual foreign key with fixedCondition and fixedSuffix. -# And you can use it to view objects too. -# -# If local column name is same as foreign column name, -# you can omit the setting of localColumnName and foreignColumnName. -# The names are treated as case insensitive. -# -# Example: -# map:{ -# ; FK_MEMBER_MEMBER_STATUS_CODE = map:{ -# ; localTableName = MEMBER ; foreignTableName = MEMBER_STATUS -# ; localColumnName = MEMBER_STATUS_CODE ; foreignColumnName = MEMBER_STATUS_CODE -# } -# ; FK_PURCHASE_MEMBER_ID = map:{ -# ; localTableName = PURCHASE ; foreignTableName = MEMBER -# } -# ; FK_MEMBER_MEMBER_ADDRESS_VALID = map:{ -# ; localTableName = MEMBER ; foreignTableName = MEMBER_ADDRESS -# ; localColumnName = MEMBER_ID ; foreignColumnName = MEMBER_ID -# ; fixedCondition = -# $$foreignAlias$$.VALID_BEGIN_DATE <= /*targetDate(Date)*/null -# and $$foreignAlias$$.VALID_END_DATE >= /*targetDate(Date)*/null -# ; fixedSuffix = AsValid -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; FK_MEMBER_MEMBER_STATUS_CODE = map:{ - # ; localTableName = MEMBER ; foreignTableName = MEMBER_STATUS - # ; localColumnName = MEMBER_STATUS_CODE ; foreignColumnName = MEMBER_STATUS_CODE - #} -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_oracle/dfprop/additionalPrimaryKeyMap.dfprop b/dbflute_oracle/dfprop/additionalPrimaryKeyMap.dfprop deleted file mode 100644 index 75b350dad..000000000 --- a/dbflute_oracle/dfprop/additionalPrimaryKeyMap.dfprop +++ /dev/null @@ -1,26 +0,0 @@ -# /--------------------------------------------------------------------------- -# additionalPrimaryKeyMap: (NotRequired - Default map:{}) -# -# If primary key does not exist in your database, -# you can set up here as virtual primary key for DBFlute. -# And you can use it to view objects too. -# The names are treated as case insensitive. -# -# Example: -# map:{ -# ; PK_MEMBER = map:{ -# ; tableName = MEMBER ; columnName = MEMBER_ID -# } -# ; PK_PURCHASE = map:{ -# ; tableName = PURCHASE ; columnName = PURCHASE_ID -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; PK_MEMBER = map:{ - # ; tableName = MEMBER ; columnName = MEMBER_ID - #} -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_oracle/dfprop/additionalTableMap.dfprop b/dbflute_oracle/dfprop/additionalTableMap.dfprop deleted file mode 100644 index 6a670a1c9..000000000 --- a/dbflute_oracle/dfprop/additionalTableMap.dfprop +++ /dev/null @@ -1,42 +0,0 @@ -# /--------------------------------------------------------------------------- -# additionalTableMap: (NotRequired - Default map:{}) -# -# This property is valid at only JDBC task. -# You should use this when JDBC can not provide table information -# and when you have no table but call stored procedures only. -# -# The element 'columnMap' is only required in table elements. -# The element 'type' is only required in column elements. -# -# Specification: -# map: { -# [table-name] = map:{ -# columnMap = map:{ -# [column-name] = map:{ -# type = [column JDBC type] ; dbType = [column DB type] -# ; required = [true or false] ; size = [column size] -# ; primaryKey = [true or false] ; pkName = [PK constraint name] -# ; autoIncrement = [true or false] -# ; default = [default value] ; comment = [column comment] -# } -# } -# ; comment = [table comment] -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; FOO_TABLE = map:{ - # ; columnMap = map:{ - # FOO_ID = map:{ type = INTEGER ; dbType = INTEGER - # ; required = true ; primaryKey = true ; autoIncrement = true - # } - # FOO_NAME = map:{ type = VARCHAR ; required = true ; size = 123 } - # FOO_DATE = map:{ type = DATE } - # } - #} -} -# ----------------/ -# -# *Refer to typeMappingMap.dfprop for JDBC type reference. diff --git a/dbflute_oracle/dfprop/additionalUniqueKeyMap.dfprop b/dbflute_oracle/dfprop/additionalUniqueKeyMap.dfprop deleted file mode 100644 index c3b2ea909..000000000 --- a/dbflute_oracle/dfprop/additionalUniqueKeyMap.dfprop +++ /dev/null @@ -1,26 +0,0 @@ -# /--------------------------------------------------------------------------- -# additionalUniqueKeyMap: (NotRequired - Default map:{}) -# -# If unique key does not exist in your database, -# you can set up here as virtual unique key for DBFlute. -# And you can use it to view objects too. -# The names are treated as case insensitive. -# -# Example: -# map:{ -# ; UQ_MEMBER = map:{ -# ; tableName = MEMBER ; columnName = MEMBER_ACCOUNT -# } -# ; UQ_PRODUCT = map:{ -# ; tableName = PRODUCT ; columnName = PRODUCT_HANDLE_CODE -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; UQ_MEMBER = map:{ - # ; tableName = MEMBER ; columnName = MEMBER_ACCOUNT - #} -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_oracle/dfprop/allClassCopyright.dfprop b/dbflute_oracle/dfprop/allClassCopyright.dfprop deleted file mode 100644 index 737b875bf..000000000 --- a/dbflute_oracle/dfprop/allClassCopyright.dfprop +++ /dev/null @@ -1,11 +0,0 @@ -# /--------------------------------------------------------------------------- -# allClassCopyright: (NotRequired - Default '') -# -# The copyright for all classes. -# This property is NOT map style. -# You should specify before your first generating. -# -#/* -# * Copyright(c) DBFlute TestCo.,TestLtd. All Rights Reserved. -# */ -# ----------------/ \ No newline at end of file diff --git a/dbflute_oracle/dfprop/basicInfoMap.dfprop b/dbflute_oracle/dfprop/basicInfoMap.dfprop deleted file mode 100644 index f608d37bc..000000000 --- a/dbflute_oracle/dfprop/basicInfoMap.dfprop +++ /dev/null @@ -1,220 +0,0 @@ -# /--------------------------------------------------------------------------- -# basicInfoMap: (Required) -# -# The basic information for the tasks of DBFlute. -# You should specify before your first generating. -# -# Core Properties: -# o database: (Required) -# o targetLanguage: (Required) -# o targetContainer: (Required) -# o packageBase: (Required) -# -# Adjustment Properties: -# o generateOutputDirectory: (NotRequired - Default Java:'../src/main/java' CSharp:'../source') -# o resourceOutputDirectory: (NotRequired - Default '../resources') -# o isTableNameCamelCase: (NotRequired - Default false) -# o isColumnNameCamelCase: (NotRequired - Default false) -# o projectPrefix: (NotRequired - Default '') -# o classAuthor: (NotRequired - Default 'DBFlute(AutoGenerator)') -# o sourceFileEncoding: (NotRequired - Default 'UTF-8') -# o sourceCodeLineSeparator: (NotRequired - Default no setting) -# o applicationBehaviorMap: (NotRequired - Default map:{}) -# o outputPackageAdjustmentMap: (NotRequired - Default map:{}) -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o database: (Required) - # This is the target database, only considered when generating - # the SQL for your DBFlute project. - # Your possible choices are: - # - # mysql, postgresql, oracle, db2, sqlserver, - # h2, derby, (sqlite, msaccess) - # - ; database = oracle - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetLanguage: (Required) - # The target language. - # Your possible choices are: - # - # java, csharp, scala - # - ; targetLanguage = java - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetContainer: (Required) - # The target DI container. - # If your target language is 'csharp', you can specify 'seasar' only. - # Your possible choices are: - # - # seasar, spring, guice, cdi - # - ; targetContainer = seasar - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o packageBase: (Required) - # The base directory of package for generated class. - # The class package is 'this property value + detail package value'. - # However, detail packages have default value so basically - # you only have to specify the property 'packageBase'. - # If this property is specified and detail package properties is not specified, - # Then the packages of generated class are as follows: - # - # e.g. packageBase = com.example.dbflute.basic.dbflute - # --> com.example.dbflute.basic.dbflute.allcommon - # --> com.example.dbflute.basic.dbflute.bsbhv - # --> com.example.dbflute.basic.dbflute.bsentity - # --> com.example.dbflute.basic.dbflute.cbean - # --> com.example.dbflute.basic.dbflute.exbhv - # --> com.example.dbflute.basic.dbflute.exentity - # - ; packageBase = jp.sf.fess.db - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o generateOutputDirectory: (NotRequired - Default Java:'../src/main/java' CSharp:'../source') - # The base output directory for generating. - # Basically you don't need to specify this if the project style is as follows: - # - # *Java Project Style - # If this value is '../src/main/java' and your project is under the Maven, - # you don't need to set up this property! - # - # {app-project} - # | - # |-dbflute_[project] - # | |-dfprop - # | |-... - # | - # |-src/main/java // *Here! - # |-src/main/resources - # |-... - # - # *CSharp Project Style - # [app-solution]/dbflute_[project]/dfprop - # [app-solution]/mydbflute/dbflute-0.9.6 - # [app-solution]/source/[app-solution].sln - # [app-solution]/source/[app-project(top-namespace)]/[part-namespace]/AllCommon - # [app-solution]/source/[app-project(top-namespace)]/[part-namespace]/BsBhv - # [app-solution]/source/[app-project(top-namespace)]/[part-namespace]/... - # [app-solution]/source/[app-project(top-namespace)]/Resources/... - # - #; generateOutputDirectory = ../src/main/java - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o resourceOutputDirectory: (NotRequired - Default '../resources') - # The base output directory for resource files that contain DI configurations. - # Basically you don't need to specify this if your project is under the Maven. - # - #; resourceOutputDirectory = ../resources - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isTableNameCamelCase: (NotRequired - Default false) - # Is the table name camel case? - # Basically you don't need this if the style of table name is like 'FOO_STATUS'. - # [true] - # The table name is camel case. - # e.g. If the table name is 'OrderDetail', the class name is 'OrderDetail'. - # - # [false] - # e.g. If the table name is 'ORDER_DETAIL', the class name is 'OrderDetail'. - # e.g. If the table name is 'OrderDetail', the class name is 'Orderdetail'. - # - #; isTableNameCamelCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isColumnNameCamelCase: (NotRequired - Default false) - # Is the column name camel case? - # Basically you don't need this if the style of column name is like 'FOO_NAME'. - # [true] - # The column name is camel case. - # e.g. If the column name is 'OrderDetailId', the class name is 'OrderDetailId'. - # - # [false] - # e.g. If the column name is 'ORDER_DETAIL_ID', the class name is 'OrderDetailId'. - # e.g. If the column name is 'OrderDetailId', the class name is 'Orderdetailid'. - # - #; isColumnNameCamelCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o projectPrefix: (NotRequired - Default '') - # If the value is 'Ld', all class names are 'LdXxx'. - # Basically you don't need this if you don't want the common prefix of class name. - # - #; projectPrefix = Ld - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o classAuthor: (NotRequired - Default 'DBFlute(AutoGenerator)') - # The value of the author tag in java-doc of generated classes. - # All classes are target. - # - # @JavaOnly - #; classAuthor = DBFlute(AutoGenerator) - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sourceFileEncoding: (NotRequired - Default 'UTF-8') - # The value of an encoding for source files that are generated classes. - # If source files of your project are not UTF-8, specify your encoding here. - # - #; sourceFileEncoding = UTF-8 - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sourceCodeLineSeparator: (NotRequired - Default no setting) - # The line separator setting for source code of generated classes. - # LF -> converted to LF - # CRLF -> converted to CRLF - # (no setting) -> no convert (template default is CRLF) - # - #; sourceCodeLineSeparator = LF - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o applicationBehaviorMap: (NotRequired - Default map:{}) - # The settings for Application Behavior. - # Elements of this map are as below: - # o isApplicationBehaviorProject: (NotRequired - Default false) - # Does the project is for application behaviors? - # This property is a main signal for Application Behavior. - # Other properties (for Application Behavior) work when this is true. - # o libraryProjectPackageBase: (NotRequired - Default same as application's one) - # If application package base is different from library's one, - # set the property a value 'library's one'. - # - #; applicationBehaviorMap = map:{ - # ; isApplicationBehaviorProject = false - # ; libraryProjectPackageBase = - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o outputPackageAdjustmentMap: (NotRequired - Default map:{}) - # The adjustments for output package. - # Elements of this map are as below: - # o flatDirectoryPackage: (Required - Default '') - # This is only for CSharp. - # e.g. Aaa.Bbb.DBFlute --> Directory: source/Aaa.Bbb.DBFlute/AllCommon - # o omitDirectoryPackage: (NotRequired - Default '') - # This is only for CSharp. - # e.g. Aaa --> Directory: source/Bbb/DBFlute/AllCommon - # - #; outputPackageAdjustmentMap = map:{ - # ; flatDirectoryPackage = Aaa.Bbb.DBFlute - # ; omitDirectoryPackage = Aaa - #} - # - - - - - - - - - -/ -} -# ----------------/ diff --git a/dbflute_oracle/dfprop/classificationDefinitionMap.dfprop b/dbflute_oracle/dfprop/classificationDefinitionMap.dfprop deleted file mode 100644 index 12949781c..000000000 --- a/dbflute_oracle/dfprop/classificationDefinitionMap.dfprop +++ /dev/null @@ -1,69 +0,0 @@ -# /--------------------------------------------------------------------------- -# classificationDefinitionMap: (NotRequired - Default map:{}) -# -# The definition of classification. -# -# Specification: -# map: { -# [classification-name] = list:{ -# ; map:{ -# ; topComment=[comment]; codeType=[String(default) or Number or Boolean]} -# ; isCheckImplicitSet=[true or false(default)] -# ; isUseDocumentOnly=[true or false(default)] -# ; isSuppressAutoDeploy=[true or false(default)] -# ; groupingMap = map:{ -# ; [group-name] = map:{ -# ; groupComment=[comment] -# ; elementList=list:{[the list of classification element's name]} -# } -# } -# } -# # classification elements for implicit classification -# ; map:{ -# ; code=[code]; name=[name]; alias=[alias]; comment=[comment] -# ; sisterCode=[code or code-list]; subItemMap=map:{[free-map]} -# } -# # settings for table classification -# ; map:{ -# ; table=[table-name] -# ; code=[column-name for code]; name=[column-name for name] -# ; alias=[column-name for alias]; comment=[column-name for comment]} -# ; where=[condition for select]; orderBy=[column-name for ordering] -# ; exceptCodeList=[the list of except code] -# } -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - # example for implicit classification - #; Flg = list:{ - # ; map:{topComment=general boolean classification for every flg-column; codeType=Number} - # ; map:{code=1; name=True ; alias=Checked ; comment=means yes; sisterCode=true} - # ; map:{code=0; name=False; alias=Unchecked; comment=means no ; sisterCode=false} - #} - # example for table classification - #; MemberStatus = list:{ - # ; map:{topComment=status of member from entry to withdrawal; codeType=String} - # ; map:{ - # ; table=MEMBER_STATUS - # ; code=MEMBER_STATUS_CODE; name=MEMBER_STATUS_NAME - # ; comment=DESCRIPTION; orderBy=DISPLAY_ORDER - # } - #} - ; ProcessType = list:{ - ; map:{topComment=Processing Type} - ; map:{code=C;name=Crawling;alias=Crawling;comment=Process When Crawling} - ; map:{code=D;name=Displaying;alias=Displaying;comment=Process When Displaying} - ; map:{code=B;name=Both;alias=Both;comment=Process When Crawling/Displaying} - } - ; AccessType = list:{ - ; map:{topComment=Access Type} - ; map:{code=W;name=Web;alias=Web;comment=Web} - ; map:{code=X;name=Xml;alias=Xml;comment=Xml} - ; map:{code=J;name=Json;alias=Json;comment=Json} - ; map:{code=O;name=Others;alias=Others;comment=Others} - } -} -# ----------------/ diff --git a/dbflute_oracle/dfprop/classificationDeploymentMap.dfprop b/dbflute_oracle/dfprop/classificationDeploymentMap.dfprop deleted file mode 100644 index 1f3dae622..000000000 --- a/dbflute_oracle/dfprop/classificationDeploymentMap.dfprop +++ /dev/null @@ -1,27 +0,0 @@ -# /--------------------------------------------------------------------------- -# classificationDeploymentMap: (NotRequired - Default map:{}) -# -# The relation between column and classification. -# -# This property uses classification names of classificationDefinitionMap. -# The table name '$$ALL$$' means all tables are target. -# The table names and column names are treated as case insensitive. -# -# You don't need specify here about table classifications. -# Because table classifications are auto-deployed by relation information. -# -# Specification: -# map: { -# [table-name or $$ALL$$] = map:{ -# ; [column-name (with hint)]=[classification-name] -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; $$ALL$$ = map:{suffix:_FLG=Flg} - ; PATH_MAPPING = map:{PROCESS_TYPE=ProcessType} - ; SEARCH_LOG = map:{ACCESS_TYPE=AccessType} -} -# ----------------/ diff --git a/dbflute_oracle/dfprop/commonColumnMap.dfprop b/dbflute_oracle/dfprop/commonColumnMap.dfprop deleted file mode 100644 index 862d45c8f..000000000 --- a/dbflute_oracle/dfprop/commonColumnMap.dfprop +++ /dev/null @@ -1,49 +0,0 @@ -# /--------------------------------------------------------------------------- -# commonColumnMap: (Default map:{}) -# -# The definition of common column(contains auto set-up). -# For example, the date you registered the record, -# the user who updated the record and so on... -# The column names are treated as case insensitive. -# -# The variable '$$AccessContext$$' means allcommon.AccessContext. -# -# Example: -# map:{ -# ; commonColumnMap = map:{ -# ; REGISTER_DATETIME=TIMESTAMP ; REGISTER_USER=VARCHAR -# ; UPDATE_DATETIME=TIMESTAMP ; UPDATE_USER=VARCHAR -# } -# ; beforeInsertMap = map:{ -# ; REGISTER_DATETIME = $$AccessContext$$.getAccessTimestampOnThread() -# ; REGISTER_USER = $$AccessContext$$.getAccessUserOnThread() -# ; UPDATE_DATETIME = entity.getRegisterDatetime() -# ; UPDATE_USER = entity.getRegisterUser() -# } -# ; beforeUpdateMap = map:{ -# ; UPDATE_DATETIME = $$AccessContext$$.getAccessTimestampOnThread() -# ; UPDATE_USER = $$AccessContext$$.getAccessUserOnThread() -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; commonColumnMap = map:{ - # ; REGISTER_DATETIME=TIMESTAMP ; REGISTER_USER=VARCHAR - # ; UPDATE_DATETIME=TIMESTAMP ; UPDATE_USER=VARCHAR - #} - #; beforeInsertMap = map:{ - # ; REGISTER_DATETIME = $$AccessContext$$.getAccessTimestampOnThread() - # ; REGISTER_USER = $$AccessContext$$.getAccessUserOnThread() - # ; UPDATE_DATETIME = entity.getRegisterDatetime() - # ; UPDATE_USER = entity.getRegisterUser() - #} - #; beforeUpdateMap = map:{ - # ; UPDATE_DATETIME = $$AccessContext$$.getAccessTimestampOnThread() - # ; UPDATE_USER = $$AccessContext$$.getAccessUserOnThread() - #} -} -# ----------------/ -# -# *Refer to typeMappingMap.dfprop for JDBC type reference. diff --git a/dbflute_oracle/dfprop/databaseInfoMap.dfprop b/dbflute_oracle/dfprop/databaseInfoMap.dfprop deleted file mode 100644 index f35086719..000000000 --- a/dbflute_oracle/dfprop/databaseInfoMap.dfprop +++ /dev/null @@ -1,112 +0,0 @@ -# /--------------------------------------------------------------------------- -# databaseInfoMap: (Required) -# -# The database information for the tasks of DBFlute. -# You should specify before your first generating. -# -# o driver -- The class name of JDBC-Driver. -# o url -- The URL for connecting database. -# o schema -- The schema name. -# o user -- The database user name. -# o password -- The database password. -# o propertiesMap -- The properties that depends on the database. -# o variousMap -- The various settings about JDBC task. -# -# *The line that starts with '#' means comment-out. -# -map:{ - ; driver = oracle.jdbc.driver.OracleDriver - ; url = jdbc:oracle:thin:@localhost:1521:XE - ; schema = fess - ; user = fess - ; password = fess - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o propertiesMap: (NotRequired - Default map:{}) - # The properties that depends on the database. - # - ; propertiesMap = map:{ - # If you use Oracle and its Synonym, specify this property. - #; includeSynonyms=true - } - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o variousMap: (NotRequired - Default map:{}) - # The various settings about JDBC task mainly. - # - ; variousMap = map:{ - # o objectTypeTargetList: (NotRequired - Default list:{TABLE;VIEW}) - # If you want to include other object types in generating target, - # you should specify the list of included object types as adding. - # e.g. Synonym of Oracle --> list:{TABLE ; VIEW ; SYNONYM} - # This is only for the main schema. Additional schemas are unconcerned. - # However ReplaceSchema and Sql2Entity task also uses this. - # But you can set ReplaceSchema-original setting in its own dfprop. - # - #; objectTypeTargetList = list:{TABLE ; VIEW} - - # o tableExceptList: (NotRequired - Default list:{}) - # If you want to exclude some tables in generating target, - # you should specify the list of excepted table hints. - # e.g. list:{PRODUCT_STATUS ; prefix:TMP_} - # This is only for the main schema. Additional schemas are unconcerned. - # And ReplaceSchema task basically ignores this. - # - # Normally this 'except' means no getting meta data for excepted tables. - # (so the tables are not existing in SchemaHTML and HistoryHTML and so on). - # But you can specify the '@gen' suffix that means generate-only except. - # A table with the mark can be treated as documents but no generating classes. - # - #; tableExceptList = list:{FOO_TABLE@gen ; prefix:FOO_@gen ; suffix:_FOO ; contain:_FOO_} - - # o tableTargetList: (NotRequired - Default list:{}) - # If you want to include some tables in generating target expressly, - # you should specify the list of target table hints. - # e.g. list:{PURCHASE ; contain:MEMBER} - # This is only for the main schema. Additional schemas are unconcerned. - # And ReplaceSchema task basically ignores this. - # - #; tableTargetList = list:{FOO_TABLE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - - # o columnExceptMap: (NotRequired - Default map:{}) - # If you want to exclude some columns in generating target, - # you should specify the list of excepted column hints. - # e.g. map:{HEAVY_MASTER = list:{APP_NOT_USED_ID; suffix:_IMAGE}} - # This is only for the main schema. Additional schemas are unconcerned. - # - #; columnExceptMap = map:{ - # ; FOO_TABLE = list:{FOO_COLUMN ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - #} - - # o additionalSchemaMap: (NotRequired - Default map:{}) - # If you want to include other schemas in generating target, - # you should specify the map of included schemas. - # Additional schemas have original settings apart from the main schema. - # The settings are objectTypeTargetList, tableExceptList, - # tableTargetList, and columnExceptMap. - # They have the same specification as ones of the main schema. - # Elements of this map are as below: - # o objectTypeTargetList: (NotRequired - Default 'map:{TABLE;VIEW}') - # o tableExceptList: (NotRequired - Default list:{}) - # o tableTargetList: (NotRequired - Default list:{}) - # o columnExceptMap: (NotRequired - Default map:{}) - # o isSuppressCommonColumn: (NotRequired - Default false) - # o isSuppressProcedure: (NotRequired - Default false) - # - #; additionalSchemaMap = map:{ - # ; NEXTEXAMPLEDB = map:{ - # ; objectTypeTargetList=list:{TABLE ; VIEW} - # ; tableExceptList=list:{FOO_TABLE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # ; tableTargetList=list:{FOO_TABLE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # ; columnExceptMap=map:{ - # ; FOO_TABLE = list:{FOO_COLUMN ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # } - # ; isSuppressCommonColumn=false - # ; isSuppressProcedure=false - # } - #} - } - # - - - - - - - - - -/ -} -# ----------------/ diff --git a/dbflute_oracle/dfprop/dependencyInjectionMap.dfprop b/dbflute_oracle/dfprop/dependencyInjectionMap.dfprop deleted file mode 100644 index ff7425604..000000000 --- a/dbflute_oracle/dfprop/dependencyInjectionMap.dfprop +++ /dev/null @@ -1,116 +0,0 @@ -# /--------------------------------------------------------------------------- -# dependencyInjectionMap: (NotRequired - Default map:{}) -# -# The various settings about dependency injection(DI Container). -# -# {Java} Seasar Only: -# o dbfluteDiconNamespace: (NotRequired - Default 'dbflute') -# o dbfluteDiconPackageName (NotRequired - Default '../resources') -# o dbfluteDiconFileName: (NotRequired - Default 'dbflute.dicon') -# o j2eeDiconResourceName: (NotRequired - Default 'j2ee.dicon') -# o dbfluteDiconBeforeJ2eeIncludeDefinitionMap: (NotRequired - Default map:{}) -# o dbfluteDiconOtherIncludeDefinitionMap: (NotRequired - Default map:{}) -# -# {Java} Spring and Lucy Only: -# o dbfluteBeansPackageName (NotRequired - Default '../resources') -# o dbfluteBeansFileName: (NotRequired - Default 'dbfluteBeans.xml') -# o dbfluteBeansDataSourceName: (NotRequired - Default 'dataSource') -# o dbfluteBeansDefaultAttribute: (NotRequired - Default '') -# -# {CSharp} Quill(CSharp Seasar) Only: -# o quillDataSourceName: (NotRequired - Default '') -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconNamespace: (NotRequired - Default 'dbflute') - # The namespace of DBFlute DI configuration. - # - # @JavaSeasarOnly - #; dbfluteDiconNamespace = dbflute - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconPackageName (NotRequired - Default '../resources') - # The package name(output directory) of DBFlute DI configuration for Seasar. - # - # @JavaSeasarOnly - #; dbfluteDiconPackageName = ../resources - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconFileName: (NotRequired - Default 'dbflute.dicon') - # The file name of DBFlute DI configuration for Seasar. - # - # @JavaSeasarOnly - #; dbfluteDiconFileName = dbflute.dicon - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o j2eeDiconResourceName: (NotRequired - Default 'j2ee.dicon') - # The file name of J2EE DI configuration. - # - # @JavaSeasarOnly - #; j2eeDiconResourceName = j2ee.dicon - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconBeforeJ2eeIncludeDefinitionMap: (NotRequired - Default map:{}) - # The include definition of DBFlute DI configuration before j2ee including. - # e.g. map:{ jdbc-xxx.dicon = dummy } - # - # @JavaSeasarOnly - #; dbfluteDiconBeforeJ2eeIncludeDefinitionMap = map:{} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteDiconOtherIncludeDefinitionMap: (NotRequired - Default map:{}) - # The other include definition of DBFlute DI configuration. - # e.g. map:{ common.dicon = dummy } - # - # @JavaSeasarOnly - #; dbfluteDiconOtherIncludeDefinitionMap = map:{} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteBeansPackageName (NotRequired - Default '../resources') - # The package name(output directory) of DBFlute DI configuration for Spring and Lucy. - # - # @JavaSpringLucyOnly - #; dbfluteBeansPackageName = ../resources - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteBeansFileName: (NotRequired - Default 'dbfluteBeans.xml') - # The file name of DBFlute DI configuration for Spring and Lucy. - # - # @JavaSpringLucyOnly - #; dbfluteBeansFileName = dbfluteBeans.xml - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteBeansDataSourceName: (NotRequired - Default 'dataSource') - # The data source name that DBFlute(Behaviors) uses. - # - # @JavaSpringLucyOnly - #; dbfluteBeansDataSourceName = exampleDataSource - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o dbfluteBeansPackageName (NotRequired - Default '') - # The default attribute expression of DBFlute DI configuration for Spring and Lucy. - # - # @JavaSpringLucyOnly - #; dbfluteBeansDefaultAttribute = default-lazy-init="true" - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o quillDataSourceName: (NotRequired - Default '') - # The data source name of Quill(CSharp Seasar). - # - # @CSharpQuillOnly - #; quillDataSourceName = ExampleDB - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_oracle/dfprop/documentDefinitionMap.dfprop b/dbflute_oracle/dfprop/documentDefinitionMap.dfprop deleted file mode 100644 index a5c2672b1..000000000 --- a/dbflute_oracle/dfprop/documentDefinitionMap.dfprop +++ /dev/null @@ -1,225 +0,0 @@ -# /--------------------------------------------------------------------------- -# documentDefinitionMap: (NotRequired - Default map:{}) -# -# o documentOutputDirectory (NotRequired - Default './output/doc') -# o aliasDelimiterInDbComment (NotRequired - Default '') -# o isDbCommentOnAliasBasis (NotRequired - Default false) -# o isEntityJavaDocDbCommentValid (NotRequired - Default false) -# o isEntityDBMetaDbCommentValid (NotRequired - Default false) -# o schemaHtmlFileName (NotRequired - Default 'schema-[project-name].html') -# o isSuppressSchemaHtmlOutsideSql (NotRequired - Default false) -# o isSuppressSchemaHtmlProcedure (NotRequired - Default false) -# o historyHtmlFileName (NotRequired - Default 'history-[project-name].html') -# o isCheckColumnDefOrderDiff (NotRequired - Default false) -# o isCheckDbCommentDiff (NotRequired - Default false) -# o isCheckProcedureDiff (NotRequired - Default false) -# o loadDataReverseMap (NotRequired - Default map:{}) -# o schemaSyncCheckMap (NotRequired - Default map:{}) -# o propertiesHtmlMap: (NotRequired - Default map:{}) -# -# Example: -# map:{ -# ; documentOutputDirectory = ./output/doc -# ; aliasDelimiterInDbComment = : -# ; isDbCommentOnAliasBasis = true -# ; isEntityJavaDocDbCommentValid = true -# ; isEntityDBMetaDbCommentValid = true -# ; schemaHtmlFileName = xxx.html -# ; isSuppressSchemaHtmlOutsideSql = false -# ; isSuppressSchemaHtmlProcedure = false -# ; historyHtmlFileName = xxx.html -# ; isCheckColumnDefOrderDiff = true -# ; isCheckDbCommentDiff = true -# ; isCheckProcedureDiff = true -# ; loadDataReverseMap = map:{ -# ; recordLimit = -1 -# ; isReplaceSchemaDirectUse = true -# ; isOverrideExistingDataFile = false -# ; isSynchronizeOriginDate = false -# } -# ; schemaSyncCheckMap = map:{ -# ; url = jdbc:... -# ; schema = EXAMPLEDB -# ; user = exampuser -# ; password = exampword -# } -# ; propertiesHtmlMap = map:{ -# ; ApplicationProperties = map:{ -# ; rootFile = ../src/main/resources/application_ja.properties -# } -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o documentOutputDirectory (NotRequired - Default './output/doc') - # The output directory mainly for SchemaHtml and DataXlsTemplate. - # Basically you don't need this. - # It is considered of value that it always exists at same plain. - # - #; documentOutputDirectory = ./output/doc - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o aliasDelimiterInDbComment (NotRequired - Default '') - # If the alias exists in its DB comment like as follows: - # member name : The name of member's full name - # you can use the alias in DBFlute world, java-doc, SchemaHTML... - # DB comment which does not have the delimiter is not treated - # as alias, treated as description (real comment). - # But you can change it by 'isDbCommentOnAliasBasis'. - # - #; aliasDelimiterInDbComment = : - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isDbCommentOnAliasBasis (NotRequired - Default false) - # Is DB comment on alias basis? - # (Is DB comment alias name when it has no alias delimiter?) - # This property works with 'aliasDelimiterInDbComment'. - # - #; isDbCommentOnAliasBasis = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isEntityJavaDocDbCommentValid (NotRequired - Default true) - # Does it allow DB comment to be on java-doc? - # - #; isEntityJavaDocDbCommentValid = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isEntityDBMetaDbCommentValid (NotRequired - Default false) - # Does it allow DB comment to be on DB meta of entity? - # - #; isEntityDBMetaDbCommentValid = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o schemaHtmlFileName (NotRequired - Default 'schema-[project-name].html') - # The file name (not contain path) of SchemaHtml. - # Basically you don't need this. - # (For example, when you use Application Behavior, you need this) - # - #; schemaHtmlFileName = xxx.html - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressSchemaHtmlOutsideSql (NotRequired - Default false) - # Does it remove outsideSql information from SchemaHtml? - # Basically you don't need this. - # OutsideSql information (related to tables) is very useful. - # - #; isSuppressSchemaHtmlOutsideSql = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressSchemaHtmlProcedure (NotRequired - Default false) - # Does it remove procedure information from SchemaHtml? - # Basically you don't need this. - # Procedure information is very useful. - # - #; isSuppressSchemaHtmlProcedure = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o historyHtmlFileName (NotRequired - Default 'history-[project-name].html') - # The file name (not contain path) of HistoryHtml. - # Basically you don't need this. - # (For example, when you use Application Behavior, you need this) - # - #; historyHtmlFileName = xxx.html - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isCheckColumnDefOrderDiff (NotRequired - Default false) - # Does it check differences of column-def order? - # (except added or deleted columns) - # - #; isCheckColumnDefOrderDiff = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isCheckDbCommentDiff (NotRequired - Default false) - # Does it check differences of table or column or others comment? - # - #; isCheckDbCommentDiff = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isCheckProcedureDiff (NotRequired - Default false) - # Does it check differences of procedures? - # - #; isCheckProcedureDiff = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o loadDataReverseMap: (NotRequired - Default map:{}) - # You can set LoadDataReverse settings. - # This property is valid when the property 'recordLimit' is set. - # Elements of this map are as below: - # o recordLimit: The limit of records to output. Minus means no limit. (NotRequired - Default '') - # o isReplaceSchemaDirectUse: Does it output the data to playsql directly? (NotRequired - Default false) - # o isOverrideExistingDataFile: Does it output to existing files? (NotRequired - Default false) - # o isSynchronizeOriginDate: Does it synchronize origin date for date adjustment? (NotRequired - Default false) - # - #; loadDataReverseMap = map:{ - # ; recordLimit = -1 - # ; isReplaceSchemaDirectUse = false - # ; isOverrideExistingDataFile = false - # ; isSynchronizeOriginDate = false - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o schemaSyncCheckMap: (NotRequired - Default map:{}) - # You can set SchemaSyncCheck settings. - # This property is valid when the property 'user' is set. - # Elements of this map are as below: - # o url: The URL for connecting database. (NotRequired - Default same as databaseInfoMap) - # o schema: The schema name. (NotRequired - Default '' e.g. no setting when MySQL) - # o user: The database user name. (Required) - # o password: The database password. (NotRequired - Default '') - # - #; schemaSyncCheckMap = map:{ - # ; url = jdbc:... - # ; schema = EXAMPLEDB - # ; user = exampuser - # ; password = exampword - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o propertiesHtmlMap: (NotRequired - Default map:{}) - # You can set PropertiesHtml settings. - # Elements of this map are as below: - # o key of map: Properties Title Name - # o baseDir: base directory for directory property. (NotRequired) - # o rootFile: root file to read properties (Required) - # o environmentMap: map of environment files, the value is dir path (NotRequired) - # o diffIgnoredKeyList: list of ignored keys for differences (NotRequired) - # o maskedKeyList: list of masked keys for security (NotRequired) - # o isEnvOnlyFloatLeft: is it environment only? (and show as float-left?) (NotRequired) - # o extendsPropRequest: other request name of exnteds-properties (NotRequired) - # o isCheckImplicitOverride: does it check implicit override? (NotRequired) - # - #; propertiesHtmlMap = map:{ - # ; ApplicationProperties = map:{ - # ; baseDir = ../src - # ; rootFile = $$baseDir$$/main/resources/application_ja.properties - # ; environmentMap = map:{ - # ; integration = $$baseDir$$/integration/resources - # ; production = $$baseDir$$/production/resources - # } - # ; diffIgnoredKeyList = list:{} - # ; maskedKeyList = list:{} - # ; isEnvOnlyFloatLeft = false - # ; extendsPropRequest = null - # ; isCheckImplicitOverride = false - # } - #} - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_oracle/dfprop/includeQueryMap.dfprop b/dbflute_oracle/dfprop/includeQueryMap.dfprop deleted file mode 100644 index 6ab84be3f..000000000 --- a/dbflute_oracle/dfprop/includeQueryMap.dfprop +++ /dev/null @@ -1,99 +0,0 @@ -# /--------------------------------------------------------------------------- -# includeQueryMap: (NotRequired - Default map:{}) -# -# Specification: -# map:{ -# ; [property-type] = map:{ -# ; [condition-key] = map:{ [table] = list:{ [column] ; [column] } } -# } -# -# property-type: String, Number, Date, OrderBy, ... -# condition-key: NotEqual, GreaterThan, LessThan, GreaterEqual, LessEqual -# , InScope, NotInScope, PrefixSearch, LikeSearch, NotLikeSearch -# , EmptyString, FromTo, DateFromTo, RangeOf, ... -# , (and prefix '!' means excluding, '%' means reviving) -# table: table name (hint) or $$ALL$$ -# column: column name (hint) or $$CommonColumn$$ or $$VersionNo$$ -# -# Example: -# map:{ -# # This means that String includes GreaterThan at MEMBER.MEMBER_ACCOUNT only -# # and LessThan at PRODUCT.PRODUCT_NAME and PRODUCT.PRODUCT_HANDLE_CODE, -# # and InScope for LONGVARCHAR(e.g. text type) is excluded. -# ; String = map:{ -# ; GreaterThan = map:{ MEMBER = list:{ MEMBER_ACCOUNT } } -# ; LessThan = map:{ PRODUCT = list:{ PRODUCT_NAME ; PRODUCT_HANDLE_CODE } } -# ; !InScope = map:{ $$ALL$$ = list:{ type:LONGVARCHAR } } -# } -# # This means that Number excludes all version-no's NotEqual. -# ; Number = map:{ -# ; !NotEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } -# } -# # This means that Date does not includes NotEqual at all tables. -# ; Date = map:{ -# ; NotEqual = map:{} -# } -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - ; String = map:{ - # [Include] - # String columns may not be needed - # to be set these condition-keys basically. - #; GreaterThan = map:{} - #; LessThan = map:{} - #; GreaterEqual = map:{} - #; LessEqual = map:{} - - # [Exclude] - # Common columns of String type may not be needed - # to be set these condition-keys basically. - #; !NotEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !GreaterThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LessThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !GreaterEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LessEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !InScope = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !NotInScope = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !PrefixSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LikeSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !NotLikeSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - } - ; Number = map:{ - # [Include] - # ... - - # [Exclude] - # VersionNo column may not be needed - # to be set these condition-keys basically. - #; !NotEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !GreaterThan = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !LessThan = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !GreaterEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !LessEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !RangeOf = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !InScope = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - #; !NotInScope = map:{ $$ALL$$ = list:{ $$VersionNo$$ } } - } - ; Date = map:{ - # [Include] - # Date columns may not be needed - # to be set these condition-keys basically. - ; NotEqual = map:{} - ; InScope = map:{} - ; NotInScope = map:{} - - # [Exclude] - # Common columns of Date type may not be needed - # to be set these condition-keys basically. - #; !GreaterThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LessThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !GreaterEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !LessEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !FromTo = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - #; !DateFromTo = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } } - } -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_oracle/dfprop/littleAdjustmentMap.dfprop b/dbflute_oracle/dfprop/littleAdjustmentMap.dfprop deleted file mode 100644 index 8eef4a1ea..000000000 --- a/dbflute_oracle/dfprop/littleAdjustmentMap.dfprop +++ /dev/null @@ -1,345 +0,0 @@ -# /--------------------------------------------------------------------------- -# littleAdjustmentMap: (NotRequired - Default map:{}) -# -# The various settings about a little adjustment. -# -# o isAvailableAddingSchemaToTableSqlName: (NotRequired - Default false) -# o isAvailableAddingCatalogToTableSqlName: (NotRequired - Default false) -# o isAvailableDatabaseDependency: (NotRequired - Default false) -# o isAvailableDatabaseNativeJDBC: (NotRequired - Default false) -# o isAvailableNonPrimaryKeyWritable: (NotRequired - Default false) -# o isCheckSelectedClassification: (NotRequired - Default false) -# o isForceClassificationSetting: (NotRequired - Default false) -# o isMakeEntityChaseRelation: (NotRequired - Default false) -# o isEntityConvertEmptyStringToNull: (NotRequired - Default false) -# o isMakeConditionQueryEqualEmptyString: (NotRequired - Default false) -# o isPagingCountLater: (NotRequired - Default true) -# o isPagingCountLeastJoin: (NotRequired - Default true) -# o isInnerJoinAutoDetect: (NotRequired - Default true) -# o isTableDispNameUpperCase: (NotRequired - Default false) -# o isTableSqlNameUpperCase: (NotRequired - Default false) -# o isColumnSqlNameUpperCase: (NotRequired - Default false) -# o isMakeDeprecated: (NotRequired - Default false) -# o isMakeRecentlyDeprecated: (NotRequired - Default true) -# o extendedDBFluteInitializerClass: (NotRequired - Default '') -# o extendedImplementedInvokerAssistantClass: (NotRequired - Default '') -# o extendedImplementedCommonColumnAutoSetupperClass: (NotRequired - Default '') -# o extendedS2DaoSettingClass: (NotRequired - Default '') -# o shortCharHandlingMode: (NotRequired - Default NONE) -# o quoteTableNameList: (NotRequired - Default list:{}) -# o quoteColumnNameList: (NotRequired - Default list:{}) -# o relationalNullObjectMap: (NotRequired - Default map:{}) -# o cursorSelectFetchSize: (NotRequired - Default null) -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableAddingSchemaToTableSqlName: (NotRequired - Default false) - # [true] - # Add schema to table SQL name. (The table name on query is SCHEMA.TABLE) - # - # [false] - # Non. - # - #; isAvailableAddingSchemaToTableSqlName = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableAddingCatalogToTableSqlName: (NotRequired - Default false) - # [true] - # Add catalog to table SQL name. (The table name on query is CATALOG.SCHEMA.TABLE) - # This property works only when isAvailableAddingSchemaToTableSqlName is true. - # - # [false] - # Non. - # - #; isAvailableAddingCatalogToTableSqlName = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableDatabaseDependency: (NotRequired - Default false) - # [true] - # Generate the method that depends on the database. - # For example: cb.lockWithRR() at DB2. - # - # [false] - # Non. - # - #; isAvailableDatabaseDependency = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableDatabaseNativeJDBC: (NotRequired - Default false) - # [true] - # Use classes of database native JDBC on generated classes - # to get best performances of DB access. - # Your project needs to refer to database native JDBC. - # - # [false] - # Non. - # - #; isAvailableDatabaseNativeJDBC = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isAvailableNonPrimaryKeyWritable: (NotRequired - Default false) - # [true] - # Generate writable methods at non-primary-key table. - # - # [false] - # Non. - # - #; isAvailableNonPrimaryKeyWritable = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isCheckSelectedClassification: (NotRequired - Default false) - # [true] - # Check a code of a column related to classification - # whether it's one of classification when it's selected. - # If wrong, throws an exception (when selecting). - # - # [false] - # Non. - # - #; isCheckSelectedClassification = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isForceClassificationSetting: (NotRequired - Default false) - # [true] - # Force developer to set a code of a column related to classification - # by classification type-safe method of Entity and ConditionBean. - # A setter method of original type becomes 'protected' scope. - # - # [false] - # Non. - # - #; isForceClassificationSetting = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isMakeEntityChaseRelation: (NotRequired - Default false) - # [true] - # Make chase-relation methods of entity. - # For example: member.chaseMemberStatus().getMemberStatusName() - # This statement doesn't have a null pointer if the MemberStatus doesn't exist. - # - # [false] - # Non. - # - #; isMakeEntityChaseRelation = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isEntityConvertEmptyStringToNull: (NotRequired - Default false) - # [true] - # Convert empty-string data to null in entity. - # - # [false] - # Non. - # - #; isEntityConvertEmptyStringToNull = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isMakeConditionQueryEqualEmptyString: (NotRequired - Default false) - # [true] - # Make equal-empty-string methods of condition-query. - # For example: cb.query().setMemberName_Equal_EmptyString() - # - # [false] - # Non. - # - #; isMakeConditionQueryEqualEmptyString = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isPagingCountLater: (NotRequired - Default true) - # [true] - # The count SQL for paging are executed after paging main select. - # - # [false] - # Non. - # - #; isPagingCountLater = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isPagingCountLeastJoin: (NotRequired - Default true) - # [true] - # Join statements in count SQL of paging select are trimmed - # for performance tuning. (only countable joins are valid) - # - # [false] - # Non. - # - #; isPagingCountLeastJoin = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isInnerJoinAutoDetect: (NotRequired - Default true) - # [true] - # Joins that can be inner-join on condition-bean are auto-detected - # for performance tuning. (DBFlute uses NotNull constraint info) - # - # [false] - # Non. - # - #; isInnerJoinAutoDetect = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isTableDispNameUpperCase: (NotRequired - Default false) - # [true] - # Table names for display, e.g. on documents, - # are forcedly treated as upper case. - # - # [false] - # Non. - # - #; isTableDispNameUpperCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isTableSqlNameUpperCase: (NotRequired - Default false) - # [true] - # Table names on SQL executed by condition-bean or behavior - # are forcedly treated as upper case. (except outside-SQL) - # - # [false] - # Non. - # - #; isTableSqlNameUpperCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isColumnSqlNameUpperCase: (NotRequired - Default false) - # [true] - # Column names on SQL executed by condition-bean or behavior - # are forcedly treated as upper case. (except outside-SQL) - # - # [false] - # Non. - # - #; isColumnSqlNameUpperCase = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isMakeDeprecated: (NotRequired - Default false) - # [true] - # Make deprecated method and class and so on... - # *You should specify this property 'false'! - # - # [false] - # Non. - # - #; isMakeDeprecated = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isMakeRecentlyDeprecated: (NotRequired - Default true) - # [true] - # Make RECENTLY deprecated method and class and so on... - # *You should specify this property 'false'! - # - # [false] - # Non. - # - #; isMakeRecentlyDeprecated = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o extendedDBFluteInitializerClass: (NotRequired - Default '') - # If you want to extend the embedded DBFlute initializer, - # specify the class name of your original initializer - # that extends the embedded one. - # *Basically for fixed DBFluteConfig settings - # - # @JavaOnly - #; extendedDBFluteInitializerClass = com.example.ExtendedDBFluteInitializer - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o extendedImplementedInvokerAssistantClass: (NotRequired - Default '') - # If you want to extend the embedded invoker assistant, - # specify the class name of your original invoker assistant - # that extends the embedded one. - # *Basically you SHOULD NOT specify this property! - # - # @JavaOnly - #; extendedImplementedInvokerAssistantClass = com.example.ExtendedImplementedInvokerAssistant - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o extendedImplementedCommonColumnAutoSetupperClass: (NotRequired - Default '') - # If you want to extend the embedded common column auto setupper, - # specify the class name of your original common column auto setupper - # that extends the embedded one. - # *Basically you SHOULD NOT specify this property! - # - # @JavaOnly - #; extendedImplementedCommonColumnAutoSetupperClass = com.example.ExtendedImplementedCommonColumnAutoSetupper - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o extendedS2DaoSettingClass: (NotRequired - Default '') - # If you want to extend the embedded S2Dao setting, - # specify the class name of your original S2Dao setting - # that extends the embedded one. - # *Basically you SHOULD NOT specify this property! - # - # @CSharpOnly - #; extendedS2DaoSettingClass = Com.Example.ExtendedS2DaoSetting - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o shortCharHandlingMode: (NotRequired - Default NONE) - # If the parameter of condition-bean or parameter-bean has short size, - # NONE - Do nothing. (default) - # EXCEPTION - It throws an exception. - # RFILL - It fills the parameter by right spaces. - # LFILL - It fills the parameter by left spaces. - # - #; shortCharHandlingMode = NONE - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o quoteTableNameList: (NotRequired - Default list:{}) - # The list of table DB names that need to be quoted. - # Specified tables is quoted on auto-generated SQL. - # - #; quoteTableNameList = list:{} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o quoteColumnNameList: (NotRequired - Default list:{}) - # The list of column DB names that need to be quoted. - # Specified columns is quoted on auto-generated SQL. - # - #; quoteColumnNameList = list:{} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o relationalNullObjectMap: (NotRequired - Default map:{}) - # You can get a null object when the relation is null. - # - #; relationalNullObjectMap = map:{ - # ; providerPackage = $$packageBase$$.nogen.cache - # ; foreignMap = map:{ - # ; MEMBER_STATUS = CachedMemberStatus.get($$PrimaryKey$$) - # ; MEMBER_SECURITY = CachedMemberSecurity.get($$PrimaryKey$$) - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o cursorSelectFetchSize: (NotRequired - Default null) - # The fetch size of JDBC parameter for cursor select. - # For example, specify Integer.MIN_VALUE to enable fetch of MySQL. - # - #; cursorSelectFetchSize = Integer.MIN_VALUE - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_oracle/dfprop/optimisticLockDefinitionMap.dfprop b/dbflute_oracle/dfprop/optimisticLockDefinitionMap.dfprop deleted file mode 100644 index 840fe0641..000000000 --- a/dbflute_oracle/dfprop/optimisticLockDefinitionMap.dfprop +++ /dev/null @@ -1,28 +0,0 @@ -# /--------------------------------------------------------------------------- -# optimisticLockDefinitionMap: (NotRequired - Default map:{}) -# -# The definition for optimistic lock of DBFlute. -# -# o updateDateFieldName: (NotRequired - Default '') -# o versionNoFieldName: (NotRequired - Default 'VERSION_NO') -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o updateDateFieldName: (NotRequired - Default '') - # The column name of update date for optimistic lock. - # - #; updateDateFieldName = UPDATE_DATE - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o versionNoFieldName: (NotRequired - Default 'VERSION_NO') - # The column name of version no for optimistic lock. - # Basically you don't need this if your tables have the column 'VERSION_NO'. - # because the default value is 'VERSION_NO'. - # - #; versionNoFieldName = VERSION_NO - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_oracle/dfprop/outsideSqlDefinitionMap.dfprop b/dbflute_oracle/dfprop/outsideSqlDefinitionMap.dfprop deleted file mode 100644 index 0026e15b6..000000000 --- a/dbflute_oracle/dfprop/outsideSqlDefinitionMap.dfprop +++ /dev/null @@ -1,187 +0,0 @@ -# /--------------------------------------------------------------------------- -# outsideSqlDefinitionMap: (NotRequired - Default map:{}) -# -# The various settings about outsideSql. -# -# o isGenerateProcedureParameterBean: (NotRequired - Default false) -# o isGenerateProcedureCustomizeEntity: (NotRequired - Default false) -# o targetProcedureCatalogList: (NotRequired - Default list:{}) -# o targetProcedureSchemaList: (NotRequired - Default list:{}) -# o targetProcedureNameList: (NotRequired - Default list:{}) -# o executionMetaProcedureNameList: (NotRequired - Default list:{}) -# o procedureSynonymHandlingType: (NotRequired - Default NONE) -# o isRequiredSqlTitle: (NotRequired - Default false) -# o isRequiredSqlDescription: (NotRequired - Default false) -# o sqlFileEncoding: (NotRequired - Default 'UTF-8') -# o sqlDirectory: (NotRequired - Default generateOutputDirectory & resourceOutputDirectory) -# o sql2EntityOutputDirectory: (NotRequired - Default generateOutputDirectory) -# o applicationOutsideSqlMap: (NotRequired - Default map:{}) -# o sqlPackage: (NotRequired - Default all packages) -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isGenerateProcedureParameterBean: (NotRequired - Default false) - # [true] - # The parameter beans for procedure are auto-generated. - # If you call the procedure from DBFlute, you should specify 'true'! - # - # [false] - # Non. - # - ; isGenerateProcedureParameterBean = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isGenerateProcedureCustomizeEntity: (NotRequired - Default false) - # [true] - # The customize entities for procedure's out-parameter - # and not-param-result are auto-generated. - # And also not-param-result's properties are auto-generated. - # Target procedures are executed actually at Sql2Entity task. - # (because of getting from execution meta data (result set meta data)) - # This property is valid only when isGenerateProcedureParameterBean is true. - # - # [false] - # Non. - # - ; isGenerateProcedureCustomizeEntity = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetProcedureCatalogList: (NotRequired - Default list:{}) - # You can specify target catalog of generated parameter bean for procedure. - # This property is valid only when generateProcedureParameterBean is valid. - # - #; targetProcedureCatalogList = list:{FOO_CATALOG ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetProcedureSchemaList: (NotRequired - Default list:{}) - # You can specify target schema of generated parameter bean for procedure. - # This property is valid only when generateProcedureParameterBean is valid. - # e.g. list:{PROCEDUREDB} - # - #; targetProcedureSchemaList = list:{FOO_SCHEMA ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o targetProcedureNameList: (NotRequired - Default list:{}) - # You can specify target name of generated parameter bean for procedure. - # This property is valid only when isGenerateProcedureParameterBean is valid. - # e.g. list:{prefix:SP_} - # And you can specify procedures through DB link. - # This is treated as additional setting - # so it is independent from specifications for main schema. - # e.g. SP_FOO@NEXT_LINK (when DB link name is 'NEXT_LINK') - # - #; targetProcedureNameList = list:{FOO_PROCEDURE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o executionMetaProcedureNameList: (NotRequired - Default list:{}) - # You can specify target name of generated customize entity for procedure. - # This property is valid only when isGenerateProcedureCustomizeEntity is valid. - # e.g. list:{prefix:SP_} - # - #; executionMetaProcedureNameList = list:{FOO_PROCEDURE ; prefix:FOO_ ; suffix:_FOO ; contain:_FOO_} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o procedureSynonymHandlingType: (NotRequired - Default NONE) - # You can specify the handling type of procedure synonym. - # NONE - No handling. (default) - # INCLUDE - It includes procedure synonyms. - # SWITCH - It switches all normal procedures to procedure synonyms. - # - #; procedureSynonymHandlingType = NONE - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isRequiredSqlTitle: (NotRequired - Default false) - # [true] - # You should always write the title of outsideSql. - # If it doesn't exist, the OutsideSqlTest task fails. - # - # [false] - # Non. - # - #; isRequiredSqlTitle = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isRequiredSqlDescription: (NotRequired - Default false) - # [true] - # You should always write the description of outsideSql. - # If it doesn't exist, the OutsideSqlTest task fails. - # - # [false] - # Non. - # - #; isRequiredSqlDescription = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sqlFileEncoding: (NotRequired - Default 'UTF-8') - # The encoding of SQL file for outsideSql. - # Basically you don't need this. - # - #; sqlFileEncoding = UTF-8 - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sqlDirectory: (NotRequired - Default generateOutputDirectory & resourceOutputDirectory) - # The directory of SQL file for outsideSql. - # Basically you don't need this if your directory structure is same as default. - # It's also for DBFlute library project when you use ApplicationOutsideSql. - # - #; sqlDirectory = ../src/main/resources - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sql2EntityOutputDirectory: (NotRequired - Default generateOutputDirectory) - # The output directory of classes that is generated by Sql2Entity. - # Basically you don't need this if your directory structure is same as default. - # It's also for DBFlute library project when you use ApplicationOutsideSql. - # - #; sql2EntityOutputDirectory = ../src/main/java - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o applicationOutsideSqlMap: (NotRequired - Default map:{}) - # You can set additional users. - # Elements of this map are as below: - # o key of map: a relative path to the application project from DBFlute client - # o sqlDirectory: SQL directory as a relative path from the application directory - # (NotRequired - Default Java:'src/main/java' & 'src/main/resources' CSharp:'source') - # o sql2EntityOutputDirectory: source output directory from as a relative path from the application directory - # (NotRequired - Default Java:'src/main/java' CSharp:'source') - # - #; applicationOutsideSqlMap = map:{ - # ; ../../app1 = map:{ - # ; sqlDirectory = src/main/resources - # ; sql2EntityOutputDirectory = src/main/java - # } - # ; ../../app2 = map:{ - # ; sqlDirectory = src/main/resources - # ; sql2EntityOutputDirectory = src/main/java - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sqlPackage: (NotRequired - Default all packages) - # The package of SQL file for outsideSql. - # This is basically for narrowing SQL-searching target, - # for example, when the project has SQL files for other framework. - # So basically you don't need this. - # - # You can use variable '$$PACKAGE_BASE$$' that means 'packageBase'. - # But you need to make SQL files at 'exbhv' under the set package - # if you use BehaviorQueryPath (MemberBhv_selectSimpleMember.sql). - # - #; sqlPackage = $$PACKAGE_BASE$$ - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_oracle/dfprop/refreshDefinitionMap.dfprop b/dbflute_oracle/dfprop/refreshDefinitionMap.dfprop deleted file mode 100644 index 72dec681a..000000000 --- a/dbflute_oracle/dfprop/refreshDefinitionMap.dfprop +++ /dev/null @@ -1,19 +0,0 @@ -# /--------------------------------------------------------------------------- -# refreshDefinitionMap: (NotRequired - Default map:{}) -# -# If you use ResourceSynchronizer and specify this property, -# You don't need to refresh(F5) your eclipse project. -# -# Specification: -# map:{ -# ; projectName = [Eclipse Project1] / [Eclipse Project2] / ... -# ; requestUrl = [ResourceSynchronizer's URL] -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; projectName = dbflute-basic-example - #; requestUrl = http://localhost:8386/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_oracle/dfprop/replaceSchemaDefinitionMap.dfprop b/dbflute_oracle/dfprop/replaceSchemaDefinitionMap.dfprop deleted file mode 100644 index 11b8705b8..000000000 --- a/dbflute_oracle/dfprop/replaceSchemaDefinitionMap.dfprop +++ /dev/null @@ -1,234 +0,0 @@ -# /--------------------------------------------------------------------------- -# replaceSchemaDefinitionMap: (NotRequired - Default map:{}) -# -# The various settings about replace-schema. -# -# o repsEnvType: (NotRequired - Default inherits or 'ut') -# o isLoggingInsertSql: (NotRequired - Default true) -# o isLoggingReplaceSql: (NotRequired - Default true) -# o isErrorSqlContinue: (NotRequired - Default false) -# o sqlFileEncoding: (NotRequired - Default 'UTF-8') -# o skipSheet: (NotRequired - Default '') -# o isIncrementSequenceToDataMax: (NotRequired - Default false) -# o isSuppressBatchUpdate: (NotRequired - Default false) -# o objectTypeTargetList: (NotRequired - Default databaseInfoMap's) -# o filterVariablesMap: (NotRequired - Default map:{}) -# o additionalUserMap: (NotRequired - Default map:{}) -# o additionalDropMapList: (NotRequired - Default list:{}) -# o playSqlDirectory: (NotRequired - Default 'playsql') -# o applicationPlaySqlDirectory: (NotRequired - Default '') -# o arrangeBeforeRepsMap: (NotRequired - Default map:{}) -# o isSuppressTruncateTable: (NotRequired - Default false) -# o isSuppressDropForeignKey: (NotRequired - Default false) -# o isSuppressDropTable: (NotRequired - Default false) -# o isSuppressDropSequence: (NotRequired - Default false) -# o isSuppressDropProcedure: (NotRequired - Default false) -# o isSuppressDropDBLink: (NotRequired - Default false) -# o initializeFirstSqlList: (NotRequired - Default list:{}) -# -# *The line that starts with '#' means comment-out. -# -map:{ - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o repsEnvType: (NotRequired - Default inherits or 'ut') - # The environment type of ReplaceSchema. - # e.g. if ut, data files in './playsql/data/ut/...' are loaded - # If DBFlute environment type is specified, inherits it as default. - # - #; repsEnvType = ut - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isLoggingInsertSql: (NotRequired - Default true) - # Does it show insert values on log? - # - #; isLoggingInsertSql = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isLoggingReplaceSql: (NotRequired - Default true) - # Does it show replace-SQL on log? - # - #; isLoggingReplaceSql = true - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isErrorSqlContinue: (NotRequired - Default false) - # Does it continue the task when error SQL exists? - # - #; isErrorSqlContinue = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o sqlFileEncoding: (NotRequired - Default 'UTF-8') - # The encoding of SQL(DDL) file for Replace Schema. - # Basically you don't need this. - # - #; sqlFileEncoding = UTF-8 - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o skipSheet: (NotRequired - Default '') - # You can specify the skip sheet by regular expression - # - #; skipSheet = P.+ - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isIncrementSequenceToDataMax: (NotRequired - Default false) - # Does it increment sequence values to max value of table data? - # Referring the property 'sequenceDefinitionMap'. - # - #; isIncrementSequenceToDataMax = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressBatchUpdate: (NotRequired - Default false) - # Does it suppress batch update at loading data? - # When you have a data error, you may get details for the error - # by this property changing. Because it is possible that - # the BatchUpdateException information is very short for debug. - # - #; isSuppressBatchUpdate = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o objectTypeTargetList: (NotRequired - Default databaseInfoMap's) - # This property overrides databaseInfoMap's one for ReplaceSchema. - # e.g. Synonym of Oracle --> list:{TABLE ; VIEW ; SYNONYM} - # - #; objectTypeTargetList = list:{TABLE ; VIEW} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o filterVariablesMap: (NotRequired - Default map:{}) - # You can specify the filter variables for DDL. - # - #; filterVariablesMap = map:{abc=AAA} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o additionalUserMap: (NotRequired - Default map:{}) - # You can set additional users. - # Elements of this map are as below: - # o key of map: User Definition Name (userDefName) - # o url: (NotRequired - Default same as one of main schema) - # o schema: (NotRequired - Default treated as no schema setting) - # o user: (Required) - # o password: password plainly or path to password file (with default password) - # e.g. foo or df:dfprop/system-password.txt|foo - # (NotRequired - Default '') - # o isSkipIfNotFoundPasswordFileAndDefault: Does it skip the user SQL statement - # when using password file but not found it and also default password? - # (NotRequired - Default false) - # - #; additionalUserMap = map:{ - # ; system = map:{ - # #; url = ... - # #; schema = ... - # ; user = system - # ; password = df:dfprop/system-password.txt - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o additionalDropMapList: (NotRequired - Default list:{}) - # You can drop additional other schemas. - # Elements of this map are as below: - # o url: (NotRequired - Default same as main schema) - # o schema: (Required: if empty schema means valid schema, not required) - # o user: (NotRequired - Default same as main schema) - # o password: (NotRequired - Default same as main schema) - # o propertiesMap: (NotRequired - Default map:{}) - # o objectTypeTargetList: (NotRequired - Default list{TABLE;VIEW}) - # - #; additionalDropMapList = list:{ - # ; map:{ - # ; url = jdbc:oracle:thin:... - # ; schema = NEXTEXAMPLEDB - # ; user = NEXTEXAMPLEDB - # ; password = NEXTEXAMPLEDB - # ; propertiesMap = map:{} - # ; objectTypeTargetList = list:{TABLE;VIEW} - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o playSqlDirectory: (NotRequired - Default 'playsql' relative to DBFlute client) - # This property is relative path to (main) PlaySql directory, - # You should not use this property easily. - # - #; playSqlDirectory = ../../foo-project/playsql - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o applicationPlaySqlDirectory: (NotRequired - Default '') - # This property is relative path to Application PlaySql directory, - # which is basically used with ApplicationBehavior. - # - #; applicationPlaySqlDirectory = ../../foo-project/dbflute_apbranch/playsql - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o arrangeBeforeRepsMap: (NotRequired - Default map:{}) - # You can arrange resource files before ReplaceSchema. - # - #; arrangeBeforeRepsMap = map:{ - # ; copy = map:{ - # ; ../erd/*.ddl = ./playsql/replace-schema-10-basic.sql - # } - #} - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressTruncateTable: (NotRequired - Default false) - # You can suppress truncating tables at initializing schema. - # - #; isSuppressTruncateTable = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropForeignKey: (NotRequired - Default false) - # You can suppress dropping foreign keys at initializing schema. - # - #; isSuppressDropForeignKey = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropTable: (NotRequired - Default false) - # You can suppress dropping tables at initializing schema. - # - #; isSuppressDropTable = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropSequence: (NotRequired - Default false) - # You can suppress dropping sequences at initializing schema. - # - #; isSuppressDropSequence = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropProcedure: (NotRequired - Default false) - # You can suppress dropping procedures at initializing schema. - # - #; isSuppressDropProcedure = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o isSuppressDropDBLink: (NotRequired - Default false) - # You can suppress dropping DB links at initializing schema. - # - #; isSuppressDropDBLink = false - # - - - - - - - - - -/ - - # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o initializeFirstSqlList: (NotRequired - Default list:{}) - # You can execute the SQL statements before initializing schema. - # - #; initializeFirstSqlList = list:{} - # - - - - - - - - - -/ -} -# ----------------/ \ No newline at end of file diff --git a/dbflute_oracle/dfprop/sequenceDefinitionMap.dfprop b/dbflute_oracle/dfprop/sequenceDefinitionMap.dfprop deleted file mode 100644 index 770222fb4..000000000 --- a/dbflute_oracle/dfprop/sequenceDefinitionMap.dfprop +++ /dev/null @@ -1,53 +0,0 @@ -# /--------------------------------------------------------------------------- -# sequenceDefinitionMap: (NotRequired - Default map:{}) -# -# The relation mappings between sequence and table. -# If you don't specify the mappings, you cannot insert -# a record of the table by sequence. -# The table names are treated as case insensitive. -# -# Example: -# map:{ -# ; PURCHASE = SEQ_PURCHASE -# ; MEMBER = SEQ_MEMBER -# ; MEMBER_LOGIN = SEQ_MEMBER_LOGIN -# ; PRODUCT = SEQ_PRODUCT -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - #; PURCHASE = SEQ_PURCHASE - #; MEMBER = SEQ_MEMBER - #; MEMBER_LOGIN = SEQ_MEMBER_LOGIN - #; PRODUCT = SEQ_PRODUCT -; WEB_CRAWLING_CONFIG = WEB_CRAWLING_CONFIG_SEQ:dfcache() -; FILE_CRAWLING_CONFIG = FILE_CRAWLING_CONFIG_SEQ:dfcache() -; WEB_CONFIG_TO_B_TYPE = WEB_CONFIG_TO_B_TYPE_SEQ:dfcache() -; FILE_CONFIG_TO_B_TYPE = FILE_CONFIG_TO_B_TYPE_SEQ:dfcache() -; PATH_MAPPING = PATH_MAPPING_SEQ:dfcache() -; CRAWLING_SESSION = CRAWLING_SESSION_SEQ:dfcache() -; OVERLAPPING_HOST = OVERLAPPING_HOST_SEQ:dfcache() -; REQUEST_HEADER = REQUEST_HEADER_SEQ:dfcache() -; WEB_AUTHENTICATION = WEB_AUTHENTICATION_SEQ:dfcache() -; CRAWLING_SESSION_INFO = CRAWLING_SESSION_INFO_SEQ:dfcache() -; LABEL_TYPE = LABEL_TYPE_SEQ:dfcache() -; FILE_CONFIG_TO_LABEL_TYPE = FILE_CONFIG_TO_LABEL_TYPE_SEQ:dfcache() -; WEB_CONFIG_TO_LABEL_TYPE = WEB_CONFIG_TO_LABEL_TYPE_SEQ:dfcache() -; ROLE_TYPE = ROLE_TYPE_SEQ:dfcache() -; FILE_CONFIG_TO_ROLE_TYPE = FILE_CONFIG_TO_ROLE_TYPE_SEQ:dfcache() -; WEB_CONFIG_TO_ROLE_TYPE = WEB_CONFIG_TO_ROLE_TYPE_SEQ:dfcache() -; DATA_CRAWLING_CONFIG = DATA_CRAWLING_CONFIG_SEQ:dfcache() -; DATA_CONFIG_TO_ROLE_TYPE = DATA_CONFIG_TO_ROLE_TYPE_SEQ:dfcache() -; DATA_CONFIG_TO_LABEL_TYPE = DATA_CONFIG_TO_LABEL_TYPE_SEQ:dfcache() -; DATA_CONFIG_TO_B_TYPE = DATA_CONFIG_TO_B_TYPE_SEQ:dfcache() -; USER_INFO = USER_INFO_SEQ:dfcache() -; SEARCH_LOG = SEARCH_LOG_SEQ:dfcache() -; LABEL_TYPE_TO_ROLE_TYPE = LABEL_TYPE_TO_ROLE_TYPE_SEQ:dfcache() -; CLICK_LOG = CLICK_LOG_SEQ:dfcache() -; FAILURE_URL = FAILURE_URL_SEQ:dfcache() -; FILE_AUTHENTICATION = FILE_AUTHENTICATION_SEQ:dfcache() -; SEARCH_FIELD_LOG = SEARCH_FIELD_LOG_SEQ:dfcache() -; FAVORITE_LOG = FAVORITE_LOG_SEQ:dfcache() -} -# ----------------/ diff --git a/dbflute_oracle/dfprop/table.except.list.dfprop b/dbflute_oracle/dfprop/table.except.list.dfprop deleted file mode 100644 index 6d5c31904..000000000 --- a/dbflute_oracle/dfprop/table.except.list.dfprop +++ /dev/null @@ -1,6 +0,0 @@ -list:{ - ;prefix:APEX - ;prefix:DEMO - ;prefix:DEPT - ;prefix:EMP -} diff --git a/dbflute_oracle/dfprop/typeMappingMap.dfprop b/dbflute_oracle/dfprop/typeMappingMap.dfprop deleted file mode 100644 index 0b5b734d9..000000000 --- a/dbflute_oracle/dfprop/typeMappingMap.dfprop +++ /dev/null @@ -1,57 +0,0 @@ -# /--------------------------------------------------------------------------- -# typeMappingMap: (NotRequired - Default map:{}) -# -# If you want to change mappings from default mappings, -# you can specify your original mappings. -# But it is possible that unanticipated problems occurs, so be careful! -# -# About '$$AutoMapping$$': -# If the database is Oracle, they often use this. -# For example, if you use this for NUMERIC. -# o Numeric( 1 - 9 , 0) is mapping to INTEGER -# o Numeric(10 - 18 , 0) is mapping to BIGINT -# o Numeric(19 - 38 , 0) is mapping to NUMERIC -# o Numeric( 1 - 38 , 2) is mapping to NUMERIC -# -# Example: -# map:{ -# ; INTEGER = java.lang.Integer -# ; BIGINT = java.lang.Long -# } -# -# *The line that starts with '#' means comment-out. -# -map:{ - # AutoMapping for Numeric and Decimal - ; NUMERIC = $$AutoMapping$$ ; DECIMAL = $$AutoMapping$$ -} -# ----------------/ -# -# Default mapping as follows: -# -------------------------------------------------------- -# | JDBC Type | Java Native | CSharp Native | -# | ------------------------------------------------------ -# | CHAR | java.lang.String | String | -# | VARCHAR | java.lang.String | String | -# | LONGVARCHAR | java.lang.String | String | -# | NUMERIC | java.math.BigDecimal | decimal? | -# | DECIMAL | java.math.BigDecimal | decimal? | -# | TINYINT | java.lang.Integer | int? | -# | SMALLINT | java.lang.Integer | int? | -# | INTEGER | java.lang.Integer | int? | -# | BIGINT | java.lang.Long | long? | -# | REAL | java.math.BigDecimal | decimal? | -# | FLOAT | java.math.BigDecimal | decimal? | -# | DOUBLE | java.math.BigDecimal | decimal? | -# | DATE | java.util.Date | DateTime? | -# | TIME | java.sql.Time | DateTime? | -# | TIMESTAMP | java.sql.Timestamp | DateTime? | -# | BIT | java.lang.Boolean | bool? | -# | BOOLEAN | java.lang.Boolean | bool? | -# | BINARY | byte[] | byte[] | -# | VARBINARY | byte[] | byte[] | -# | LONGVARBINARY | byte[] | byte[] | -# | BLOB | byte[] | byte[] | -# | ARRAY | *Unsupported | *Unsupported | -# | UUID | java.util.UUID | *Unsupported | -# -------------------------------------------------------- diff --git a/dbflute_oracle/doc.bat b/dbflute_oracle/doc.bat deleted file mode 100644 index 3c5ce3f01..000000000 --- a/dbflute_oracle/doc.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the Document task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-doc.cmd %MY_PROPERTIES_PATH% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_oracle/doc.sh b/dbflute_oracle/doc.sh deleted file mode 100644 index 5c5c22117..000000000 --- a/dbflute_oracle/doc.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the Document task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-doc.sh $MY_PROPERTIES_PATH -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_oracle/extlib/_readme.txt b/dbflute_oracle/extlib/_readme.txt deleted file mode 100644 index f5503c636..000000000 --- a/dbflute_oracle/extlib/_readme.txt +++ /dev/null @@ -1,5 +0,0 @@ -Directory for library extension - -If you use a database that DBFlute does not have its JDBC driver, -put your own JDBC driver for the database here. -(e.g. Oracle, DB2, SQLServer) diff --git a/dbflute_oracle/generate.bat b/dbflute_oracle/generate.bat deleted file mode 100644 index 5876c15c9..000000000 --- a/dbflute_oracle/generate.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the Generate task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-generate.cmd %MY_PROPERTIES_PATH% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_oracle/generate.sh b/dbflute_oracle/generate.sh deleted file mode 100644 index 7665c1bf7..000000000 --- a/dbflute_oracle/generate.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the Generate task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-generate.sh $MY_PROPERTIES_PATH -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_oracle/jdbc.bat b/dbflute_oracle/jdbc.bat deleted file mode 100644 index 410e3da5e..000000000 --- a/dbflute_oracle/jdbc.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the JDBC task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-jdbc.cmd %MY_PROPERTIES_PATH% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_oracle/jdbc.sh b/dbflute_oracle/jdbc.sh deleted file mode 100644 index 24985faa9..000000000 --- a/dbflute_oracle/jdbc.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the JDBC task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-jdbc.sh $MY_PROPERTIES_PATH -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_oracle/log/_readme.txt b/dbflute_oracle/log/_readme.txt deleted file mode 100644 index d3f17ea30..000000000 --- a/dbflute_oracle/log/_readme.txt +++ /dev/null @@ -1,4 +0,0 @@ -Directory for log files of DBFlute tasks - -If your execution of DBFlute task fails, -look the log file "dbflute.log" for debug. diff --git a/dbflute_oracle/manage.bat b/dbflute_oracle/manage.bat deleted file mode 100644 index 05124c37d..000000000 --- a/dbflute_oracle/manage.bat +++ /dev/null @@ -1,17 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -set FIRST_ARG=%1 -if "%FIRST_ARG%"=="" set FIRST_ARG="" -set SECOND_ARG=%2 -if "%SECOND_ARG%"=="" set SECOND_ARG="" - -call %DBFLUTE_HOME%\etc\cmd\_df-manage.cmd %MY_PROPERTIES_PATH% %FIRST_ARG% %SECOND_ARG% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_oracle/manage.sh b/dbflute_oracle/manage.sh deleted file mode 100644 index d2fb74628..000000000 --- a/dbflute_oracle/manage.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -FIRST_ARG=$1 -SECOND_ARG=$2 - -sh $DBFLUTE_HOME/etc/cmd/_df-manage.sh $MY_PROPERTIES_PATH $FIRST_ARG $SECOND_ARG -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_oracle/output/doc/_readme.txt b/dbflute_oracle/output/doc/_readme.txt deleted file mode 100644 index ee75f754c..000000000 --- a/dbflute_oracle/output/doc/_readme.txt +++ /dev/null @@ -1,3 +0,0 @@ -Directory for auto-generated documents - -e.g. SchemaHTML, HistoryHTML diff --git a/dbflute_oracle/outside-sql-test.bat b/dbflute_oracle/outside-sql-test.bat deleted file mode 100644 index a86099b31..000000000 --- a/dbflute_oracle/outside-sql-test.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the OutsiteSqlTest task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-outside-sql-test.cmd %MY_PROPERTIES_PATH% %1 - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_oracle/outside-sql-test.sh b/dbflute_oracle/outside-sql-test.sh deleted file mode 100644 index 3a45f9285..000000000 --- a/dbflute_oracle/outside-sql-test.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the OutsiteSqlTest task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-outside-sql-test.sh $MY_PROPERTIES_PATH $1 -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_oracle/playsql/_readme.txt b/dbflute_oracle/playsql/_readme.txt deleted file mode 100644 index c2f56c4ea..000000000 --- a/dbflute_oracle/playsql/_readme.txt +++ /dev/null @@ -1,50 +0,0 @@ -Directory for ReplaceSchema task - -replace-schema-*.sql: -DDL statements for creation of your schema. -You should write your own DDL statements in this file. -(A SQL separator is semicolon ";") - -take-finally-*.sql: -SQL statements for check loaded data (or DDL after data loading) -You should write your own SQL statements in this file. -(basically same specifications as replace-schema.sql) - -The "data" directory is for data loading like this: -/- - - - - - - - - - - - - - - - - - - - -playsql - |-data - |-common - | |-xls - | |-10-master.xls - | |-defaultValueMap.dataprop - |-ut - |-xls - |-20-member.xls - |-30-product.xls - |-defaultValueMap.dataprop -- - - - - - - - - -/ - -The format of a xls file is like this: -/- - - - - - - - - - - - - - - - - - - - -|MEMBER_ID|MEMBER_NAME|BIRTHDATE | -| 1|Stojkovic |1965/03/03| -| 2|Savicevic | | -| 3|... |... | - -(Sheet) -MEMBER / MEMBER_LOGIN / MEMBER_SECURITY -- - - - - - - - - -/ - -The defaultValueMap.dataprop is for common columns like this: -/- - - - - - - - - - - - - - - - - - - - -map:{ - ; REGISTER_DATETIME = sysdate - ; REGISTER_USER = foo - ; REGISTER_PROCESS = bar - ; UPDATE_DATETIME = sysdate - ; UPDATE_USER = foo - ; UPDATE_PROCESS = bar - ; VERSION_NO = 0 -} -- - - - - - - - - -/ diff --git a/dbflute_oracle/playsql/replace-schema.sql b/dbflute_oracle/playsql/replace-schema.sql deleted file mode 100644 index 0519ecba6..000000000 --- a/dbflute_oracle/playsql/replace-schema.sql +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dbflute_oracle/playsql/take-finally.sql b/dbflute_oracle/playsql/take-finally.sql deleted file mode 100644 index 0519ecba6..000000000 --- a/dbflute_oracle/playsql/take-finally.sql +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dbflute_oracle/replace-schema.bat b/dbflute_oracle/replace-schema.bat deleted file mode 100644 index 75ad5e391..000000000 --- a/dbflute_oracle/replace-schema.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the ReplaceSchema task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-replace-schema.cmd %MY_PROPERTIES_PATH% - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_oracle/replace-schema.sh b/dbflute_oracle/replace-schema.sh deleted file mode 100644 index 35490a782..000000000 --- a/dbflute_oracle/replace-schema.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the ReplaceSchema task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-replace-schema.sh $MY_PROPERTIES_PATH -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/dbflute_oracle/schema/_readme.txt b/dbflute_oracle/schema/_readme.txt deleted file mode 100644 index 2fa906858..000000000 --- a/dbflute_oracle/schema/_readme.txt +++ /dev/null @@ -1,4 +0,0 @@ -Directory for files of schema info - -Files are auto-generated by DBFlute tasks. -Basically you don't need to touch this directory. diff --git a/dbflute_oracle/sql2entity.bat b/dbflute_oracle/sql2entity.bat deleted file mode 100644 index 55f81b9df..000000000 --- a/dbflute_oracle/sql2entity.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal -%~d0 -cd %~p0 -call _project.bat - -echo /nnnnnnnnnnnnnnnnnnnnnnnnnnnnn -echo ...Calling the Sql2Entity task -echo nnnnnnnnnn/ -call %DBFLUTE_HOME%\etc\cmd\_df-sql2entity.cmd %MY_PROPERTIES_PATH% %1 - -if "%pause_at_end%"=="y" ( - pause -) diff --git a/dbflute_oracle/sql2entity.sh b/dbflute_oracle/sql2entity.sh deleted file mode 100644 index 26e3edd9b..000000000 --- a/dbflute_oracle/sql2entity.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -cd `dirname $0` -. ./_project.sh - -echo "/nnnnnnnnnnnnnnnnnnnnnnnnnnnnn" -echo "...Calling the Sql2Entity task" -echo "nnnnnnnnnn/" -sh $DBFLUTE_HOME/etc/cmd/_df-sql2entity.sh $MY_PROPERTIES_PATH $1 -taskReturnCode=$? - -if [ $taskReturnCode -ne 0 ];then - exit $taskReturnCode; -fi diff --git a/pom.xml b/pom.xml index 9810f6be1..c62c11e1c 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> - <groupId>jp.sf.fess</groupId> + <groupId>org.codelibs.fess</groupId> <artifactId>fess</artifactId> <version>10.0.0-SNAPSHOT</version> <packaging>war</packaging> @@ -20,45 +20,19 @@ <name>CodeLibs</name> <url>http://www.codelibs.org/</url> </organization> - <developers> - <developer> - <id>shinsuke</id> - <name>Shinsuke Sugaya</name> - <email>shinsuke_at_yahoo.co.jp</email> - <url>http://d.hatena.ne.jp/shinsuke_sugaya/</url> - </developer> - <developer> - <id>sone</id> - <name>Takaaki SONE</name> - </developer> - </developers> <issueManagement> <url>https://github.com/codelibs/fess/issues</url> </issueManagement> - <distributionManagement> - <repository> - <id>codelibs-repository</id> - <url>ftp://maven.codelibs.org/home/codelibs/maven/</url> - </repository> - <site> - <id>codelibs-site</id> - <url>ftp://maven.codelibs.org/home/codelibs/fess/</url> - </site> - </distributionManagement> <scm> <connection>scm:git:git@github.com:codelibs/fess.git</connection> <developerConnection>scm:git:git@github.com:codelibs/fess.git</developerConnection> <url>https://github.com/codelibs/fess</url> </scm> - <mailingLists> - <mailingList> - <name>User List</name> - <subscribe>http://lists.sourceforge.jp/mailman/listinfo/fess-user</subscribe> - <unsubscribe>http://lists.sourceforge.jp/mailman/listinfo/fess-user</unsubscribe> - <post>fess-user@lists.sourceforge.jp</post> - <archive>http://sourceforge.jp/projects/fess/lists/archive/user/</archive> - </mailingList> - </mailingLists> + <parent> + <groupId>org.sonatype.oss</groupId> + <artifactId>oss-parent</artifactId> + <version>9</version> + </parent> <profiles> <profile> <id>h2</id> @@ -91,24 +65,10 @@ <databasePassword>fess_pass</databasePassword> </properties> </profile> - <profile> - <id>oracle</id> - <properties> - <database>oracle</database> - <databaseGroupId>com.oracle</databaseGroupId> - <databaseArtifactId>ojdbc6</databaseArtifactId> - <databaseVersion>11.2.0.3</databaseVersion> - <databaseDriver>oracle.jdbc.driver.OracleDriver</databaseDriver> - <databaseUrl>jdbc:oracle:thin:@localhost:1521:XE</databaseUrl> - <databaseTestUrl>jdbc:oracle:thin:@localhost:1521:XE</databaseTestUrl> - <databaseUsername>fess</databaseUsername> - <databasePassword>fess</databasePassword> - </properties> - </profile> </profiles> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <dbflute.version>1.0.5L</dbflute.version> + <dbflute.version>1.1.0-sp1</dbflute.version> <s2robot.version>0.8.0</s2robot.version> <solr.version>4.10.3</solr.version> <slf4j.version>1.7.7</slf4j.version> @@ -131,8 +91,8 @@ <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> - <source>1.7</source> - <target>1.7</target> + <source>1.8</source> + <target>1.8</target> <encoding>UTF-8</encoding> </configuration> </plugin> @@ -163,31 +123,6 @@ <warSourceExcludes>WEB-INF/classes/**/*.*,WEB-INF/lib/*.jar</warSourceExcludes> </configuration> </plugin> - <plugin> - <groupId>org.seasar.dbflute</groupId> - <artifactId>dbflute-maven-plugin</artifactId> - <version>1.0.2</version> - <dependencies> - <dependency> - <groupId>jp.sf.fess</groupId> - <artifactId>fess-crud-template</artifactId> - <version>1.0.1</version> - </dependency> - </dependencies> - <configuration> - <dbfluteVersion>${dbflute.version}</dbfluteVersion> - <rootPackage>jp.sf.fess</rootPackage> - <dbPackage>jp.sf.fess.db</dbPackage> - <actionPackageName>action.admin</actionPackageName> - <formPackageName>form.admin</formPackageName> - <jspDir>${basedir}/src/main/webapp/WEB-INF/view/admin</jspDir> - <!-- schemaName>fess</schemaName --> - <clientProject>${database}</clientProject> - <dbfluteClientDir>${basedir}/dbflute_${database}</dbfluteClientDir> - <schemaFile>${basedir}/dbflute_${database}/schema/project-schema-fess.xml</schemaFile> - <databaseUrl>${databaseUrl}</databaseUrl> - </configuration> - </plugin> <plugin> <groupId>com.mycila.maven-license-plugin</groupId> <artifactId>maven-license-plugin</artifactId> @@ -309,13 +244,6 @@ </configuration> </plugin> </plugins> - <extensions> - <extension> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-ftp</artifactId> - <version>2.6</version> - </extension> - </extensions> </build> <pluginRepositories> <pluginRepository> @@ -350,6 +278,7 @@ <id>oss.sonatype.org</id> <url>http://oss.sonatype.org/content/groups/public/</url> </repository> + <!-- TODO: remove --> <repository> <id>maven.seasar.org</id> <name>The Seasar Foundation Maven2 Repository</name> @@ -377,6 +306,11 @@ <artifactId>${databaseArtifactId}</artifactId> <version>${databaseVersion}</version> </dependency> + <dependency> + <groupId>org.codelibs.fess</groupId> + <artifactId>fess-db-${database}</artifactId> + <version>1.0.0-SNAPSHOT</version> + </dependency> <dependency> <groupId>jp.sf.fess</groupId> <artifactId>fess-suggest</artifactId> @@ -608,7 +542,7 @@ <version>${s2robot.version}</version> </dependency> <dependency> - <groupId>org.seasar.dbflute</groupId> + <groupId>org.dbflute</groupId> <artifactId>dbflute-runtime</artifactId> <version>${dbflute.version}</version> </dependency> @@ -839,9 +773,9 @@ <scope>test</scope> </dependency> <dependency> - <groupId>org.seasar.dbflute</groupId> + <groupId>org.dbflute.utflute</groupId> <artifactId>utflute-seasar</artifactId> - <version>0.4.3</version> + <version>0.5.0-sp1</version> <scope>test</scope> </dependency> </dependencies> diff --git a/src/main/config/tablemeta.properties b/src/main/config/tablemeta.properties index 3e04225a8..b62a875e4 100644 --- a/src/main/config/tablemeta.properties +++ b/src/main/config/tablemeta.properties @@ -1,5 +1,5 @@ boostDocumentRule.ignored=false -boostDocumentRule.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; +boostDocumentRule.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; boostDocumentRule.converterToSearchParams= boostDocumentRule.converterToPager= boostDocumentRule.converterToActionForm= @@ -213,7 +213,7 @@ dataConfigToLabelTypeMapping.ignored=true dataConfigToRoleTypeMapping.ignored=true dataCrawlingConfig.ignored=false -dataCrawlingConfig.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; +dataCrawlingConfig.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; dataCrawlingConfig.converterToSearchParams= dataCrawlingConfig.converterToPager= dataCrawlingConfig.converterToActionForm= @@ -400,7 +400,7 @@ dataCrawlingConfig.versionNo.dateTypeParam= dataCrawlingConfig.versionNo.defaultValue= failureUrl.ignored=false -failureUrl.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; +failureUrl.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; failureUrl.converterToSearchParams= failureUrl.converterToPager= failureUrl.converterToActionForm= @@ -503,7 +503,7 @@ failureUrl.configId.dateTypeParam= failureUrl.configId.defaultValue= favoriteLog.ignored=false -favoriteLog.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; +favoriteLog.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; favoriteLog.converterToSearchParams= favoriteLog.converterToPager= favoriteLog.converterToActionForm= @@ -558,7 +558,7 @@ favoriteLog.createdTime.dateTypeParam=(datePattern = Constants.DEFAULT_DATETIME_ favoriteLog.createdTime.defaultValue= fileAuthentication.ignored=false -fileAuthentication.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange; +fileAuthentication.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange; fileAuthentication.converterToSearchParams= fileAuthentication.converterToPager= fileAuthentication.converterToActionForm= @@ -749,7 +749,7 @@ fileConfigToLabelTypeMapping.ignored=true fileConfigToRoleTypeMapping.ignored=true fileCrawlingConfig.ignored=false -fileCrawlingConfig.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; +fileCrawlingConfig.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; fileCrawlingConfig.converterToSearchParams= fileCrawlingConfig.converterToPager= fileCrawlingConfig.converterToActionForm= @@ -1020,7 +1020,7 @@ fileCrawlingConfig.versionNo.dateTypeParam= fileCrawlingConfig.versionNo.defaultValue= jobLog.ignored=false -jobLog.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.Mask;import org.seasar.struts.annotation.Msg; +jobLog.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.Mask;import org.seasar.struts.annotation.Msg; jobLog.converterToSearchParams= jobLog.converterToPager= jobLog.converterToActionForm= @@ -1135,7 +1135,7 @@ jobLog.endTime.dateTypeParam=(datePattern = Constants.DEFAULT_DATETIME_FORMAT) jobLog.endTime.defaultValue= keyMatch.ignored=false -keyMatch.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange; +keyMatch.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange; keyMatch.converterToSearchParams= keyMatch.converterToPager= keyMatch.converterToActionForm= @@ -1286,7 +1286,7 @@ keyMatch.versionNo.dateTypeParam= keyMatch.versionNo.defaultValue= labelType.ignored=false -labelType.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.Mask;import org.seasar.struts.annotation.Msg; +labelType.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.Mask;import org.seasar.struts.annotation.Msg; labelType.converterToSearchParams= labelType.converterToPager= labelType.converterToActionForm= @@ -1451,7 +1451,7 @@ labelType.versionNo.defaultValue= labelTypeToRoleTypeMapping.ignored=true overlappingHost.ignored=false -overlappingHost.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange; +overlappingHost.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange; overlappingHost.converterToSearchParams= overlappingHost.converterToPager= overlappingHost.converterToActionForm= @@ -1590,7 +1590,7 @@ overlappingHost.versionNo.dateTypeParam= overlappingHost.versionNo.defaultValue= pathMapping.ignored=false -pathMapping.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange; +pathMapping.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange; pathMapping.converterToSearchParams= pathMapping.converterToPager= pathMapping.converterToActionForm= @@ -1741,7 +1741,7 @@ pathMapping.versionNo.dateTypeParam= pathMapping.versionNo.defaultValue= requestHeader.ignored=false -requestHeader.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange; +requestHeader.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange; requestHeader.converterToSearchParams= requestHeader.converterToPager= requestHeader.converterToActionForm= @@ -1880,7 +1880,7 @@ requestHeader.versionNo.dateTypeParam= requestHeader.versionNo.defaultValue= roleType.ignored=false -roleType.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.Mask;import org.seasar.struts.annotation.Msg; +roleType.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.Mask;import org.seasar.struts.annotation.Msg; roleType.converterToSearchParams= roleType.converterToPager= roleType.converterToActionForm= @@ -2019,7 +2019,7 @@ roleType.versionNo.dateTypeParam= roleType.versionNo.defaultValue= scheduledJob.ignored=false -scheduledJob.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.Mask;import org.seasar.struts.annotation.Msg;import jp.sf.fess.annotation.CronExpression; +scheduledJob.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.Mask;import org.seasar.struts.annotation.Msg;import org.codelibs.fess.annotation.CronExpression; scheduledJob.converterToSearchParams= scheduledJob.converterToPager= scheduledJob.converterToActionForm= @@ -2395,7 +2395,7 @@ searchLog.userId.dateTypeParam= searchLog.userId.defaultValue= suggestBadWord.ignored=false -suggestBadWord.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; +suggestBadWord.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; suggestBadWord.converterToSearchParams= suggestBadWord.converterToPager= suggestBadWord.converterToActionForm= @@ -2534,7 +2534,7 @@ suggestBadWord.versionNo.dateTypeParam= suggestBadWord.versionNo.defaultValue= suggestElevateWord.ignored=false -suggestElevateWord.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; +suggestElevateWord.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; suggestElevateWord.converterToSearchParams= suggestElevateWord.converterToPager= suggestElevateWord.converterToActionForm= @@ -2697,7 +2697,7 @@ suggestElevateWord.versionNo.dateTypeParam= suggestElevateWord.versionNo.defaultValue= userInfo.ignored=false -userInfo.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; +userInfo.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; userInfo.converterToSearchParams= userInfo.converterToPager= userInfo.converterToActionForm=.timestampConverter(Constants.DEFAULT_DATETIME_FORMAT, "createdTime", "updatedTime") @@ -2752,7 +2752,7 @@ userInfo.updatedTime.dateTypeParam=(datePattern = Constants.DEFAULT_DATETIME_FOR userInfo.updatedTime.defaultValue= webAuthentication.ignored=false -webAuthentication.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange; +webAuthentication.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange; webAuthentication.converterToSearchParams= webAuthentication.converterToPager= webAuthentication.converterToActionForm= @@ -2955,7 +2955,7 @@ webConfigToLabelTypeMapping.ignored=true webConfigToRoleTypeMapping.ignored=true webCrawlingConfig.ignored=false -webCrawlingConfig.importPackages=import jp.sf.fess.Constants;import jp.sf.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; +webCrawlingConfig.importPackages=import org.codelibs.fess.Constants;import org.codelibs.fess.annotation.UriType;import org.seasar.struts.annotation.Maxbytelength;import org.seasar.struts.annotation.IntRange;import org.seasar.struts.annotation.LongRange;import org.seasar.struts.annotation.FloatRange; webCrawlingConfig.converterToSearchParams= webCrawlingConfig.converterToPager= webCrawlingConfig.converterToActionForm= diff --git a/src/main/java/jp/sf/fess/db/allcommon/CDef.java b/src/main/java/jp/sf/fess/db/allcommon/CDef.java deleted file mode 100644 index d114b52b3..000000000 --- a/src/main/java/jp/sf/fess/db/allcommon/CDef.java +++ /dev/null @@ -1,359 +0,0 @@ -/* - * Copyright 2009-2015 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.allcommon; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.seasar.dbflute.jdbc.Classification; -import org.seasar.dbflute.jdbc.ClassificationCodeType; -import org.seasar.dbflute.jdbc.ClassificationMeta; -import org.seasar.dbflute.jdbc.ClassificationUndefinedHandlingType; - -/** - * The definition of classification. - * @author DBFlute(AutoGenerator) - */ -public interface CDef extends Classification { - - /** The empty array for no sisters. */ - String[] EMPTY_SISTERS = new String[] {}; - - /** The empty map for no sub-items. */ - @SuppressWarnings("unchecked") - Map<String, Object> EMPTY_SUB_ITEM_MAP = Collections.EMPTY_MAP; - - /** - * Processing Type - */ - public enum ProcessType implements CDef { - /** Crawling: Process When Crawling */ - Crawling("C", "Crawling", EMPTY_SISTERS), - /** Displaying: Process When Displaying */ - Displaying("D", "Displaying", EMPTY_SISTERS), - /** Both: Process When Crawling/Displaying */ - Both("B", "Both", EMPTY_SISTERS); - private static final Map<String, ProcessType> _codeValueMap = new HashMap<String, ProcessType>(); - static { - for (final ProcessType value : values()) { - _codeValueMap.put(value.code().toLowerCase(), value); - for (final String sister : value.sisters()) { - _codeValueMap.put(sister.toLowerCase(), value); - } - } - } - - private final String _code; - - private final String _alias; - - private final String[] _sisters; - - private ProcessType(final String code, final String alias, - final String[] sisters) { - _code = code; - _alias = alias; - _sisters = sisters; - } - - @Override - public String code() { - return _code; - } - - @Override - public String alias() { - return _alias; - } - - private String[] sisters() { - return _sisters; - } - - @Override - public Map<String, Object> subItemMap() { - return EMPTY_SUB_ITEM_MAP; - } - - @Override - public ClassificationMeta meta() { - return CDef.DefMeta.ProcessType; - } - - @Override - public boolean inGroup(final String groupName) { - return false; - } - - /** - * Get the classification by the code. (CaseInsensitive) - * @param code The value of code, which is case-insensitive. (NullAllowed: if null, returns null) - * @return The instance of the corresponding classification to the code. (NullAllowed: if not found, returns null) - */ - public static ProcessType codeOf(final Object code) { - if (code == null) { - return null; - } - if (code instanceof ProcessType) { - return (ProcessType) code; - } - return _codeValueMap.get(code.toString().toLowerCase()); - } - - /** - * Get the classification by the name (also called 'value' in ENUM world). - * @param name The string of name, which is case-sensitive. (NullAllowed: if null, returns null) - * @return The instance of the corresponding classification to the name. (NullAllowed: if not found, returns null) - */ - public static ProcessType nameOf(final String name) { - if (name == null) { - return null; - } - try { - return valueOf(name); - } catch (final RuntimeException ignored) { - return null; - } - } - - /** - * Get the list of all classification elements. (returns new copied list) - * @return The list of all classification elements. (NotNull) - */ - public static List<ProcessType> listAll() { - return new ArrayList<ProcessType>(Arrays.asList(values())); - } - - /** - * Get the list of classification elements in the specified group. (returns new copied list) <br /> - * @param groupName The string of group name, which is case-sensitive. (NullAllowed: if null, returns empty list) - * @return The list of classification elements in the group. (NotNull) - */ - public static List<ProcessType> groupOf(final String groupName) { - return new ArrayList<ProcessType>(4); - } - - @Override - public String toString() { - return code(); - } - } - - /** - * Access Type - */ - public enum AccessType implements CDef { - /** Web: Web */ - Web("W", "Web", EMPTY_SISTERS), - /** Xml: Xml */ - Xml("X", "Xml", EMPTY_SISTERS), - /** Json: Json */ - Json("J", "Json", EMPTY_SISTERS), - /** Others: Others */ - Others("O", "Others", EMPTY_SISTERS); - private static final Map<String, AccessType> _codeValueMap = new HashMap<String, AccessType>(); - static { - for (final AccessType value : values()) { - _codeValueMap.put(value.code().toLowerCase(), value); - for (final String sister : value.sisters()) { - _codeValueMap.put(sister.toLowerCase(), value); - } - } - } - - private final String _code; - - private final String _alias; - - private final String[] _sisters; - - private AccessType(final String code, final String alias, - final String[] sisters) { - _code = code; - _alias = alias; - _sisters = sisters; - } - - @Override - public String code() { - return _code; - } - - @Override - public String alias() { - return _alias; - } - - private String[] sisters() { - return _sisters; - } - - @Override - public Map<String, Object> subItemMap() { - return EMPTY_SUB_ITEM_MAP; - } - - @Override - public ClassificationMeta meta() { - return CDef.DefMeta.AccessType; - } - - @Override - public boolean inGroup(final String groupName) { - return false; - } - - /** - * Get the classification by the code. (CaseInsensitive) - * @param code The value of code, which is case-insensitive. (NullAllowed: if null, returns null) - * @return The instance of the corresponding classification to the code. (NullAllowed: if not found, returns null) - */ - public static AccessType codeOf(final Object code) { - if (code == null) { - return null; - } - if (code instanceof AccessType) { - return (AccessType) code; - } - return _codeValueMap.get(code.toString().toLowerCase()); - } - - /** - * Get the classification by the name (also called 'value' in ENUM world). - * @param name The string of name, which is case-sensitive. (NullAllowed: if null, returns null) - * @return The instance of the corresponding classification to the name. (NullAllowed: if not found, returns null) - */ - public static AccessType nameOf(final String name) { - if (name == null) { - return null; - } - try { - return valueOf(name); - } catch (final RuntimeException ignored) { - return null; - } - } - - /** - * Get the list of all classification elements. (returns new copied list) - * @return The list of all classification elements. (NotNull) - */ - public static List<AccessType> listAll() { - return new ArrayList<AccessType>(Arrays.asList(values())); - } - - /** - * Get the list of classification elements in the specified group. (returns new copied list) <br /> - * @param groupName The string of group name, which is case-sensitive. (NullAllowed: if null, returns empty list) - * @return The list of classification elements in the group. (NotNull) - */ - public static List<AccessType> groupOf(final String groupName) { - return new ArrayList<AccessType>(4); - } - - @Override - public String toString() { - return code(); - } - } - - public enum DefMeta implements ClassificationMeta { - /** Processing Type */ - ProcessType, - /** Access Type */ - AccessType; - @Override - public String classificationName() { - return name(); // same as definition name - } - - @Override - public Classification codeOf(final Object code) { - if ("ProcessType".equals(name())) { - return CDef.ProcessType.codeOf(code); - } - if ("AccessType".equals(name())) { - return CDef.AccessType.codeOf(code); - } - throw new IllegalStateException("Unknown definition: " + this); // basically unreachable - } - - @Override - public Classification nameOf(final String name) { - if ("ProcessType".equals(name())) { - return CDef.ProcessType.valueOf(name); - } - if ("AccessType".equals(name())) { - return CDef.AccessType.valueOf(name); - } - throw new IllegalStateException("Unknown definition: " + this); // basically unreachable - } - - @Override - public List<Classification> listAll() { - if ("ProcessType".equals(name())) { - return toClassificationList(CDef.ProcessType.listAll()); - } - if ("AccessType".equals(name())) { - return toClassificationList(CDef.AccessType.listAll()); - } - throw new IllegalStateException("Unknown definition: " + this); // basically unreachable - } - - @Override - public List<Classification> groupOf(final String groupName) { - if ("ProcessType".equals(name())) { - return toClassificationList(CDef.ProcessType.groupOf(groupName)); - } - if ("AccessType".equals(name())) { - return toClassificationList(CDef.AccessType.groupOf(groupName)); - } - throw new IllegalStateException("Unknown definition: " + this); // basically unreachable - } - - @SuppressWarnings("unchecked") - private List<Classification> toClassificationList(final List<?> clsList) { - return (List<Classification>) clsList; - } - - @Override - public ClassificationCodeType codeType() { - if ("ProcessType".equals(name())) { - return ClassificationCodeType.String; - } - if ("AccessType".equals(name())) { - return ClassificationCodeType.String; - } - return ClassificationCodeType.String; // as default - } - - @Override - public ClassificationUndefinedHandlingType undefinedHandlingType() { - if ("ProcessType".equals(name())) { - return ClassificationUndefinedHandlingType.EXCEPTION; - } - if ("AccessType".equals(name())) { - return ClassificationUndefinedHandlingType.EXCEPTION; - } - return ClassificationUndefinedHandlingType.LOGGING; // as default - } - } -} diff --git a/src/main/java/jp/sf/fess/db/allcommon/DBCurrent.java b/src/main/java/jp/sf/fess/db/allcommon/DBCurrent.java deleted file mode 100644 index 24a8b7e90..000000000 --- a/src/main/java/jp/sf/fess/db/allcommon/DBCurrent.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2009-2015 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.allcommon; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.seasar.dbflute.DBDef; - -/** - * @author DBFlute(AutoGenerator) - */ -public class DBCurrent { - - // =================================================================================== - // Definition - // ========== - /** Log instance. */ - private static final Log _log = LogFactory.getLog(DBCurrent.class); - - /** Singleton instance. */ - private static final DBCurrent _instance = new DBCurrent(); - - // =================================================================================== - // Attribute - // ========= - protected DBDef _currentDBDef; - { - _currentDBDef = DBDef.codeOf("h2"); - if (_currentDBDef == null) { - _currentDBDef = DBDef.Unknown; - } - } - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor. - */ - private DBCurrent() { - } - - // =================================================================================== - // Singleton - // ========= - /** - * Get singleton instance. - * @return Singleton instance. (NotNull) - */ - public static DBCurrent getInstance() { - return _instance; - } - - // =================================================================================== - // Current DBDef - // ============= - public void initializeCurrentDBDef(final DBDef currentDBDef) { - if (_log.isInfoEnabled()) { - _log.info("...Setting currentDBDef: " + currentDBDef); - } - if (currentDBDef == null) { - final String msg = "The argument 'currentDBDef' should not be null!"; - throw new IllegalArgumentException(msg); - } - _currentDBDef = currentDBDef; - } - - public DBDef currentDBDef() { - return _currentDBDef; - } - - public boolean isCurrentDBDef(final DBDef currentDBDef) { - return _currentDBDef.equals(currentDBDef); - } -} diff --git a/src/main/java/jp/sf/fess/db/allcommon/DBFluteConfig.java b/src/main/java/jp/sf/fess/db/allcommon/DBFluteConfig.java deleted file mode 100644 index cbf1aa754..000000000 --- a/src/main/java/jp/sf/fess/db/allcommon/DBFluteConfig.java +++ /dev/null @@ -1,981 +0,0 @@ -/* - * Copyright 2009-2015 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.allcommon; - -import java.lang.reflect.Field; -import java.sql.Connection; -import java.sql.SQLException; -import java.sql.Timestamp; - -import javax.sql.DataSource; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.seasar.dbflute.DBDef; -import org.seasar.dbflute.QLog; -import org.seasar.dbflute.XLog; -import org.seasar.dbflute.bhv.core.supplement.SequenceCacheKeyGenerator; -import org.seasar.dbflute.cbean.cipher.GearedCipherManager; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.name.SqlNameFilter; -import org.seasar.dbflute.exception.IllegalDBFluteConfigAccessException; -import org.seasar.dbflute.jdbc.DataSourceHandler; -import org.seasar.dbflute.jdbc.NotClosingConnectionWrapper; -import org.seasar.dbflute.jdbc.PhysicalConnectionDigger; -import org.seasar.dbflute.jdbc.SQLExceptionDigger; -import org.seasar.dbflute.jdbc.StatementConfig; -import org.seasar.dbflute.jdbc.ValueType; -import org.seasar.dbflute.outsidesql.factory.OutsideSqlExecutorFactory; -import org.seasar.dbflute.s2dao.valuetype.TnValueTypes; -import org.seasar.dbflute.s2dao.valuetype.plugin.OracleAgent; -import org.seasar.dbflute.s2dao.valuetype.plugin.OracleArrayType; -import org.seasar.dbflute.s2dao.valuetype.plugin.OracleDateType; -import org.seasar.dbflute.s2dao.valuetype.plugin.OracleStructType; -import org.seasar.dbflute.twowaysql.DisplaySqlBuilder; -import org.seasar.dbflute.util.DfReflectionUtil; -import org.seasar.extension.dbcp.ConnectionWrapper; -import org.seasar.framework.exception.SQLRuntimeException; - -/** - * @author DBFlute(AutoGenerator) - */ -public class DBFluteConfig { - - // =================================================================================== - // Definition - // ========== - /** Log instance. */ - private static final Log _log = LogFactory.getLog(DBFluteConfig.class); - - /** Singleton instance. */ - private static final DBFluteConfig _instance = new DBFluteConfig(); - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Configuration - // ------------- - // condition-bean or parameter-bean - protected boolean _pagingCountLater = true; - - protected boolean _pagingCountLeastJoin = true; - - protected boolean _innerJoinAutoDetect = true; - - protected boolean _thatsBadTimingDetect = false; - - protected boolean _nullOrEmptyQueryAllowed = true; - - protected boolean _emptyStringQueryAllowed; - - protected boolean _emptyStringParameterAllowed; - - protected boolean _overridingQueryAllowed = true; - - protected boolean _disableSelectIndex; - - protected boolean _queryUpdateCountPreCheck = false; - - // logging - protected boolean _queryLogLevelInfo; - - protected boolean _executeStatusLogLevelInfo; - - protected String _logDateFormat; - - protected String _logTimestampFormat; - - // environment - protected StatementConfig _defaultStatementConfig; - - protected Integer _cursorSelectFetchSize; - - protected DataSourceHandler _dataSourceHandler; - - protected PhysicalConnectionDigger _physicalConnectionDigger; - - protected SQLExceptionDigger _sqlExceptionDigger; - - protected String _outsideSqlPackage; - - protected boolean _useSqlLogRegistry = false; - - // extension - protected SequenceCacheKeyGenerator _sequenceCacheKeyGenerator; - - protected SqlClauseCreator _sqlClauseCreator; - - protected SqlNameFilter _tableSqlNameFilter; - - protected OutsideSqlExecutorFactory _outsideSqlExecutorFactory; - - protected GearedCipherManager _gearedCipherManager; - - // internal - protected boolean _internalDebug; - - // ----------------------------------------------------- - // Database Dependency - // ------------------- - - // ----------------------------------------------------- - // Lock - // ---- - protected boolean _locked = true; // at first locked - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor. - */ - private DBFluteConfig() { // adjusts default settings - _physicalConnectionDigger = new ImplementedPhysicalConnectionDigger(); - _sqlExceptionDigger = new ImplementedSQLExceptionDigger(); - - if (isCurrentDBDef(DBDef.Oracle)) { - // date formatting has two points: - // o the DATE type of Oracle has seconds - // o it uses a date literal of Oracle - _logDateFormat = "timestamp $df:{yyyy-MM-dd HH:mm:ss}"; - _logTimestampFormat = "timestamp $df:{" - + DisplaySqlBuilder.DEFAULT_TIMESTAMP_FORMAT + "}"; - } - } - - // =================================================================================== - // Singleton - // ========= - /** - * Get singleton instance. - * @return Singleton instance. (NotNull) - */ - public static DBFluteConfig getInstance() { - return _instance; - } - - // =================================================================================== - // Paging Select - // ============= - public boolean isPagingCountLater() { - return _pagingCountLater; - } - - public void setPagingCountLater(final boolean pagingCountLater) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting pagingCountLater: " + pagingCountLater); - } - _pagingCountLater = pagingCountLater; - } - - public boolean isPagingCountLeastJoin() { - return _pagingCountLeastJoin; - } - - public void setPagingCountLeastJoin(final boolean pagingCountLeastJoin) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting pagingCountLeastJoin: " - + pagingCountLeastJoin); - } - _pagingCountLeastJoin = pagingCountLeastJoin; - } - - // =================================================================================== - // Inner Join Auto Detect - // ====================== - public boolean isInnerJoinAutoDetect() { - return _innerJoinAutoDetect; - } - - public void setInnerJoinAutoDetect(final boolean innerJoinAutoDetect) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting innerJoinAutoDetect: " + innerJoinAutoDetect); - } - _innerJoinAutoDetect = innerJoinAutoDetect; - } - - // =================================================================================== - // That's-Bad-Timing Detect - // ======================== - public boolean isThatsBadTimingDetect() { - return _thatsBadTimingDetect; - } - - public void setThatsBadTimingDetect(final boolean thatsBadTimingDetect) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting thatsBadTimingDetect: " - + thatsBadTimingDetect); - } - _thatsBadTimingDetect = thatsBadTimingDetect; - } - - // =================================================================================== - // Invalid Query - // ============= - public boolean isNullOrEmptyQueryAllowed() { - return _nullOrEmptyQueryAllowed; - } - - /** - * Set whether null-or-empty query is allowed or not. <br /> - * This configuration is only for ConditionBean. - * @param nullOrEmptyQueryAllowed The determination, true or false. - */ - public void setNullOrEmptyQueryAllowed(final boolean nullOrEmptyQueryAllowed) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting nullOrEmptyQueryAllowed: " - + nullOrEmptyQueryAllowed); - } - _nullOrEmptyQueryAllowed = nullOrEmptyQueryAllowed; - } - - public void setInvalidQueryChecked(final boolean invalidQueryChecked) { // for compatible - setNullOrEmptyQueryAllowed(!invalidQueryChecked); - } - - public boolean isEmptyStringQueryAllowed() { - return _emptyStringQueryAllowed; - } - - /** - * Set whether an empty string for query is allowed or not. <br /> - * This configuration is only for ConditionBean. - * @param emptyStringQueryAllowed The determination, true or false. - */ - public void setEmptyStringQueryAllowed(final boolean emptyStringQueryAllowed) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting emptyStringQueryAllowed: " - + emptyStringQueryAllowed); - } - _emptyStringQueryAllowed = emptyStringQueryAllowed; - } - - public boolean isEmptyStringParameterAllowed() { - return _emptyStringParameterAllowed; - } - - /** - * Set whether an empty string for parameter is allowed or not. <br /> - * This configuration is only for ParameterBean. - * @param emptyStringParameterAllowed The determination, true or false. - */ - public void setEmptyStringParameterAllowed( - final boolean emptyStringParameterAllowed) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting emptyStringParameterAllowed: " - + emptyStringParameterAllowed); - } - _emptyStringParameterAllowed = emptyStringParameterAllowed; - } - - public boolean isOverridingQueryAllowed() { - return _overridingQueryAllowed; - } - - /** - * Set whether overriding query is allowed or not. <br /> - * This configuration is only for ConditionBean. - * @param overridingQueryAllowed The determination, true or false. - */ - public void setOverridingQueryAllowed(final boolean overridingQueryAllowed) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting overridingQueryAllowed: " - + overridingQueryAllowed); - } - _overridingQueryAllowed = overridingQueryAllowed; - } - - // =================================================================================== - // Select Index - // ============ - public boolean isDisableSelectIndex() { - return _disableSelectIndex; - } - - public void setDisableSelectIndex(final boolean disableSelectIndex) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting disableSelectIndex: " + disableSelectIndex); - } - _disableSelectIndex = disableSelectIndex; - } - - // =================================================================================== - // Query Update - // ============ - public boolean isQueryUpdateCountPreCheck() { - return _queryUpdateCountPreCheck; - } - - public void setQueryUpdateCountPreCheck( - final boolean queryUpdateCountPreCheck) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting queryUpdateCountPreCheck: " - + queryUpdateCountPreCheck); - } - _queryUpdateCountPreCheck = queryUpdateCountPreCheck; - } - - // =================================================================================== - // Query Log Level Info - // ==================== - public void setQueryLogLevelInfo(final boolean queryLogLevelInfo) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting queryLogLevelInfo: " + queryLogLevelInfo); - } - QLog.unlock(); - QLog.setQueryLogLevelInfo(queryLogLevelInfo); - QLog.lock(); - } - - // =================================================================================== - // Execute Status Log Level Info - // ============================= - public void setExecuteStatusLogLevelInfo( - final boolean executeStatusLogLevelInfo) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting executeStatusLogLevelInfo: " - + executeStatusLogLevelInfo); - } - XLog.unlock(); - XLog.setExecuteStatusLogLevelInfo(executeStatusLogLevelInfo); - XLog.lock(); - } - - // =================================================================================== - // Log Format - // ========== - public String getLogDateFormat() { - return _logDateFormat; - } - - public void setLogDateFormat(final String logDateFormat) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting logDateFormat: " + logDateFormat); - } - _logDateFormat = logDateFormat; - } - - public String getLogTimestampFormat() { - return _logTimestampFormat; - } - - public void setLogTimestampFormat(final String logTimestampFormat) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting logTimestampFormat: " + logTimestampFormat); - } - _logTimestampFormat = logTimestampFormat; - } - - // =================================================================================== - // Default StatementConfig - // ======================= - public StatementConfig getDefaultStatementConfig() { - return _defaultStatementConfig; - } - - public void setDefaultStatementConfig( - final StatementConfig defaultStatementConfig) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting defaultStatementConfig: " - + defaultStatementConfig); - } - _defaultStatementConfig = defaultStatementConfig; - } - - // =================================================================================== - // CursorSelect FetchSize - // ====================== - public Integer getCursorSelectFetchSize() { - return _cursorSelectFetchSize; - } - - public void setCursorSelectFetchSize(final Integer cursorSelectFetchSize) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting cursorSelectFetchSize: " - + cursorSelectFetchSize); - } - _cursorSelectFetchSize = cursorSelectFetchSize; - } - - // [DBFlute-0.9.0] - // =================================================================================== - // DataSource Handler - // ================== - /** - * @return The handler of data source. (NullAllowed) - */ - public DataSourceHandler getDataSourceHandler() { - return _dataSourceHandler; - } - - /** - * @param dataSourceHandler The handler of data source. (NullAllowed) - */ - public void setDataSourceHandler(final DataSourceHandler dataSourceHandler) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting dataSourceHandler: " + dataSourceHandler); - } - _dataSourceHandler = dataSourceHandler; - } - - // [DBFlute-0.9.7.6] - // =================================================================================== - // PhysicalConnection Digger - // ========================= - /** - * @return The digger of physical connection. (NotNull: has a default instance) - */ - public PhysicalConnectionDigger getPhysicalConnectionDigger() { - return _physicalConnectionDigger; - } - - /** - * @param physicalConnectionDigger The digger of physical connection. (NotNull) - */ - public void setPhysicalConnectionDigger( - final PhysicalConnectionDigger physicalConnectionDigger) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting physicalConnectionDigger: " - + physicalConnectionDigger); - } - if (physicalConnectionDigger == null) { - throw new IllegalArgumentException( - "The argument 'physicalConnectionDigger' should not be null."); - } - _physicalConnectionDigger = physicalConnectionDigger; - } - - // [DBFlute-0.9.7.8] - // =================================================================================== - // SQLException Digger - // =================== - /** - * @return The digger of SQLException. (NotNull: has a default instance) - */ - public SQLExceptionDigger getSQLExceptionDigger() { - return _sqlExceptionDigger; - } - - /** - * @param sqlExceptionDigger The digger of SQLException. (NotNull) - */ - public void setSQLExceptionDigger( - final SQLExceptionDigger sqlExceptionDigger) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting sqlExceptionDigger: " + sqlExceptionDigger); - } - if (sqlExceptionDigger == null) { - throw new IllegalArgumentException( - "The argument 'sqlExceptionDigger' should not be null."); - } - _sqlExceptionDigger = sqlExceptionDigger; - } - - // =================================================================================== - // OutsideSql Package - // ================== - /** - * @return The package of outside SQL. (NullAllowed) - */ - public String getOutsideSqlPackage() { - return _outsideSqlPackage; - } - - /** - * @param outsideSqlPackage The package of outside SQL. (NullAllowed) - */ - public void setOutsideSqlPackage(final String outsideSqlPackage) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting outsideSqlPackage: " + outsideSqlPackage); - } - _outsideSqlPackage = outsideSqlPackage; - } - - // [DBFlute-0.8.2] - // =================================================================================== - // SQL Log Registry - // ================ - public boolean isUseSqlLogRegistry() { - return _useSqlLogRegistry; - } - - public void setUseSqlLogRegistry(final boolean useSqlLogRegistry) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting useSqlLogRegistry: " + useSqlLogRegistry); - } - _useSqlLogRegistry = useSqlLogRegistry; - } - - // [DBFlute-0.9.6.4] - // =================================================================================== - // Sequence Cache - // ============== - /** - * @return The key generator of sequence cache. (NullAllowed) - */ - public SequenceCacheKeyGenerator getSequenceCacheKeyGenerator() { - return _sequenceCacheKeyGenerator; - } - - /** - * @param sequenceCacheKeyGenerator The key generator of sequence cache. (NullAllowed) - */ - public void setSequenceCacheKeyGenerator( - final SequenceCacheKeyGenerator sequenceCacheKeyGenerator) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting sequenceCacheKeyGenerator: " - + sequenceCacheKeyGenerator); - } - _sequenceCacheKeyGenerator = sequenceCacheKeyGenerator; - } - - // [DBFlute-0.9.6.9] - // =================================================================================== - // SqlClause Creator - // ================= - /** - * @return The creator of SQL clause. (NullAllowed) - */ - public SqlClauseCreator getSqlClauseCreator() { - return _sqlClauseCreator; - } - - /** - * @param sqlClauseCreator The creator of SQL clause. (NullAllowed) - */ - public void setSqlClauseCreator(final SqlClauseCreator sqlClauseCreator) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting sqlClauseCreator: " + sqlClauseCreator); - } - _sqlClauseCreator = sqlClauseCreator; - } - - // [DBFlute-0.9.7.6] - // =================================================================================== - // TableSqlName Filter - // =================== - /** - * @return The SQL name filter for table. (NullAllowed) - */ - public SqlNameFilter getTableSqlNameFilter() { - return _tableSqlNameFilter; - } - - /** - * Set the SQL name filter for table. <br /> - * This setting should be called before container's initialization. - * (its exact meaning is: before class loading of DBMeta for table) - * @param tableSqlNameFilter The SQL name filter for table. (NullAllowed) - */ - public void setTableSqlNameFilter(final SqlNameFilter tableSqlNameFilter) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting tableSqlNameFilter: " + tableSqlNameFilter); - } - _tableSqlNameFilter = tableSqlNameFilter; - } - - // [DBFlute-0.9.7.0] - // =================================================================================== - // OutsideSql Executor - // =================== - public OutsideSqlExecutorFactory getOutsideSqlExecutorFactory() { - return _outsideSqlExecutorFactory; - } - - public void setOutsideSqlExecutorFactory( - final OutsideSqlExecutorFactory outsideSqlExecutorFactory) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting outsideSqlExecutorFactory: " - + outsideSqlExecutorFactory); - } - _outsideSqlExecutorFactory = outsideSqlExecutorFactory; - } - - // [DBFlute-0.9.7.0] - // =================================================================================== - // Geared Cipher Manager - // ===================== - public GearedCipherManager getGearedCipherManager() { - return _gearedCipherManager; - } - - public void setGearedCipherManager( - final GearedCipherManager gearedCipherManager) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting gearedCipherManager: " + gearedCipherManager); - } - _gearedCipherManager = gearedCipherManager; - } - - // =================================================================================== - // Database Dependency - // =================== - - // =================================================================================== - // Internal Debug - // ============== - public boolean isInternalDebug() { - return _internalDebug; - } - - public void setInternalDebug(final boolean internalDebug) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Setting internalDebug: " + internalDebug); - } - _internalDebug = internalDebug; - } - - // =================================================================================== - // Value Type - // ========== - /** - * Register the basic value type. <br /> - * This setting is shared per DBMS in the same class loader. - * @param keyType The type as key. (NotNull) - * @param valueType The basic value type. (NotNull) - */ - public void registerBasicValueType(final Class<?> keyType, - final ValueType valueType) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Registering basic valueType: " + keyType + " = " - + valueType); - } - TnValueTypes.registerBasicValueType(currentDBDef(), keyType, valueType); - } - - public void removeBasicValueType(final Class<?> keyType) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Removing basic valueType: " + keyType); - } - TnValueTypes.removeBasicValueType(currentDBDef(), keyType); - } - - /** - * Register the plug-in value type. <br /> - * This setting is shared per DBMS in the same class loader. - * @param keyName The name as key. (NotNull) - * @param valueType The plug-in value type. (NotNull) - */ - public void registerPluginValueType(final String keyName, - final ValueType valueType) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Registering plug-in valueType: " + keyName + " = " - + valueType); - } - TnValueTypes - .registerPluginValueType(currentDBDef(), keyName, valueType); - } - - public void removePluginValueType(final String keyName) { - assertNotLocked(); - if (_log.isInfoEnabled()) { - _log.info("...Removing plug-in valueType: keyName=" + keyName); - } - TnValueTypes.removePluginValueType(currentDBDef(), keyName); - } - - // =================================================================================== - // Configuration Lock - // ================== - public boolean isLocked() { - return _locked; - } - - public void lock() { - if (_locked) { - return; - } - if (_log.isInfoEnabled()) { - _log.info("...Locking the configuration of DBFlute"); - } - _locked = true; - } - - public void unlock() { - if (!_locked) { - return; - } - if (_log.isInfoEnabled()) { - _log.info("...Unlocking the configuration of DBFlute"); - } - _locked = false; - } - - protected void assertNotLocked() { - if (!isLocked()) { - return; - } - final String msg = "The configuration of DBFlute is locked."; - throw new IllegalDBFluteConfigAccessException(msg); - } - - // =================================================================================== - // Assist Helper - // ============= - protected DBDef currentDBDef() { - return DBCurrent.getInstance().currentDBDef(); - } - - protected boolean isCurrentDBDef(final DBDef currentDBDef) { - return DBCurrent.getInstance().isCurrentDBDef(currentDBDef); - } - - // =================================================================================== - // Implemented Class - // ================= - // ----------------------------------------------------- - // Spring - // ------ - public static class SpringTransactionalDataSourceHandler implements - DataSourceHandler { - - @Override - public Connection getConnection(final DataSource ds) - throws SQLException { - final Connection conn = getConnectionFromUtils(ds); - if (isConnectionTransactional(conn, ds)) { - return new NotClosingConnectionWrapper(conn); - } else { - return conn; - } - } - - public Connection getConnectionFromUtils(final DataSource ds) { - throw new IllegalStateException( - "This method is only for Spring Framework."); - } - - public boolean isConnectionTransactional(final Connection conn, - final DataSource ds) { - throw new IllegalStateException( - "This method is only for Spring Framework."); - } - } - - // ----------------------------------------------------- - // Oracle - // ------ - public static class ImplementedOracleAgent implements OracleAgent { - - @Override - public Object toOracleDate(final Timestamp timestamp) { - throw new UnsupportedOperationException( - "This method is only for Oracle."); - } - - @Override - public Object toOracleArray(final Connection conn, - final String arrayTypeName, final Object arrayValue) - throws SQLException { - throw new UnsupportedOperationException( - "This method is only for Oracle."); - } - - @Override - public Object toStandardArray(final Object oracleArray) - throws SQLException { - throw new UnsupportedOperationException( - "This method is only for Oracle."); - } - - @Override - public boolean isOracleArray(final Object obj) { - throw new UnsupportedOperationException( - "This method is only for Oracle."); - } - - @Override - public Object toOracleStruct(final Connection conn, - final String structTypeName, final Object[] attrs) - throws SQLException { - throw new UnsupportedOperationException( - "This method is only for Oracle."); - } - - @Override - public Object[] toStandardStructAttributes(final Object oracleStruct) - throws SQLException { - throw new UnsupportedOperationException( - "This method is only for Oracle."); - } - - @Override - public boolean isOracleStruct(final Object obj) { - throw new UnsupportedOperationException( - "This method is only for Oracle."); - } - - @Override - public PhysicalConnectionDigger getPhysicalConnectionDigger() { - return DBFluteConfig.getInstance().getPhysicalConnectionDigger(); - } - } - - public static class ImplementedOracleDateType extends OracleDateType { - - @Override - protected OracleAgent createOracleAgent() { - return new ImplementedOracleAgent(); - } - } - - public static class ImplementedOracleArrayType extends OracleArrayType { - - public ImplementedOracleArrayType(final String arrayTypeName, - final Class<?> elementType) { - super(arrayTypeName, elementType); - } - - @Override - protected OracleAgent createOracleAgent() { - return new ImplementedOracleAgent(); - } - } - - public static class ImplementedOracleStructType extends OracleStructType { - - public ImplementedOracleStructType(final String structTypeName, - final Class<?> entityType) { - super(structTypeName, entityType); - } - - @Override - protected OracleAgent createOracleAgent() { - return new ImplementedOracleAgent(); - } - } - - // ----------------------------------------------------- - // Physical Connection - // ------------------- - public static class ImplementedPhysicalConnectionDigger implements - PhysicalConnectionDigger { - - @Override - public Connection digUp(final Connection conn) throws SQLException { - Connection digged = unwrap(conn); - digged = resolveS2DBCP(digged); - digged = resolveCommonsDBCP(digged); - return digged; - } - - protected Connection unwrap(final Connection conn) { - if (conn instanceof NotClosingConnectionWrapper) { - return ((NotClosingConnectionWrapper) conn) - .getActualConnection(); - } - return conn; - } - - protected Connection resolveS2DBCP(final Connection conn) { - if (conn instanceof ConnectionWrapper) { - return ((ConnectionWrapper) conn).getPhysicalConnection(); - } - return conn; - } - - protected Connection resolveCommonsDBCP(final Connection conn) { - Connection resolved = conn; - if ("org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper" - .equals(resolved.getClass().getName())) { - resolved = getFieldConnection(resolved, "delegate"); - } - if ("org.apache.commons.dbcp.PoolableConnection".equals(resolved - .getClass().getName())) { - resolved = getFieldConnection(resolved, "_conn"); - } - return resolved; - } - - protected Connection getFieldConnection(final Connection conn, - final String fieldName) { - final Field field = DfReflectionUtil.getWholeField(conn.getClass(), - fieldName); - return (Connection) DfReflectionUtil.getValueForcedly(field, conn); - } - } - - // ----------------------------------------------------- - // SQLException - // ------------ - public static class ImplementedSQLExceptionDigger implements - SQLExceptionDigger { - - @Override - public SQLException digUp(final Throwable cause) { - SQLException found = resolveS2DBCP(cause); - if (found != null) { - return found; - } - found = resolveDefault(cause); - if (found != null) { - return found; - } - return null; - } - - protected SQLException resolveS2DBCP(final Throwable cause) { - if (cause instanceof SQLRuntimeException) { - final Throwable nestedCause = ((SQLRuntimeException) cause) - .getCause(); - if (nestedCause instanceof SQLException) { - return (SQLException) nestedCause; - } - } - return null; - } - - protected SQLException resolveDefault(final Throwable cause) { - final Throwable nestedCause = cause.getCause(); - if (nestedCause instanceof SQLException) { - return (SQLException) nestedCause; - } - return null; - } - } -} diff --git a/src/main/java/jp/sf/fess/db/allcommon/DBFluteInitializer.java b/src/main/java/jp/sf/fess/db/allcommon/DBFluteInitializer.java deleted file mode 100644 index eadd7f4ab..000000000 --- a/src/main/java/jp/sf/fess/db/allcommon/DBFluteInitializer.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2009-2015 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.allcommon; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.seasar.dbflute.DBDef; -import org.seasar.dbflute.cbean.ConditionBeanContext; -import org.seasar.dbflute.jdbc.DataSourceHandler; -import org.seasar.dbflute.resource.DBFluteSystem; -import org.seasar.dbflute.s2dao.extension.TnSqlLogRegistry; - -/** - * @author DBFlute(AutoGenerator) - */ -public class DBFluteInitializer { - - // =================================================================================== - // Definition - // ========== - /** Log instance. */ - private static final Log _log = LogFactory.getLog(DBFluteInitializer.class); - - // =================================================================================== - // Attribute - // ========= - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor, which initializes various components. - */ - public DBFluteInitializer() { - announce(); - prologue(); - standBy(); - } - - // =================================================================================== - // Curtain - // ======= - /** - * DBFlute will begin in just a few second. - */ - protected void announce() { - _log.info("...Initializing DBFlute components"); - } - - /** - * This is the story for ... <br /> - * You can override this to set your DBFluteConfig settings - * with calling super.prologue() in it. - */ - protected void prologue() { - handleSqlLogRegistry(); - loadCoolClasses(); - } - - /** - * Enjoy your DBFlute life. - */ - protected void standBy() { - if (!DBFluteConfig.getInstance().isLocked()) { - DBFluteConfig.getInstance().lock(); - } - } - - // =================================================================================== - // Contents - // ======== - protected void handleSqlLogRegistry() { // for S2Container - if (DBFluteConfig.getInstance().isUseSqlLogRegistry()) { - final StringBuilder sb = new StringBuilder(); - sb.append("{SqlLog Information}").append(ln()); - sb.append(" [SqlLogRegistry]").append(ln()); - if (TnSqlLogRegistry.setupSqlLogRegistry()) { - sb.append( - " ...Setting up sqlLogRegistry(org.seasar.extension.jdbc)") - .append(ln()); - sb.append(" because the property 'useSqlLogRegistry' of the config of DBFlute is true"); - } else { - sb.append(" The sqlLogRegistry(org.seasar.extension.jdbc) is not supported at the version"); - } - _log.info(sb); - } else { - final Object sqlLogRegistry = TnSqlLogRegistry - .findContainerSqlLogRegistry(); - if (sqlLogRegistry != null) { - TnSqlLogRegistry.closeRegistration(); - } - } - } - - protected void loadCoolClasses() { // for S2Container - ConditionBeanContext.loadCoolClasses(); // against the ClassLoader Headache! - } - - /** - * Set up the handler of data source to the configuration of DBFlute. <br /> - * If it uses commons-DBCP, it needs to arrange some for transaction. - * <ul> - * <li>A. To use DataSourceUtils which is Spring Framework class.</li> - * <li>B. To use TransactionConnection that is original class and doesn't close really.</li> - * </ul> - * If you use a transaction library which has a data source which supports transaction, - * It doesn't need these arrangement. (For example, the framework 'Atomikos') <br /> - * This method should be executed when application is initialized. - * @param dataSourceFqcn The FQCN of data source. (NotNull) - */ - protected void setupDataSourceHandler(final String dataSourceFqcn) { // for Spring - final DBFluteConfig config = DBFluteConfig.getInstance(); - final DataSourceHandler dataSourceHandler = config - .getDataSourceHandler(); - if (dataSourceHandler != null) { - return; - } - if (dataSourceFqcn.startsWith("org.apache.commons.dbcp.")) { - config.unlock(); - config.setDataSourceHandler(new DBFluteConfig.SpringTransactionalDataSourceHandler()); - } - } - - // =================================================================================== - // Assist Helper - // ============= - protected boolean isCurrentDBDef(final DBDef currentDBDef) { - return DBCurrent.getInstance().isCurrentDBDef(currentDBDef); - } - - // =================================================================================== - // General Helper - // ============== - protected String ln() { - return DBFluteSystem.getBasicLn(); - } -} diff --git a/src/main/java/jp/sf/fess/db/allcommon/DBMetaInstanceHandler.java b/src/main/java/jp/sf/fess/db/allcommon/DBMetaInstanceHandler.java deleted file mode 100644 index cc1e6897f..000000000 --- a/src/main/java/jp/sf/fess/db/allcommon/DBMetaInstanceHandler.java +++ /dev/null @@ -1,388 +0,0 @@ -/* - * Copyright 2009-2015 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.allcommon; - -import java.lang.reflect.Method; -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.exception.DBMetaNotFoundException; -import org.seasar.dbflute.helper.StringKeyMap; -import org.seasar.dbflute.util.DfAssertUtil; - -/** - * The handler of the instance of DB meta. - * @author DBFlute(AutoGenerator) - */ -public class DBMetaInstanceHandler implements DBMetaProvider { - - // =================================================================================== - // Resource Map - // ============ - /** The map of DB meta instance by key 'table DB-name'. (NotNull, LazyLoaded) */ - protected static final Map<String, DBMeta> _tableDbNameInstanceMap = newHashMap(); - - /** The map of DB meta instance by key 'entity type'. (NotNull, LazyLoaded) */ - protected static final Map<Class<?>, DBMeta> _entityTypeInstanceMap = newHashMap(); - - /** The map of table DB name and DB meta class name. (NotNull) */ - protected static final Map<String, String> _tableDbNameClassNameMap; - static { - final Map<String, String> tmpMap = newHashMap(); - tmpMap.put("BOOST_DOCUMENT_RULE", - "jp.sf.fess.db.bsentity.dbmeta.BoostDocumentRuleDbm"); - tmpMap.put("CLICK_LOG", "jp.sf.fess.db.bsentity.dbmeta.ClickLogDbm"); - tmpMap.put("CRAWLING_SESSION", - "jp.sf.fess.db.bsentity.dbmeta.CrawlingSessionDbm"); - tmpMap.put("CRAWLING_SESSION_INFO", - "jp.sf.fess.db.bsentity.dbmeta.CrawlingSessionInfoDbm"); - tmpMap.put("DATA_CONFIG_TO_LABEL_TYPE_MAPPING", - "jp.sf.fess.db.bsentity.dbmeta.DataConfigToLabelTypeMappingDbm"); - tmpMap.put("DATA_CONFIG_TO_ROLE_TYPE_MAPPING", - "jp.sf.fess.db.bsentity.dbmeta.DataConfigToRoleTypeMappingDbm"); - tmpMap.put("DATA_CRAWLING_CONFIG", - "jp.sf.fess.db.bsentity.dbmeta.DataCrawlingConfigDbm"); - tmpMap.put("FAILURE_URL", "jp.sf.fess.db.bsentity.dbmeta.FailureUrlDbm"); - tmpMap.put("FAVORITE_LOG", - "jp.sf.fess.db.bsentity.dbmeta.FavoriteLogDbm"); - tmpMap.put("FILE_AUTHENTICATION", - "jp.sf.fess.db.bsentity.dbmeta.FileAuthenticationDbm"); - tmpMap.put("FILE_CONFIG_TO_LABEL_TYPE_MAPPING", - "jp.sf.fess.db.bsentity.dbmeta.FileConfigToLabelTypeMappingDbm"); - tmpMap.put("FILE_CONFIG_TO_ROLE_TYPE_MAPPING", - "jp.sf.fess.db.bsentity.dbmeta.FileConfigToRoleTypeMappingDbm"); - tmpMap.put("FILE_CRAWLING_CONFIG", - "jp.sf.fess.db.bsentity.dbmeta.FileCrawlingConfigDbm"); - tmpMap.put("JOB_LOG", "jp.sf.fess.db.bsentity.dbmeta.JobLogDbm"); - tmpMap.put("KEY_MATCH", "jp.sf.fess.db.bsentity.dbmeta.KeyMatchDbm"); - tmpMap.put("LABEL_TYPE", "jp.sf.fess.db.bsentity.dbmeta.LabelTypeDbm"); - tmpMap.put("LABEL_TYPE_TO_ROLE_TYPE_MAPPING", - "jp.sf.fess.db.bsentity.dbmeta.LabelTypeToRoleTypeMappingDbm"); - tmpMap.put("OVERLAPPING_HOST", - "jp.sf.fess.db.bsentity.dbmeta.OverlappingHostDbm"); - tmpMap.put("PATH_MAPPING", - "jp.sf.fess.db.bsentity.dbmeta.PathMappingDbm"); - tmpMap.put("REQUEST_HEADER", - "jp.sf.fess.db.bsentity.dbmeta.RequestHeaderDbm"); - tmpMap.put("ROLE_TYPE", "jp.sf.fess.db.bsentity.dbmeta.RoleTypeDbm"); - tmpMap.put("SCHEDULED_JOB", - "jp.sf.fess.db.bsentity.dbmeta.ScheduledJobDbm"); - tmpMap.put("SEARCH_FIELD_LOG", - "jp.sf.fess.db.bsentity.dbmeta.SearchFieldLogDbm"); - tmpMap.put("SEARCH_LOG", "jp.sf.fess.db.bsentity.dbmeta.SearchLogDbm"); - tmpMap.put("SUGGEST_BAD_WORD", - "jp.sf.fess.db.bsentity.dbmeta.SuggestBadWordDbm"); - tmpMap.put("SUGGEST_ELEVATE_WORD", - "jp.sf.fess.db.bsentity.dbmeta.SuggestElevateWordDbm"); - tmpMap.put("USER_INFO", "jp.sf.fess.db.bsentity.dbmeta.UserInfoDbm"); - tmpMap.put("WEB_AUTHENTICATION", - "jp.sf.fess.db.bsentity.dbmeta.WebAuthenticationDbm"); - tmpMap.put("WEB_CONFIG_TO_LABEL_TYPE_MAPPING", - "jp.sf.fess.db.bsentity.dbmeta.WebConfigToLabelTypeMappingDbm"); - tmpMap.put("WEB_CONFIG_TO_ROLE_TYPE_MAPPING", - "jp.sf.fess.db.bsentity.dbmeta.WebConfigToRoleTypeMappingDbm"); - tmpMap.put("WEB_CRAWLING_CONFIG", - "jp.sf.fess.db.bsentity.dbmeta.WebCrawlingConfigDbm"); - _tableDbNameClassNameMap = Collections.unmodifiableMap(tmpMap); - } - - /** The flexible map of table DB name for conversion in finding process. (NotNull) */ - protected static final Map<String, String> _tableDbNameFlexibleMap = StringKeyMap - .createAsFlexible(); - static { - for (final String tableDbName : _tableDbNameClassNameMap.keySet()) { - _tableDbNameFlexibleMap.put(tableDbName, tableDbName); - } - } - - /** - * Get the unmodifiable map of DB meta. - * @return The unmodifiable map that contains all instances of DB meta. (NotNull, NotEmpty) - */ - public static Map<String, DBMeta> getUnmodifiableDBMetaMap() { - initializeDBMetaMap(); - synchronized (_tableDbNameInstanceMap) { - return Collections.unmodifiableMap(_tableDbNameInstanceMap); - } - } - - /** - * Initialize the map of DB meta. - */ - protected static void initializeDBMetaMap() { - if (isInitialized()) { - return; - } - synchronized (_tableDbNameInstanceMap) { - for (final String tableDbName : _tableDbNameClassNameMap.keySet()) { - findDBMeta(tableDbName); // initialize - } - if (!isInitialized()) { - final String msg = "Failed to initialize tableDbNameInstanceMap: " - + _tableDbNameInstanceMap; - throw new IllegalStateException(msg); - } - } - } - - protected static boolean isInitialized() { - return _tableDbNameInstanceMap.size() == _tableDbNameClassNameMap - .size(); - } - - // =================================================================================== - // Provider Singleton - // ================== - protected static final DBMetaProvider _provider = new DBMetaInstanceHandler(); - - public static DBMetaProvider getProvider() { - return _provider; - } - - @Override - public DBMeta provideDBMeta(final String tableFlexibleName) { - return byTableFlexibleName(tableFlexibleName); - } - - @Override - public DBMeta provideDBMeta(final Class<?> entityType) { - return byEntityType(entityType); - } - - @Override - public DBMeta provideDBMetaChecked(final String tableFlexibleName) { - return findDBMeta(tableFlexibleName); - } - - @Override - public DBMeta provideDBMetaChecked(final Class<?> entityType) { - return findDBMeta(entityType); - } - - // =================================================================================== - // Find DBMeta - // =========== - /** - * Find DB meta by table flexible name. (accept quoted name and schema prefix) - * @param tableFlexibleName The flexible name of table. (NotNull) - * @return The instance of DB meta. (NotNull) - * @exception org.seasar.dbflute.exception.DBMetaNotFoundException When the DB meta is not found. - */ - public static DBMeta findDBMeta(final String tableFlexibleName) { - final DBMeta dbmeta = byTableFlexibleName(tableFlexibleName); - if (dbmeta == null) { - final String msg = "The DB meta was not found by the table flexible name: key=" - + tableFlexibleName; - throw new DBMetaNotFoundException(msg); - } - return dbmeta; - } - - /** - * Find DB meta by entity type. - * @param entityType The entity type of table, which should implement the {@link Entity} interface. (NotNull) - * @return The instance of DB meta. (NotNull) - * @exception org.seasar.dbflute.exception.DBMetaNotFoundException When the DB meta is not found. - */ - public static DBMeta findDBMeta(final Class<?> entityType) { - final DBMeta dbmeta = byEntityType(entityType); - if (dbmeta == null) { - final String msg = "The DB meta was not found by the entity type: key=" - + entityType; - throw new DBMetaNotFoundException(msg); - } - return dbmeta; - } - - // =================================================================================== - // by Table Name - // ============= - /** - * @param tableFlexibleName The flexible name of table. (NotNull) - * @return The instance of DB meta. (NullAllowed: If the DB meta is not found, it returns null) - */ - protected static DBMeta byTableFlexibleName(final String tableFlexibleName) { - assertStringNotNullAndNotTrimmedEmpty("tableFlexibleName", - tableFlexibleName); - String tableDbName = _tableDbNameFlexibleMap.get(tableFlexibleName); - if (tableDbName == null) { - tableDbName = retryByNormalizedName(tableFlexibleName); - } - return tableDbName != null ? byTableDbName(tableDbName) : null; - } - - protected static String retryByNormalizedName(final String tableFlexibleName) { - String tableDbName = null; - final String pureName = normalizeTableFlexibleName(tableFlexibleName); - final String schema = extractSchemaIfExists(tableFlexibleName); - if (schema != null) { // first, find by qualified name - tableDbName = _tableDbNameFlexibleMap.get(schema + "." + pureName); - } - if (tableDbName == null) { // next, find by pure name - tableDbName = _tableDbNameFlexibleMap.get(pureName); - } - return tableDbName; - } - - protected static String normalizeTableFlexibleName( - final String tableFlexibleName) { - return removeQuoteIfExists(removeSchemaIfExists(tableFlexibleName)); - } - - protected static String removeQuoteIfExists(final String name) { - if (name.startsWith("\"") && name.endsWith("\"")) { - return strip(name); - } else if (name.startsWith("[") && name.endsWith("]")) { - return strip(name); - } - return name; - } - - protected static String removeSchemaIfExists(final String name) { - final int dotLastIndex = name.lastIndexOf("."); - return dotLastIndex >= 0 ? name.substring(dotLastIndex + ".".length()) - : name; - } - - protected static String extractSchemaIfExists(final String name) { - final int dotLastIndex = name.lastIndexOf("."); - return dotLastIndex >= 0 ? name.substring(0, dotLastIndex) : null; - } - - protected static String strip(final String name) { - return name.substring(1, name.length() - 1); - } - - /** - * @param tableDbName The DB name of table. (NotNull) - * @return The instance of DB meta. (NullAllowed: If the DB meta is not found, it returns null) - */ - protected static DBMeta byTableDbName(final String tableDbName) { - assertStringNotNullAndNotTrimmedEmpty("tableDbName", tableDbName); - return getCachedDBMeta(tableDbName); - } - - // =================================================================================== - // by Entity Type - // ============== - /** - * @param entityType The entity type of table, which should implement the entity interface. (NotNull) - * @return The instance of DB meta. (NullAllowed: If the DB meta is not found, it returns null) - */ - protected static DBMeta byEntityType(final Class<?> entityType) { - assertObjectNotNull("entityType", entityType); - return getCachedDBMeta(entityType); - } - - // =================================================================================== - // Cached DBMeta - // ============= - protected static DBMeta getCachedDBMeta(final String tableDbName) { // lazy-load (thank you koyak!) - DBMeta dbmeta = _tableDbNameInstanceMap.get(tableDbName); - if (dbmeta != null) { - return dbmeta; - } - synchronized (_tableDbNameInstanceMap) { - dbmeta = _tableDbNameInstanceMap.get(tableDbName); - if (dbmeta != null) { - // an other thread might have initialized - // or reading might failed by same-time writing - return dbmeta; - } - final String dbmetaName = _tableDbNameClassNameMap.get(tableDbName); - if (dbmetaName == null) { - return null; - } - _tableDbNameInstanceMap.put(tableDbName, - toDBMetaInstance(dbmetaName)); - return _tableDbNameInstanceMap.get(tableDbName); - } - } - - protected static DBMeta toDBMetaInstance(final String dbmetaName) { - try { - final Class<?> dbmetaType = Class.forName(dbmetaName); - final Method method = dbmetaType.getMethod("getInstance", - (Class[]) null); - final Object result = method.invoke(null, (Object[]) null); - return (DBMeta) result; - } catch (final Exception e) { - final String msg = "Failed to get the instance: " + dbmetaName; - throw new IllegalStateException(msg, e); - } - } - - protected static DBMeta getCachedDBMeta(final Class<?> entityType) { // lazy-load same as by-name - DBMeta dbmeta = _entityTypeInstanceMap.get(entityType); - if (dbmeta != null) { - return dbmeta; - } - synchronized (_entityTypeInstanceMap) { - dbmeta = _entityTypeInstanceMap.get(entityType); - if (dbmeta != null) { - // an other thread might have initialized - // or reading might failed by same-time writing - return dbmeta; - } - if (Entity.class.isAssignableFrom(entityType)) { // required - final Entity entity = newEntity(entityType); - dbmeta = getCachedDBMeta(entity.getTableDbName()); - } - if (dbmeta == null) { - return null; - } - _entityTypeInstanceMap.put(entityType, dbmeta); - return _entityTypeInstanceMap.get(entityType); - } - } - - protected static Entity newEntity(final Class<?> entityType) { - try { - return (Entity) entityType.newInstance(); - } catch (final Exception e) { - final String msg = "Failed to new the instance: " + entityType; - throw new IllegalStateException(msg, e); - } - } - - // =================================================================================== - // General Helper - // ============== - protected static <KEY, VALUE> HashMap<KEY, VALUE> newHashMap() { - return new HashMap<KEY, VALUE>(); - } - - // ----------------------------------------------------- - // Assert Object - // ------------- - protected static void assertObjectNotNull(final String variableName, - final Object value) { - DfAssertUtil.assertObjectNotNull(variableName, value); - } - - // ----------------------------------------------------- - // Assert String - // ------------- - protected static void assertStringNotNullAndNotTrimmedEmpty( - final String variableName, final String value) { - DfAssertUtil.assertStringNotNullAndNotTrimmedEmpty(variableName, value); - } -} diff --git a/src/main/java/jp/sf/fess/db/allcommon/EntityDefinedCommonColumn.java b/src/main/java/jp/sf/fess/db/allcommon/EntityDefinedCommonColumn.java deleted file mode 100644 index f5916ad97..000000000 --- a/src/main/java/jp/sf/fess/db/allcommon/EntityDefinedCommonColumn.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2015 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.allcommon; - -import org.seasar.dbflute.Entity; - -/** - * The interface of entity defined common columns. - * @author DBFlute(AutoGenerator) - */ -public interface EntityDefinedCommonColumn extends Entity { - - /** - * Enable common column auto set up. <br /> - * It's only for after disable because the default is enabled. - */ - void enableCommonColumnAutoSetup(); - - /** - * Disable common column auto set up. <br /> - * This is an old style. You can get the same process - * by varyingInsert() and varyingUpdate() and so on. - */ - void disableCommonColumnAutoSetup(); - - /** - * Can the entity set up common column by auto? (basically for Framework) - * @return The determination, true or false. - */ - boolean canCommonColumnAutoSetup(); -} diff --git a/src/main/java/jp/sf/fess/db/allcommon/ImplementedBehaviorSelector.java b/src/main/java/jp/sf/fess/db/allcommon/ImplementedBehaviorSelector.java deleted file mode 100644 index 76fb0220d..000000000 --- a/src/main/java/jp/sf/fess/db/allcommon/ImplementedBehaviorSelector.java +++ /dev/null @@ -1,259 +0,0 @@ -/* - * Copyright 2009-2015 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.allcommon; - -import java.util.Collection; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.seasar.dbflute.BehaviorSelector; -import org.seasar.dbflute.bhv.BehaviorReadable; -import org.seasar.dbflute.dbmeta.DBMeta; -import org.seasar.dbflute.exception.IllegalBehaviorStateException; -import org.seasar.dbflute.util.DfTraceViewUtil; -import org.seasar.dbflute.util.DfTypeUtil; -import org.seasar.dbflute.util.Srl; -import org.seasar.framework.container.ComponentNotFoundRuntimeException; -import org.seasar.framework.container.S2Container; - -/** - * The implementation of behavior selector. - * @author DBFlute(AutoGenerator) - */ -public class ImplementedBehaviorSelector implements BehaviorSelector { - - // =================================================================================== - // Definition - // ========== - /** Log instance. */ - private static final Log _log = LogFactory - .getLog(ImplementedBehaviorSelector.class); - - // =================================================================================== - // Attribute - // ========= - /** The concurrent cache of behavior. */ - protected final Map<Class<? extends BehaviorReadable>, BehaviorReadable> _behaviorCache = newConcurrentHashMap(); - - /** The container of Seasar. */ - protected S2Container _container; - - // =================================================================================== - // Initialize - // ========== - /** - * Initialize condition-bean meta data. - */ - @Override - public void initializeConditionBeanMetaData() { - final Map<String, DBMeta> dbmetaMap = DBMetaInstanceHandler - .getUnmodifiableDBMetaMap(); - final Collection<DBMeta> dbmetas = dbmetaMap.values(); - long before = 0; - if (_log.isInfoEnabled()) { - before = System.currentTimeMillis(); - _log.info("...Initializing condition-bean meta data"); - } - int count = 0; - for (final DBMeta dbmeta : dbmetas) { - try { - final BehaviorReadable bhv = byName(dbmeta.getTableDbName()); - bhv.warmUpCommand(); - ++count; - } catch (final IllegalBehaviorStateException ignored) { // means the behavior is suppressed - if (_log.isDebugEnabled()) { - _log.debug("No behavior for " + dbmeta.getTableDbName()); - } - } - } - if (_log.isInfoEnabled()) { - final long after = System.currentTimeMillis(); - _log.info("CB initialized: " + count + " [" - + DfTraceViewUtil.convertToPerformanceView(after - before) - + "]"); - } - } - - // =================================================================================== - // Selector - // ======== - /** - * Select behavior instance by the type. - * @param <BEHAVIOR> The type of behavior. - * @param behaviorType Behavior type. (NotNull) - * @return The selected instance of the behavior. (NotNull) - */ - @Override - @SuppressWarnings("unchecked") - public <BEHAVIOR extends BehaviorReadable> BEHAVIOR select( - final Class<BEHAVIOR> behaviorType) { - BEHAVIOR bhv = (BEHAVIOR) _behaviorCache.get(behaviorType); - if (bhv != null) { - return bhv; - } - synchronized (_behaviorCache) { - bhv = (BEHAVIOR) _behaviorCache.get(behaviorType); - if (bhv != null) { - // a previous thread might have initialized - // or reading might failed by same-time writing - return bhv; - } - bhv = getComponent(behaviorType); - _behaviorCache.put(behaviorType, bhv); - return bhv; - } - } - - /** - * Select behavior (as readable type) by name. - * @param tableFlexibleName The flexible-name of table. (NotNull) - * @return The instance of found behavior. (NotNull) - * @throws org.seasar.dbflute.exception.DBMetaNotFoundException When the table is not found. - * @throws org.seasar.dbflute.exception.IllegalBehaviorStateException When the behavior class is suppressed. - */ - @Override - public BehaviorReadable byName(final String tableFlexibleName) { - assertStringNotNullAndNotTrimmedEmpty("tableFlexibleName", - tableFlexibleName); - final DBMeta dbmeta = DBMetaInstanceHandler - .findDBMeta(tableFlexibleName); - return select(getBehaviorType(dbmeta)); - } - - /** - * Get behavior-type by DB meta. - * @param dbmeta The instance of DB meta for the behavior. (NotNull) - * @return The type of behavior (as readable type). (NotNull) - * @throws org.seasar.dbflute.exception.IllegalBehaviorStateException When the behavior class is suppressed. - */ - @SuppressWarnings("unchecked") - protected Class<BehaviorReadable> getBehaviorType(final DBMeta dbmeta) { - final String behaviorTypeName = dbmeta.getBehaviorTypeName(); - if (behaviorTypeName == null) { - final String msg = "The dbmeta.getBehaviorTypeName() should not return null: dbmeta=" - + dbmeta; - throw new IllegalStateException(msg); - } - final Class<BehaviorReadable> behaviorType; - try { - behaviorType = (Class<BehaviorReadable>) Class - .forName(behaviorTypeName); - } catch (final ClassNotFoundException e) { - throw new IllegalBehaviorStateException( - "The class does not exist: " + behaviorTypeName, e); - } - return behaviorType; - } - - // =================================================================================== - // Component - // ========= - @SuppressWarnings("unchecked") - protected <COMPONENT> COMPONENT getComponent( - final Class<COMPONENT> componentType) { // only for behavior - assertObjectNotNull("componentType", componentType); - assertObjectNotNull("_container", _container); - try { - return (COMPONENT) _container.getComponent(componentType); - } catch (final ComponentNotFoundRuntimeException e) { // Normally it doesn't come. - final COMPONENT component; - try { - // for HotDeploy Mode - component = (COMPONENT) _container.getRoot().getComponent( - componentType); - } catch (final ComponentNotFoundRuntimeException ignored) { - throw e; - } - _container = _container.getRoot(); // Change container. - return component; - } - } - - // =================================================================================== - // General Helper - // ============== - protected String replace(final String str, final String fromStr, - final String toStr) { - return Srl.replace(str, fromStr, toStr); - } - - protected String initUncap(final String str) { - return str.substring(0, 1).toLowerCase() + str.substring(1); - } - - protected String toClassTitle(final Object obj) { - return DfTypeUtil.toClassTitle(obj); - } - - protected <KEY, VALUE> ConcurrentHashMap<KEY, VALUE> newConcurrentHashMap() { - return new ConcurrentHashMap<KEY, VALUE>(); - } - - // =================================================================================== - // Assert - // ====== - // ----------------------------------------------------- - // Assert Object - // ------------- - /** - * Assert that the object is not null. - * @param variableName Variable name. (NotNull) - * @param value Value. (NotNull) - * @exception IllegalArgumentException - */ - protected void assertObjectNotNull(final String variableName, - final Object value) { - if (variableName == null) { - final String msg = "The value should not be null: variableName=null value=" - + value; - throw new IllegalArgumentException(msg); - } - if (value == null) { - final String msg = "The value should not be null: variableName=" - + variableName; - throw new IllegalArgumentException(msg); - } - } - - // ----------------------------------------------------- - // Assert String - // ------------- - /** - * Assert that the entity is not null and not trimmed empty. - * @param variableName Variable name. (NotNull) - * @param value Value. (NotNull) - */ - protected void assertStringNotNullAndNotTrimmedEmpty( - final String variableName, final String value) { - assertObjectNotNull("variableName", variableName); - assertObjectNotNull("value", value); - if (value.trim().length() == 0) { - final String msg = "The value should not be empty: variableName=" - + variableName + " value=" + value; - throw new IllegalArgumentException(msg); - } - } - - // =================================================================================== - // Accessor - // ======== - public void setContainer(final S2Container container) { - _container = container; - } -} diff --git a/src/main/java/jp/sf/fess/db/allcommon/ImplementedCommonColumnAutoSetupper.java b/src/main/java/jp/sf/fess/db/allcommon/ImplementedCommonColumnAutoSetupper.java deleted file mode 100644 index eb1e37ab3..000000000 --- a/src/main/java/jp/sf/fess/db/allcommon/ImplementedCommonColumnAutoSetupper.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2015 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.allcommon; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.core.CommonColumnAutoSetupper; - -/** - * The basic implementation of the auto set-upper of common column. - * @author DBFlute(AutoGenerator) - */ -public class ImplementedCommonColumnAutoSetupper implements - CommonColumnAutoSetupper { - - // ===================================================================================== - // Definition - // ========== - /** Log instance. */ - private static final Log _log = LogFactory - .getLog(ImplementedCommonColumnAutoSetupper.class); - - // ===================================================================================== - // Set up - // ====== - /** - * {@inheritDoc} - */ - @Override - public void handleCommonColumnOfInsertIfNeeds(final Entity targetEntity) { - } - - /** - * {@inheritDoc} - */ - @Override - public void handleCommonColumnOfUpdateIfNeeds(final Entity targetEntity) { - } - - // ===================================================================================== - // Logging - // ======= - protected boolean isInternalDebugEnabled() { - return DBFluteConfig.getInstance().isInternalDebug() - && _log.isDebugEnabled(); - } - - protected void logSettingUp(final EntityDefinedCommonColumn entity, - final String keyword) { - _log.debug("...Setting up column columns of " + entity.getTableDbName() - + " before " + keyword); - } -} diff --git a/src/main/java/jp/sf/fess/db/allcommon/ImplementedInvokerAssistant.java b/src/main/java/jp/sf/fess/db/allcommon/ImplementedInvokerAssistant.java deleted file mode 100644 index 54e37ccdc..000000000 --- a/src/main/java/jp/sf/fess/db/allcommon/ImplementedInvokerAssistant.java +++ /dev/null @@ -1,524 +0,0 @@ -/* - * Copyright 2009-2015 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.allcommon; - -import javax.sql.DataSource; - -import org.seasar.dbflute.DBDef; -import org.seasar.dbflute.bhv.core.InvokerAssistant; -import org.seasar.dbflute.bhv.core.supplement.SequenceCacheHandler; -import org.seasar.dbflute.bhv.core.supplement.SequenceCacheKeyGenerator; -import org.seasar.dbflute.cbean.cipher.GearedCipherManager; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.exception.factory.DefaultSQLExceptionHandlerFactory; -import org.seasar.dbflute.exception.factory.SQLExceptionHandlerFactory; -import org.seasar.dbflute.exception.thrower.BehaviorExceptionThrower; -import org.seasar.dbflute.helper.beans.factory.DfBeanDescFactory; -import org.seasar.dbflute.jdbc.DataSourceHandler; -import org.seasar.dbflute.jdbc.HandlingDataSourceWrapper; -import org.seasar.dbflute.jdbc.SQLExceptionDigger; -import org.seasar.dbflute.jdbc.StatementConfig; -import org.seasar.dbflute.jdbc.StatementFactory; -import org.seasar.dbflute.optional.RelationOptionalFactory; -import org.seasar.dbflute.outsidesql.factory.DefaultOutsideSqlExecutorFactory; -import org.seasar.dbflute.outsidesql.factory.OutsideSqlExecutorFactory; -import org.seasar.dbflute.resource.ResourceParameter; -import org.seasar.dbflute.s2dao.extension.TnBeanMetaDataFactoryExtension; -import org.seasar.dbflute.s2dao.jdbc.TnStatementFactoryImpl; -import org.seasar.dbflute.s2dao.metadata.TnBeanMetaDataFactory; -import org.seasar.dbflute.twowaysql.factory.DefaultSqlAnalyzerFactory; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; -import org.seasar.framework.container.annotation.tiger.Binding; -import org.seasar.framework.container.annotation.tiger.BindingType; -import org.seasar.framework.util.Disposable; -import org.seasar.framework.util.DisposableUtil; - -/** - * @author DBFlute(AutoGenerator) - */ -public class ImplementedInvokerAssistant implements InvokerAssistant { - - // =================================================================================== - // Attribute - // ========= - protected static final String[] DEFAULT_CLIENT_INVOKE_NAMES = new String[] { - "Page", "Action", "Controller", "ControllerImpl", "Task", "Test" }; - - protected static final String[] DEFAULT_BYPASS_INVOKE_NAMES = new String[] { - "Service", "ServiceImpl", "Facade", "FacadeImpl", "Logic", - "LogicImpl" }; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // DI Component - // ------------ - protected DataSource _dataSource; - - protected DBFluteInitializer _introduction; - - // ----------------------------------------------------- - // Lazy Component - // -------------- - protected volatile DBMetaProvider _dbmetaProvider; - - protected volatile SqlClauseCreator _sqlClauseCreator; - - protected volatile StatementFactory _statementFactory; - - protected volatile TnBeanMetaDataFactory _beanMetaDataFactory; - - protected volatile SqlAnalyzerFactory _sqlAnalyzerFactory; - - protected volatile OutsideSqlExecutorFactory _outsideSqlExecutorFactory; - - protected volatile SQLExceptionHandlerFactory _sqlExceptionHandlerFactory; - - protected volatile SequenceCacheHandler _sequenceCacheHandler; - - protected volatile RelationOptionalFactory _relationOptionalFactory; - - // ----------------------------------------------------- - // Disposable Flag - // --------------- - protected volatile boolean _disposable; - - // =================================================================================== - // Assistant Main Work - // =================== - // ----------------------------------------------------- - // Current DBDef - // ------------- - @Override - public DBDef assistCurrentDBDef() { - return DBCurrent.getInstance().currentDBDef(); - } - - // ----------------------------------------------------- - // Data Source - // ----------- - @Override - public DataSource assistDataSource() { // DI component - // this instance will be cached in SQL executions - // so the handler should be set before initialization of DBFlute - // (and it means you cannot switch data source after initialization) - final DataSourceHandler handler = DBFluteConfig.getInstance() - .getDataSourceHandler(); - return handler != null ? new HandlingDataSourceWrapper(_dataSource, - handler) : _dataSource; - } - - // ----------------------------------------------------- - // DBMeta Provider - // --------------- - @Override - public DBMetaProvider assistDBMetaProvider() { // lazy component - if (_dbmetaProvider != null) { - return _dbmetaProvider; - } - synchronized (this) { - if (_dbmetaProvider != null) { - return _dbmetaProvider; - } - _dbmetaProvider = createDBMetaProvider(); - } - return _dbmetaProvider; - } - - protected DBMetaProvider createDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // ----------------------------------------------------- - // SQL Clause Creator - // ------------------ - @Override - public SqlClauseCreator assistSqlClauseCreator() { // lazy component - if (_sqlClauseCreator != null) { - return _sqlClauseCreator; - } - synchronized (this) { - if (_sqlClauseCreator != null) { - return _sqlClauseCreator; - } - _sqlClauseCreator = createSqlClauseCreator(); - } - return _sqlClauseCreator; - } - - protected SqlClauseCreator createSqlClauseCreator() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator; - } - return newImplementedSqlClauseCreator(); // as default - } - - protected ImplementedSqlClauseCreator newImplementedSqlClauseCreator() { - return new ImplementedSqlClauseCreator(); - } - - // ----------------------------------------------------- - // Statement Factory - // ----------------- - @Override - public StatementFactory assistStatementFactory() { // lazy component - if (_statementFactory != null) { - return _statementFactory; - } - synchronized (this) { - if (_statementFactory != null) { - return _statementFactory; - } - _statementFactory = createStatementFactory(); - } - return _statementFactory; - } - - protected StatementFactory createStatementFactory() { - final TnStatementFactoryImpl factory = newStatementFactoryImpl(); - factory.setDefaultStatementConfig(assistDefaultStatementConfig()); - factory.setInternalDebug(DBFluteConfig.getInstance().isInternalDebug()); - factory.setCursorSelectFetchSize(DBFluteConfig.getInstance() - .getCursorSelectFetchSize()); - return factory; - } - - protected TnStatementFactoryImpl newStatementFactoryImpl() { - return new TnStatementFactoryImpl(); - } - - // ----------------------------------------------------- - // Bean Meta Data Factory - // ---------------------- - @Override - public TnBeanMetaDataFactory assistBeanMetaDataFactory() { // lazy component - if (_beanMetaDataFactory != null) { - return _beanMetaDataFactory; - } - synchronized (this) { - if (_beanMetaDataFactory != null) { - return _beanMetaDataFactory; - } - _beanMetaDataFactory = createBeanMetaDataFactory(); - } - return _beanMetaDataFactory; - } - - protected TnBeanMetaDataFactory createBeanMetaDataFactory() { - final RelationOptionalFactory relationOptionalFactory = assistRelationOptionalFactory(); - final TnBeanMetaDataFactoryExtension factory = newBeanMetaDataFactoryExtension(relationOptionalFactory); - factory.setDataSource(_dataSource); - factory.setInternalDebug(DBFluteConfig.getInstance().isInternalDebug()); - return factory; - } - - protected TnBeanMetaDataFactoryExtension newBeanMetaDataFactoryExtension( - final RelationOptionalFactory relationOptionalFactory) { - return new TnBeanMetaDataFactoryExtension(relationOptionalFactory); - } - - // ----------------------------------------------------- - // Relation Optional Factory - // ------------------------- - /** - * {@inheritDoc} - */ - @Override - public RelationOptionalFactory assistRelationOptionalFactory() { - if (_relationOptionalFactory != null) { - return _relationOptionalFactory; - } - synchronized (this) { - if (_relationOptionalFactory != null) { - return _relationOptionalFactory; - } - _relationOptionalFactory = createRelationOptionalFactory(); - } - return _relationOptionalFactory; - } - - protected RelationOptionalFactory createRelationOptionalFactory() { - return newRelationOptionalFactory(); - } - - protected RelationOptionalFactory newRelationOptionalFactory() { - return new RelationOptionalFactory(); - } - - // ----------------------------------------------------- - // SQL Analyzer Factory - // -------------------- - /** - * {@inheritDoc} - */ - @Override - public SqlAnalyzerFactory assistSqlAnalyzerFactory() { // lazy component - if (_sqlAnalyzerFactory != null) { - return _sqlAnalyzerFactory; - } - synchronized (this) { - if (_sqlAnalyzerFactory != null) { - return _sqlAnalyzerFactory; - } - _sqlAnalyzerFactory = createSqlAnalyzerFactory(); - } - return _sqlAnalyzerFactory; - } - - protected SqlAnalyzerFactory createSqlAnalyzerFactory() { - return newDefaultSqlAnalyzerFactory(); - } - - protected DefaultSqlAnalyzerFactory newDefaultSqlAnalyzerFactory() { - return new DefaultSqlAnalyzerFactory(); - } - - // ----------------------------------------------------- - // OutsideSql Executor Factory - // --------------------------- - /** - * {@inheritDoc} - */ - @Override - public OutsideSqlExecutorFactory assistOutsideSqlExecutorFactory() { - if (_outsideSqlExecutorFactory != null) { - return _outsideSqlExecutorFactory; - } - synchronized (this) { - if (_outsideSqlExecutorFactory != null) { - return _outsideSqlExecutorFactory; - } - _outsideSqlExecutorFactory = createOutsideSqlExecutorFactory(); - } - return _outsideSqlExecutorFactory; - } - - protected OutsideSqlExecutorFactory createOutsideSqlExecutorFactory() { - final OutsideSqlExecutorFactory factory = DBFluteConfig.getInstance() - .getOutsideSqlExecutorFactory(); - if (factory != null) { - return factory; - } - return newDefaultOutsideSqlExecutorFactory(); // as default - } - - protected DefaultOutsideSqlExecutorFactory newDefaultOutsideSqlExecutorFactory() { - return new DefaultOutsideSqlExecutorFactory(); - } - - // ----------------------------------------------------- - // SQLException Digger - // ------------------- - /** - * {@inheritDoc} - */ - @Override - public SQLExceptionDigger assistSQLExceptionDigger() { - return createSQLExceptionDigger(); - } - - protected SQLExceptionDigger createSQLExceptionDigger() { - return DBFluteConfig.getInstance().getSQLExceptionDigger(); - } - - // ----------------------------------------------------- - // SQLException Handler Factory - // ---------------------------- - /** - * {@inheritDoc} - */ - @Override - public SQLExceptionHandlerFactory assistSQLExceptionHandlerFactory() { // lazy component - if (_sqlExceptionHandlerFactory != null) { - return _sqlExceptionHandlerFactory; - } - synchronized (this) { - if (_sqlExceptionHandlerFactory != null) { - return _sqlExceptionHandlerFactory; - } - _sqlExceptionHandlerFactory = createSQLExceptionHandlerFactory(); - } - return _sqlExceptionHandlerFactory; - } - - protected SQLExceptionHandlerFactory createSQLExceptionHandlerFactory() { - return newDefaultSQLExceptionHandlerFactory(); - } - - protected DefaultSQLExceptionHandlerFactory newDefaultSQLExceptionHandlerFactory() { - return new DefaultSQLExceptionHandlerFactory(); - } - - // ----------------------------------------------------- - // Sequence Cache Handler - // ---------------------- - /** - * {@inheritDoc} - */ - @Override - public SequenceCacheHandler assistSequenceCacheHandler() { // lazy component - if (_sequenceCacheHandler != null) { - return _sequenceCacheHandler; - } - synchronized (this) { - if (_sequenceCacheHandler != null) { - return _sequenceCacheHandler; - } - _sequenceCacheHandler = createSequenceCacheHandler(); - } - return _sequenceCacheHandler; - } - - protected SequenceCacheHandler createSequenceCacheHandler() { - final SequenceCacheHandler handler = newSequenceCacheHandler(); - final SequenceCacheKeyGenerator generator = DBFluteConfig.getInstance() - .getSequenceCacheKeyGenerator(); - if (generator != null) { - handler.setSequenceCacheKeyGenerator(generator); - } - handler.setInternalDebug(DBFluteConfig.getInstance().isInternalDebug()); - return handler; - } - - protected SequenceCacheHandler newSequenceCacheHandler() { - return new SequenceCacheHandler(); - } - - // ----------------------------------------------------- - // SQL File Encoding - // ----------------- - @Override - public String assistSqlFileEncoding() { - return "UTF-8"; - } - - // ----------------------------------------------------- - // Statement Configuration - // ----------------------- - @Override - public StatementConfig assistDefaultStatementConfig() { - return DBFluteConfig.getInstance().getDefaultStatementConfig(); - } - - // ----------------------------------------------------- - // Behavior Exception Thrower - // -------------------------- - @Override - public BehaviorExceptionThrower assistBehaviorExceptionThrower() { - return new BehaviorExceptionThrower(); - } - - // ----------------------------------------------------- - // Geared Cipher Manager - // --------------------- - @Override - public GearedCipherManager assistGearedCipherManager() { - return DBFluteConfig.getInstance().getGearedCipherManager(); - } - - // ----------------------------------------------------- - // Resource Parameter - // ------------------ - @Override - public ResourceParameter assistResourceParameter() { - return createResourceParameter(); - } - - protected ResourceParameter createResourceParameter() { - final ResourceParameter parameter = newResourceParameter(); - parameter.setOutsideSqlPackage(DBFluteConfig.getInstance() - .getOutsideSqlPackage()); - parameter.setLogDateFormat(DBFluteConfig.getInstance() - .getLogDateFormat()); - parameter.setLogTimestampFormat(DBFluteConfig.getInstance() - .getLogTimestampFormat()); - parameter.setInternalDebug(DBFluteConfig.getInstance() - .isInternalDebug()); - return parameter; - } - - protected ResourceParameter newResourceParameter() { - return new ResourceParameter(); - } - - // ----------------------------------------------------- - // Invoke Names - // ------------ - @Override - public String[] assistClientInvokeNames() { - return DEFAULT_CLIENT_INVOKE_NAMES; - } - - @Override - public String[] assistByPassInvokeNames() { - return DEFAULT_BYPASS_INVOKE_NAMES; - } - - // =================================================================================== - // Dispose - // ======= - @Override - public void toBeDisposable(final DisposableProcess callerProcess) { // for HotDeploy - if (_disposable) { - return; - } - synchronized (this) { - if (_disposable) { - return; - } - DisposableUtil.add(new Disposable() { - @Override - public void dispose() { - callerProcess.dispose(); - _disposable = false; - } - }); - DisposableUtil.add(new Disposable() { - @Override - public void dispose() { - DfBeanDescFactory.clear(); - } - }); - _disposable = true; - } - } - - public boolean isDisposable() { - return _disposable; - } - - // =================================================================================== - // Accessor - // ======== - public void setDataSource(final DataSource dataSource) { - _dataSource = dataSource; - } - - // to check the initializer is an instance of DBFluteInitializer - // when the initializer is extended by DBFlute property - // so this variable is actually unused in this class - // (needs to be injected only when the DI container - // is set by its DI setting file) - @Binding(bindingType = BindingType.MUST) - public void setIntroduction(final DBFluteInitializer introduction) { - _introduction = introduction; - } -} diff --git a/src/main/java/jp/sf/fess/db/allcommon/ImplementedSqlClauseCreator.java b/src/main/java/jp/sf/fess/db/allcommon/ImplementedSqlClauseCreator.java deleted file mode 100644 index a03cc13ba..000000000 --- a/src/main/java/jp/sf/fess/db/allcommon/ImplementedSqlClauseCreator.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright 2009-2015 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.allcommon; - -import org.seasar.dbflute.DBDef; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.cipher.GearedCipherManager; -import org.seasar.dbflute.cbean.sqlclause.AbstractSqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseDb2; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseDefault; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseDerby; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseFirebird; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseH2; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseMsAccess; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseMySql; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseOracle; -import org.seasar.dbflute.cbean.sqlclause.SqlClausePostgreSql; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseSqlServer; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseSqlite; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseSybase; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The creator of SQL clause. - * @author DBFlute(AutoGenerator) - */ -public class ImplementedSqlClauseCreator implements SqlClauseCreator { - - // =================================================================================== - // Implementation - // ============== - /** - * Create SQL clause. {for condition-bean} - * @param cb Condition-bean. (NotNull) - * @return SQL clause. (NotNull) - */ - @Override - public SqlClause createSqlClause(final ConditionBean cb) { - final String tableDbName = cb.getTableDbName(); - final SqlClause sqlClause = createSqlClause(tableDbName); - return sqlClause; - } - - /** - * Create SQL clause. - * @param tableDbName The DB name of table. (NotNull) - * @return SQL clause. (NotNull) - */ - @Override - public SqlClause createSqlClause(final String tableDbName) { - final SqlClause sqlClause = doCreateSqlClause(tableDbName); - setupSqlClauseOption(sqlClause); - return sqlClause; - } - - // =================================================================================== - // Creation - // ======== - protected SqlClause doCreateSqlClause(final String tableDbName) { - AbstractSqlClause sqlClause; // dynamic resolution but no perfect (almost static) - if (isCurrentDBDef(DBDef.MySQL)) { - sqlClause = createSqlClauseMySql(tableDbName); - } else if (isCurrentDBDef(DBDef.PostgreSQL)) { - sqlClause = createSqlClausePostgreSql(tableDbName); - } else if (isCurrentDBDef(DBDef.Oracle)) { - sqlClause = createSqlClauseOracle(tableDbName); - } else if (isCurrentDBDef(DBDef.DB2)) { - sqlClause = createSqlClauseDb2(tableDbName); - } else if (isCurrentDBDef(DBDef.SQLServer)) { - sqlClause = createSqlClauseSqlServer(tableDbName); - } else if (isCurrentDBDef(DBDef.H2)) { - sqlClause = createSqlClauseH2(tableDbName); - } else if (isCurrentDBDef(DBDef.Derby)) { - sqlClause = createSqlClauseDerby(tableDbName); - } else if (isCurrentDBDef(DBDef.SQLite)) { - sqlClause = createSqlClauseSqlite(tableDbName); - } else if (isCurrentDBDef(DBDef.MSAccess)) { - sqlClause = createSqlClauseMsAccess(tableDbName); - } else if (isCurrentDBDef(DBDef.Firebird)) { - sqlClause = createSqlClauseFirebird(tableDbName); - } else if (isCurrentDBDef(DBDef.Sybase)) { - sqlClause = createSqlClauseSybase(tableDbName); - } else { - // as the database when generating - sqlClause = createSqlClauseH2(tableDbName); - } - prepareSupporterComponent(sqlClause); - return sqlClause; - } - - protected SqlClauseMySql createSqlClauseMySql(final String tableDbName) { - return new SqlClauseMySql(tableDbName); - } - - protected SqlClausePostgreSql createSqlClausePostgreSql( - final String tableDbName) { - return new SqlClausePostgreSql(tableDbName); - } - - protected SqlClauseOracle createSqlClauseOracle(final String tableDbName) { - return new SqlClauseOracle(tableDbName); - } - - protected SqlClauseDb2 createSqlClauseDb2(final String tableDbName) { - return new SqlClauseDb2(tableDbName); - } - - protected SqlClauseSqlServer createSqlClauseSqlServer( - final String tableDbName) { - return new SqlClauseSqlServer(tableDbName); - } - - protected SqlClauseH2 createSqlClauseH2(final String tableDbName) { - return new SqlClauseH2(tableDbName); - } - - protected SqlClauseDerby createSqlClauseDerby(final String tableDbName) { - return new SqlClauseDerby(tableDbName); - } - - protected SqlClauseSqlite createSqlClauseSqlite(final String tableDbName) { - return new SqlClauseSqlite(tableDbName); - } - - protected SqlClauseMsAccess createSqlClauseMsAccess(final String tableDbName) { - return new SqlClauseMsAccess(tableDbName); - } - - protected SqlClauseFirebird createSqlClauseFirebird(final String tableDbName) { - return new SqlClauseFirebird(tableDbName); - } - - protected SqlClauseSybase createSqlClauseSybase(final String tableDbName) { - return new SqlClauseSybase(tableDbName); - } - - protected SqlClause createSqlClauseDefault(final String tableDbName) { - return new SqlClauseDefault(tableDbName); - } - - protected void prepareSupporterComponent(final AbstractSqlClause sqlClause) { - sqlClause.dbmetaProvider(getDBMetaProvider()).cipherManager( - getGearedCipherManager()); - } - - // =================================================================================== - // Supporter - // ========= - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - protected GearedCipherManager getGearedCipherManager() { - return DBFluteConfig.getInstance().getGearedCipherManager(); - } - - // =================================================================================== - // Option - // ====== - protected void setupSqlClauseOption(final SqlClause sqlClause) { - if (isInnerJoinAutoDetect()) { - sqlClause.enableInnerJoinAutoDetect(); - } - if (isThatsBadTimingDetect()) { - sqlClause.enableThatsBadTimingDetect(); - } - if (isNullOrEmptyQueryAllowed()) { // default for 1.0.5 - sqlClause.ignoreNullOrEmptyQuery(); - } else { // default for 1.1 - sqlClause.checkNullOrEmptyQuery(); - } - if (isEmptyStringQueryAllowed()) { - sqlClause.enableEmptyStringQuery(); - } - if (isOverridingQueryAllowed()) { // default for 1.0.5 - sqlClause.enableOverridingQuery(); - } else { // default for 1.1 - sqlClause.disableOverridingQuery(); - } - if (isDisableSelectIndex()) { - sqlClause.disableSelectIndex(); - } - } - - // =================================================================================== - // Determination - // ============= - protected boolean isCurrentDBDef(final DBDef currentDBDef) { - return DBCurrent.getInstance().isCurrentDBDef(currentDBDef); - } - - protected boolean isInnerJoinAutoDetect() { - return DBFluteConfig.getInstance().isInnerJoinAutoDetect(); - } - - protected boolean isThatsBadTimingDetect() { - return DBFluteConfig.getInstance().isThatsBadTimingDetect(); - } - - protected boolean isNullOrEmptyQueryAllowed() { - return DBFluteConfig.getInstance().isNullOrEmptyQueryAllowed(); - } - - protected boolean isEmptyStringQueryAllowed() { - return DBFluteConfig.getInstance().isEmptyStringQueryAllowed(); - } - - protected boolean isOverridingQueryAllowed() { - return DBFluteConfig.getInstance().isOverridingQueryAllowed(); - } - - protected boolean isDisableSelectIndex() { - return DBFluteConfig.getInstance().isDisableSelectIndex(); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsBoostDocumentRuleBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsBoostDocumentRuleBhv.java deleted file mode 100644 index e034ba1db..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsBoostDocumentRuleBhv.java +++ /dev/null @@ -1,1257 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfBoostDocumentRule; -import jp.sf.fess.db.bsentity.dbmeta.BoostDocumentRuleDbm; -import jp.sf.fess.db.cbean.BoostDocumentRuleCB; -import jp.sf.fess.db.exbhv.BoostDocumentRuleBhv; -import jp.sf.fess.db.exentity.BoostDocumentRule; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of BOOST_DOCUMENT_RULE as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, URL_EXPR, BOOST_EXPR, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsBoostDocumentRuleBhv extends - AbstractBehaviorWritable<BoostDocumentRule, BoostDocumentRuleCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public BoostDocumentRuleDbm getDBMeta() { - return BoostDocumentRuleDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public BoostDocumentRuleDbm getMyDBMeta() { - return BoostDocumentRuleDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public BoostDocumentRuleCB newConditionBean() { - return new BoostDocumentRuleCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public BoostDocumentRule newMyEntity() { - return new BoostDocumentRule(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public BoostDocumentRuleCB newMyConditionBean() { - return new BoostDocumentRuleCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - * cb.query().setFoo...(value); - * int count = boostDocumentRuleBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of BoostDocumentRule. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final BoostDocumentRuleCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - * cb.query().setFoo...(value); - * BoostDocumentRule boostDocumentRule = boostDocumentRuleBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (boostDocumentRule != null) { <span style="color: #3F7E5E">// null check</span> - * ... = boostDocumentRule.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of BoostDocumentRule. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public BoostDocumentRule selectEntity(final BoostDocumentRuleCB cb) { - return facadeSelectEntity(cb); - } - - protected BoostDocumentRule facadeSelectEntity(final BoostDocumentRuleCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends BoostDocumentRule> OptionalEntity<ENTITY> doSelectOptionalEntity( - final BoostDocumentRuleCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - * cb.query().setFoo...(value); - * BoostDocumentRule boostDocumentRule = boostDocumentRuleBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = boostDocumentRule.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of BoostDocumentRule. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public BoostDocumentRule selectEntityWithDeletedCheck( - final BoostDocumentRuleCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public BoostDocumentRule selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected BoostDocumentRule facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends BoostDocumentRule> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends BoostDocumentRule> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public BoostDocumentRule selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends BoostDocumentRule> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected BoostDocumentRuleCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<BoostDocumentRule> boostDocumentRuleList = boostDocumentRuleBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (BoostDocumentRule boostDocumentRule : boostDocumentRuleList) { - * ... = boostDocumentRule.get...(); - * } - * </pre> - * @param cb The condition-bean of BoostDocumentRule. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<BoostDocumentRule> selectList( - final BoostDocumentRuleCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<BoostDocumentRule> page = boostDocumentRuleBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (BoostDocumentRule boostDocumentRule : page) { - * ... = boostDocumentRule.get...(); - * } - * </pre> - * @param cb The condition-bean of BoostDocumentRule. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<BoostDocumentRule> selectPage( - final BoostDocumentRuleCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - * cb.query().setFoo...(value); - * boostDocumentRuleBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<BoostDocumentRule>() { - * public void handle(BoostDocumentRule entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of BoostDocumentRule. (NotNull) - * @param entityRowHandler The handler of entity row of BoostDocumentRule. (NotNull) - */ - public void selectCursor(final BoostDocumentRuleCB cb, - final EntityRowHandler<BoostDocumentRule> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * boostDocumentRuleBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(BoostDocumentRuleCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<BoostDocumentRuleCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param boostDocumentRuleList The entity list of boostDocumentRule. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<BoostDocumentRule> boostDocumentRuleList, - final ReferrerLoaderHandler<LoaderOfBoostDocumentRule> handler) { - xassLRArg(boostDocumentRuleList, handler); - handler.handle(new LoaderOfBoostDocumentRule().ready( - boostDocumentRuleList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param boostDocumentRule The entity of boostDocumentRule. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final BoostDocumentRule boostDocumentRule, - final ReferrerLoaderHandler<LoaderOfBoostDocumentRule> handler) { - xassLRArg(boostDocumentRule, handler); - handler.handle(new LoaderOfBoostDocumentRule().ready( - xnewLRAryLs(boostDocumentRule), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param boostDocumentRuleList The list of boostDocumentRule. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<BoostDocumentRule> boostDocumentRuleList) { - return helpExtractListInternally(boostDocumentRuleList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * boostDocumentRule.setFoo...(value); - * boostDocumentRule.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//boostDocumentRule.set...;</span> - * boostDocumentRuleBhv.<span style="color: #DD4747">insert</span>(boostDocumentRule); - * ... = boostDocumentRule.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param boostDocumentRule The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final BoostDocumentRule boostDocumentRule) { - doInsert(boostDocumentRule, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * boostDocumentRule.setPK...(value); <span style="color: #3F7E5E">// required</span> - * boostDocumentRule.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//boostDocumentRule.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * boostDocumentRule.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * boostDocumentRuleBhv.<span style="color: #DD4747">update</span>(boostDocumentRule); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param boostDocumentRule The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final BoostDocumentRule boostDocumentRule) { - doUpdate(boostDocumentRule, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * boostDocumentRule.setPK...(value); <span style="color: #3F7E5E">// required</span> - * boostDocumentRule.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//boostDocumentRule.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setVersionNo(value);</span> - * boostDocumentRuleBhv.<span style="color: #DD4747">updateNonstrict</span>(boostDocumentRule); - * </pre> - * @param boostDocumentRule The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final BoostDocumentRule boostDocumentRule) { - doUpdateNonstrict(boostDocumentRule, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param boostDocumentRule The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final BoostDocumentRule boostDocumentRule) { - doInsertOrUpdate(boostDocumentRule, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param boostDocumentRule The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict( - final BoostDocumentRule boostDocumentRule) { - doInsertOrUpdateNonstrict(boostDocumentRule, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * boostDocumentRule.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * boostDocumentRule.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * boostDocumentRuleBhv.<span style="color: #DD4747">delete</span>(boostDocumentRule); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param boostDocumentRule The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final BoostDocumentRule boostDocumentRule) { - doDelete(boostDocumentRule, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * boostDocumentRule.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setVersionNo(value);</span> - * boostDocumentRuleBhv.<span style="color: #DD4747">deleteNonstrict</span>(boostDocumentRule); - * </pre> - * @param boostDocumentRule The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final BoostDocumentRule boostDocumentRule) { - doDeleteNonstrict(boostDocumentRule, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * boostDocumentRule.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setVersionNo(value);</span> - * boostDocumentRuleBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(boostDocumentRule); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param boostDocumentRule The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted( - final BoostDocumentRule boostDocumentRule) { - doDeleteNonstrictIgnoreDeleted(boostDocumentRule, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final BoostDocumentRule et, - final DeleteOption<BoostDocumentRuleCB> op) { - assertObjectNotNull("boostDocumentRule", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * boostDocumentRule.setFooName("foo"); - * if (...) { - * boostDocumentRule.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * boostDocumentRuleList.add(boostDocumentRule); - * } - * boostDocumentRuleBhv.<span style="color: #DD4747">batchInsert</span>(boostDocumentRuleList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param boostDocumentRuleList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<BoostDocumentRule> boostDocumentRuleList) { - return doBatchInsert(boostDocumentRuleList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * boostDocumentRule.setFooName("foo"); - * if (...) { - * boostDocumentRule.setFooPrice(123); - * } else { - * boostDocumentRule.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * boostDocumentRuleList.add(boostDocumentRule); - * } - * boostDocumentRuleBhv.<span style="color: #DD4747">batchUpdate</span>(boostDocumentRuleList); - * </pre> - * @param boostDocumentRuleList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<BoostDocumentRule> boostDocumentRuleList) { - return doBatchUpdate(boostDocumentRuleList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * boostDocumentRuleBhv.<span style="color: #DD4747">batchUpdate</span>(boostDocumentRuleList, new SpecifyQuery<BoostDocumentRuleCB>() { - * public void specify(BoostDocumentRuleCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * boostDocumentRuleBhv.<span style="color: #DD4747">batchUpdate</span>(boostDocumentRuleList, new SpecifyQuery<BoostDocumentRuleCB>() { - * public void specify(BoostDocumentRuleCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param boostDocumentRuleList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate( - final List<BoostDocumentRule> boostDocumentRuleList, - final SpecifyQuery<BoostDocumentRuleCB> updateColumnSpec) { - return doBatchUpdate(boostDocumentRuleList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * boostDocumentRule.setFooName("foo"); - * if (...) { - * boostDocumentRule.setFooPrice(123); - * } else { - * boostDocumentRule.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * boostDocumentRuleList.add(boostDocumentRule); - * } - * boostDocumentRuleBhv.<span style="color: #DD4747">batchUpdate</span>(boostDocumentRuleList); - * </pre> - * @param boostDocumentRuleList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<BoostDocumentRule> boostDocumentRuleList) { - return doBatchUpdateNonstrict(boostDocumentRuleList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * boostDocumentRuleBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(boostDocumentRuleList, new SpecifyQuery<BoostDocumentRuleCB>() { - * public void specify(BoostDocumentRuleCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * boostDocumentRuleBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(boostDocumentRuleList, new SpecifyQuery<BoostDocumentRuleCB>() { - * public void specify(BoostDocumentRuleCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param boostDocumentRuleList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<BoostDocumentRule> boostDocumentRuleList, - final SpecifyQuery<BoostDocumentRuleCB> updateColumnSpec) { - return doBatchUpdateNonstrict(boostDocumentRuleList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param boostDocumentRuleList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete(final List<BoostDocumentRule> boostDocumentRuleList) { - return doBatchDelete(boostDocumentRuleList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param boostDocumentRuleList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict( - final List<BoostDocumentRule> boostDocumentRuleList) { - return doBatchDeleteNonstrict(boostDocumentRuleList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * boostDocumentRuleBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<BoostDocumentRule, BoostDocumentRuleCB>() { - * public ConditionBean setup(BoostDocumentRule entity, BoostDocumentRuleCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<BoostDocumentRule, BoostDocumentRuleCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setPK...(value);</span> - * boostDocumentRule.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//boostDocumentRule.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setVersionNo(value);</span> - * BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - * cb.query().setFoo...(value); - * boostDocumentRuleBhv.<span style="color: #DD4747">queryUpdate</span>(boostDocumentRule, cb); - * </pre> - * @param boostDocumentRule The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of BoostDocumentRule. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final BoostDocumentRule boostDocumentRule, - final BoostDocumentRuleCB cb) { - return doQueryUpdate(boostDocumentRule, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - * cb.query().setFoo...(value); - * boostDocumentRuleBhv.<span style="color: #DD4747">queryDelete</span>(boostDocumentRule, cb); - * </pre> - * @param cb The condition-bean of BoostDocumentRule. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final BoostDocumentRuleCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * boostDocumentRule.setFoo...(value); - * boostDocumentRule.setBar...(value); - * InsertOption<BoostDocumentRuleCB> option = new InsertOption<BoostDocumentRuleCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * boostDocumentRuleBhv.<span style="color: #DD4747">varyingInsert</span>(boostDocumentRule, option); - * ... = boostDocumentRule.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param boostDocumentRule The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final BoostDocumentRule boostDocumentRule, - final InsertOption<BoostDocumentRuleCB> option) { - assertInsertOptionNotNull(option); - doInsert(boostDocumentRule, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * boostDocumentRule.setPK...(value); <span style="color: #3F7E5E">// required</span> - * boostDocumentRule.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * boostDocumentRule.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<BoostDocumentRuleCB> option = new UpdateOption<BoostDocumentRuleCB>(); - * option.self(new SpecifyQuery<BoostDocumentRuleCB>() { - * public void specify(BoostDocumentRuleCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * boostDocumentRuleBhv.<span style="color: #DD4747">varyingUpdate</span>(boostDocumentRule, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param boostDocumentRule The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final BoostDocumentRule boostDocumentRule, - final UpdateOption<BoostDocumentRuleCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(boostDocumentRule, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * boostDocumentRule.setPK...(value); <span style="color: #3F7E5E">// required</span> - * boostDocumentRule.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setVersionNo(value);</span> - * UpdateOption<BoostDocumentRuleCB> option = new UpdateOption<BoostDocumentRuleCB>(); - * option.self(new SpecifyQuery<BoostDocumentRuleCB>() { - * public void specify(BoostDocumentRuleCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * boostDocumentRuleBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(boostDocumentRule, option); - * </pre> - * @param boostDocumentRule The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict( - final BoostDocumentRule boostDocumentRule, - final UpdateOption<BoostDocumentRuleCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(boostDocumentRule, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param boostDocumentRule The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final BoostDocumentRule boostDocumentRule, - final InsertOption<BoostDocumentRuleCB> insertOption, - final UpdateOption<BoostDocumentRuleCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(boostDocumentRule, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param boostDocumentRule The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict( - final BoostDocumentRule boostDocumentRule, - final InsertOption<BoostDocumentRuleCB> insertOption, - final UpdateOption<BoostDocumentRuleCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(boostDocumentRule, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param boostDocumentRule The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final BoostDocumentRule boostDocumentRule, - final DeleteOption<BoostDocumentRuleCB> option) { - assertDeleteOptionNotNull(option); - doDelete(boostDocumentRule, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param boostDocumentRule The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict( - final BoostDocumentRule boostDocumentRule, - final DeleteOption<BoostDocumentRuleCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(boostDocumentRule, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param boostDocumentRuleList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<BoostDocumentRule> boostDocumentRuleList, - final InsertOption<BoostDocumentRuleCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(boostDocumentRuleList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param boostDocumentRuleList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<BoostDocumentRule> boostDocumentRuleList, - final UpdateOption<BoostDocumentRuleCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(boostDocumentRuleList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param boostDocumentRuleList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<BoostDocumentRule> boostDocumentRuleList, - final UpdateOption<BoostDocumentRuleCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(boostDocumentRuleList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param boostDocumentRuleList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<BoostDocumentRule> boostDocumentRuleList, - final DeleteOption<BoostDocumentRuleCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(boostDocumentRuleList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param boostDocumentRuleList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<BoostDocumentRule> boostDocumentRuleList, - final DeleteOption<BoostDocumentRuleCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(boostDocumentRuleList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<BoostDocumentRule, BoostDocumentRuleCB> setupper, - final InsertOption<BoostDocumentRuleCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * BoostDocumentRule boostDocumentRule = new BoostDocumentRule(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setPK...(value);</span> - * boostDocumentRule.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//boostDocumentRule.setVersionNo(value);</span> - * BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - * cb.query().setFoo...(value); - * UpdateOption<BoostDocumentRuleCB> option = new UpdateOption<BoostDocumentRuleCB>(); - * option.self(new SpecifyQuery<BoostDocumentRuleCB>() { - * public void specify(BoostDocumentRuleCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * boostDocumentRuleBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(boostDocumentRule, cb, option); - * </pre> - * @param boostDocumentRule The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of BoostDocumentRule. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final BoostDocumentRule boostDocumentRule, - final BoostDocumentRuleCB cb, - final UpdateOption<BoostDocumentRuleCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(boostDocumentRule, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of BoostDocumentRule. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final BoostDocumentRuleCB cb, - final DeleteOption<BoostDocumentRuleCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<BoostDocumentRuleBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends BoostDocumentRule> typeOfSelectedEntity() { - return BoostDocumentRule.class; - } - - @Override - protected Class<BoostDocumentRule> typeOfHandlingEntity() { - return BoostDocumentRule.class; - } - - @Override - protected Class<BoostDocumentRuleCB> typeOfHandlingConditionBean() { - return BoostDocumentRuleCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsClickLogBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsClickLogBhv.java deleted file mode 100644 index 3f9b85ddd..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsClickLogBhv.java +++ /dev/null @@ -1,993 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfClickLog; -import jp.sf.fess.db.bsentity.dbmeta.ClickLogDbm; -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.exbhv.ClickLogBhv; -import jp.sf.fess.db.exentity.ClickLog; -import jp.sf.fess.db.exentity.SearchLog; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of CLICK_LOG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, SEARCH_ID, URL, REQUESTED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * SEARCH_LOG - * - * [referrer table] - * - * - * [foreign property] - * searchLog - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsClickLogBhv extends - AbstractBehaviorWritable<ClickLog, ClickLogCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - public static final String PATH_selectClickUrlRanking = "selectClickUrlRanking"; - - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public ClickLogDbm getDBMeta() { - return ClickLogDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public ClickLogDbm getMyDBMeta() { - return ClickLogDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public ClickLogCB newConditionBean() { - return new ClickLogCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public ClickLog newMyEntity() { - return new ClickLog(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public ClickLogCB newMyConditionBean() { - return new ClickLogCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * ClickLogCB cb = new ClickLogCB(); - * cb.query().setFoo...(value); - * int count = clickLogBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of ClickLog. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final ClickLogCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * ClickLogCB cb = new ClickLogCB(); - * cb.query().setFoo...(value); - * ClickLog clickLog = clickLogBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (clickLog != null) { <span style="color: #3F7E5E">// null check</span> - * ... = clickLog.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of ClickLog. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public ClickLog selectEntity(final ClickLogCB cb) { - return facadeSelectEntity(cb); - } - - protected ClickLog facadeSelectEntity(final ClickLogCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends ClickLog> OptionalEntity<ENTITY> doSelectOptionalEntity( - final ClickLogCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * ClickLogCB cb = new ClickLogCB(); - * cb.query().setFoo...(value); - * ClickLog clickLog = clickLogBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = clickLog.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of ClickLog. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public ClickLog selectEntityWithDeletedCheck(final ClickLogCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public ClickLog selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected ClickLog facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends ClickLog> ENTITY doSelectByPK(final Long id, - final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends ClickLog> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public ClickLog selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends ClickLog> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected ClickLogCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * ClickLogCB cb = new ClickLogCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<ClickLog> clickLogList = clickLogBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (ClickLog clickLog : clickLogList) { - * ... = clickLog.get...(); - * } - * </pre> - * @param cb The condition-bean of ClickLog. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<ClickLog> selectList(final ClickLogCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * ClickLogCB cb = new ClickLogCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<ClickLog> page = clickLogBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (ClickLog clickLog : page) { - * ... = clickLog.get...(); - * } - * </pre> - * @param cb The condition-bean of ClickLog. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<ClickLog> selectPage(final ClickLogCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * ClickLogCB cb = new ClickLogCB(); - * cb.query().setFoo...(value); - * clickLogBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<ClickLog>() { - * public void handle(ClickLog entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of ClickLog. (NotNull) - * @param entityRowHandler The handler of entity row of ClickLog. (NotNull) - */ - public void selectCursor(final ClickLogCB cb, - final EntityRowHandler<ClickLog> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * clickLogBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(ClickLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<ClickLogCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param clickLogList The entity list of clickLog. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<ClickLog> clickLogList, - final ReferrerLoaderHandler<LoaderOfClickLog> handler) { - xassLRArg(clickLogList, handler); - handler.handle(new LoaderOfClickLog().ready(clickLogList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param clickLog The entity of clickLog. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final ClickLog clickLog, - final ReferrerLoaderHandler<LoaderOfClickLog> handler) { - xassLRArg(clickLog, handler); - handler.handle(new LoaderOfClickLog().ready(xnewLRAryLs(clickLog), - _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'SearchLog'. - * @param clickLogList The list of clickLog. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<SearchLog> pulloutSearchLog(final List<ClickLog> clickLogList) { - return helpPulloutInternally(clickLogList, "searchLog"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param clickLogList The list of clickLog. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList(final List<ClickLog> clickLogList) { - return helpExtractListInternally(clickLogList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * ClickLog clickLog = new ClickLog(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * clickLog.setFoo...(value); - * clickLog.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//clickLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//clickLog.set...;</span> - * clickLogBhv.<span style="color: #DD4747">insert</span>(clickLog); - * ... = clickLog.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param clickLog The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final ClickLog clickLog) { - doInsert(clickLog, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * ClickLog clickLog = new ClickLog(); - * clickLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * clickLog.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//clickLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//clickLog.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * clickLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * clickLogBhv.<span style="color: #DD4747">update</span>(clickLog); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param clickLog The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final ClickLog clickLog) { - doUpdate(clickLog, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param clickLog The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final ClickLog clickLog) { - doInsertOrUpdate(clickLog, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * ClickLog clickLog = new ClickLog(); - * clickLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * clickLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * clickLogBhv.<span style="color: #DD4747">delete</span>(clickLog); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param clickLog The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final ClickLog clickLog) { - doDelete(clickLog, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * ClickLog clickLog = new ClickLog(); - * clickLog.setFooName("foo"); - * if (...) { - * clickLog.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * clickLogList.add(clickLog); - * } - * clickLogBhv.<span style="color: #DD4747">batchInsert</span>(clickLogList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param clickLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<ClickLog> clickLogList) { - return doBatchInsert(clickLogList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * ClickLog clickLog = new ClickLog(); - * clickLog.setFooName("foo"); - * if (...) { - * clickLog.setFooPrice(123); - * } else { - * clickLog.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//clickLog.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * clickLogList.add(clickLog); - * } - * clickLogBhv.<span style="color: #DD4747">batchUpdate</span>(clickLogList); - * </pre> - * @param clickLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<ClickLog> clickLogList) { - return doBatchUpdate(clickLogList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * clickLogBhv.<span style="color: #DD4747">batchUpdate</span>(clickLogList, new SpecifyQuery<ClickLogCB>() { - * public void specify(ClickLogCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * clickLogBhv.<span style="color: #DD4747">batchUpdate</span>(clickLogList, new SpecifyQuery<ClickLogCB>() { - * public void specify(ClickLogCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param clickLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<ClickLog> clickLogList, - final SpecifyQuery<ClickLogCB> updateColumnSpec) { - return doBatchUpdate(clickLogList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param clickLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete(final List<ClickLog> clickLogList) { - return doBatchDelete(clickLogList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * clickLogBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<ClickLog, ClickLogCB>() { - * public ConditionBean setup(ClickLog entity, ClickLogCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<ClickLog, ClickLogCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * ClickLog clickLog = new ClickLog(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//clickLog.setPK...(value);</span> - * clickLog.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//clickLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//clickLog.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//clickLog.setVersionNo(value);</span> - * ClickLogCB cb = new ClickLogCB(); - * cb.query().setFoo...(value); - * clickLogBhv.<span style="color: #DD4747">queryUpdate</span>(clickLog, cb); - * </pre> - * @param clickLog The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of ClickLog. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final ClickLog clickLog, final ClickLogCB cb) { - return doQueryUpdate(clickLog, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * ClickLogCB cb = new ClickLogCB(); - * cb.query().setFoo...(value); - * clickLogBhv.<span style="color: #DD4747">queryDelete</span>(clickLog, cb); - * </pre> - * @param cb The condition-bean of ClickLog. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final ClickLogCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * ClickLog clickLog = new ClickLog(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * clickLog.setFoo...(value); - * clickLog.setBar...(value); - * InsertOption<ClickLogCB> option = new InsertOption<ClickLogCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * clickLogBhv.<span style="color: #DD4747">varyingInsert</span>(clickLog, option); - * ... = clickLog.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param clickLog The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final ClickLog clickLog, - final InsertOption<ClickLogCB> option) { - assertInsertOptionNotNull(option); - doInsert(clickLog, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * ClickLog clickLog = new ClickLog(); - * clickLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * clickLog.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * clickLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<ClickLogCB> option = new UpdateOption<ClickLogCB>(); - * option.self(new SpecifyQuery<ClickLogCB>() { - * public void specify(ClickLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * clickLogBhv.<span style="color: #DD4747">varyingUpdate</span>(clickLog, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param clickLog The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final ClickLog clickLog, - final UpdateOption<ClickLogCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(clickLog, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param clickLog The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final ClickLog clickLog, - final InsertOption<ClickLogCB> insertOption, - final UpdateOption<ClickLogCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(clickLog, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param clickLog The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final ClickLog clickLog, - final DeleteOption<ClickLogCB> option) { - assertDeleteOptionNotNull(option); - doDelete(clickLog, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param clickLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert(final List<ClickLog> clickLogList, - final InsertOption<ClickLogCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(clickLogList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param clickLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate(final List<ClickLog> clickLogList, - final UpdateOption<ClickLogCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(clickLogList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param clickLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete(final List<ClickLog> clickLogList, - final DeleteOption<ClickLogCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(clickLogList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<ClickLog, ClickLogCB> setupper, - final InsertOption<ClickLogCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * ClickLog clickLog = new ClickLog(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//clickLog.setPK...(value);</span> - * clickLog.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//clickLog.setVersionNo(value);</span> - * ClickLogCB cb = new ClickLogCB(); - * cb.query().setFoo...(value); - * UpdateOption<ClickLogCB> option = new UpdateOption<ClickLogCB>(); - * option.self(new SpecifyQuery<ClickLogCB>() { - * public void specify(ClickLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * clickLogBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(clickLog, cb, option); - * </pre> - * @param clickLog The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of ClickLog. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final ClickLog clickLog, final ClickLogCB cb, - final UpdateOption<ClickLogCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(clickLog, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of ClickLog. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final ClickLogCB cb, - final DeleteOption<ClickLogCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<ClickLogBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends ClickLog> typeOfSelectedEntity() { - return ClickLog.class; - } - - @Override - protected Class<ClickLog> typeOfHandlingEntity() { - return ClickLog.class; - } - - @Override - protected Class<ClickLogCB> typeOfHandlingConditionBean() { - return ClickLogCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsCrawlingSessionBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsCrawlingSessionBhv.java deleted file mode 100644 index 2cf5ce0b8..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsCrawlingSessionBhv.java +++ /dev/null @@ -1,1107 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfCrawlingSession; -import jp.sf.fess.db.bsentity.dbmeta.CrawlingSessionDbm; -import jp.sf.fess.db.cbean.CrawlingSessionCB; -import jp.sf.fess.db.cbean.CrawlingSessionInfoCB; -import jp.sf.fess.db.exbhv.CrawlingSessionBhv; -import jp.sf.fess.db.exentity.CrawlingSession; -import jp.sf.fess.db.exentity.CrawlingSessionInfo; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.LoadReferrerOption; -import org.seasar.dbflute.bhv.NestedReferrerListGateway; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of CRAWLING_SESSION as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, SESSION_ID, NAME, EXPIRED_TIME, CREATED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * CRAWLING_SESSION_INFO - * - * [foreign property] - * - * - * [referrer property] - * crawlingSessionInfoList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsCrawlingSessionBhv extends - AbstractBehaviorWritable<CrawlingSession, CrawlingSessionCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public CrawlingSessionDbm getDBMeta() { - return CrawlingSessionDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public CrawlingSessionDbm getMyDBMeta() { - return CrawlingSessionDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public CrawlingSessionCB newConditionBean() { - return new CrawlingSessionCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public CrawlingSession newMyEntity() { - return new CrawlingSession(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public CrawlingSessionCB newMyConditionBean() { - return new CrawlingSessionCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * CrawlingSessionCB cb = new CrawlingSessionCB(); - * cb.query().setFoo...(value); - * int count = crawlingSessionBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of CrawlingSession. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final CrawlingSessionCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * CrawlingSessionCB cb = new CrawlingSessionCB(); - * cb.query().setFoo...(value); - * CrawlingSession crawlingSession = crawlingSessionBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (crawlingSession != null) { <span style="color: #3F7E5E">// null check</span> - * ... = crawlingSession.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of CrawlingSession. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public CrawlingSession selectEntity(final CrawlingSessionCB cb) { - return facadeSelectEntity(cb); - } - - protected CrawlingSession facadeSelectEntity(final CrawlingSessionCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends CrawlingSession> OptionalEntity<ENTITY> doSelectOptionalEntity( - final CrawlingSessionCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * CrawlingSessionCB cb = new CrawlingSessionCB(); - * cb.query().setFoo...(value); - * CrawlingSession crawlingSession = crawlingSessionBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = crawlingSession.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of CrawlingSession. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public CrawlingSession selectEntityWithDeletedCheck( - final CrawlingSessionCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public CrawlingSession selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected CrawlingSession facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends CrawlingSession> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends CrawlingSession> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public CrawlingSession selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends CrawlingSession> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected CrawlingSessionCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * CrawlingSessionCB cb = new CrawlingSessionCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<CrawlingSession> crawlingSessionList = crawlingSessionBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (CrawlingSession crawlingSession : crawlingSessionList) { - * ... = crawlingSession.get...(); - * } - * </pre> - * @param cb The condition-bean of CrawlingSession. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<CrawlingSession> selectList(final CrawlingSessionCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * CrawlingSessionCB cb = new CrawlingSessionCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<CrawlingSession> page = crawlingSessionBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (CrawlingSession crawlingSession : page) { - * ... = crawlingSession.get...(); - * } - * </pre> - * @param cb The condition-bean of CrawlingSession. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<CrawlingSession> selectPage( - final CrawlingSessionCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * CrawlingSessionCB cb = new CrawlingSessionCB(); - * cb.query().setFoo...(value); - * crawlingSessionBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<CrawlingSession>() { - * public void handle(CrawlingSession entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of CrawlingSession. (NotNull) - * @param entityRowHandler The handler of entity row of CrawlingSession. (NotNull) - */ - public void selectCursor(final CrawlingSessionCB cb, - final EntityRowHandler<CrawlingSession> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * crawlingSessionBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(CrawlingSessionCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<CrawlingSessionCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param crawlingSessionList The entity list of crawlingSession. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<CrawlingSession> crawlingSessionList, - final ReferrerLoaderHandler<LoaderOfCrawlingSession> handler) { - xassLRArg(crawlingSessionList, handler); - handler.handle(new LoaderOfCrawlingSession().ready(crawlingSessionList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param crawlingSession The entity of crawlingSession. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final CrawlingSession crawlingSession, - final ReferrerLoaderHandler<LoaderOfCrawlingSession> handler) { - xassLRArg(crawlingSession, handler); - handler.handle(new LoaderOfCrawlingSession().ready( - xnewLRAryLs(crawlingSession), _behaviorSelector)); - } - - /** - * Load referrer of crawlingSessionInfoList by the set-upper of referrer. <br /> - * CRAWLING_SESSION_INFO by CRAWLING_SESSION_ID, named 'crawlingSessionInfoList'. - * <pre> - * crawlingSessionBhv.<span style="color: #DD4747">loadCrawlingSessionInfoList</span>(crawlingSessionList, new ConditionBeanSetupper<CrawlingSessionInfoCB>() { - * public void setup(CrawlingSessionInfoCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (CrawlingSession crawlingSession : crawlingSessionList) { - * ... = crawlingSession.<span style="color: #DD4747">getCrawlingSessionInfoList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setCrawlingSessionId_InScope(pkList); - * cb.query().addOrderBy_CrawlingSessionId_Asc(); - * </pre> - * @param crawlingSessionList The entity list of crawlingSession. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<CrawlingSessionInfo> loadCrawlingSessionInfoList( - final List<CrawlingSession> crawlingSessionList, - final ConditionBeanSetupper<CrawlingSessionInfoCB> setupper) { - xassLRArg(crawlingSessionList, setupper); - return doLoadCrawlingSessionInfoList( - crawlingSessionList, - new LoadReferrerOption<CrawlingSessionInfoCB, CrawlingSessionInfo>() - .xinit(setupper)); - } - - /** - * Load referrer of crawlingSessionInfoList by the set-upper of referrer. <br /> - * CRAWLING_SESSION_INFO by CRAWLING_SESSION_ID, named 'crawlingSessionInfoList'. - * <pre> - * crawlingSessionBhv.<span style="color: #DD4747">loadCrawlingSessionInfoList</span>(crawlingSessionList, new ConditionBeanSetupper<CrawlingSessionInfoCB>() { - * public void setup(CrawlingSessionInfoCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = crawlingSession.<span style="color: #DD4747">getCrawlingSessionInfoList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setCrawlingSessionId_InScope(pkList); - * cb.query().addOrderBy_CrawlingSessionId_Asc(); - * </pre> - * @param crawlingSession The entity of crawlingSession. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<CrawlingSessionInfo> loadCrawlingSessionInfoList( - final CrawlingSession crawlingSession, - final ConditionBeanSetupper<CrawlingSessionInfoCB> setupper) { - xassLRArg(crawlingSession, setupper); - return doLoadCrawlingSessionInfoList( - xnewLRLs(crawlingSession), - new LoadReferrerOption<CrawlingSessionInfoCB, CrawlingSessionInfo>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param crawlingSession The entity of crawlingSession. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<CrawlingSessionInfo> loadCrawlingSessionInfoList( - final CrawlingSession crawlingSession, - final LoadReferrerOption<CrawlingSessionInfoCB, CrawlingSessionInfo> loadReferrerOption) { - xassLRArg(crawlingSession, loadReferrerOption); - return loadCrawlingSessionInfoList(xnewLRLs(crawlingSession), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param crawlingSessionList The entity list of crawlingSession. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<CrawlingSessionInfo> loadCrawlingSessionInfoList( - final List<CrawlingSession> crawlingSessionList, - final LoadReferrerOption<CrawlingSessionInfoCB, CrawlingSessionInfo> loadReferrerOption) { - xassLRArg(crawlingSessionList, loadReferrerOption); - if (crawlingSessionList.isEmpty()) { - return (NestedReferrerListGateway<CrawlingSessionInfo>) EMPTY_NREF_LGWAY; - } - return doLoadCrawlingSessionInfoList(crawlingSessionList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<CrawlingSessionInfo> doLoadCrawlingSessionInfoList( - final List<CrawlingSession> crawlingSessionList, - final LoadReferrerOption<CrawlingSessionInfoCB, CrawlingSessionInfo> option) { - return helpLoadReferrerInternally(crawlingSessionList, option, - "crawlingSessionInfoList"); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param crawlingSessionList The list of crawlingSession. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<CrawlingSession> crawlingSessionList) { - return helpExtractListInternally(crawlingSessionList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * CrawlingSession crawlingSession = new CrawlingSession(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * crawlingSession.setFoo...(value); - * crawlingSession.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//crawlingSession.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//crawlingSession.set...;</span> - * crawlingSessionBhv.<span style="color: #DD4747">insert</span>(crawlingSession); - * ... = crawlingSession.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param crawlingSession The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final CrawlingSession crawlingSession) { - doInsert(crawlingSession, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * CrawlingSession crawlingSession = new CrawlingSession(); - * crawlingSession.setPK...(value); <span style="color: #3F7E5E">// required</span> - * crawlingSession.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//crawlingSession.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//crawlingSession.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * crawlingSession.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * crawlingSessionBhv.<span style="color: #DD4747">update</span>(crawlingSession); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param crawlingSession The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final CrawlingSession crawlingSession) { - doUpdate(crawlingSession, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param crawlingSession The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final CrawlingSession crawlingSession) { - doInsertOrUpdate(crawlingSession, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * CrawlingSession crawlingSession = new CrawlingSession(); - * crawlingSession.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * crawlingSession.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * crawlingSessionBhv.<span style="color: #DD4747">delete</span>(crawlingSession); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param crawlingSession The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final CrawlingSession crawlingSession) { - doDelete(crawlingSession, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * CrawlingSession crawlingSession = new CrawlingSession(); - * crawlingSession.setFooName("foo"); - * if (...) { - * crawlingSession.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * crawlingSessionList.add(crawlingSession); - * } - * crawlingSessionBhv.<span style="color: #DD4747">batchInsert</span>(crawlingSessionList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param crawlingSessionList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<CrawlingSession> crawlingSessionList) { - return doBatchInsert(crawlingSessionList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * CrawlingSession crawlingSession = new CrawlingSession(); - * crawlingSession.setFooName("foo"); - * if (...) { - * crawlingSession.setFooPrice(123); - * } else { - * crawlingSession.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//crawlingSession.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * crawlingSessionList.add(crawlingSession); - * } - * crawlingSessionBhv.<span style="color: #DD4747">batchUpdate</span>(crawlingSessionList); - * </pre> - * @param crawlingSessionList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<CrawlingSession> crawlingSessionList) { - return doBatchUpdate(crawlingSessionList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * crawlingSessionBhv.<span style="color: #DD4747">batchUpdate</span>(crawlingSessionList, new SpecifyQuery<CrawlingSessionCB>() { - * public void specify(CrawlingSessionCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * crawlingSessionBhv.<span style="color: #DD4747">batchUpdate</span>(crawlingSessionList, new SpecifyQuery<CrawlingSessionCB>() { - * public void specify(CrawlingSessionCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param crawlingSessionList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<CrawlingSession> crawlingSessionList, - final SpecifyQuery<CrawlingSessionCB> updateColumnSpec) { - return doBatchUpdate(crawlingSessionList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param crawlingSessionList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete(final List<CrawlingSession> crawlingSessionList) { - return doBatchDelete(crawlingSessionList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * crawlingSessionBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<CrawlingSession, CrawlingSessionCB>() { - * public ConditionBean setup(CrawlingSession entity, CrawlingSessionCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<CrawlingSession, CrawlingSessionCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * CrawlingSession crawlingSession = new CrawlingSession(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//crawlingSession.setPK...(value);</span> - * crawlingSession.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//crawlingSession.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//crawlingSession.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//crawlingSession.setVersionNo(value);</span> - * CrawlingSessionCB cb = new CrawlingSessionCB(); - * cb.query().setFoo...(value); - * crawlingSessionBhv.<span style="color: #DD4747">queryUpdate</span>(crawlingSession, cb); - * </pre> - * @param crawlingSession The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of CrawlingSession. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final CrawlingSession crawlingSession, - final CrawlingSessionCB cb) { - return doQueryUpdate(crawlingSession, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * CrawlingSessionCB cb = new CrawlingSessionCB(); - * cb.query().setFoo...(value); - * crawlingSessionBhv.<span style="color: #DD4747">queryDelete</span>(crawlingSession, cb); - * </pre> - * @param cb The condition-bean of CrawlingSession. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final CrawlingSessionCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * CrawlingSession crawlingSession = new CrawlingSession(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * crawlingSession.setFoo...(value); - * crawlingSession.setBar...(value); - * InsertOption<CrawlingSessionCB> option = new InsertOption<CrawlingSessionCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * crawlingSessionBhv.<span style="color: #DD4747">varyingInsert</span>(crawlingSession, option); - * ... = crawlingSession.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param crawlingSession The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final CrawlingSession crawlingSession, - final InsertOption<CrawlingSessionCB> option) { - assertInsertOptionNotNull(option); - doInsert(crawlingSession, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * CrawlingSession crawlingSession = new CrawlingSession(); - * crawlingSession.setPK...(value); <span style="color: #3F7E5E">// required</span> - * crawlingSession.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * crawlingSession.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<CrawlingSessionCB> option = new UpdateOption<CrawlingSessionCB>(); - * option.self(new SpecifyQuery<CrawlingSessionCB>() { - * public void specify(CrawlingSessionCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * crawlingSessionBhv.<span style="color: #DD4747">varyingUpdate</span>(crawlingSession, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param crawlingSession The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final CrawlingSession crawlingSession, - final UpdateOption<CrawlingSessionCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(crawlingSession, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param crawlingSession The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final CrawlingSession crawlingSession, - final InsertOption<CrawlingSessionCB> insertOption, - final UpdateOption<CrawlingSessionCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(crawlingSession, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param crawlingSession The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final CrawlingSession crawlingSession, - final DeleteOption<CrawlingSessionCB> option) { - assertDeleteOptionNotNull(option); - doDelete(crawlingSession, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param crawlingSessionList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<CrawlingSession> crawlingSessionList, - final InsertOption<CrawlingSessionCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(crawlingSessionList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param crawlingSessionList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<CrawlingSession> crawlingSessionList, - final UpdateOption<CrawlingSessionCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(crawlingSessionList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param crawlingSessionList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<CrawlingSession> crawlingSessionList, - final DeleteOption<CrawlingSessionCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(crawlingSessionList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<CrawlingSession, CrawlingSessionCB> setupper, - final InsertOption<CrawlingSessionCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * CrawlingSession crawlingSession = new CrawlingSession(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//crawlingSession.setPK...(value);</span> - * crawlingSession.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//crawlingSession.setVersionNo(value);</span> - * CrawlingSessionCB cb = new CrawlingSessionCB(); - * cb.query().setFoo...(value); - * UpdateOption<CrawlingSessionCB> option = new UpdateOption<CrawlingSessionCB>(); - * option.self(new SpecifyQuery<CrawlingSessionCB>() { - * public void specify(CrawlingSessionCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * crawlingSessionBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(crawlingSession, cb, option); - * </pre> - * @param crawlingSession The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of CrawlingSession. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final CrawlingSession crawlingSession, - final CrawlingSessionCB cb, - final UpdateOption<CrawlingSessionCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(crawlingSession, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of CrawlingSession. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final CrawlingSessionCB cb, - final DeleteOption<CrawlingSessionCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<CrawlingSessionBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends CrawlingSession> typeOfSelectedEntity() { - return CrawlingSession.class; - } - - @Override - protected Class<CrawlingSession> typeOfHandlingEntity() { - return CrawlingSession.class; - } - - @Override - protected Class<CrawlingSessionCB> typeOfHandlingConditionBean() { - return CrawlingSessionCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsCrawlingSessionInfoBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsCrawlingSessionInfoBhv.java deleted file mode 100644 index e173a4017..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsCrawlingSessionInfoBhv.java +++ /dev/null @@ -1,1008 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfCrawlingSessionInfo; -import jp.sf.fess.db.bsentity.dbmeta.CrawlingSessionInfoDbm; -import jp.sf.fess.db.cbean.CrawlingSessionInfoCB; -import jp.sf.fess.db.exbhv.CrawlingSessionInfoBhv; -import jp.sf.fess.db.exentity.CrawlingSession; -import jp.sf.fess.db.exentity.CrawlingSessionInfo; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of CRAWLING_SESSION_INFO as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, CRAWLING_SESSION_ID, KEY, VALUE, CREATED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * CRAWLING_SESSION - * - * [referrer table] - * - * - * [foreign property] - * crawlingSession - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsCrawlingSessionInfoBhv extends - AbstractBehaviorWritable<CrawlingSessionInfo, CrawlingSessionInfoCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public CrawlingSessionInfoDbm getDBMeta() { - return CrawlingSessionInfoDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public CrawlingSessionInfoDbm getMyDBMeta() { - return CrawlingSessionInfoDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public CrawlingSessionInfoCB newConditionBean() { - return new CrawlingSessionInfoCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public CrawlingSessionInfo newMyEntity() { - return new CrawlingSessionInfo(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public CrawlingSessionInfoCB newMyConditionBean() { - return new CrawlingSessionInfoCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - * cb.query().setFoo...(value); - * int count = crawlingSessionInfoBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of CrawlingSessionInfo. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final CrawlingSessionInfoCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - * cb.query().setFoo...(value); - * CrawlingSessionInfo crawlingSessionInfo = crawlingSessionInfoBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (crawlingSessionInfo != null) { <span style="color: #3F7E5E">// null check</span> - * ... = crawlingSessionInfo.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of CrawlingSessionInfo. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public CrawlingSessionInfo selectEntity(final CrawlingSessionInfoCB cb) { - return facadeSelectEntity(cb); - } - - protected CrawlingSessionInfo facadeSelectEntity( - final CrawlingSessionInfoCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends CrawlingSessionInfo> OptionalEntity<ENTITY> doSelectOptionalEntity( - final CrawlingSessionInfoCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - * cb.query().setFoo...(value); - * CrawlingSessionInfo crawlingSessionInfo = crawlingSessionInfoBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = crawlingSessionInfo.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of CrawlingSessionInfo. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public CrawlingSessionInfo selectEntityWithDeletedCheck( - final CrawlingSessionInfoCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public CrawlingSessionInfo selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected CrawlingSessionInfo facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends CrawlingSessionInfo> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends CrawlingSessionInfo> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public CrawlingSessionInfo selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends CrawlingSessionInfo> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected CrawlingSessionInfoCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<CrawlingSessionInfo> crawlingSessionInfoList = crawlingSessionInfoBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (CrawlingSessionInfo crawlingSessionInfo : crawlingSessionInfoList) { - * ... = crawlingSessionInfo.get...(); - * } - * </pre> - * @param cb The condition-bean of CrawlingSessionInfo. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<CrawlingSessionInfo> selectList( - final CrawlingSessionInfoCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<CrawlingSessionInfo> page = crawlingSessionInfoBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (CrawlingSessionInfo crawlingSessionInfo : page) { - * ... = crawlingSessionInfo.get...(); - * } - * </pre> - * @param cb The condition-bean of CrawlingSessionInfo. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<CrawlingSessionInfo> selectPage( - final CrawlingSessionInfoCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - * cb.query().setFoo...(value); - * crawlingSessionInfoBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<CrawlingSessionInfo>() { - * public void handle(CrawlingSessionInfo entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of CrawlingSessionInfo. (NotNull) - * @param entityRowHandler The handler of entity row of CrawlingSessionInfo. (NotNull) - */ - public void selectCursor(final CrawlingSessionInfoCB cb, - final EntityRowHandler<CrawlingSessionInfo> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * crawlingSessionInfoBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(CrawlingSessionInfoCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<CrawlingSessionInfoCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param crawlingSessionInfoList The entity list of crawlingSessionInfo. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<CrawlingSessionInfo> crawlingSessionInfoList, - final ReferrerLoaderHandler<LoaderOfCrawlingSessionInfo> handler) { - xassLRArg(crawlingSessionInfoList, handler); - handler.handle(new LoaderOfCrawlingSessionInfo().ready( - crawlingSessionInfoList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param crawlingSessionInfo The entity of crawlingSessionInfo. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final CrawlingSessionInfo crawlingSessionInfo, - final ReferrerLoaderHandler<LoaderOfCrawlingSessionInfo> handler) { - xassLRArg(crawlingSessionInfo, handler); - handler.handle(new LoaderOfCrawlingSessionInfo().ready( - xnewLRAryLs(crawlingSessionInfo), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'CrawlingSession'. - * @param crawlingSessionInfoList The list of crawlingSessionInfo. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<CrawlingSession> pulloutCrawlingSession( - final List<CrawlingSessionInfo> crawlingSessionInfoList) { - return helpPulloutInternally(crawlingSessionInfoList, "crawlingSession"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param crawlingSessionInfoList The list of crawlingSessionInfo. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<CrawlingSessionInfo> crawlingSessionInfoList) { - return helpExtractListInternally(crawlingSessionInfoList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * CrawlingSessionInfo crawlingSessionInfo = new CrawlingSessionInfo(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * crawlingSessionInfo.setFoo...(value); - * crawlingSessionInfo.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//crawlingSessionInfo.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//crawlingSessionInfo.set...;</span> - * crawlingSessionInfoBhv.<span style="color: #DD4747">insert</span>(crawlingSessionInfo); - * ... = crawlingSessionInfo.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param crawlingSessionInfo The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final CrawlingSessionInfo crawlingSessionInfo) { - doInsert(crawlingSessionInfo, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * CrawlingSessionInfo crawlingSessionInfo = new CrawlingSessionInfo(); - * crawlingSessionInfo.setPK...(value); <span style="color: #3F7E5E">// required</span> - * crawlingSessionInfo.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//crawlingSessionInfo.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//crawlingSessionInfo.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * crawlingSessionInfo.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * crawlingSessionInfoBhv.<span style="color: #DD4747">update</span>(crawlingSessionInfo); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param crawlingSessionInfo The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final CrawlingSessionInfo crawlingSessionInfo) { - doUpdate(crawlingSessionInfo, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param crawlingSessionInfo The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final CrawlingSessionInfo crawlingSessionInfo) { - doInsertOrUpdate(crawlingSessionInfo, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * CrawlingSessionInfo crawlingSessionInfo = new CrawlingSessionInfo(); - * crawlingSessionInfo.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * crawlingSessionInfo.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * crawlingSessionInfoBhv.<span style="color: #DD4747">delete</span>(crawlingSessionInfo); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param crawlingSessionInfo The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final CrawlingSessionInfo crawlingSessionInfo) { - doDelete(crawlingSessionInfo, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * CrawlingSessionInfo crawlingSessionInfo = new CrawlingSessionInfo(); - * crawlingSessionInfo.setFooName("foo"); - * if (...) { - * crawlingSessionInfo.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * crawlingSessionInfoList.add(crawlingSessionInfo); - * } - * crawlingSessionInfoBhv.<span style="color: #DD4747">batchInsert</span>(crawlingSessionInfoList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param crawlingSessionInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert( - final List<CrawlingSessionInfo> crawlingSessionInfoList) { - return doBatchInsert(crawlingSessionInfoList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * CrawlingSessionInfo crawlingSessionInfo = new CrawlingSessionInfo(); - * crawlingSessionInfo.setFooName("foo"); - * if (...) { - * crawlingSessionInfo.setFooPrice(123); - * } else { - * crawlingSessionInfo.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//crawlingSessionInfo.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * crawlingSessionInfoList.add(crawlingSessionInfo); - * } - * crawlingSessionInfoBhv.<span style="color: #DD4747">batchUpdate</span>(crawlingSessionInfoList); - * </pre> - * @param crawlingSessionInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<CrawlingSessionInfo> crawlingSessionInfoList) { - return doBatchUpdate(crawlingSessionInfoList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * crawlingSessionInfoBhv.<span style="color: #DD4747">batchUpdate</span>(crawlingSessionInfoList, new SpecifyQuery<CrawlingSessionInfoCB>() { - * public void specify(CrawlingSessionInfoCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * crawlingSessionInfoBhv.<span style="color: #DD4747">batchUpdate</span>(crawlingSessionInfoList, new SpecifyQuery<CrawlingSessionInfoCB>() { - * public void specify(CrawlingSessionInfoCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param crawlingSessionInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<CrawlingSessionInfo> crawlingSessionInfoList, - final SpecifyQuery<CrawlingSessionInfoCB> updateColumnSpec) { - return doBatchUpdate(crawlingSessionInfoList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param crawlingSessionInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete( - final List<CrawlingSessionInfo> crawlingSessionInfoList) { - return doBatchDelete(crawlingSessionInfoList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * crawlingSessionInfoBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<CrawlingSessionInfo, CrawlingSessionInfoCB>() { - * public ConditionBean setup(CrawlingSessionInfo entity, CrawlingSessionInfoCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<CrawlingSessionInfo, CrawlingSessionInfoCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * CrawlingSessionInfo crawlingSessionInfo = new CrawlingSessionInfo(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//crawlingSessionInfo.setPK...(value);</span> - * crawlingSessionInfo.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//crawlingSessionInfo.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//crawlingSessionInfo.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//crawlingSessionInfo.setVersionNo(value);</span> - * CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - * cb.query().setFoo...(value); - * crawlingSessionInfoBhv.<span style="color: #DD4747">queryUpdate</span>(crawlingSessionInfo, cb); - * </pre> - * @param crawlingSessionInfo The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of CrawlingSessionInfo. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final CrawlingSessionInfo crawlingSessionInfo, - final CrawlingSessionInfoCB cb) { - return doQueryUpdate(crawlingSessionInfo, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - * cb.query().setFoo...(value); - * crawlingSessionInfoBhv.<span style="color: #DD4747">queryDelete</span>(crawlingSessionInfo, cb); - * </pre> - * @param cb The condition-bean of CrawlingSessionInfo. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final CrawlingSessionInfoCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * CrawlingSessionInfo crawlingSessionInfo = new CrawlingSessionInfo(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * crawlingSessionInfo.setFoo...(value); - * crawlingSessionInfo.setBar...(value); - * InsertOption<CrawlingSessionInfoCB> option = new InsertOption<CrawlingSessionInfoCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * crawlingSessionInfoBhv.<span style="color: #DD4747">varyingInsert</span>(crawlingSessionInfo, option); - * ... = crawlingSessionInfo.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param crawlingSessionInfo The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final CrawlingSessionInfo crawlingSessionInfo, - final InsertOption<CrawlingSessionInfoCB> option) { - assertInsertOptionNotNull(option); - doInsert(crawlingSessionInfo, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * CrawlingSessionInfo crawlingSessionInfo = new CrawlingSessionInfo(); - * crawlingSessionInfo.setPK...(value); <span style="color: #3F7E5E">// required</span> - * crawlingSessionInfo.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * crawlingSessionInfo.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<CrawlingSessionInfoCB> option = new UpdateOption<CrawlingSessionInfoCB>(); - * option.self(new SpecifyQuery<CrawlingSessionInfoCB>() { - * public void specify(CrawlingSessionInfoCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * crawlingSessionInfoBhv.<span style="color: #DD4747">varyingUpdate</span>(crawlingSessionInfo, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param crawlingSessionInfo The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final CrawlingSessionInfo crawlingSessionInfo, - final UpdateOption<CrawlingSessionInfoCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(crawlingSessionInfo, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param crawlingSessionInfo The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final CrawlingSessionInfo crawlingSessionInfo, - final InsertOption<CrawlingSessionInfoCB> insertOption, - final UpdateOption<CrawlingSessionInfoCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(crawlingSessionInfo, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param crawlingSessionInfo The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final CrawlingSessionInfo crawlingSessionInfo, - final DeleteOption<CrawlingSessionInfoCB> option) { - assertDeleteOptionNotNull(option); - doDelete(crawlingSessionInfo, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param crawlingSessionInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<CrawlingSessionInfo> crawlingSessionInfoList, - final InsertOption<CrawlingSessionInfoCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(crawlingSessionInfoList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param crawlingSessionInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<CrawlingSessionInfo> crawlingSessionInfoList, - final UpdateOption<CrawlingSessionInfoCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(crawlingSessionInfoList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param crawlingSessionInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<CrawlingSessionInfo> crawlingSessionInfoList, - final DeleteOption<CrawlingSessionInfoCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(crawlingSessionInfoList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<CrawlingSessionInfo, CrawlingSessionInfoCB> setupper, - final InsertOption<CrawlingSessionInfoCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * CrawlingSessionInfo crawlingSessionInfo = new CrawlingSessionInfo(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//crawlingSessionInfo.setPK...(value);</span> - * crawlingSessionInfo.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//crawlingSessionInfo.setVersionNo(value);</span> - * CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - * cb.query().setFoo...(value); - * UpdateOption<CrawlingSessionInfoCB> option = new UpdateOption<CrawlingSessionInfoCB>(); - * option.self(new SpecifyQuery<CrawlingSessionInfoCB>() { - * public void specify(CrawlingSessionInfoCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * crawlingSessionInfoBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(crawlingSessionInfo, cb, option); - * </pre> - * @param crawlingSessionInfo The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of CrawlingSessionInfo. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate( - final CrawlingSessionInfo crawlingSessionInfo, - final CrawlingSessionInfoCB cb, - final UpdateOption<CrawlingSessionInfoCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(crawlingSessionInfo, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of CrawlingSessionInfo. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final CrawlingSessionInfoCB cb, - final DeleteOption<CrawlingSessionInfoCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<CrawlingSessionInfoBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends CrawlingSessionInfo> typeOfSelectedEntity() { - return CrawlingSessionInfo.class; - } - - @Override - protected Class<CrawlingSessionInfo> typeOfHandlingEntity() { - return CrawlingSessionInfo.class; - } - - @Override - protected Class<CrawlingSessionInfoCB> typeOfHandlingConditionBean() { - return CrawlingSessionInfoCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsDataConfigToLabelTypeMappingBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsDataConfigToLabelTypeMappingBhv.java deleted file mode 100644 index 33fee2a35..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsDataConfigToLabelTypeMappingBhv.java +++ /dev/null @@ -1,1037 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfDataConfigToLabelTypeMapping; -import jp.sf.fess.db.bsentity.dbmeta.DataConfigToLabelTypeMappingDbm; -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.exbhv.DataConfigToLabelTypeMappingBhv; -import jp.sf.fess.db.exentity.DataConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.db.exentity.LabelType; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of DATA_CONFIG_TO_LABEL_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, DATA_CONFIG_ID, LABEL_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * DATA_CRAWLING_CONFIG, LABEL_TYPE - * - * [referrer table] - * - * - * [foreign property] - * dataCrawlingConfig, labelType - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsDataConfigToLabelTypeMappingBhv - extends - AbstractBehaviorWritable<DataConfigToLabelTypeMapping, DataConfigToLabelTypeMappingCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public DataConfigToLabelTypeMappingDbm getDBMeta() { - return DataConfigToLabelTypeMappingDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public DataConfigToLabelTypeMappingDbm getMyDBMeta() { - return DataConfigToLabelTypeMappingDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public DataConfigToLabelTypeMappingCB newConditionBean() { - return new DataConfigToLabelTypeMappingCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public DataConfigToLabelTypeMapping newMyEntity() { - return new DataConfigToLabelTypeMapping(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public DataConfigToLabelTypeMappingCB newMyConditionBean() { - return new DataConfigToLabelTypeMappingCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * int count = dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of DataConfigToLabelTypeMapping. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final DataConfigToLabelTypeMappingCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (dataConfigToLabelTypeMapping != null) { <span style="color: #3F7E5E">// null check</span> - * ... = dataConfigToLabelTypeMapping.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of DataConfigToLabelTypeMapping. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public DataConfigToLabelTypeMapping selectEntity( - final DataConfigToLabelTypeMappingCB cb) { - return facadeSelectEntity(cb); - } - - protected DataConfigToLabelTypeMapping facadeSelectEntity( - final DataConfigToLabelTypeMappingCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends DataConfigToLabelTypeMapping> OptionalEntity<ENTITY> doSelectOptionalEntity( - final DataConfigToLabelTypeMappingCB cb, - final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = dataConfigToLabelTypeMapping.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of DataConfigToLabelTypeMapping. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public DataConfigToLabelTypeMapping selectEntityWithDeletedCheck( - final DataConfigToLabelTypeMappingCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public DataConfigToLabelTypeMapping selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected DataConfigToLabelTypeMapping facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends DataConfigToLabelTypeMapping> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends DataConfigToLabelTypeMapping> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public DataConfigToLabelTypeMapping selectByPKValueWithDeletedCheck( - final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends DataConfigToLabelTypeMapping> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected DataConfigToLabelTypeMappingCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList = dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping : dataConfigToLabelTypeMappingList) { - * ... = dataConfigToLabelTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of DataConfigToLabelTypeMapping. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<DataConfigToLabelTypeMapping> selectList( - final DataConfigToLabelTypeMappingCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<DataConfigToLabelTypeMapping> page = dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping : page) { - * ... = dataConfigToLabelTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of DataConfigToLabelTypeMapping. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<DataConfigToLabelTypeMapping> selectPage( - final DataConfigToLabelTypeMappingCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<DataConfigToLabelTypeMapping>() { - * public void handle(DataConfigToLabelTypeMapping entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of DataConfigToLabelTypeMapping. (NotNull) - * @param entityRowHandler The handler of entity row of DataConfigToLabelTypeMapping. (NotNull) - */ - public void selectCursor( - final DataConfigToLabelTypeMappingCB cb, - final EntityRowHandler<DataConfigToLabelTypeMapping> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(DataConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<DataConfigToLabelTypeMappingCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param dataConfigToLabelTypeMappingList The entity list of dataConfigToLabelTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList, - final ReferrerLoaderHandler<LoaderOfDataConfigToLabelTypeMapping> handler) { - xassLRArg(dataConfigToLabelTypeMappingList, handler); - handler.handle(new LoaderOfDataConfigToLabelTypeMapping().ready( - dataConfigToLabelTypeMappingList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param dataConfigToLabelTypeMapping The entity of dataConfigToLabelTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping, - final ReferrerLoaderHandler<LoaderOfDataConfigToLabelTypeMapping> handler) { - xassLRArg(dataConfigToLabelTypeMapping, handler); - handler.handle(new LoaderOfDataConfigToLabelTypeMapping().ready( - xnewLRAryLs(dataConfigToLabelTypeMapping), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'DataCrawlingConfig'. - * @param dataConfigToLabelTypeMappingList The list of dataConfigToLabelTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<DataCrawlingConfig> pulloutDataCrawlingConfig( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList) { - return helpPulloutInternally(dataConfigToLabelTypeMappingList, - "dataCrawlingConfig"); - } - - /** - * Pull out the list of foreign table 'LabelType'. - * @param dataConfigToLabelTypeMappingList The list of dataConfigToLabelTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<LabelType> pulloutLabelType( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList) { - return helpPulloutInternally(dataConfigToLabelTypeMappingList, - "labelType"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param dataConfigToLabelTypeMappingList The list of dataConfigToLabelTypeMapping. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList) { - return helpExtractListInternally(dataConfigToLabelTypeMappingList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = new DataConfigToLabelTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * dataConfigToLabelTypeMapping.setFoo...(value); - * dataConfigToLabelTypeMapping.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//dataConfigToLabelTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//dataConfigToLabelTypeMapping.set...;</span> - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">insert</span>(dataConfigToLabelTypeMapping); - * ... = dataConfigToLabelTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param dataConfigToLabelTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert( - final DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping) { - doInsert(dataConfigToLabelTypeMapping, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = new DataConfigToLabelTypeMapping(); - * dataConfigToLabelTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * dataConfigToLabelTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//dataConfigToLabelTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//dataConfigToLabelTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * dataConfigToLabelTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">update</span>(dataConfigToLabelTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param dataConfigToLabelTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update( - final DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping) { - doUpdate(dataConfigToLabelTypeMapping, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param dataConfigToLabelTypeMapping The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate( - final DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping) { - doInsertOrUpdate(dataConfigToLabelTypeMapping, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = new DataConfigToLabelTypeMapping(); - * dataConfigToLabelTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * dataConfigToLabelTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">delete</span>(dataConfigToLabelTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param dataConfigToLabelTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete( - final DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping) { - doDelete(dataConfigToLabelTypeMapping, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = new DataConfigToLabelTypeMapping(); - * dataConfigToLabelTypeMapping.setFooName("foo"); - * if (...) { - * dataConfigToLabelTypeMapping.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * dataConfigToLabelTypeMappingList.add(dataConfigToLabelTypeMapping); - * } - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">batchInsert</span>(dataConfigToLabelTypeMappingList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param dataConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList) { - return doBatchInsert(dataConfigToLabelTypeMappingList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = new DataConfigToLabelTypeMapping(); - * dataConfigToLabelTypeMapping.setFooName("foo"); - * if (...) { - * dataConfigToLabelTypeMapping.setFooPrice(123); - * } else { - * dataConfigToLabelTypeMapping.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//dataConfigToLabelTypeMapping.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * dataConfigToLabelTypeMappingList.add(dataConfigToLabelTypeMapping); - * } - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(dataConfigToLabelTypeMappingList); - * </pre> - * @param dataConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList) { - return doBatchUpdate(dataConfigToLabelTypeMappingList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(dataConfigToLabelTypeMappingList, new SpecifyQuery<DataConfigToLabelTypeMappingCB>() { - * public void specify(DataConfigToLabelTypeMappingCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(dataConfigToLabelTypeMappingList, new SpecifyQuery<DataConfigToLabelTypeMappingCB>() { - * public void specify(DataConfigToLabelTypeMappingCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param dataConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList, - final SpecifyQuery<DataConfigToLabelTypeMappingCB> updateColumnSpec) { - return doBatchUpdate(dataConfigToLabelTypeMappingList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param dataConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList) { - return doBatchDelete(dataConfigToLabelTypeMappingList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<DataConfigToLabelTypeMapping, DataConfigToLabelTypeMappingCB>() { - * public ConditionBean setup(DataConfigToLabelTypeMapping entity, DataConfigToLabelTypeMappingCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<DataConfigToLabelTypeMapping, DataConfigToLabelTypeMappingCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = new DataConfigToLabelTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//dataConfigToLabelTypeMapping.setPK...(value);</span> - * dataConfigToLabelTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//dataConfigToLabelTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//dataConfigToLabelTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//dataConfigToLabelTypeMapping.setVersionNo(value);</span> - * DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">queryUpdate</span>(dataConfigToLabelTypeMapping, cb); - * </pre> - * @param dataConfigToLabelTypeMapping The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of DataConfigToLabelTypeMapping. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate( - final DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping, - final DataConfigToLabelTypeMappingCB cb) { - return doQueryUpdate(dataConfigToLabelTypeMapping, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">queryDelete</span>(dataConfigToLabelTypeMapping, cb); - * </pre> - * @param cb The condition-bean of DataConfigToLabelTypeMapping. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final DataConfigToLabelTypeMappingCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = new DataConfigToLabelTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * dataConfigToLabelTypeMapping.setFoo...(value); - * dataConfigToLabelTypeMapping.setBar...(value); - * InsertOption<DataConfigToLabelTypeMappingCB> option = new InsertOption<DataConfigToLabelTypeMappingCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">varyingInsert</span>(dataConfigToLabelTypeMapping, option); - * ... = dataConfigToLabelTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param dataConfigToLabelTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert( - final DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping, - final InsertOption<DataConfigToLabelTypeMappingCB> option) { - assertInsertOptionNotNull(option); - doInsert(dataConfigToLabelTypeMapping, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = new DataConfigToLabelTypeMapping(); - * dataConfigToLabelTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * dataConfigToLabelTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * dataConfigToLabelTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<DataConfigToLabelTypeMappingCB> option = new UpdateOption<DataConfigToLabelTypeMappingCB>(); - * option.self(new SpecifyQuery<DataConfigToLabelTypeMappingCB>() { - * public void specify(DataConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">varyingUpdate</span>(dataConfigToLabelTypeMapping, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param dataConfigToLabelTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate( - final DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping, - final UpdateOption<DataConfigToLabelTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(dataConfigToLabelTypeMapping, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param dataConfigToLabelTypeMapping The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping, - final InsertOption<DataConfigToLabelTypeMappingCB> insertOption, - final UpdateOption<DataConfigToLabelTypeMappingCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(dataConfigToLabelTypeMapping, insertOption, - updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param dataConfigToLabelTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete( - final DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping, - final DeleteOption<DataConfigToLabelTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - doDelete(dataConfigToLabelTypeMapping, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param dataConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList, - final InsertOption<DataConfigToLabelTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(dataConfigToLabelTypeMappingList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param dataConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList, - final UpdateOption<DataConfigToLabelTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(dataConfigToLabelTypeMappingList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param dataConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList, - final DeleteOption<DataConfigToLabelTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(dataConfigToLabelTypeMappingList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<DataConfigToLabelTypeMapping, DataConfigToLabelTypeMappingCB> setupper, - final InsertOption<DataConfigToLabelTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = new DataConfigToLabelTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//dataConfigToLabelTypeMapping.setPK...(value);</span> - * dataConfigToLabelTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//dataConfigToLabelTypeMapping.setVersionNo(value);</span> - * DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * UpdateOption<DataConfigToLabelTypeMappingCB> option = new UpdateOption<DataConfigToLabelTypeMappingCB>(); - * option.self(new SpecifyQuery<DataConfigToLabelTypeMappingCB>() { - * public void specify(DataConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * dataConfigToLabelTypeMappingBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(dataConfigToLabelTypeMapping, cb, option); - * </pre> - * @param dataConfigToLabelTypeMapping The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of DataConfigToLabelTypeMapping. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate( - final DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping, - final DataConfigToLabelTypeMappingCB cb, - final UpdateOption<DataConfigToLabelTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(dataConfigToLabelTypeMapping, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of DataConfigToLabelTypeMapping. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final DataConfigToLabelTypeMappingCB cb, - final DeleteOption<DataConfigToLabelTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<DataConfigToLabelTypeMappingBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends DataConfigToLabelTypeMapping> typeOfSelectedEntity() { - return DataConfigToLabelTypeMapping.class; - } - - @Override - protected Class<DataConfigToLabelTypeMapping> typeOfHandlingEntity() { - return DataConfigToLabelTypeMapping.class; - } - - @Override - protected Class<DataConfigToLabelTypeMappingCB> typeOfHandlingConditionBean() { - return DataConfigToLabelTypeMappingCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsDataConfigToRoleTypeMappingBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsDataConfigToRoleTypeMappingBhv.java deleted file mode 100644 index 743b0bb31..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsDataConfigToRoleTypeMappingBhv.java +++ /dev/null @@ -1,1036 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfDataConfigToRoleTypeMapping; -import jp.sf.fess.db.bsentity.dbmeta.DataConfigToRoleTypeMappingDbm; -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.exbhv.DataConfigToRoleTypeMappingBhv; -import jp.sf.fess.db.exentity.DataConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.db.exentity.RoleType; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of DATA_CONFIG_TO_ROLE_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, DATA_CONFIG_ID, ROLE_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * DATA_CRAWLING_CONFIG, ROLE_TYPE - * - * [referrer table] - * - * - * [foreign property] - * dataCrawlingConfig, roleType - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsDataConfigToRoleTypeMappingBhv - extends - AbstractBehaviorWritable<DataConfigToRoleTypeMapping, DataConfigToRoleTypeMappingCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public DataConfigToRoleTypeMappingDbm getDBMeta() { - return DataConfigToRoleTypeMappingDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public DataConfigToRoleTypeMappingDbm getMyDBMeta() { - return DataConfigToRoleTypeMappingDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public DataConfigToRoleTypeMappingCB newConditionBean() { - return new DataConfigToRoleTypeMappingCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public DataConfigToRoleTypeMapping newMyEntity() { - return new DataConfigToRoleTypeMapping(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public DataConfigToRoleTypeMappingCB newMyConditionBean() { - return new DataConfigToRoleTypeMappingCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * int count = dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of DataConfigToRoleTypeMapping. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final DataConfigToRoleTypeMappingCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (dataConfigToRoleTypeMapping != null) { <span style="color: #3F7E5E">// null check</span> - * ... = dataConfigToRoleTypeMapping.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of DataConfigToRoleTypeMapping. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public DataConfigToRoleTypeMapping selectEntity( - final DataConfigToRoleTypeMappingCB cb) { - return facadeSelectEntity(cb); - } - - protected DataConfigToRoleTypeMapping facadeSelectEntity( - final DataConfigToRoleTypeMappingCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends DataConfigToRoleTypeMapping> OptionalEntity<ENTITY> doSelectOptionalEntity( - final DataConfigToRoleTypeMappingCB cb, - final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = dataConfigToRoleTypeMapping.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of DataConfigToRoleTypeMapping. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public DataConfigToRoleTypeMapping selectEntityWithDeletedCheck( - final DataConfigToRoleTypeMappingCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public DataConfigToRoleTypeMapping selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected DataConfigToRoleTypeMapping facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends DataConfigToRoleTypeMapping> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends DataConfigToRoleTypeMapping> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public DataConfigToRoleTypeMapping selectByPKValueWithDeletedCheck( - final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends DataConfigToRoleTypeMapping> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected DataConfigToRoleTypeMappingCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList = dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping : dataConfigToRoleTypeMappingList) { - * ... = dataConfigToRoleTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of DataConfigToRoleTypeMapping. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<DataConfigToRoleTypeMapping> selectList( - final DataConfigToRoleTypeMappingCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<DataConfigToRoleTypeMapping> page = dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping : page) { - * ... = dataConfigToRoleTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of DataConfigToRoleTypeMapping. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<DataConfigToRoleTypeMapping> selectPage( - final DataConfigToRoleTypeMappingCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<DataConfigToRoleTypeMapping>() { - * public void handle(DataConfigToRoleTypeMapping entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of DataConfigToRoleTypeMapping. (NotNull) - * @param entityRowHandler The handler of entity row of DataConfigToRoleTypeMapping. (NotNull) - */ - public void selectCursor(final DataConfigToRoleTypeMappingCB cb, - final EntityRowHandler<DataConfigToRoleTypeMapping> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(DataConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<DataConfigToRoleTypeMappingCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param dataConfigToRoleTypeMappingList The entity list of dataConfigToRoleTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList, - final ReferrerLoaderHandler<LoaderOfDataConfigToRoleTypeMapping> handler) { - xassLRArg(dataConfigToRoleTypeMappingList, handler); - handler.handle(new LoaderOfDataConfigToRoleTypeMapping().ready( - dataConfigToRoleTypeMappingList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param dataConfigToRoleTypeMapping The entity of dataConfigToRoleTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping, - final ReferrerLoaderHandler<LoaderOfDataConfigToRoleTypeMapping> handler) { - xassLRArg(dataConfigToRoleTypeMapping, handler); - handler.handle(new LoaderOfDataConfigToRoleTypeMapping().ready( - xnewLRAryLs(dataConfigToRoleTypeMapping), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'DataCrawlingConfig'. - * @param dataConfigToRoleTypeMappingList The list of dataConfigToRoleTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<DataCrawlingConfig> pulloutDataCrawlingConfig( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList) { - return helpPulloutInternally(dataConfigToRoleTypeMappingList, - "dataCrawlingConfig"); - } - - /** - * Pull out the list of foreign table 'RoleType'. - * @param dataConfigToRoleTypeMappingList The list of dataConfigToRoleTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<RoleType> pulloutRoleType( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList) { - return helpPulloutInternally(dataConfigToRoleTypeMappingList, - "roleType"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param dataConfigToRoleTypeMappingList The list of dataConfigToRoleTypeMapping. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList) { - return helpExtractListInternally(dataConfigToRoleTypeMappingList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = new DataConfigToRoleTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * dataConfigToRoleTypeMapping.setFoo...(value); - * dataConfigToRoleTypeMapping.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//dataConfigToRoleTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//dataConfigToRoleTypeMapping.set...;</span> - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">insert</span>(dataConfigToRoleTypeMapping); - * ... = dataConfigToRoleTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param dataConfigToRoleTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert( - final DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping) { - doInsert(dataConfigToRoleTypeMapping, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = new DataConfigToRoleTypeMapping(); - * dataConfigToRoleTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * dataConfigToRoleTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//dataConfigToRoleTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//dataConfigToRoleTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * dataConfigToRoleTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">update</span>(dataConfigToRoleTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param dataConfigToRoleTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update( - final DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping) { - doUpdate(dataConfigToRoleTypeMapping, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param dataConfigToRoleTypeMapping The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate( - final DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping) { - doInsertOrUpdate(dataConfigToRoleTypeMapping, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = new DataConfigToRoleTypeMapping(); - * dataConfigToRoleTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * dataConfigToRoleTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">delete</span>(dataConfigToRoleTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param dataConfigToRoleTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete( - final DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping) { - doDelete(dataConfigToRoleTypeMapping, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = new DataConfigToRoleTypeMapping(); - * dataConfigToRoleTypeMapping.setFooName("foo"); - * if (...) { - * dataConfigToRoleTypeMapping.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * dataConfigToRoleTypeMappingList.add(dataConfigToRoleTypeMapping); - * } - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">batchInsert</span>(dataConfigToRoleTypeMappingList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param dataConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList) { - return doBatchInsert(dataConfigToRoleTypeMappingList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = new DataConfigToRoleTypeMapping(); - * dataConfigToRoleTypeMapping.setFooName("foo"); - * if (...) { - * dataConfigToRoleTypeMapping.setFooPrice(123); - * } else { - * dataConfigToRoleTypeMapping.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//dataConfigToRoleTypeMapping.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * dataConfigToRoleTypeMappingList.add(dataConfigToRoleTypeMapping); - * } - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(dataConfigToRoleTypeMappingList); - * </pre> - * @param dataConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList) { - return doBatchUpdate(dataConfigToRoleTypeMappingList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(dataConfigToRoleTypeMappingList, new SpecifyQuery<DataConfigToRoleTypeMappingCB>() { - * public void specify(DataConfigToRoleTypeMappingCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(dataConfigToRoleTypeMappingList, new SpecifyQuery<DataConfigToRoleTypeMappingCB>() { - * public void specify(DataConfigToRoleTypeMappingCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param dataConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList, - final SpecifyQuery<DataConfigToRoleTypeMappingCB> updateColumnSpec) { - return doBatchUpdate(dataConfigToRoleTypeMappingList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param dataConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList) { - return doBatchDelete(dataConfigToRoleTypeMappingList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<DataConfigToRoleTypeMapping, DataConfigToRoleTypeMappingCB>() { - * public ConditionBean setup(DataConfigToRoleTypeMapping entity, DataConfigToRoleTypeMappingCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<DataConfigToRoleTypeMapping, DataConfigToRoleTypeMappingCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = new DataConfigToRoleTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//dataConfigToRoleTypeMapping.setPK...(value);</span> - * dataConfigToRoleTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//dataConfigToRoleTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//dataConfigToRoleTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//dataConfigToRoleTypeMapping.setVersionNo(value);</span> - * DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">queryUpdate</span>(dataConfigToRoleTypeMapping, cb); - * </pre> - * @param dataConfigToRoleTypeMapping The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of DataConfigToRoleTypeMapping. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate( - final DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping, - final DataConfigToRoleTypeMappingCB cb) { - return doQueryUpdate(dataConfigToRoleTypeMapping, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">queryDelete</span>(dataConfigToRoleTypeMapping, cb); - * </pre> - * @param cb The condition-bean of DataConfigToRoleTypeMapping. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final DataConfigToRoleTypeMappingCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = new DataConfigToRoleTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * dataConfigToRoleTypeMapping.setFoo...(value); - * dataConfigToRoleTypeMapping.setBar...(value); - * InsertOption<DataConfigToRoleTypeMappingCB> option = new InsertOption<DataConfigToRoleTypeMappingCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">varyingInsert</span>(dataConfigToRoleTypeMapping, option); - * ... = dataConfigToRoleTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param dataConfigToRoleTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert( - final DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping, - final InsertOption<DataConfigToRoleTypeMappingCB> option) { - assertInsertOptionNotNull(option); - doInsert(dataConfigToRoleTypeMapping, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = new DataConfigToRoleTypeMapping(); - * dataConfigToRoleTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * dataConfigToRoleTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * dataConfigToRoleTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<DataConfigToRoleTypeMappingCB> option = new UpdateOption<DataConfigToRoleTypeMappingCB>(); - * option.self(new SpecifyQuery<DataConfigToRoleTypeMappingCB>() { - * public void specify(DataConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">varyingUpdate</span>(dataConfigToRoleTypeMapping, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param dataConfigToRoleTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate( - final DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping, - final UpdateOption<DataConfigToRoleTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(dataConfigToRoleTypeMapping, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param dataConfigToRoleTypeMapping The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping, - final InsertOption<DataConfigToRoleTypeMappingCB> insertOption, - final UpdateOption<DataConfigToRoleTypeMappingCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(dataConfigToRoleTypeMapping, insertOption, - updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param dataConfigToRoleTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete( - final DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping, - final DeleteOption<DataConfigToRoleTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - doDelete(dataConfigToRoleTypeMapping, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param dataConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList, - final InsertOption<DataConfigToRoleTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(dataConfigToRoleTypeMappingList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param dataConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList, - final UpdateOption<DataConfigToRoleTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(dataConfigToRoleTypeMappingList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param dataConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList, - final DeleteOption<DataConfigToRoleTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(dataConfigToRoleTypeMappingList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<DataConfigToRoleTypeMapping, DataConfigToRoleTypeMappingCB> setupper, - final InsertOption<DataConfigToRoleTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = new DataConfigToRoleTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//dataConfigToRoleTypeMapping.setPK...(value);</span> - * dataConfigToRoleTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//dataConfigToRoleTypeMapping.setVersionNo(value);</span> - * DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * UpdateOption<DataConfigToRoleTypeMappingCB> option = new UpdateOption<DataConfigToRoleTypeMappingCB>(); - * option.self(new SpecifyQuery<DataConfigToRoleTypeMappingCB>() { - * public void specify(DataConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * dataConfigToRoleTypeMappingBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(dataConfigToRoleTypeMapping, cb, option); - * </pre> - * @param dataConfigToRoleTypeMapping The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of DataConfigToRoleTypeMapping. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate( - final DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping, - final DataConfigToRoleTypeMappingCB cb, - final UpdateOption<DataConfigToRoleTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(dataConfigToRoleTypeMapping, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of DataConfigToRoleTypeMapping. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final DataConfigToRoleTypeMappingCB cb, - final DeleteOption<DataConfigToRoleTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<DataConfigToRoleTypeMappingBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends DataConfigToRoleTypeMapping> typeOfSelectedEntity() { - return DataConfigToRoleTypeMapping.class; - } - - @Override - protected Class<DataConfigToRoleTypeMapping> typeOfHandlingEntity() { - return DataConfigToRoleTypeMapping.class; - } - - @Override - protected Class<DataConfigToRoleTypeMappingCB> typeOfHandlingConditionBean() { - return DataConfigToRoleTypeMappingCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsDataCrawlingConfigBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsDataCrawlingConfigBhv.java deleted file mode 100644 index 8234e52ae..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsDataCrawlingConfigBhv.java +++ /dev/null @@ -1,1495 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfDataCrawlingConfig; -import jp.sf.fess.db.bsentity.dbmeta.DataCrawlingConfigDbm; -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.DataCrawlingConfigCB; -import jp.sf.fess.db.exbhv.DataCrawlingConfigBhv; -import jp.sf.fess.db.exentity.DataConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.DataConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.LoadReferrerOption; -import org.seasar.dbflute.bhv.NestedReferrerListGateway; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of DATA_CRAWLING_CONFIG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, HANDLER_NAME, HANDLER_PARAMETER, HANDLER_SCRIPT, BOOST, AVAILABLE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING, DATA_CONFIG_TO_ROLE_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * dataConfigToLabelTypeMappingList, dataConfigToRoleTypeMappingList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsDataCrawlingConfigBhv extends - AbstractBehaviorWritable<DataCrawlingConfig, DataCrawlingConfigCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public DataCrawlingConfigDbm getDBMeta() { - return DataCrawlingConfigDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public DataCrawlingConfigDbm getMyDBMeta() { - return DataCrawlingConfigDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public DataCrawlingConfigCB newConditionBean() { - return new DataCrawlingConfigCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public DataCrawlingConfig newMyEntity() { - return new DataCrawlingConfig(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public DataCrawlingConfigCB newMyConditionBean() { - return new DataCrawlingConfigCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - * cb.query().setFoo...(value); - * int count = dataCrawlingConfigBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of DataCrawlingConfig. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final DataCrawlingConfigCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - * cb.query().setFoo...(value); - * DataCrawlingConfig dataCrawlingConfig = dataCrawlingConfigBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (dataCrawlingConfig != null) { <span style="color: #3F7E5E">// null check</span> - * ... = dataCrawlingConfig.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of DataCrawlingConfig. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public DataCrawlingConfig selectEntity(final DataCrawlingConfigCB cb) { - return facadeSelectEntity(cb); - } - - protected DataCrawlingConfig facadeSelectEntity( - final DataCrawlingConfigCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends DataCrawlingConfig> OptionalEntity<ENTITY> doSelectOptionalEntity( - final DataCrawlingConfigCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - * cb.query().setFoo...(value); - * DataCrawlingConfig dataCrawlingConfig = dataCrawlingConfigBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = dataCrawlingConfig.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of DataCrawlingConfig. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public DataCrawlingConfig selectEntityWithDeletedCheck( - final DataCrawlingConfigCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public DataCrawlingConfig selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected DataCrawlingConfig facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends DataCrawlingConfig> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends DataCrawlingConfig> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public DataCrawlingConfig selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends DataCrawlingConfig> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected DataCrawlingConfigCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<DataCrawlingConfig> dataCrawlingConfigList = dataCrawlingConfigBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (DataCrawlingConfig dataCrawlingConfig : dataCrawlingConfigList) { - * ... = dataCrawlingConfig.get...(); - * } - * </pre> - * @param cb The condition-bean of DataCrawlingConfig. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<DataCrawlingConfig> selectList( - final DataCrawlingConfigCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<DataCrawlingConfig> page = dataCrawlingConfigBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (DataCrawlingConfig dataCrawlingConfig : page) { - * ... = dataCrawlingConfig.get...(); - * } - * </pre> - * @param cb The condition-bean of DataCrawlingConfig. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<DataCrawlingConfig> selectPage( - final DataCrawlingConfigCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - * cb.query().setFoo...(value); - * dataCrawlingConfigBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<DataCrawlingConfig>() { - * public void handle(DataCrawlingConfig entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of DataCrawlingConfig. (NotNull) - * @param entityRowHandler The handler of entity row of DataCrawlingConfig. (NotNull) - */ - public void selectCursor(final DataCrawlingConfigCB cb, - final EntityRowHandler<DataCrawlingConfig> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * dataCrawlingConfigBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(DataCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<DataCrawlingConfigCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param dataCrawlingConfigList The entity list of dataCrawlingConfig. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<DataCrawlingConfig> dataCrawlingConfigList, - final ReferrerLoaderHandler<LoaderOfDataCrawlingConfig> handler) { - xassLRArg(dataCrawlingConfigList, handler); - handler.handle(new LoaderOfDataCrawlingConfig().ready( - dataCrawlingConfigList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param dataCrawlingConfig The entity of dataCrawlingConfig. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final DataCrawlingConfig dataCrawlingConfig, - final ReferrerLoaderHandler<LoaderOfDataCrawlingConfig> handler) { - xassLRArg(dataCrawlingConfig, handler); - handler.handle(new LoaderOfDataCrawlingConfig().ready( - xnewLRAryLs(dataCrawlingConfig), _behaviorSelector)); - } - - /** - * Load referrer of dataConfigToLabelTypeMappingList by the set-upper of referrer. <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToLabelTypeMappingList'. - * <pre> - * dataCrawlingConfigBhv.<span style="color: #DD4747">loadDataConfigToLabelTypeMappingList</span>(dataCrawlingConfigList, new ConditionBeanSetupper<DataConfigToLabelTypeMappingCB>() { - * public void setup(DataConfigToLabelTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (DataCrawlingConfig dataCrawlingConfig : dataCrawlingConfigList) { - * ... = dataCrawlingConfig.<span style="color: #DD4747">getDataConfigToLabelTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setDataConfigId_InScope(pkList); - * cb.query().addOrderBy_DataConfigId_Asc(); - * </pre> - * @param dataCrawlingConfigList The entity list of dataCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<DataConfigToLabelTypeMapping> loadDataConfigToLabelTypeMappingList( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final ConditionBeanSetupper<DataConfigToLabelTypeMappingCB> setupper) { - xassLRArg(dataCrawlingConfigList, setupper); - return doLoadDataConfigToLabelTypeMappingList( - dataCrawlingConfigList, - new LoadReferrerOption<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of dataConfigToLabelTypeMappingList by the set-upper of referrer. <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToLabelTypeMappingList'. - * <pre> - * dataCrawlingConfigBhv.<span style="color: #DD4747">loadDataConfigToLabelTypeMappingList</span>(dataCrawlingConfigList, new ConditionBeanSetupper<DataConfigToLabelTypeMappingCB>() { - * public void setup(DataConfigToLabelTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = dataCrawlingConfig.<span style="color: #DD4747">getDataConfigToLabelTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setDataConfigId_InScope(pkList); - * cb.query().addOrderBy_DataConfigId_Asc(); - * </pre> - * @param dataCrawlingConfig The entity of dataCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<DataConfigToLabelTypeMapping> loadDataConfigToLabelTypeMappingList( - final DataCrawlingConfig dataCrawlingConfig, - final ConditionBeanSetupper<DataConfigToLabelTypeMappingCB> setupper) { - xassLRArg(dataCrawlingConfig, setupper); - return doLoadDataConfigToLabelTypeMappingList( - xnewLRLs(dataCrawlingConfig), - new LoadReferrerOption<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param dataCrawlingConfig The entity of dataCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<DataConfigToLabelTypeMapping> loadDataConfigToLabelTypeMappingList( - final DataCrawlingConfig dataCrawlingConfig, - final LoadReferrerOption<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMapping> loadReferrerOption) { - xassLRArg(dataCrawlingConfig, loadReferrerOption); - return loadDataConfigToLabelTypeMappingList( - xnewLRLs(dataCrawlingConfig), loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param dataCrawlingConfigList The entity list of dataCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<DataConfigToLabelTypeMapping> loadDataConfigToLabelTypeMappingList( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final LoadReferrerOption<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMapping> loadReferrerOption) { - xassLRArg(dataCrawlingConfigList, loadReferrerOption); - if (dataCrawlingConfigList.isEmpty()) { - return (NestedReferrerListGateway<DataConfigToLabelTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadDataConfigToLabelTypeMappingList(dataCrawlingConfigList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<DataConfigToLabelTypeMapping> doLoadDataConfigToLabelTypeMappingList( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final LoadReferrerOption<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMapping> option) { - return helpLoadReferrerInternally(dataCrawlingConfigList, option, - "dataConfigToLabelTypeMappingList"); - } - - /** - * Load referrer of dataConfigToRoleTypeMappingList by the set-upper of referrer. <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToRoleTypeMappingList'. - * <pre> - * dataCrawlingConfigBhv.<span style="color: #DD4747">loadDataConfigToRoleTypeMappingList</span>(dataCrawlingConfigList, new ConditionBeanSetupper<DataConfigToRoleTypeMappingCB>() { - * public void setup(DataConfigToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (DataCrawlingConfig dataCrawlingConfig : dataCrawlingConfigList) { - * ... = dataCrawlingConfig.<span style="color: #DD4747">getDataConfigToRoleTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setDataConfigId_InScope(pkList); - * cb.query().addOrderBy_DataConfigId_Asc(); - * </pre> - * @param dataCrawlingConfigList The entity list of dataCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<DataConfigToRoleTypeMapping> loadDataConfigToRoleTypeMappingList( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final ConditionBeanSetupper<DataConfigToRoleTypeMappingCB> setupper) { - xassLRArg(dataCrawlingConfigList, setupper); - return doLoadDataConfigToRoleTypeMappingList( - dataCrawlingConfigList, - new LoadReferrerOption<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of dataConfigToRoleTypeMappingList by the set-upper of referrer. <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToRoleTypeMappingList'. - * <pre> - * dataCrawlingConfigBhv.<span style="color: #DD4747">loadDataConfigToRoleTypeMappingList</span>(dataCrawlingConfigList, new ConditionBeanSetupper<DataConfigToRoleTypeMappingCB>() { - * public void setup(DataConfigToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = dataCrawlingConfig.<span style="color: #DD4747">getDataConfigToRoleTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setDataConfigId_InScope(pkList); - * cb.query().addOrderBy_DataConfigId_Asc(); - * </pre> - * @param dataCrawlingConfig The entity of dataCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<DataConfigToRoleTypeMapping> loadDataConfigToRoleTypeMappingList( - final DataCrawlingConfig dataCrawlingConfig, - final ConditionBeanSetupper<DataConfigToRoleTypeMappingCB> setupper) { - xassLRArg(dataCrawlingConfig, setupper); - return doLoadDataConfigToRoleTypeMappingList( - xnewLRLs(dataCrawlingConfig), - new LoadReferrerOption<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param dataCrawlingConfig The entity of dataCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<DataConfigToRoleTypeMapping> loadDataConfigToRoleTypeMappingList( - final DataCrawlingConfig dataCrawlingConfig, - final LoadReferrerOption<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMapping> loadReferrerOption) { - xassLRArg(dataCrawlingConfig, loadReferrerOption); - return loadDataConfigToRoleTypeMappingList( - xnewLRLs(dataCrawlingConfig), loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param dataCrawlingConfigList The entity list of dataCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<DataConfigToRoleTypeMapping> loadDataConfigToRoleTypeMappingList( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final LoadReferrerOption<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMapping> loadReferrerOption) { - xassLRArg(dataCrawlingConfigList, loadReferrerOption); - if (dataCrawlingConfigList.isEmpty()) { - return (NestedReferrerListGateway<DataConfigToRoleTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadDataConfigToRoleTypeMappingList(dataCrawlingConfigList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<DataConfigToRoleTypeMapping> doLoadDataConfigToRoleTypeMappingList( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final LoadReferrerOption<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMapping> option) { - return helpLoadReferrerInternally(dataCrawlingConfigList, option, - "dataConfigToRoleTypeMappingList"); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param dataCrawlingConfigList The list of dataCrawlingConfig. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<DataCrawlingConfig> dataCrawlingConfigList) { - return helpExtractListInternally(dataCrawlingConfigList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * dataCrawlingConfig.setFoo...(value); - * dataCrawlingConfig.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.set...;</span> - * dataCrawlingConfigBhv.<span style="color: #DD4747">insert</span>(dataCrawlingConfig); - * ... = dataCrawlingConfig.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param dataCrawlingConfig The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final DataCrawlingConfig dataCrawlingConfig) { - doInsert(dataCrawlingConfig, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * dataCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * dataCrawlingConfig.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * dataCrawlingConfig.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * dataCrawlingConfigBhv.<span style="color: #DD4747">update</span>(dataCrawlingConfig); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param dataCrawlingConfig The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final DataCrawlingConfig dataCrawlingConfig) { - doUpdate(dataCrawlingConfig, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * dataCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * dataCrawlingConfig.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setVersionNo(value);</span> - * dataCrawlingConfigBhv.<span style="color: #DD4747">updateNonstrict</span>(dataCrawlingConfig); - * </pre> - * @param dataCrawlingConfig The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final DataCrawlingConfig dataCrawlingConfig) { - doUpdateNonstrict(dataCrawlingConfig, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param dataCrawlingConfig The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final DataCrawlingConfig dataCrawlingConfig) { - doInsertOrUpdate(dataCrawlingConfig, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param dataCrawlingConfig The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict( - final DataCrawlingConfig dataCrawlingConfig) { - doInsertOrUpdateNonstrict(dataCrawlingConfig, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * dataCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * dataCrawlingConfig.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * dataCrawlingConfigBhv.<span style="color: #DD4747">delete</span>(dataCrawlingConfig); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param dataCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final DataCrawlingConfig dataCrawlingConfig) { - doDelete(dataCrawlingConfig, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * dataCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setVersionNo(value);</span> - * dataCrawlingConfigBhv.<span style="color: #DD4747">deleteNonstrict</span>(dataCrawlingConfig); - * </pre> - * @param dataCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final DataCrawlingConfig dataCrawlingConfig) { - doDeleteNonstrict(dataCrawlingConfig, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * dataCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setVersionNo(value);</span> - * dataCrawlingConfigBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(dataCrawlingConfig); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param dataCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted( - final DataCrawlingConfig dataCrawlingConfig) { - doDeleteNonstrictIgnoreDeleted(dataCrawlingConfig, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final DataCrawlingConfig et, - final DeleteOption<DataCrawlingConfigCB> op) { - assertObjectNotNull("dataCrawlingConfig", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * dataCrawlingConfig.setFooName("foo"); - * if (...) { - * dataCrawlingConfig.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * dataCrawlingConfigList.add(dataCrawlingConfig); - * } - * dataCrawlingConfigBhv.<span style="color: #DD4747">batchInsert</span>(dataCrawlingConfigList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param dataCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert( - final List<DataCrawlingConfig> dataCrawlingConfigList) { - return doBatchInsert(dataCrawlingConfigList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * dataCrawlingConfig.setFooName("foo"); - * if (...) { - * dataCrawlingConfig.setFooPrice(123); - * } else { - * dataCrawlingConfig.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * dataCrawlingConfigList.add(dataCrawlingConfig); - * } - * dataCrawlingConfigBhv.<span style="color: #DD4747">batchUpdate</span>(dataCrawlingConfigList); - * </pre> - * @param dataCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate( - final List<DataCrawlingConfig> dataCrawlingConfigList) { - return doBatchUpdate(dataCrawlingConfigList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * dataCrawlingConfigBhv.<span style="color: #DD4747">batchUpdate</span>(dataCrawlingConfigList, new SpecifyQuery<DataCrawlingConfigCB>() { - * public void specify(DataCrawlingConfigCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * dataCrawlingConfigBhv.<span style="color: #DD4747">batchUpdate</span>(dataCrawlingConfigList, new SpecifyQuery<DataCrawlingConfigCB>() { - * public void specify(DataCrawlingConfigCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param dataCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final SpecifyQuery<DataCrawlingConfigCB> updateColumnSpec) { - return doBatchUpdate(dataCrawlingConfigList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * dataCrawlingConfig.setFooName("foo"); - * if (...) { - * dataCrawlingConfig.setFooPrice(123); - * } else { - * dataCrawlingConfig.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * dataCrawlingConfigList.add(dataCrawlingConfig); - * } - * dataCrawlingConfigBhv.<span style="color: #DD4747">batchUpdate</span>(dataCrawlingConfigList); - * </pre> - * @param dataCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<DataCrawlingConfig> dataCrawlingConfigList) { - return doBatchUpdateNonstrict(dataCrawlingConfigList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * dataCrawlingConfigBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(dataCrawlingConfigList, new SpecifyQuery<DataCrawlingConfigCB>() { - * public void specify(DataCrawlingConfigCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * dataCrawlingConfigBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(dataCrawlingConfigList, new SpecifyQuery<DataCrawlingConfigCB>() { - * public void specify(DataCrawlingConfigCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param dataCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final SpecifyQuery<DataCrawlingConfigCB> updateColumnSpec) { - return doBatchUpdateNonstrict(dataCrawlingConfigList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param dataCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete( - final List<DataCrawlingConfig> dataCrawlingConfigList) { - return doBatchDelete(dataCrawlingConfigList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param dataCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict( - final List<DataCrawlingConfig> dataCrawlingConfigList) { - return doBatchDeleteNonstrict(dataCrawlingConfigList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * dataCrawlingConfigBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<DataCrawlingConfig, DataCrawlingConfigCB>() { - * public ConditionBean setup(DataCrawlingConfig entity, DataCrawlingConfigCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<DataCrawlingConfig, DataCrawlingConfigCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setPK...(value);</span> - * dataCrawlingConfig.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setVersionNo(value);</span> - * DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - * cb.query().setFoo...(value); - * dataCrawlingConfigBhv.<span style="color: #DD4747">queryUpdate</span>(dataCrawlingConfig, cb); - * </pre> - * @param dataCrawlingConfig The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of DataCrawlingConfig. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final DataCrawlingConfig dataCrawlingConfig, - final DataCrawlingConfigCB cb) { - return doQueryUpdate(dataCrawlingConfig, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - * cb.query().setFoo...(value); - * dataCrawlingConfigBhv.<span style="color: #DD4747">queryDelete</span>(dataCrawlingConfig, cb); - * </pre> - * @param cb The condition-bean of DataCrawlingConfig. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final DataCrawlingConfigCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * dataCrawlingConfig.setFoo...(value); - * dataCrawlingConfig.setBar...(value); - * InsertOption<DataCrawlingConfigCB> option = new InsertOption<DataCrawlingConfigCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * dataCrawlingConfigBhv.<span style="color: #DD4747">varyingInsert</span>(dataCrawlingConfig, option); - * ... = dataCrawlingConfig.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param dataCrawlingConfig The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final DataCrawlingConfig dataCrawlingConfig, - final InsertOption<DataCrawlingConfigCB> option) { - assertInsertOptionNotNull(option); - doInsert(dataCrawlingConfig, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * dataCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * dataCrawlingConfig.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * dataCrawlingConfig.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<DataCrawlingConfigCB> option = new UpdateOption<DataCrawlingConfigCB>(); - * option.self(new SpecifyQuery<DataCrawlingConfigCB>() { - * public void specify(DataCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * dataCrawlingConfigBhv.<span style="color: #DD4747">varyingUpdate</span>(dataCrawlingConfig, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param dataCrawlingConfig The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final DataCrawlingConfig dataCrawlingConfig, - final UpdateOption<DataCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(dataCrawlingConfig, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * dataCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * dataCrawlingConfig.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setVersionNo(value);</span> - * UpdateOption<DataCrawlingConfigCB> option = new UpdateOption<DataCrawlingConfigCB>(); - * option.self(new SpecifyQuery<DataCrawlingConfigCB>() { - * public void specify(DataCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * dataCrawlingConfigBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(dataCrawlingConfig, option); - * </pre> - * @param dataCrawlingConfig The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict( - final DataCrawlingConfig dataCrawlingConfig, - final UpdateOption<DataCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(dataCrawlingConfig, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param dataCrawlingConfig The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final DataCrawlingConfig dataCrawlingConfig, - final InsertOption<DataCrawlingConfigCB> insertOption, - final UpdateOption<DataCrawlingConfigCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(dataCrawlingConfig, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param dataCrawlingConfig The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict( - final DataCrawlingConfig dataCrawlingConfig, - final InsertOption<DataCrawlingConfigCB> insertOption, - final UpdateOption<DataCrawlingConfigCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(dataCrawlingConfig, insertOption, - updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param dataCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final DataCrawlingConfig dataCrawlingConfig, - final DeleteOption<DataCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - doDelete(dataCrawlingConfig, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param dataCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict( - final DataCrawlingConfig dataCrawlingConfig, - final DeleteOption<DataCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(dataCrawlingConfig, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param dataCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final InsertOption<DataCrawlingConfigCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(dataCrawlingConfigList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param dataCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final UpdateOption<DataCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(dataCrawlingConfigList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param dataCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final UpdateOption<DataCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(dataCrawlingConfigList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param dataCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final DeleteOption<DataCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(dataCrawlingConfigList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param dataCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<DataCrawlingConfig> dataCrawlingConfigList, - final DeleteOption<DataCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(dataCrawlingConfigList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<DataCrawlingConfig, DataCrawlingConfigCB> setupper, - final InsertOption<DataCrawlingConfigCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * DataCrawlingConfig dataCrawlingConfig = new DataCrawlingConfig(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setPK...(value);</span> - * dataCrawlingConfig.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//dataCrawlingConfig.setVersionNo(value);</span> - * DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - * cb.query().setFoo...(value); - * UpdateOption<DataCrawlingConfigCB> option = new UpdateOption<DataCrawlingConfigCB>(); - * option.self(new SpecifyQuery<DataCrawlingConfigCB>() { - * public void specify(DataCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * dataCrawlingConfigBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(dataCrawlingConfig, cb, option); - * </pre> - * @param dataCrawlingConfig The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of DataCrawlingConfig. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final DataCrawlingConfig dataCrawlingConfig, - final DataCrawlingConfigCB cb, - final UpdateOption<DataCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(dataCrawlingConfig, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of DataCrawlingConfig. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final DataCrawlingConfigCB cb, - final DeleteOption<DataCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<DataCrawlingConfigBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends DataCrawlingConfig> typeOfSelectedEntity() { - return DataCrawlingConfig.class; - } - - @Override - protected Class<DataCrawlingConfig> typeOfHandlingEntity() { - return DataCrawlingConfig.class; - } - - @Override - protected Class<DataCrawlingConfigCB> typeOfHandlingConditionBean() { - return DataCrawlingConfigCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsFailureUrlBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsFailureUrlBhv.java deleted file mode 100644 index 3107eecaa..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsFailureUrlBhv.java +++ /dev/null @@ -1,981 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfFailureUrl; -import jp.sf.fess.db.bsentity.dbmeta.FailureUrlDbm; -import jp.sf.fess.db.cbean.FailureUrlCB; -import jp.sf.fess.db.exbhv.FailureUrlBhv; -import jp.sf.fess.db.exentity.FailureUrl; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of FAILURE_URL as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, URL, THREAD_NAME, ERROR_NAME, ERROR_LOG, ERROR_COUNT, LAST_ACCESS_TIME, CONFIG_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFailureUrlBhv extends - AbstractBehaviorWritable<FailureUrl, FailureUrlCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public FailureUrlDbm getDBMeta() { - return FailureUrlDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public FailureUrlDbm getMyDBMeta() { - return FailureUrlDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public FailureUrlCB newConditionBean() { - return new FailureUrlCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public FailureUrl newMyEntity() { - return new FailureUrl(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public FailureUrlCB newMyConditionBean() { - return new FailureUrlCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * FailureUrlCB cb = new FailureUrlCB(); - * cb.query().setFoo...(value); - * int count = failureUrlBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of FailureUrl. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final FailureUrlCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * FailureUrlCB cb = new FailureUrlCB(); - * cb.query().setFoo...(value); - * FailureUrl failureUrl = failureUrlBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (failureUrl != null) { <span style="color: #3F7E5E">// null check</span> - * ... = failureUrl.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of FailureUrl. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FailureUrl selectEntity(final FailureUrlCB cb) { - return facadeSelectEntity(cb); - } - - protected FailureUrl facadeSelectEntity(final FailureUrlCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends FailureUrl> OptionalEntity<ENTITY> doSelectOptionalEntity( - final FailureUrlCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * FailureUrlCB cb = new FailureUrlCB(); - * cb.query().setFoo...(value); - * FailureUrl failureUrl = failureUrlBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = failureUrl.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of FailureUrl. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FailureUrl selectEntityWithDeletedCheck(final FailureUrlCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FailureUrl selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected FailureUrl facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends FailureUrl> ENTITY doSelectByPK(final Long id, - final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends FailureUrl> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FailureUrl selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends FailureUrl> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected FailureUrlCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * FailureUrlCB cb = new FailureUrlCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<FailureUrl> failureUrlList = failureUrlBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (FailureUrl failureUrl : failureUrlList) { - * ... = failureUrl.get...(); - * } - * </pre> - * @param cb The condition-bean of FailureUrl. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<FailureUrl> selectList(final FailureUrlCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * FailureUrlCB cb = new FailureUrlCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<FailureUrl> page = failureUrlBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (FailureUrl failureUrl : page) { - * ... = failureUrl.get...(); - * } - * </pre> - * @param cb The condition-bean of FailureUrl. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<FailureUrl> selectPage(final FailureUrlCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * FailureUrlCB cb = new FailureUrlCB(); - * cb.query().setFoo...(value); - * failureUrlBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<FailureUrl>() { - * public void handle(FailureUrl entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of FailureUrl. (NotNull) - * @param entityRowHandler The handler of entity row of FailureUrl. (NotNull) - */ - public void selectCursor(final FailureUrlCB cb, - final EntityRowHandler<FailureUrl> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * failureUrlBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(FailureUrlCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<FailureUrlCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param failureUrlList The entity list of failureUrl. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<FailureUrl> failureUrlList, - final ReferrerLoaderHandler<LoaderOfFailureUrl> handler) { - xassLRArg(failureUrlList, handler); - handler.handle(new LoaderOfFailureUrl().ready(failureUrlList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param failureUrl The entity of failureUrl. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final FailureUrl failureUrl, - final ReferrerLoaderHandler<LoaderOfFailureUrl> handler) { - xassLRArg(failureUrl, handler); - handler.handle(new LoaderOfFailureUrl().ready(xnewLRAryLs(failureUrl), - _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param failureUrlList The list of failureUrl. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList(final List<FailureUrl> failureUrlList) { - return helpExtractListInternally(failureUrlList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * FailureUrl failureUrl = new FailureUrl(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * failureUrl.setFoo...(value); - * failureUrl.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//failureUrl.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//failureUrl.set...;</span> - * failureUrlBhv.<span style="color: #DD4747">insert</span>(failureUrl); - * ... = failureUrl.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param failureUrl The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final FailureUrl failureUrl) { - doInsert(failureUrl, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * FailureUrl failureUrl = new FailureUrl(); - * failureUrl.setPK...(value); <span style="color: #3F7E5E">// required</span> - * failureUrl.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//failureUrl.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//failureUrl.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * failureUrl.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * failureUrlBhv.<span style="color: #DD4747">update</span>(failureUrl); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param failureUrl The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final FailureUrl failureUrl) { - doUpdate(failureUrl, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param failureUrl The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final FailureUrl failureUrl) { - doInsertOrUpdate(failureUrl, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * FailureUrl failureUrl = new FailureUrl(); - * failureUrl.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * failureUrl.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * failureUrlBhv.<span style="color: #DD4747">delete</span>(failureUrl); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param failureUrl The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final FailureUrl failureUrl) { - doDelete(failureUrl, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * FailureUrl failureUrl = new FailureUrl(); - * failureUrl.setFooName("foo"); - * if (...) { - * failureUrl.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * failureUrlList.add(failureUrl); - * } - * failureUrlBhv.<span style="color: #DD4747">batchInsert</span>(failureUrlList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param failureUrlList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<FailureUrl> failureUrlList) { - return doBatchInsert(failureUrlList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * FailureUrl failureUrl = new FailureUrl(); - * failureUrl.setFooName("foo"); - * if (...) { - * failureUrl.setFooPrice(123); - * } else { - * failureUrl.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//failureUrl.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * failureUrlList.add(failureUrl); - * } - * failureUrlBhv.<span style="color: #DD4747">batchUpdate</span>(failureUrlList); - * </pre> - * @param failureUrlList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<FailureUrl> failureUrlList) { - return doBatchUpdate(failureUrlList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * failureUrlBhv.<span style="color: #DD4747">batchUpdate</span>(failureUrlList, new SpecifyQuery<FailureUrlCB>() { - * public void specify(FailureUrlCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * failureUrlBhv.<span style="color: #DD4747">batchUpdate</span>(failureUrlList, new SpecifyQuery<FailureUrlCB>() { - * public void specify(FailureUrlCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param failureUrlList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<FailureUrl> failureUrlList, - final SpecifyQuery<FailureUrlCB> updateColumnSpec) { - return doBatchUpdate(failureUrlList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param failureUrlList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete(final List<FailureUrl> failureUrlList) { - return doBatchDelete(failureUrlList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * failureUrlBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<FailureUrl, FailureUrlCB>() { - * public ConditionBean setup(FailureUrl entity, FailureUrlCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<FailureUrl, FailureUrlCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * FailureUrl failureUrl = new FailureUrl(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//failureUrl.setPK...(value);</span> - * failureUrl.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//failureUrl.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//failureUrl.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//failureUrl.setVersionNo(value);</span> - * FailureUrlCB cb = new FailureUrlCB(); - * cb.query().setFoo...(value); - * failureUrlBhv.<span style="color: #DD4747">queryUpdate</span>(failureUrl, cb); - * </pre> - * @param failureUrl The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of FailureUrl. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final FailureUrl failureUrl, final FailureUrlCB cb) { - return doQueryUpdate(failureUrl, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * FailureUrlCB cb = new FailureUrlCB(); - * cb.query().setFoo...(value); - * failureUrlBhv.<span style="color: #DD4747">queryDelete</span>(failureUrl, cb); - * </pre> - * @param cb The condition-bean of FailureUrl. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final FailureUrlCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * FailureUrl failureUrl = new FailureUrl(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * failureUrl.setFoo...(value); - * failureUrl.setBar...(value); - * InsertOption<FailureUrlCB> option = new InsertOption<FailureUrlCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * failureUrlBhv.<span style="color: #DD4747">varyingInsert</span>(failureUrl, option); - * ... = failureUrl.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param failureUrl The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final FailureUrl failureUrl, - final InsertOption<FailureUrlCB> option) { - assertInsertOptionNotNull(option); - doInsert(failureUrl, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * FailureUrl failureUrl = new FailureUrl(); - * failureUrl.setPK...(value); <span style="color: #3F7E5E">// required</span> - * failureUrl.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * failureUrl.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<FailureUrlCB> option = new UpdateOption<FailureUrlCB>(); - * option.self(new SpecifyQuery<FailureUrlCB>() { - * public void specify(FailureUrlCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * failureUrlBhv.<span style="color: #DD4747">varyingUpdate</span>(failureUrl, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param failureUrl The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final FailureUrl failureUrl, - final UpdateOption<FailureUrlCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(failureUrl, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param failureUrl The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final FailureUrl failureUrl, - final InsertOption<FailureUrlCB> insertOption, - final UpdateOption<FailureUrlCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(failureUrl, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param failureUrl The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final FailureUrl failureUrl, - final DeleteOption<FailureUrlCB> option) { - assertDeleteOptionNotNull(option); - doDelete(failureUrl, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param failureUrlList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert(final List<FailureUrl> failureUrlList, - final InsertOption<FailureUrlCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(failureUrlList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param failureUrlList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate(final List<FailureUrl> failureUrlList, - final UpdateOption<FailureUrlCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(failureUrlList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param failureUrlList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete(final List<FailureUrl> failureUrlList, - final DeleteOption<FailureUrlCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(failureUrlList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<FailureUrl, FailureUrlCB> setupper, - final InsertOption<FailureUrlCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * FailureUrl failureUrl = new FailureUrl(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//failureUrl.setPK...(value);</span> - * failureUrl.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//failureUrl.setVersionNo(value);</span> - * FailureUrlCB cb = new FailureUrlCB(); - * cb.query().setFoo...(value); - * UpdateOption<FailureUrlCB> option = new UpdateOption<FailureUrlCB>(); - * option.self(new SpecifyQuery<FailureUrlCB>() { - * public void specify(FailureUrlCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * failureUrlBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(failureUrl, cb, option); - * </pre> - * @param failureUrl The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of FailureUrl. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final FailureUrl failureUrl, - final FailureUrlCB cb, final UpdateOption<FailureUrlCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(failureUrl, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of FailureUrl. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final FailureUrlCB cb, - final DeleteOption<FailureUrlCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<FailureUrlBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends FailureUrl> typeOfSelectedEntity() { - return FailureUrl.class; - } - - @Override - protected Class<FailureUrl> typeOfHandlingEntity() { - return FailureUrl.class; - } - - @Override - protected Class<FailureUrlCB> typeOfHandlingConditionBean() { - return FailureUrlCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsFavoriteLogBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsFavoriteLogBhv.java deleted file mode 100644 index 4fb20154c..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsFavoriteLogBhv.java +++ /dev/null @@ -1,1030 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfFavoriteLog; -import jp.sf.fess.db.bsentity.dbmeta.FavoriteLogDbm; -import jp.sf.fess.db.cbean.FavoriteLogCB; -import jp.sf.fess.db.exbhv.FavoriteLogBhv; -import jp.sf.fess.db.exentity.FavoriteLog; -import jp.sf.fess.db.exentity.UserInfo; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of FAVORITE_LOG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, USER_ID, URL, CREATED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * USER_INFO - * - * [referrer table] - * - * - * [foreign property] - * userInfo - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFavoriteLogBhv extends - AbstractBehaviorWritable<FavoriteLog, FavoriteLogCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - public static final String PATH_selectFavoriteUrlRanking = "selectFavoriteUrlRanking"; - - public static final String PATH_selectFavoriteUrlCount = "selectFavoriteUrlCount"; - - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public FavoriteLogDbm getDBMeta() { - return FavoriteLogDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public FavoriteLogDbm getMyDBMeta() { - return FavoriteLogDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public FavoriteLogCB newConditionBean() { - return new FavoriteLogCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public FavoriteLog newMyEntity() { - return new FavoriteLog(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public FavoriteLogCB newMyConditionBean() { - return new FavoriteLogCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * FavoriteLogCB cb = new FavoriteLogCB(); - * cb.query().setFoo...(value); - * int count = favoriteLogBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of FavoriteLog. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final FavoriteLogCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * FavoriteLogCB cb = new FavoriteLogCB(); - * cb.query().setFoo...(value); - * FavoriteLog favoriteLog = favoriteLogBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (favoriteLog != null) { <span style="color: #3F7E5E">// null check</span> - * ... = favoriteLog.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of FavoriteLog. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FavoriteLog selectEntity(final FavoriteLogCB cb) { - return facadeSelectEntity(cb); - } - - protected FavoriteLog facadeSelectEntity(final FavoriteLogCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends FavoriteLog> OptionalEntity<ENTITY> doSelectOptionalEntity( - final FavoriteLogCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * FavoriteLogCB cb = new FavoriteLogCB(); - * cb.query().setFoo...(value); - * FavoriteLog favoriteLog = favoriteLogBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = favoriteLog.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of FavoriteLog. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FavoriteLog selectEntityWithDeletedCheck(final FavoriteLogCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FavoriteLog selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected FavoriteLog facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends FavoriteLog> ENTITY doSelectByPK(final Long id, - final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends FavoriteLog> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FavoriteLog selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends FavoriteLog> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected FavoriteLogCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - /** - * Select the entity by the unique-key value. - * @param userId : UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO. (NotNull) - * @param url : +UQ, NotNull, VARCHAR(4000). (NotNull) - * @return The optional entity selected by the unique key. (NotNull: if no data, empty entity) - * @exception EntityAlreadyDeletedException When get(), required() of return value is called and the value is null, which means entity has already been deleted (not found). - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public OptionalEntity<FavoriteLog> selectByUniqueOf(final Long userId, - final String url) { - return facadeSelectByUniqueOf(userId, url); - } - - protected OptionalEntity<FavoriteLog> facadeSelectByUniqueOf( - final Long userId, final String url) { - return doSelectByUniqueOf(userId, url, typeOfSelectedEntity()); - } - - protected <ENTITY extends FavoriteLog> OptionalEntity<ENTITY> doSelectByUniqueOf( - final Long userId, final String url, - final Class<? extends ENTITY> tp) { - return createOptionalEntity( - doSelectEntity(xprepareCBAsUniqueOf(userId, url), tp), userId, - url); - } - - protected FavoriteLogCB xprepareCBAsUniqueOf(final Long userId, - final String url) { - assertObjectNotNull("userId", userId); - assertObjectNotNull("url", url); - return newConditionBean().acceptUniqueOf(userId, url); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * FavoriteLogCB cb = new FavoriteLogCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<FavoriteLog> favoriteLogList = favoriteLogBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (FavoriteLog favoriteLog : favoriteLogList) { - * ... = favoriteLog.get...(); - * } - * </pre> - * @param cb The condition-bean of FavoriteLog. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<FavoriteLog> selectList(final FavoriteLogCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * FavoriteLogCB cb = new FavoriteLogCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<FavoriteLog> page = favoriteLogBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (FavoriteLog favoriteLog : page) { - * ... = favoriteLog.get...(); - * } - * </pre> - * @param cb The condition-bean of FavoriteLog. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<FavoriteLog> selectPage(final FavoriteLogCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * FavoriteLogCB cb = new FavoriteLogCB(); - * cb.query().setFoo...(value); - * favoriteLogBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<FavoriteLog>() { - * public void handle(FavoriteLog entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of FavoriteLog. (NotNull) - * @param entityRowHandler The handler of entity row of FavoriteLog. (NotNull) - */ - public void selectCursor(final FavoriteLogCB cb, - final EntityRowHandler<FavoriteLog> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * favoriteLogBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(FavoriteLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<FavoriteLogCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param favoriteLogList The entity list of favoriteLog. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<FavoriteLog> favoriteLogList, - final ReferrerLoaderHandler<LoaderOfFavoriteLog> handler) { - xassLRArg(favoriteLogList, handler); - handler.handle(new LoaderOfFavoriteLog().ready(favoriteLogList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param favoriteLog The entity of favoriteLog. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final FavoriteLog favoriteLog, - final ReferrerLoaderHandler<LoaderOfFavoriteLog> handler) { - xassLRArg(favoriteLog, handler); - handler.handle(new LoaderOfFavoriteLog().ready( - xnewLRAryLs(favoriteLog), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'UserInfo'. - * @param favoriteLogList The list of favoriteLog. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<UserInfo> pulloutUserInfo( - final List<FavoriteLog> favoriteLogList) { - return helpPulloutInternally(favoriteLogList, "userInfo"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param favoriteLogList The list of favoriteLog. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList(final List<FavoriteLog> favoriteLogList) { - return helpExtractListInternally(favoriteLogList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * FavoriteLog favoriteLog = new FavoriteLog(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * favoriteLog.setFoo...(value); - * favoriteLog.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//favoriteLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//favoriteLog.set...;</span> - * favoriteLogBhv.<span style="color: #DD4747">insert</span>(favoriteLog); - * ... = favoriteLog.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param favoriteLog The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final FavoriteLog favoriteLog) { - doInsert(favoriteLog, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * FavoriteLog favoriteLog = new FavoriteLog(); - * favoriteLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * favoriteLog.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//favoriteLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//favoriteLog.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * favoriteLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * favoriteLogBhv.<span style="color: #DD4747">update</span>(favoriteLog); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param favoriteLog The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final FavoriteLog favoriteLog) { - doUpdate(favoriteLog, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param favoriteLog The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final FavoriteLog favoriteLog) { - doInsertOrUpdate(favoriteLog, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * FavoriteLog favoriteLog = new FavoriteLog(); - * favoriteLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * favoriteLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * favoriteLogBhv.<span style="color: #DD4747">delete</span>(favoriteLog); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param favoriteLog The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final FavoriteLog favoriteLog) { - doDelete(favoriteLog, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * FavoriteLog favoriteLog = new FavoriteLog(); - * favoriteLog.setFooName("foo"); - * if (...) { - * favoriteLog.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * favoriteLogList.add(favoriteLog); - * } - * favoriteLogBhv.<span style="color: #DD4747">batchInsert</span>(favoriteLogList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param favoriteLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<FavoriteLog> favoriteLogList) { - return doBatchInsert(favoriteLogList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * FavoriteLog favoriteLog = new FavoriteLog(); - * favoriteLog.setFooName("foo"); - * if (...) { - * favoriteLog.setFooPrice(123); - * } else { - * favoriteLog.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//favoriteLog.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * favoriteLogList.add(favoriteLog); - * } - * favoriteLogBhv.<span style="color: #DD4747">batchUpdate</span>(favoriteLogList); - * </pre> - * @param favoriteLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<FavoriteLog> favoriteLogList) { - return doBatchUpdate(favoriteLogList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * favoriteLogBhv.<span style="color: #DD4747">batchUpdate</span>(favoriteLogList, new SpecifyQuery<FavoriteLogCB>() { - * public void specify(FavoriteLogCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * favoriteLogBhv.<span style="color: #DD4747">batchUpdate</span>(favoriteLogList, new SpecifyQuery<FavoriteLogCB>() { - * public void specify(FavoriteLogCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param favoriteLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<FavoriteLog> favoriteLogList, - final SpecifyQuery<FavoriteLogCB> updateColumnSpec) { - return doBatchUpdate(favoriteLogList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param favoriteLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete(final List<FavoriteLog> favoriteLogList) { - return doBatchDelete(favoriteLogList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * favoriteLogBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<FavoriteLog, FavoriteLogCB>() { - * public ConditionBean setup(FavoriteLog entity, FavoriteLogCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<FavoriteLog, FavoriteLogCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * FavoriteLog favoriteLog = new FavoriteLog(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//favoriteLog.setPK...(value);</span> - * favoriteLog.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//favoriteLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//favoriteLog.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//favoriteLog.setVersionNo(value);</span> - * FavoriteLogCB cb = new FavoriteLogCB(); - * cb.query().setFoo...(value); - * favoriteLogBhv.<span style="color: #DD4747">queryUpdate</span>(favoriteLog, cb); - * </pre> - * @param favoriteLog The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of FavoriteLog. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final FavoriteLog favoriteLog, final FavoriteLogCB cb) { - return doQueryUpdate(favoriteLog, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * FavoriteLogCB cb = new FavoriteLogCB(); - * cb.query().setFoo...(value); - * favoriteLogBhv.<span style="color: #DD4747">queryDelete</span>(favoriteLog, cb); - * </pre> - * @param cb The condition-bean of FavoriteLog. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final FavoriteLogCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * FavoriteLog favoriteLog = new FavoriteLog(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * favoriteLog.setFoo...(value); - * favoriteLog.setBar...(value); - * InsertOption<FavoriteLogCB> option = new InsertOption<FavoriteLogCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * favoriteLogBhv.<span style="color: #DD4747">varyingInsert</span>(favoriteLog, option); - * ... = favoriteLog.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param favoriteLog The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final FavoriteLog favoriteLog, - final InsertOption<FavoriteLogCB> option) { - assertInsertOptionNotNull(option); - doInsert(favoriteLog, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * FavoriteLog favoriteLog = new FavoriteLog(); - * favoriteLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * favoriteLog.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * favoriteLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<FavoriteLogCB> option = new UpdateOption<FavoriteLogCB>(); - * option.self(new SpecifyQuery<FavoriteLogCB>() { - * public void specify(FavoriteLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * favoriteLogBhv.<span style="color: #DD4747">varyingUpdate</span>(favoriteLog, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param favoriteLog The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final FavoriteLog favoriteLog, - final UpdateOption<FavoriteLogCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(favoriteLog, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param favoriteLog The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final FavoriteLog favoriteLog, - final InsertOption<FavoriteLogCB> insertOption, - final UpdateOption<FavoriteLogCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(favoriteLog, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param favoriteLog The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final FavoriteLog favoriteLog, - final DeleteOption<FavoriteLogCB> option) { - assertDeleteOptionNotNull(option); - doDelete(favoriteLog, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param favoriteLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert(final List<FavoriteLog> favoriteLogList, - final InsertOption<FavoriteLogCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(favoriteLogList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param favoriteLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate(final List<FavoriteLog> favoriteLogList, - final UpdateOption<FavoriteLogCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(favoriteLogList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param favoriteLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete(final List<FavoriteLog> favoriteLogList, - final DeleteOption<FavoriteLogCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(favoriteLogList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<FavoriteLog, FavoriteLogCB> setupper, - final InsertOption<FavoriteLogCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * FavoriteLog favoriteLog = new FavoriteLog(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//favoriteLog.setPK...(value);</span> - * favoriteLog.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//favoriteLog.setVersionNo(value);</span> - * FavoriteLogCB cb = new FavoriteLogCB(); - * cb.query().setFoo...(value); - * UpdateOption<FavoriteLogCB> option = new UpdateOption<FavoriteLogCB>(); - * option.self(new SpecifyQuery<FavoriteLogCB>() { - * public void specify(FavoriteLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * favoriteLogBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(favoriteLog, cb, option); - * </pre> - * @param favoriteLog The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of FavoriteLog. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final FavoriteLog favoriteLog, - final FavoriteLogCB cb, final UpdateOption<FavoriteLogCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(favoriteLog, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of FavoriteLog. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final FavoriteLogCB cb, - final DeleteOption<FavoriteLogCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<FavoriteLogBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends FavoriteLog> typeOfSelectedEntity() { - return FavoriteLog.class; - } - - @Override - protected Class<FavoriteLog> typeOfHandlingEntity() { - return FavoriteLog.class; - } - - @Override - protected Class<FavoriteLogCB> typeOfHandlingConditionBean() { - return FavoriteLogCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsFileAuthenticationBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsFileAuthenticationBhv.java deleted file mode 100644 index 4b39400fd..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsFileAuthenticationBhv.java +++ /dev/null @@ -1,1274 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfFileAuthentication; -import jp.sf.fess.db.bsentity.dbmeta.FileAuthenticationDbm; -import jp.sf.fess.db.cbean.FileAuthenticationCB; -import jp.sf.fess.db.exbhv.FileAuthenticationBhv; -import jp.sf.fess.db.exentity.FileAuthentication; -import jp.sf.fess.db.exentity.FileCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of FILE_AUTHENTICATION as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, HOSTNAME, PORT, PROTOCOL_SCHEME, USERNAME, PASSWORD, PARAMETERS, FILE_CRAWLING_CONFIG_ID, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * FILE_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * fileCrawlingConfig - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFileAuthenticationBhv extends - AbstractBehaviorWritable<FileAuthentication, FileAuthenticationCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public FileAuthenticationDbm getDBMeta() { - return FileAuthenticationDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public FileAuthenticationDbm getMyDBMeta() { - return FileAuthenticationDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public FileAuthenticationCB newConditionBean() { - return new FileAuthenticationCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public FileAuthentication newMyEntity() { - return new FileAuthentication(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public FileAuthenticationCB newMyConditionBean() { - return new FileAuthenticationCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * FileAuthenticationCB cb = new FileAuthenticationCB(); - * cb.query().setFoo...(value); - * int count = fileAuthenticationBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of FileAuthentication. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final FileAuthenticationCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * FileAuthenticationCB cb = new FileAuthenticationCB(); - * cb.query().setFoo...(value); - * FileAuthentication fileAuthentication = fileAuthenticationBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (fileAuthentication != null) { <span style="color: #3F7E5E">// null check</span> - * ... = fileAuthentication.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of FileAuthentication. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileAuthentication selectEntity(final FileAuthenticationCB cb) { - return facadeSelectEntity(cb); - } - - protected FileAuthentication facadeSelectEntity( - final FileAuthenticationCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends FileAuthentication> OptionalEntity<ENTITY> doSelectOptionalEntity( - final FileAuthenticationCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * FileAuthenticationCB cb = new FileAuthenticationCB(); - * cb.query().setFoo...(value); - * FileAuthentication fileAuthentication = fileAuthenticationBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = fileAuthentication.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of FileAuthentication. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileAuthentication selectEntityWithDeletedCheck( - final FileAuthenticationCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileAuthentication selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected FileAuthentication facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends FileAuthentication> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends FileAuthentication> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileAuthentication selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends FileAuthentication> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected FileAuthenticationCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * FileAuthenticationCB cb = new FileAuthenticationCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<FileAuthentication> fileAuthenticationList = fileAuthenticationBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (FileAuthentication fileAuthentication : fileAuthenticationList) { - * ... = fileAuthentication.get...(); - * } - * </pre> - * @param cb The condition-bean of FileAuthentication. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<FileAuthentication> selectList( - final FileAuthenticationCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * FileAuthenticationCB cb = new FileAuthenticationCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<FileAuthentication> page = fileAuthenticationBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (FileAuthentication fileAuthentication : page) { - * ... = fileAuthentication.get...(); - * } - * </pre> - * @param cb The condition-bean of FileAuthentication. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<FileAuthentication> selectPage( - final FileAuthenticationCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * FileAuthenticationCB cb = new FileAuthenticationCB(); - * cb.query().setFoo...(value); - * fileAuthenticationBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<FileAuthentication>() { - * public void handle(FileAuthentication entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of FileAuthentication. (NotNull) - * @param entityRowHandler The handler of entity row of FileAuthentication. (NotNull) - */ - public void selectCursor(final FileAuthenticationCB cb, - final EntityRowHandler<FileAuthentication> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * fileAuthenticationBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(FileAuthenticationCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<FileAuthenticationCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param fileAuthenticationList The entity list of fileAuthentication. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<FileAuthentication> fileAuthenticationList, - final ReferrerLoaderHandler<LoaderOfFileAuthentication> handler) { - xassLRArg(fileAuthenticationList, handler); - handler.handle(new LoaderOfFileAuthentication().ready( - fileAuthenticationList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param fileAuthentication The entity of fileAuthentication. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final FileAuthentication fileAuthentication, - final ReferrerLoaderHandler<LoaderOfFileAuthentication> handler) { - xassLRArg(fileAuthentication, handler); - handler.handle(new LoaderOfFileAuthentication().ready( - xnewLRAryLs(fileAuthentication), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'FileCrawlingConfig'. - * @param fileAuthenticationList The list of fileAuthentication. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<FileCrawlingConfig> pulloutFileCrawlingConfig( - final List<FileAuthentication> fileAuthenticationList) { - return helpPulloutInternally(fileAuthenticationList, - "fileCrawlingConfig"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param fileAuthenticationList The list of fileAuthentication. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<FileAuthentication> fileAuthenticationList) { - return helpExtractListInternally(fileAuthenticationList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * FileAuthentication fileAuthentication = new FileAuthentication(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * fileAuthentication.setFoo...(value); - * fileAuthentication.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileAuthentication.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileAuthentication.set...;</span> - * fileAuthenticationBhv.<span style="color: #DD4747">insert</span>(fileAuthentication); - * ... = fileAuthentication.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param fileAuthentication The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final FileAuthentication fileAuthentication) { - doInsert(fileAuthentication, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * FileAuthentication fileAuthentication = new FileAuthentication(); - * fileAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * fileAuthentication.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileAuthentication.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileAuthentication.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * fileAuthentication.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * fileAuthenticationBhv.<span style="color: #DD4747">update</span>(fileAuthentication); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param fileAuthentication The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final FileAuthentication fileAuthentication) { - doUpdate(fileAuthentication, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * FileAuthentication fileAuthentication = new FileAuthentication(); - * fileAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * fileAuthentication.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileAuthentication.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileAuthentication.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileAuthentication.setVersionNo(value);</span> - * fileAuthenticationBhv.<span style="color: #DD4747">updateNonstrict</span>(fileAuthentication); - * </pre> - * @param fileAuthentication The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final FileAuthentication fileAuthentication) { - doUpdateNonstrict(fileAuthentication, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param fileAuthentication The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final FileAuthentication fileAuthentication) { - doInsertOrUpdate(fileAuthentication, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param fileAuthentication The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict( - final FileAuthentication fileAuthentication) { - doInsertOrUpdateNonstrict(fileAuthentication, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * FileAuthentication fileAuthentication = new FileAuthentication(); - * fileAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * fileAuthentication.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * fileAuthenticationBhv.<span style="color: #DD4747">delete</span>(fileAuthentication); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param fileAuthentication The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final FileAuthentication fileAuthentication) { - doDelete(fileAuthentication, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * FileAuthentication fileAuthentication = new FileAuthentication(); - * fileAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileAuthentication.setVersionNo(value);</span> - * fileAuthenticationBhv.<span style="color: #DD4747">deleteNonstrict</span>(fileAuthentication); - * </pre> - * @param fileAuthentication The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final FileAuthentication fileAuthentication) { - doDeleteNonstrict(fileAuthentication, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * FileAuthentication fileAuthentication = new FileAuthentication(); - * fileAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileAuthentication.setVersionNo(value);</span> - * fileAuthenticationBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(fileAuthentication); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param fileAuthentication The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted( - final FileAuthentication fileAuthentication) { - doDeleteNonstrictIgnoreDeleted(fileAuthentication, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final FileAuthentication et, - final DeleteOption<FileAuthenticationCB> op) { - assertObjectNotNull("fileAuthentication", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * FileAuthentication fileAuthentication = new FileAuthentication(); - * fileAuthentication.setFooName("foo"); - * if (...) { - * fileAuthentication.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * fileAuthenticationList.add(fileAuthentication); - * } - * fileAuthenticationBhv.<span style="color: #DD4747">batchInsert</span>(fileAuthenticationList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param fileAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert( - final List<FileAuthentication> fileAuthenticationList) { - return doBatchInsert(fileAuthenticationList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * FileAuthentication fileAuthentication = new FileAuthentication(); - * fileAuthentication.setFooName("foo"); - * if (...) { - * fileAuthentication.setFooPrice(123); - * } else { - * fileAuthentication.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//fileAuthentication.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * fileAuthenticationList.add(fileAuthentication); - * } - * fileAuthenticationBhv.<span style="color: #DD4747">batchUpdate</span>(fileAuthenticationList); - * </pre> - * @param fileAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate( - final List<FileAuthentication> fileAuthenticationList) { - return doBatchUpdate(fileAuthenticationList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * fileAuthenticationBhv.<span style="color: #DD4747">batchUpdate</span>(fileAuthenticationList, new SpecifyQuery<FileAuthenticationCB>() { - * public void specify(FileAuthenticationCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * fileAuthenticationBhv.<span style="color: #DD4747">batchUpdate</span>(fileAuthenticationList, new SpecifyQuery<FileAuthenticationCB>() { - * public void specify(FileAuthenticationCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param fileAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate( - final List<FileAuthentication> fileAuthenticationList, - final SpecifyQuery<FileAuthenticationCB> updateColumnSpec) { - return doBatchUpdate(fileAuthenticationList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * FileAuthentication fileAuthentication = new FileAuthentication(); - * fileAuthentication.setFooName("foo"); - * if (...) { - * fileAuthentication.setFooPrice(123); - * } else { - * fileAuthentication.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//fileAuthentication.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * fileAuthenticationList.add(fileAuthentication); - * } - * fileAuthenticationBhv.<span style="color: #DD4747">batchUpdate</span>(fileAuthenticationList); - * </pre> - * @param fileAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<FileAuthentication> fileAuthenticationList) { - return doBatchUpdateNonstrict(fileAuthenticationList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * fileAuthenticationBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(fileAuthenticationList, new SpecifyQuery<FileAuthenticationCB>() { - * public void specify(FileAuthenticationCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * fileAuthenticationBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(fileAuthenticationList, new SpecifyQuery<FileAuthenticationCB>() { - * public void specify(FileAuthenticationCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param fileAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<FileAuthentication> fileAuthenticationList, - final SpecifyQuery<FileAuthenticationCB> updateColumnSpec) { - return doBatchUpdateNonstrict(fileAuthenticationList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param fileAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete( - final List<FileAuthentication> fileAuthenticationList) { - return doBatchDelete(fileAuthenticationList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param fileAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict( - final List<FileAuthentication> fileAuthenticationList) { - return doBatchDeleteNonstrict(fileAuthenticationList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * fileAuthenticationBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<FileAuthentication, FileAuthenticationCB>() { - * public ConditionBean setup(FileAuthentication entity, FileAuthenticationCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<FileAuthentication, FileAuthenticationCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * FileAuthentication fileAuthentication = new FileAuthentication(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//fileAuthentication.setPK...(value);</span> - * fileAuthentication.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileAuthentication.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileAuthentication.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileAuthentication.setVersionNo(value);</span> - * FileAuthenticationCB cb = new FileAuthenticationCB(); - * cb.query().setFoo...(value); - * fileAuthenticationBhv.<span style="color: #DD4747">queryUpdate</span>(fileAuthentication, cb); - * </pre> - * @param fileAuthentication The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of FileAuthentication. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final FileAuthentication fileAuthentication, - final FileAuthenticationCB cb) { - return doQueryUpdate(fileAuthentication, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * FileAuthenticationCB cb = new FileAuthenticationCB(); - * cb.query().setFoo...(value); - * fileAuthenticationBhv.<span style="color: #DD4747">queryDelete</span>(fileAuthentication, cb); - * </pre> - * @param cb The condition-bean of FileAuthentication. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final FileAuthenticationCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * FileAuthentication fileAuthentication = new FileAuthentication(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * fileAuthentication.setFoo...(value); - * fileAuthentication.setBar...(value); - * InsertOption<FileAuthenticationCB> option = new InsertOption<FileAuthenticationCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * fileAuthenticationBhv.<span style="color: #DD4747">varyingInsert</span>(fileAuthentication, option); - * ... = fileAuthentication.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param fileAuthentication The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final FileAuthentication fileAuthentication, - final InsertOption<FileAuthenticationCB> option) { - assertInsertOptionNotNull(option); - doInsert(fileAuthentication, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * FileAuthentication fileAuthentication = new FileAuthentication(); - * fileAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * fileAuthentication.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * fileAuthentication.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<FileAuthenticationCB> option = new UpdateOption<FileAuthenticationCB>(); - * option.self(new SpecifyQuery<FileAuthenticationCB>() { - * public void specify(FileAuthenticationCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * fileAuthenticationBhv.<span style="color: #DD4747">varyingUpdate</span>(fileAuthentication, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param fileAuthentication The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final FileAuthentication fileAuthentication, - final UpdateOption<FileAuthenticationCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(fileAuthentication, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * FileAuthentication fileAuthentication = new FileAuthentication(); - * fileAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * fileAuthentication.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileAuthentication.setVersionNo(value);</span> - * UpdateOption<FileAuthenticationCB> option = new UpdateOption<FileAuthenticationCB>(); - * option.self(new SpecifyQuery<FileAuthenticationCB>() { - * public void specify(FileAuthenticationCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * fileAuthenticationBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(fileAuthentication, option); - * </pre> - * @param fileAuthentication The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict( - final FileAuthentication fileAuthentication, - final UpdateOption<FileAuthenticationCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(fileAuthentication, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param fileAuthentication The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final FileAuthentication fileAuthentication, - final InsertOption<FileAuthenticationCB> insertOption, - final UpdateOption<FileAuthenticationCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(fileAuthentication, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param fileAuthentication The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict( - final FileAuthentication fileAuthentication, - final InsertOption<FileAuthenticationCB> insertOption, - final UpdateOption<FileAuthenticationCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(fileAuthentication, insertOption, - updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param fileAuthentication The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final FileAuthentication fileAuthentication, - final DeleteOption<FileAuthenticationCB> option) { - assertDeleteOptionNotNull(option); - doDelete(fileAuthentication, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param fileAuthentication The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict( - final FileAuthentication fileAuthentication, - final DeleteOption<FileAuthenticationCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(fileAuthentication, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param fileAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<FileAuthentication> fileAuthenticationList, - final InsertOption<FileAuthenticationCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(fileAuthenticationList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param fileAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<FileAuthentication> fileAuthenticationList, - final UpdateOption<FileAuthenticationCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(fileAuthenticationList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param fileAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<FileAuthentication> fileAuthenticationList, - final UpdateOption<FileAuthenticationCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(fileAuthenticationList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param fileAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<FileAuthentication> fileAuthenticationList, - final DeleteOption<FileAuthenticationCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(fileAuthenticationList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param fileAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<FileAuthentication> fileAuthenticationList, - final DeleteOption<FileAuthenticationCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(fileAuthenticationList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<FileAuthentication, FileAuthenticationCB> setupper, - final InsertOption<FileAuthenticationCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * FileAuthentication fileAuthentication = new FileAuthentication(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//fileAuthentication.setPK...(value);</span> - * fileAuthentication.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileAuthentication.setVersionNo(value);</span> - * FileAuthenticationCB cb = new FileAuthenticationCB(); - * cb.query().setFoo...(value); - * UpdateOption<FileAuthenticationCB> option = new UpdateOption<FileAuthenticationCB>(); - * option.self(new SpecifyQuery<FileAuthenticationCB>() { - * public void specify(FileAuthenticationCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * fileAuthenticationBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(fileAuthentication, cb, option); - * </pre> - * @param fileAuthentication The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of FileAuthentication. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final FileAuthentication fileAuthentication, - final FileAuthenticationCB cb, - final UpdateOption<FileAuthenticationCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(fileAuthentication, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of FileAuthentication. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final FileAuthenticationCB cb, - final DeleteOption<FileAuthenticationCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<FileAuthenticationBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends FileAuthentication> typeOfSelectedEntity() { - return FileAuthentication.class; - } - - @Override - protected Class<FileAuthentication> typeOfHandlingEntity() { - return FileAuthentication.class; - } - - @Override - protected Class<FileAuthenticationCB> typeOfHandlingConditionBean() { - return FileAuthenticationCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsFileConfigToLabelTypeMappingBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsFileConfigToLabelTypeMappingBhv.java deleted file mode 100644 index 08e281935..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsFileConfigToLabelTypeMappingBhv.java +++ /dev/null @@ -1,1037 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfFileConfigToLabelTypeMapping; -import jp.sf.fess.db.bsentity.dbmeta.FileConfigToLabelTypeMappingDbm; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.exbhv.FileConfigToLabelTypeMappingBhv; -import jp.sf.fess.db.exentity.FileConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.db.exentity.LabelType; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of FILE_CONFIG_TO_LABEL_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, FILE_CONFIG_ID, LABEL_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * FILE_CRAWLING_CONFIG, LABEL_TYPE - * - * [referrer table] - * - * - * [foreign property] - * fileCrawlingConfig, labelType - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFileConfigToLabelTypeMappingBhv - extends - AbstractBehaviorWritable<FileConfigToLabelTypeMapping, FileConfigToLabelTypeMappingCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public FileConfigToLabelTypeMappingDbm getDBMeta() { - return FileConfigToLabelTypeMappingDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public FileConfigToLabelTypeMappingDbm getMyDBMeta() { - return FileConfigToLabelTypeMappingDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public FileConfigToLabelTypeMappingCB newConditionBean() { - return new FileConfigToLabelTypeMappingCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public FileConfigToLabelTypeMapping newMyEntity() { - return new FileConfigToLabelTypeMapping(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public FileConfigToLabelTypeMappingCB newMyConditionBean() { - return new FileConfigToLabelTypeMappingCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * int count = fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of FileConfigToLabelTypeMapping. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final FileConfigToLabelTypeMappingCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (fileConfigToLabelTypeMapping != null) { <span style="color: #3F7E5E">// null check</span> - * ... = fileConfigToLabelTypeMapping.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of FileConfigToLabelTypeMapping. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileConfigToLabelTypeMapping selectEntity( - final FileConfigToLabelTypeMappingCB cb) { - return facadeSelectEntity(cb); - } - - protected FileConfigToLabelTypeMapping facadeSelectEntity( - final FileConfigToLabelTypeMappingCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends FileConfigToLabelTypeMapping> OptionalEntity<ENTITY> doSelectOptionalEntity( - final FileConfigToLabelTypeMappingCB cb, - final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = fileConfigToLabelTypeMapping.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of FileConfigToLabelTypeMapping. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileConfigToLabelTypeMapping selectEntityWithDeletedCheck( - final FileConfigToLabelTypeMappingCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileConfigToLabelTypeMapping selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected FileConfigToLabelTypeMapping facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends FileConfigToLabelTypeMapping> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends FileConfigToLabelTypeMapping> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileConfigToLabelTypeMapping selectByPKValueWithDeletedCheck( - final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends FileConfigToLabelTypeMapping> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected FileConfigToLabelTypeMappingCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList = fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping : fileConfigToLabelTypeMappingList) { - * ... = fileConfigToLabelTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of FileConfigToLabelTypeMapping. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<FileConfigToLabelTypeMapping> selectList( - final FileConfigToLabelTypeMappingCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<FileConfigToLabelTypeMapping> page = fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping : page) { - * ... = fileConfigToLabelTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of FileConfigToLabelTypeMapping. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<FileConfigToLabelTypeMapping> selectPage( - final FileConfigToLabelTypeMappingCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<FileConfigToLabelTypeMapping>() { - * public void handle(FileConfigToLabelTypeMapping entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of FileConfigToLabelTypeMapping. (NotNull) - * @param entityRowHandler The handler of entity row of FileConfigToLabelTypeMapping. (NotNull) - */ - public void selectCursor( - final FileConfigToLabelTypeMappingCB cb, - final EntityRowHandler<FileConfigToLabelTypeMapping> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(FileConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<FileConfigToLabelTypeMappingCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param fileConfigToLabelTypeMappingList The entity list of fileConfigToLabelTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList, - final ReferrerLoaderHandler<LoaderOfFileConfigToLabelTypeMapping> handler) { - xassLRArg(fileConfigToLabelTypeMappingList, handler); - handler.handle(new LoaderOfFileConfigToLabelTypeMapping().ready( - fileConfigToLabelTypeMappingList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param fileConfigToLabelTypeMapping The entity of fileConfigToLabelTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping, - final ReferrerLoaderHandler<LoaderOfFileConfigToLabelTypeMapping> handler) { - xassLRArg(fileConfigToLabelTypeMapping, handler); - handler.handle(new LoaderOfFileConfigToLabelTypeMapping().ready( - xnewLRAryLs(fileConfigToLabelTypeMapping), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'FileCrawlingConfig'. - * @param fileConfigToLabelTypeMappingList The list of fileConfigToLabelTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<FileCrawlingConfig> pulloutFileCrawlingConfig( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList) { - return helpPulloutInternally(fileConfigToLabelTypeMappingList, - "fileCrawlingConfig"); - } - - /** - * Pull out the list of foreign table 'LabelType'. - * @param fileConfigToLabelTypeMappingList The list of fileConfigToLabelTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<LabelType> pulloutLabelType( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList) { - return helpPulloutInternally(fileConfigToLabelTypeMappingList, - "labelType"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param fileConfigToLabelTypeMappingList The list of fileConfigToLabelTypeMapping. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList) { - return helpExtractListInternally(fileConfigToLabelTypeMappingList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = new FileConfigToLabelTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * fileConfigToLabelTypeMapping.setFoo...(value); - * fileConfigToLabelTypeMapping.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileConfigToLabelTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileConfigToLabelTypeMapping.set...;</span> - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">insert</span>(fileConfigToLabelTypeMapping); - * ... = fileConfigToLabelTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param fileConfigToLabelTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert( - final FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping) { - doInsert(fileConfigToLabelTypeMapping, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = new FileConfigToLabelTypeMapping(); - * fileConfigToLabelTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * fileConfigToLabelTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileConfigToLabelTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileConfigToLabelTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * fileConfigToLabelTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">update</span>(fileConfigToLabelTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param fileConfigToLabelTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update( - final FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping) { - doUpdate(fileConfigToLabelTypeMapping, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param fileConfigToLabelTypeMapping The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate( - final FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping) { - doInsertOrUpdate(fileConfigToLabelTypeMapping, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = new FileConfigToLabelTypeMapping(); - * fileConfigToLabelTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * fileConfigToLabelTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">delete</span>(fileConfigToLabelTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param fileConfigToLabelTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete( - final FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping) { - doDelete(fileConfigToLabelTypeMapping, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = new FileConfigToLabelTypeMapping(); - * fileConfigToLabelTypeMapping.setFooName("foo"); - * if (...) { - * fileConfigToLabelTypeMapping.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * fileConfigToLabelTypeMappingList.add(fileConfigToLabelTypeMapping); - * } - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">batchInsert</span>(fileConfigToLabelTypeMappingList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param fileConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList) { - return doBatchInsert(fileConfigToLabelTypeMappingList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = new FileConfigToLabelTypeMapping(); - * fileConfigToLabelTypeMapping.setFooName("foo"); - * if (...) { - * fileConfigToLabelTypeMapping.setFooPrice(123); - * } else { - * fileConfigToLabelTypeMapping.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//fileConfigToLabelTypeMapping.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * fileConfigToLabelTypeMappingList.add(fileConfigToLabelTypeMapping); - * } - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(fileConfigToLabelTypeMappingList); - * </pre> - * @param fileConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList) { - return doBatchUpdate(fileConfigToLabelTypeMappingList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(fileConfigToLabelTypeMappingList, new SpecifyQuery<FileConfigToLabelTypeMappingCB>() { - * public void specify(FileConfigToLabelTypeMappingCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(fileConfigToLabelTypeMappingList, new SpecifyQuery<FileConfigToLabelTypeMappingCB>() { - * public void specify(FileConfigToLabelTypeMappingCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param fileConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList, - final SpecifyQuery<FileConfigToLabelTypeMappingCB> updateColumnSpec) { - return doBatchUpdate(fileConfigToLabelTypeMappingList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param fileConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList) { - return doBatchDelete(fileConfigToLabelTypeMappingList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<FileConfigToLabelTypeMapping, FileConfigToLabelTypeMappingCB>() { - * public ConditionBean setup(FileConfigToLabelTypeMapping entity, FileConfigToLabelTypeMappingCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<FileConfigToLabelTypeMapping, FileConfigToLabelTypeMappingCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = new FileConfigToLabelTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//fileConfigToLabelTypeMapping.setPK...(value);</span> - * fileConfigToLabelTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileConfigToLabelTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileConfigToLabelTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileConfigToLabelTypeMapping.setVersionNo(value);</span> - * FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">queryUpdate</span>(fileConfigToLabelTypeMapping, cb); - * </pre> - * @param fileConfigToLabelTypeMapping The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of FileConfigToLabelTypeMapping. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate( - final FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping, - final FileConfigToLabelTypeMappingCB cb) { - return doQueryUpdate(fileConfigToLabelTypeMapping, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">queryDelete</span>(fileConfigToLabelTypeMapping, cb); - * </pre> - * @param cb The condition-bean of FileConfigToLabelTypeMapping. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final FileConfigToLabelTypeMappingCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = new FileConfigToLabelTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * fileConfigToLabelTypeMapping.setFoo...(value); - * fileConfigToLabelTypeMapping.setBar...(value); - * InsertOption<FileConfigToLabelTypeMappingCB> option = new InsertOption<FileConfigToLabelTypeMappingCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">varyingInsert</span>(fileConfigToLabelTypeMapping, option); - * ... = fileConfigToLabelTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param fileConfigToLabelTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert( - final FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping, - final InsertOption<FileConfigToLabelTypeMappingCB> option) { - assertInsertOptionNotNull(option); - doInsert(fileConfigToLabelTypeMapping, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = new FileConfigToLabelTypeMapping(); - * fileConfigToLabelTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * fileConfigToLabelTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * fileConfigToLabelTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<FileConfigToLabelTypeMappingCB> option = new UpdateOption<FileConfigToLabelTypeMappingCB>(); - * option.self(new SpecifyQuery<FileConfigToLabelTypeMappingCB>() { - * public void specify(FileConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">varyingUpdate</span>(fileConfigToLabelTypeMapping, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param fileConfigToLabelTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate( - final FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping, - final UpdateOption<FileConfigToLabelTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(fileConfigToLabelTypeMapping, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param fileConfigToLabelTypeMapping The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping, - final InsertOption<FileConfigToLabelTypeMappingCB> insertOption, - final UpdateOption<FileConfigToLabelTypeMappingCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(fileConfigToLabelTypeMapping, insertOption, - updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param fileConfigToLabelTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete( - final FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping, - final DeleteOption<FileConfigToLabelTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - doDelete(fileConfigToLabelTypeMapping, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param fileConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList, - final InsertOption<FileConfigToLabelTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(fileConfigToLabelTypeMappingList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param fileConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList, - final UpdateOption<FileConfigToLabelTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(fileConfigToLabelTypeMappingList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param fileConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList, - final DeleteOption<FileConfigToLabelTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(fileConfigToLabelTypeMappingList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<FileConfigToLabelTypeMapping, FileConfigToLabelTypeMappingCB> setupper, - final InsertOption<FileConfigToLabelTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = new FileConfigToLabelTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//fileConfigToLabelTypeMapping.setPK...(value);</span> - * fileConfigToLabelTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileConfigToLabelTypeMapping.setVersionNo(value);</span> - * FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * UpdateOption<FileConfigToLabelTypeMappingCB> option = new UpdateOption<FileConfigToLabelTypeMappingCB>(); - * option.self(new SpecifyQuery<FileConfigToLabelTypeMappingCB>() { - * public void specify(FileConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * fileConfigToLabelTypeMappingBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(fileConfigToLabelTypeMapping, cb, option); - * </pre> - * @param fileConfigToLabelTypeMapping The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of FileConfigToLabelTypeMapping. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate( - final FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping, - final FileConfigToLabelTypeMappingCB cb, - final UpdateOption<FileConfigToLabelTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(fileConfigToLabelTypeMapping, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of FileConfigToLabelTypeMapping. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final FileConfigToLabelTypeMappingCB cb, - final DeleteOption<FileConfigToLabelTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<FileConfigToLabelTypeMappingBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends FileConfigToLabelTypeMapping> typeOfSelectedEntity() { - return FileConfigToLabelTypeMapping.class; - } - - @Override - protected Class<FileConfigToLabelTypeMapping> typeOfHandlingEntity() { - return FileConfigToLabelTypeMapping.class; - } - - @Override - protected Class<FileConfigToLabelTypeMappingCB> typeOfHandlingConditionBean() { - return FileConfigToLabelTypeMappingCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsFileConfigToRoleTypeMappingBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsFileConfigToRoleTypeMappingBhv.java deleted file mode 100644 index fb728e9bf..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsFileConfigToRoleTypeMappingBhv.java +++ /dev/null @@ -1,1036 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfFileConfigToRoleTypeMapping; -import jp.sf.fess.db.bsentity.dbmeta.FileConfigToRoleTypeMappingDbm; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.exbhv.FileConfigToRoleTypeMappingBhv; -import jp.sf.fess.db.exentity.FileConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.db.exentity.RoleType; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of FILE_CONFIG_TO_ROLE_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, FILE_CONFIG_ID, ROLE_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * FILE_CRAWLING_CONFIG, ROLE_TYPE - * - * [referrer table] - * - * - * [foreign property] - * fileCrawlingConfig, roleType - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFileConfigToRoleTypeMappingBhv - extends - AbstractBehaviorWritable<FileConfigToRoleTypeMapping, FileConfigToRoleTypeMappingCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public FileConfigToRoleTypeMappingDbm getDBMeta() { - return FileConfigToRoleTypeMappingDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public FileConfigToRoleTypeMappingDbm getMyDBMeta() { - return FileConfigToRoleTypeMappingDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public FileConfigToRoleTypeMappingCB newConditionBean() { - return new FileConfigToRoleTypeMappingCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public FileConfigToRoleTypeMapping newMyEntity() { - return new FileConfigToRoleTypeMapping(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public FileConfigToRoleTypeMappingCB newMyConditionBean() { - return new FileConfigToRoleTypeMappingCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * int count = fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of FileConfigToRoleTypeMapping. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final FileConfigToRoleTypeMappingCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (fileConfigToRoleTypeMapping != null) { <span style="color: #3F7E5E">// null check</span> - * ... = fileConfigToRoleTypeMapping.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of FileConfigToRoleTypeMapping. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileConfigToRoleTypeMapping selectEntity( - final FileConfigToRoleTypeMappingCB cb) { - return facadeSelectEntity(cb); - } - - protected FileConfigToRoleTypeMapping facadeSelectEntity( - final FileConfigToRoleTypeMappingCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends FileConfigToRoleTypeMapping> OptionalEntity<ENTITY> doSelectOptionalEntity( - final FileConfigToRoleTypeMappingCB cb, - final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = fileConfigToRoleTypeMapping.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of FileConfigToRoleTypeMapping. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileConfigToRoleTypeMapping selectEntityWithDeletedCheck( - final FileConfigToRoleTypeMappingCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileConfigToRoleTypeMapping selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected FileConfigToRoleTypeMapping facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends FileConfigToRoleTypeMapping> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends FileConfigToRoleTypeMapping> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileConfigToRoleTypeMapping selectByPKValueWithDeletedCheck( - final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends FileConfigToRoleTypeMapping> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected FileConfigToRoleTypeMappingCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList = fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping : fileConfigToRoleTypeMappingList) { - * ... = fileConfigToRoleTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of FileConfigToRoleTypeMapping. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<FileConfigToRoleTypeMapping> selectList( - final FileConfigToRoleTypeMappingCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<FileConfigToRoleTypeMapping> page = fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping : page) { - * ... = fileConfigToRoleTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of FileConfigToRoleTypeMapping. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<FileConfigToRoleTypeMapping> selectPage( - final FileConfigToRoleTypeMappingCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<FileConfigToRoleTypeMapping>() { - * public void handle(FileConfigToRoleTypeMapping entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of FileConfigToRoleTypeMapping. (NotNull) - * @param entityRowHandler The handler of entity row of FileConfigToRoleTypeMapping. (NotNull) - */ - public void selectCursor(final FileConfigToRoleTypeMappingCB cb, - final EntityRowHandler<FileConfigToRoleTypeMapping> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(FileConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<FileConfigToRoleTypeMappingCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param fileConfigToRoleTypeMappingList The entity list of fileConfigToRoleTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList, - final ReferrerLoaderHandler<LoaderOfFileConfigToRoleTypeMapping> handler) { - xassLRArg(fileConfigToRoleTypeMappingList, handler); - handler.handle(new LoaderOfFileConfigToRoleTypeMapping().ready( - fileConfigToRoleTypeMappingList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param fileConfigToRoleTypeMapping The entity of fileConfigToRoleTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping, - final ReferrerLoaderHandler<LoaderOfFileConfigToRoleTypeMapping> handler) { - xassLRArg(fileConfigToRoleTypeMapping, handler); - handler.handle(new LoaderOfFileConfigToRoleTypeMapping().ready( - xnewLRAryLs(fileConfigToRoleTypeMapping), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'FileCrawlingConfig'. - * @param fileConfigToRoleTypeMappingList The list of fileConfigToRoleTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<FileCrawlingConfig> pulloutFileCrawlingConfig( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList) { - return helpPulloutInternally(fileConfigToRoleTypeMappingList, - "fileCrawlingConfig"); - } - - /** - * Pull out the list of foreign table 'RoleType'. - * @param fileConfigToRoleTypeMappingList The list of fileConfigToRoleTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<RoleType> pulloutRoleType( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList) { - return helpPulloutInternally(fileConfigToRoleTypeMappingList, - "roleType"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param fileConfigToRoleTypeMappingList The list of fileConfigToRoleTypeMapping. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList) { - return helpExtractListInternally(fileConfigToRoleTypeMappingList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = new FileConfigToRoleTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * fileConfigToRoleTypeMapping.setFoo...(value); - * fileConfigToRoleTypeMapping.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileConfigToRoleTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileConfigToRoleTypeMapping.set...;</span> - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">insert</span>(fileConfigToRoleTypeMapping); - * ... = fileConfigToRoleTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param fileConfigToRoleTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert( - final FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping) { - doInsert(fileConfigToRoleTypeMapping, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = new FileConfigToRoleTypeMapping(); - * fileConfigToRoleTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * fileConfigToRoleTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileConfigToRoleTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileConfigToRoleTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * fileConfigToRoleTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">update</span>(fileConfigToRoleTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param fileConfigToRoleTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update( - final FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping) { - doUpdate(fileConfigToRoleTypeMapping, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param fileConfigToRoleTypeMapping The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate( - final FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping) { - doInsertOrUpdate(fileConfigToRoleTypeMapping, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = new FileConfigToRoleTypeMapping(); - * fileConfigToRoleTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * fileConfigToRoleTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">delete</span>(fileConfigToRoleTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param fileConfigToRoleTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete( - final FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping) { - doDelete(fileConfigToRoleTypeMapping, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = new FileConfigToRoleTypeMapping(); - * fileConfigToRoleTypeMapping.setFooName("foo"); - * if (...) { - * fileConfigToRoleTypeMapping.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * fileConfigToRoleTypeMappingList.add(fileConfigToRoleTypeMapping); - * } - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">batchInsert</span>(fileConfigToRoleTypeMappingList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param fileConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList) { - return doBatchInsert(fileConfigToRoleTypeMappingList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = new FileConfigToRoleTypeMapping(); - * fileConfigToRoleTypeMapping.setFooName("foo"); - * if (...) { - * fileConfigToRoleTypeMapping.setFooPrice(123); - * } else { - * fileConfigToRoleTypeMapping.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//fileConfigToRoleTypeMapping.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * fileConfigToRoleTypeMappingList.add(fileConfigToRoleTypeMapping); - * } - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(fileConfigToRoleTypeMappingList); - * </pre> - * @param fileConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList) { - return doBatchUpdate(fileConfigToRoleTypeMappingList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(fileConfigToRoleTypeMappingList, new SpecifyQuery<FileConfigToRoleTypeMappingCB>() { - * public void specify(FileConfigToRoleTypeMappingCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(fileConfigToRoleTypeMappingList, new SpecifyQuery<FileConfigToRoleTypeMappingCB>() { - * public void specify(FileConfigToRoleTypeMappingCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param fileConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList, - final SpecifyQuery<FileConfigToRoleTypeMappingCB> updateColumnSpec) { - return doBatchUpdate(fileConfigToRoleTypeMappingList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param fileConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList) { - return doBatchDelete(fileConfigToRoleTypeMappingList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<FileConfigToRoleTypeMapping, FileConfigToRoleTypeMappingCB>() { - * public ConditionBean setup(FileConfigToRoleTypeMapping entity, FileConfigToRoleTypeMappingCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<FileConfigToRoleTypeMapping, FileConfigToRoleTypeMappingCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = new FileConfigToRoleTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//fileConfigToRoleTypeMapping.setPK...(value);</span> - * fileConfigToRoleTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileConfigToRoleTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileConfigToRoleTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileConfigToRoleTypeMapping.setVersionNo(value);</span> - * FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">queryUpdate</span>(fileConfigToRoleTypeMapping, cb); - * </pre> - * @param fileConfigToRoleTypeMapping The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of FileConfigToRoleTypeMapping. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate( - final FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping, - final FileConfigToRoleTypeMappingCB cb) { - return doQueryUpdate(fileConfigToRoleTypeMapping, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">queryDelete</span>(fileConfigToRoleTypeMapping, cb); - * </pre> - * @param cb The condition-bean of FileConfigToRoleTypeMapping. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final FileConfigToRoleTypeMappingCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = new FileConfigToRoleTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * fileConfigToRoleTypeMapping.setFoo...(value); - * fileConfigToRoleTypeMapping.setBar...(value); - * InsertOption<FileConfigToRoleTypeMappingCB> option = new InsertOption<FileConfigToRoleTypeMappingCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">varyingInsert</span>(fileConfigToRoleTypeMapping, option); - * ... = fileConfigToRoleTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param fileConfigToRoleTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert( - final FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping, - final InsertOption<FileConfigToRoleTypeMappingCB> option) { - assertInsertOptionNotNull(option); - doInsert(fileConfigToRoleTypeMapping, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = new FileConfigToRoleTypeMapping(); - * fileConfigToRoleTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * fileConfigToRoleTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * fileConfigToRoleTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<FileConfigToRoleTypeMappingCB> option = new UpdateOption<FileConfigToRoleTypeMappingCB>(); - * option.self(new SpecifyQuery<FileConfigToRoleTypeMappingCB>() { - * public void specify(FileConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">varyingUpdate</span>(fileConfigToRoleTypeMapping, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param fileConfigToRoleTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate( - final FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping, - final UpdateOption<FileConfigToRoleTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(fileConfigToRoleTypeMapping, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param fileConfigToRoleTypeMapping The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping, - final InsertOption<FileConfigToRoleTypeMappingCB> insertOption, - final UpdateOption<FileConfigToRoleTypeMappingCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(fileConfigToRoleTypeMapping, insertOption, - updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param fileConfigToRoleTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete( - final FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping, - final DeleteOption<FileConfigToRoleTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - doDelete(fileConfigToRoleTypeMapping, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param fileConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList, - final InsertOption<FileConfigToRoleTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(fileConfigToRoleTypeMappingList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param fileConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList, - final UpdateOption<FileConfigToRoleTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(fileConfigToRoleTypeMappingList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param fileConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList, - final DeleteOption<FileConfigToRoleTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(fileConfigToRoleTypeMappingList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<FileConfigToRoleTypeMapping, FileConfigToRoleTypeMappingCB> setupper, - final InsertOption<FileConfigToRoleTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = new FileConfigToRoleTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//fileConfigToRoleTypeMapping.setPK...(value);</span> - * fileConfigToRoleTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileConfigToRoleTypeMapping.setVersionNo(value);</span> - * FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * UpdateOption<FileConfigToRoleTypeMappingCB> option = new UpdateOption<FileConfigToRoleTypeMappingCB>(); - * option.self(new SpecifyQuery<FileConfigToRoleTypeMappingCB>() { - * public void specify(FileConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * fileConfigToRoleTypeMappingBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(fileConfigToRoleTypeMapping, cb, option); - * </pre> - * @param fileConfigToRoleTypeMapping The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of FileConfigToRoleTypeMapping. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate( - final FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping, - final FileConfigToRoleTypeMappingCB cb, - final UpdateOption<FileConfigToRoleTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(fileConfigToRoleTypeMapping, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of FileConfigToRoleTypeMapping. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final FileConfigToRoleTypeMappingCB cb, - final DeleteOption<FileConfigToRoleTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<FileConfigToRoleTypeMappingBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends FileConfigToRoleTypeMapping> typeOfSelectedEntity() { - return FileConfigToRoleTypeMapping.class; - } - - @Override - protected Class<FileConfigToRoleTypeMapping> typeOfHandlingEntity() { - return FileConfigToRoleTypeMapping.class; - } - - @Override - protected Class<FileConfigToRoleTypeMappingCB> typeOfHandlingConditionBean() { - return FileConfigToRoleTypeMappingCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsFileCrawlingConfigBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsFileCrawlingConfigBhv.java deleted file mode 100644 index 2f9b20e48..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsFileCrawlingConfigBhv.java +++ /dev/null @@ -1,1610 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfFileCrawlingConfig; -import jp.sf.fess.db.bsentity.dbmeta.FileCrawlingConfigDbm; -import jp.sf.fess.db.cbean.FileAuthenticationCB; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.exbhv.FileCrawlingConfigBhv; -import jp.sf.fess.db.exentity.FileAuthentication; -import jp.sf.fess.db.exentity.FileConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.FileConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.LoadReferrerOption; -import org.seasar.dbflute.bhv.NestedReferrerListGateway; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of FILE_CRAWLING_CONFIG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, PATHS, INCLUDED_PATHS, EXCLUDED_PATHS, INCLUDED_DOC_PATHS, EXCLUDED_DOC_PATHS, CONFIG_PARAMETER, DEPTH, MAX_ACCESS_COUNT, NUM_OF_THREAD, INTERVAL_TIME, BOOST, AVAILABLE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * FILE_AUTHENTICATION, FILE_CONFIG_TO_LABEL_TYPE_MAPPING, FILE_CONFIG_TO_ROLE_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * fileAuthenticationList, fileConfigToLabelTypeMappingList, fileConfigToRoleTypeMappingList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFileCrawlingConfigBhv extends - AbstractBehaviorWritable<FileCrawlingConfig, FileCrawlingConfigCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public FileCrawlingConfigDbm getDBMeta() { - return FileCrawlingConfigDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public FileCrawlingConfigDbm getMyDBMeta() { - return FileCrawlingConfigDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public FileCrawlingConfigCB newConditionBean() { - return new FileCrawlingConfigCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public FileCrawlingConfig newMyEntity() { - return new FileCrawlingConfig(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public FileCrawlingConfigCB newMyConditionBean() { - return new FileCrawlingConfigCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - * cb.query().setFoo...(value); - * int count = fileCrawlingConfigBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of FileCrawlingConfig. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final FileCrawlingConfigCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - * cb.query().setFoo...(value); - * FileCrawlingConfig fileCrawlingConfig = fileCrawlingConfigBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (fileCrawlingConfig != null) { <span style="color: #3F7E5E">// null check</span> - * ... = fileCrawlingConfig.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of FileCrawlingConfig. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileCrawlingConfig selectEntity(final FileCrawlingConfigCB cb) { - return facadeSelectEntity(cb); - } - - protected FileCrawlingConfig facadeSelectEntity( - final FileCrawlingConfigCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends FileCrawlingConfig> OptionalEntity<ENTITY> doSelectOptionalEntity( - final FileCrawlingConfigCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - * cb.query().setFoo...(value); - * FileCrawlingConfig fileCrawlingConfig = fileCrawlingConfigBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = fileCrawlingConfig.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of FileCrawlingConfig. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileCrawlingConfig selectEntityWithDeletedCheck( - final FileCrawlingConfigCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileCrawlingConfig selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected FileCrawlingConfig facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends FileCrawlingConfig> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends FileCrawlingConfig> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public FileCrawlingConfig selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends FileCrawlingConfig> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected FileCrawlingConfigCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<FileCrawlingConfig> fileCrawlingConfigList = fileCrawlingConfigBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (FileCrawlingConfig fileCrawlingConfig : fileCrawlingConfigList) { - * ... = fileCrawlingConfig.get...(); - * } - * </pre> - * @param cb The condition-bean of FileCrawlingConfig. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<FileCrawlingConfig> selectList( - final FileCrawlingConfigCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<FileCrawlingConfig> page = fileCrawlingConfigBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (FileCrawlingConfig fileCrawlingConfig : page) { - * ... = fileCrawlingConfig.get...(); - * } - * </pre> - * @param cb The condition-bean of FileCrawlingConfig. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<FileCrawlingConfig> selectPage( - final FileCrawlingConfigCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - * cb.query().setFoo...(value); - * fileCrawlingConfigBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<FileCrawlingConfig>() { - * public void handle(FileCrawlingConfig entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of FileCrawlingConfig. (NotNull) - * @param entityRowHandler The handler of entity row of FileCrawlingConfig. (NotNull) - */ - public void selectCursor(final FileCrawlingConfigCB cb, - final EntityRowHandler<FileCrawlingConfig> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * fileCrawlingConfigBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(FileCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<FileCrawlingConfigCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param fileCrawlingConfigList The entity list of fileCrawlingConfig. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<FileCrawlingConfig> fileCrawlingConfigList, - final ReferrerLoaderHandler<LoaderOfFileCrawlingConfig> handler) { - xassLRArg(fileCrawlingConfigList, handler); - handler.handle(new LoaderOfFileCrawlingConfig().ready( - fileCrawlingConfigList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param fileCrawlingConfig The entity of fileCrawlingConfig. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final FileCrawlingConfig fileCrawlingConfig, - final ReferrerLoaderHandler<LoaderOfFileCrawlingConfig> handler) { - xassLRArg(fileCrawlingConfig, handler); - handler.handle(new LoaderOfFileCrawlingConfig().ready( - xnewLRAryLs(fileCrawlingConfig), _behaviorSelector)); - } - - /** - * Load referrer of fileAuthenticationList by the set-upper of referrer. <br /> - * FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationList'. - * <pre> - * fileCrawlingConfigBhv.<span style="color: #DD4747">loadFileAuthenticationList</span>(fileCrawlingConfigList, new ConditionBeanSetupper<FileAuthenticationCB>() { - * public void setup(FileAuthenticationCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (FileCrawlingConfig fileCrawlingConfig : fileCrawlingConfigList) { - * ... = fileCrawlingConfig.<span style="color: #DD4747">getFileAuthenticationList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setFileCrawlingConfigId_InScope(pkList); - * cb.query().addOrderBy_FileCrawlingConfigId_Asc(); - * </pre> - * @param fileCrawlingConfigList The entity list of fileCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileAuthentication> loadFileAuthenticationList( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final ConditionBeanSetupper<FileAuthenticationCB> setupper) { - xassLRArg(fileCrawlingConfigList, setupper); - return doLoadFileAuthenticationList( - fileCrawlingConfigList, - new LoadReferrerOption<FileAuthenticationCB, FileAuthentication>() - .xinit(setupper)); - } - - /** - * Load referrer of fileAuthenticationList by the set-upper of referrer. <br /> - * FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationList'. - * <pre> - * fileCrawlingConfigBhv.<span style="color: #DD4747">loadFileAuthenticationList</span>(fileCrawlingConfigList, new ConditionBeanSetupper<FileAuthenticationCB>() { - * public void setup(FileAuthenticationCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = fileCrawlingConfig.<span style="color: #DD4747">getFileAuthenticationList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setFileCrawlingConfigId_InScope(pkList); - * cb.query().addOrderBy_FileCrawlingConfigId_Asc(); - * </pre> - * @param fileCrawlingConfig The entity of fileCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileAuthentication> loadFileAuthenticationList( - final FileCrawlingConfig fileCrawlingConfig, - final ConditionBeanSetupper<FileAuthenticationCB> setupper) { - xassLRArg(fileCrawlingConfig, setupper); - return doLoadFileAuthenticationList( - xnewLRLs(fileCrawlingConfig), - new LoadReferrerOption<FileAuthenticationCB, FileAuthentication>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param fileCrawlingConfig The entity of fileCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileAuthentication> loadFileAuthenticationList( - final FileCrawlingConfig fileCrawlingConfig, - final LoadReferrerOption<FileAuthenticationCB, FileAuthentication> loadReferrerOption) { - xassLRArg(fileCrawlingConfig, loadReferrerOption); - return loadFileAuthenticationList(xnewLRLs(fileCrawlingConfig), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param fileCrawlingConfigList The entity list of fileCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<FileAuthentication> loadFileAuthenticationList( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final LoadReferrerOption<FileAuthenticationCB, FileAuthentication> loadReferrerOption) { - xassLRArg(fileCrawlingConfigList, loadReferrerOption); - if (fileCrawlingConfigList.isEmpty()) { - return (NestedReferrerListGateway<FileAuthentication>) EMPTY_NREF_LGWAY; - } - return doLoadFileAuthenticationList(fileCrawlingConfigList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<FileAuthentication> doLoadFileAuthenticationList( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final LoadReferrerOption<FileAuthenticationCB, FileAuthentication> option) { - return helpLoadReferrerInternally(fileCrawlingConfigList, option, - "fileAuthenticationList"); - } - - /** - * Load referrer of fileConfigToLabelTypeMappingList by the set-upper of referrer. <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingList'. - * <pre> - * fileCrawlingConfigBhv.<span style="color: #DD4747">loadFileConfigToLabelTypeMappingList</span>(fileCrawlingConfigList, new ConditionBeanSetupper<FileConfigToLabelTypeMappingCB>() { - * public void setup(FileConfigToLabelTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (FileCrawlingConfig fileCrawlingConfig : fileCrawlingConfigList) { - * ... = fileCrawlingConfig.<span style="color: #DD4747">getFileConfigToLabelTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setFileConfigId_InScope(pkList); - * cb.query().addOrderBy_FileConfigId_Asc(); - * </pre> - * @param fileCrawlingConfigList The entity list of fileCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileConfigToLabelTypeMapping> loadFileConfigToLabelTypeMappingList( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final ConditionBeanSetupper<FileConfigToLabelTypeMappingCB> setupper) { - xassLRArg(fileCrawlingConfigList, setupper); - return doLoadFileConfigToLabelTypeMappingList( - fileCrawlingConfigList, - new LoadReferrerOption<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of fileConfigToLabelTypeMappingList by the set-upper of referrer. <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingList'. - * <pre> - * fileCrawlingConfigBhv.<span style="color: #DD4747">loadFileConfigToLabelTypeMappingList</span>(fileCrawlingConfigList, new ConditionBeanSetupper<FileConfigToLabelTypeMappingCB>() { - * public void setup(FileConfigToLabelTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = fileCrawlingConfig.<span style="color: #DD4747">getFileConfigToLabelTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setFileConfigId_InScope(pkList); - * cb.query().addOrderBy_FileConfigId_Asc(); - * </pre> - * @param fileCrawlingConfig The entity of fileCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileConfigToLabelTypeMapping> loadFileConfigToLabelTypeMappingList( - final FileCrawlingConfig fileCrawlingConfig, - final ConditionBeanSetupper<FileConfigToLabelTypeMappingCB> setupper) { - xassLRArg(fileCrawlingConfig, setupper); - return doLoadFileConfigToLabelTypeMappingList( - xnewLRLs(fileCrawlingConfig), - new LoadReferrerOption<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param fileCrawlingConfig The entity of fileCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileConfigToLabelTypeMapping> loadFileConfigToLabelTypeMappingList( - final FileCrawlingConfig fileCrawlingConfig, - final LoadReferrerOption<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMapping> loadReferrerOption) { - xassLRArg(fileCrawlingConfig, loadReferrerOption); - return loadFileConfigToLabelTypeMappingList( - xnewLRLs(fileCrawlingConfig), loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param fileCrawlingConfigList The entity list of fileCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<FileConfigToLabelTypeMapping> loadFileConfigToLabelTypeMappingList( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final LoadReferrerOption<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMapping> loadReferrerOption) { - xassLRArg(fileCrawlingConfigList, loadReferrerOption); - if (fileCrawlingConfigList.isEmpty()) { - return (NestedReferrerListGateway<FileConfigToLabelTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadFileConfigToLabelTypeMappingList(fileCrawlingConfigList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<FileConfigToLabelTypeMapping> doLoadFileConfigToLabelTypeMappingList( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final LoadReferrerOption<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMapping> option) { - return helpLoadReferrerInternally(fileCrawlingConfigList, option, - "fileConfigToLabelTypeMappingList"); - } - - /** - * Load referrer of fileConfigToRoleTypeMappingList by the set-upper of referrer. <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingList'. - * <pre> - * fileCrawlingConfigBhv.<span style="color: #DD4747">loadFileConfigToRoleTypeMappingList</span>(fileCrawlingConfigList, new ConditionBeanSetupper<FileConfigToRoleTypeMappingCB>() { - * public void setup(FileConfigToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (FileCrawlingConfig fileCrawlingConfig : fileCrawlingConfigList) { - * ... = fileCrawlingConfig.<span style="color: #DD4747">getFileConfigToRoleTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setFileConfigId_InScope(pkList); - * cb.query().addOrderBy_FileConfigId_Asc(); - * </pre> - * @param fileCrawlingConfigList The entity list of fileCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileConfigToRoleTypeMapping> loadFileConfigToRoleTypeMappingList( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final ConditionBeanSetupper<FileConfigToRoleTypeMappingCB> setupper) { - xassLRArg(fileCrawlingConfigList, setupper); - return doLoadFileConfigToRoleTypeMappingList( - fileCrawlingConfigList, - new LoadReferrerOption<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of fileConfigToRoleTypeMappingList by the set-upper of referrer. <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingList'. - * <pre> - * fileCrawlingConfigBhv.<span style="color: #DD4747">loadFileConfigToRoleTypeMappingList</span>(fileCrawlingConfigList, new ConditionBeanSetupper<FileConfigToRoleTypeMappingCB>() { - * public void setup(FileConfigToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = fileCrawlingConfig.<span style="color: #DD4747">getFileConfigToRoleTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setFileConfigId_InScope(pkList); - * cb.query().addOrderBy_FileConfigId_Asc(); - * </pre> - * @param fileCrawlingConfig The entity of fileCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileConfigToRoleTypeMapping> loadFileConfigToRoleTypeMappingList( - final FileCrawlingConfig fileCrawlingConfig, - final ConditionBeanSetupper<FileConfigToRoleTypeMappingCB> setupper) { - xassLRArg(fileCrawlingConfig, setupper); - return doLoadFileConfigToRoleTypeMappingList( - xnewLRLs(fileCrawlingConfig), - new LoadReferrerOption<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param fileCrawlingConfig The entity of fileCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileConfigToRoleTypeMapping> loadFileConfigToRoleTypeMappingList( - final FileCrawlingConfig fileCrawlingConfig, - final LoadReferrerOption<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMapping> loadReferrerOption) { - xassLRArg(fileCrawlingConfig, loadReferrerOption); - return loadFileConfigToRoleTypeMappingList( - xnewLRLs(fileCrawlingConfig), loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param fileCrawlingConfigList The entity list of fileCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<FileConfigToRoleTypeMapping> loadFileConfigToRoleTypeMappingList( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final LoadReferrerOption<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMapping> loadReferrerOption) { - xassLRArg(fileCrawlingConfigList, loadReferrerOption); - if (fileCrawlingConfigList.isEmpty()) { - return (NestedReferrerListGateway<FileConfigToRoleTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadFileConfigToRoleTypeMappingList(fileCrawlingConfigList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<FileConfigToRoleTypeMapping> doLoadFileConfigToRoleTypeMappingList( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final LoadReferrerOption<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMapping> option) { - return helpLoadReferrerInternally(fileCrawlingConfigList, option, - "fileConfigToRoleTypeMappingList"); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param fileCrawlingConfigList The list of fileCrawlingConfig. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<FileCrawlingConfig> fileCrawlingConfigList) { - return helpExtractListInternally(fileCrawlingConfigList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * fileCrawlingConfig.setFoo...(value); - * fileCrawlingConfig.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.set...;</span> - * fileCrawlingConfigBhv.<span style="color: #DD4747">insert</span>(fileCrawlingConfig); - * ... = fileCrawlingConfig.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param fileCrawlingConfig The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final FileCrawlingConfig fileCrawlingConfig) { - doInsert(fileCrawlingConfig, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * fileCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * fileCrawlingConfig.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * fileCrawlingConfig.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * fileCrawlingConfigBhv.<span style="color: #DD4747">update</span>(fileCrawlingConfig); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param fileCrawlingConfig The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final FileCrawlingConfig fileCrawlingConfig) { - doUpdate(fileCrawlingConfig, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * fileCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * fileCrawlingConfig.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setVersionNo(value);</span> - * fileCrawlingConfigBhv.<span style="color: #DD4747">updateNonstrict</span>(fileCrawlingConfig); - * </pre> - * @param fileCrawlingConfig The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final FileCrawlingConfig fileCrawlingConfig) { - doUpdateNonstrict(fileCrawlingConfig, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param fileCrawlingConfig The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final FileCrawlingConfig fileCrawlingConfig) { - doInsertOrUpdate(fileCrawlingConfig, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param fileCrawlingConfig The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict( - final FileCrawlingConfig fileCrawlingConfig) { - doInsertOrUpdateNonstrict(fileCrawlingConfig, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * fileCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * fileCrawlingConfig.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * fileCrawlingConfigBhv.<span style="color: #DD4747">delete</span>(fileCrawlingConfig); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param fileCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final FileCrawlingConfig fileCrawlingConfig) { - doDelete(fileCrawlingConfig, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * fileCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setVersionNo(value);</span> - * fileCrawlingConfigBhv.<span style="color: #DD4747">deleteNonstrict</span>(fileCrawlingConfig); - * </pre> - * @param fileCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final FileCrawlingConfig fileCrawlingConfig) { - doDeleteNonstrict(fileCrawlingConfig, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * fileCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setVersionNo(value);</span> - * fileCrawlingConfigBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(fileCrawlingConfig); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param fileCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted( - final FileCrawlingConfig fileCrawlingConfig) { - doDeleteNonstrictIgnoreDeleted(fileCrawlingConfig, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final FileCrawlingConfig et, - final DeleteOption<FileCrawlingConfigCB> op) { - assertObjectNotNull("fileCrawlingConfig", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * fileCrawlingConfig.setFooName("foo"); - * if (...) { - * fileCrawlingConfig.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * fileCrawlingConfigList.add(fileCrawlingConfig); - * } - * fileCrawlingConfigBhv.<span style="color: #DD4747">batchInsert</span>(fileCrawlingConfigList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param fileCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert( - final List<FileCrawlingConfig> fileCrawlingConfigList) { - return doBatchInsert(fileCrawlingConfigList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * fileCrawlingConfig.setFooName("foo"); - * if (...) { - * fileCrawlingConfig.setFooPrice(123); - * } else { - * fileCrawlingConfig.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * fileCrawlingConfigList.add(fileCrawlingConfig); - * } - * fileCrawlingConfigBhv.<span style="color: #DD4747">batchUpdate</span>(fileCrawlingConfigList); - * </pre> - * @param fileCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate( - final List<FileCrawlingConfig> fileCrawlingConfigList) { - return doBatchUpdate(fileCrawlingConfigList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * fileCrawlingConfigBhv.<span style="color: #DD4747">batchUpdate</span>(fileCrawlingConfigList, new SpecifyQuery<FileCrawlingConfigCB>() { - * public void specify(FileCrawlingConfigCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * fileCrawlingConfigBhv.<span style="color: #DD4747">batchUpdate</span>(fileCrawlingConfigList, new SpecifyQuery<FileCrawlingConfigCB>() { - * public void specify(FileCrawlingConfigCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param fileCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final SpecifyQuery<FileCrawlingConfigCB> updateColumnSpec) { - return doBatchUpdate(fileCrawlingConfigList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * fileCrawlingConfig.setFooName("foo"); - * if (...) { - * fileCrawlingConfig.setFooPrice(123); - * } else { - * fileCrawlingConfig.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * fileCrawlingConfigList.add(fileCrawlingConfig); - * } - * fileCrawlingConfigBhv.<span style="color: #DD4747">batchUpdate</span>(fileCrawlingConfigList); - * </pre> - * @param fileCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<FileCrawlingConfig> fileCrawlingConfigList) { - return doBatchUpdateNonstrict(fileCrawlingConfigList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * fileCrawlingConfigBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(fileCrawlingConfigList, new SpecifyQuery<FileCrawlingConfigCB>() { - * public void specify(FileCrawlingConfigCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * fileCrawlingConfigBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(fileCrawlingConfigList, new SpecifyQuery<FileCrawlingConfigCB>() { - * public void specify(FileCrawlingConfigCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param fileCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final SpecifyQuery<FileCrawlingConfigCB> updateColumnSpec) { - return doBatchUpdateNonstrict(fileCrawlingConfigList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param fileCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete( - final List<FileCrawlingConfig> fileCrawlingConfigList) { - return doBatchDelete(fileCrawlingConfigList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param fileCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict( - final List<FileCrawlingConfig> fileCrawlingConfigList) { - return doBatchDeleteNonstrict(fileCrawlingConfigList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * fileCrawlingConfigBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<FileCrawlingConfig, FileCrawlingConfigCB>() { - * public ConditionBean setup(FileCrawlingConfig entity, FileCrawlingConfigCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<FileCrawlingConfig, FileCrawlingConfigCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setPK...(value);</span> - * fileCrawlingConfig.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setVersionNo(value);</span> - * FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - * cb.query().setFoo...(value); - * fileCrawlingConfigBhv.<span style="color: #DD4747">queryUpdate</span>(fileCrawlingConfig, cb); - * </pre> - * @param fileCrawlingConfig The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of FileCrawlingConfig. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final FileCrawlingConfig fileCrawlingConfig, - final FileCrawlingConfigCB cb) { - return doQueryUpdate(fileCrawlingConfig, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - * cb.query().setFoo...(value); - * fileCrawlingConfigBhv.<span style="color: #DD4747">queryDelete</span>(fileCrawlingConfig, cb); - * </pre> - * @param cb The condition-bean of FileCrawlingConfig. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final FileCrawlingConfigCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * fileCrawlingConfig.setFoo...(value); - * fileCrawlingConfig.setBar...(value); - * InsertOption<FileCrawlingConfigCB> option = new InsertOption<FileCrawlingConfigCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * fileCrawlingConfigBhv.<span style="color: #DD4747">varyingInsert</span>(fileCrawlingConfig, option); - * ... = fileCrawlingConfig.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param fileCrawlingConfig The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final FileCrawlingConfig fileCrawlingConfig, - final InsertOption<FileCrawlingConfigCB> option) { - assertInsertOptionNotNull(option); - doInsert(fileCrawlingConfig, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * fileCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * fileCrawlingConfig.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * fileCrawlingConfig.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<FileCrawlingConfigCB> option = new UpdateOption<FileCrawlingConfigCB>(); - * option.self(new SpecifyQuery<FileCrawlingConfigCB>() { - * public void specify(FileCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * fileCrawlingConfigBhv.<span style="color: #DD4747">varyingUpdate</span>(fileCrawlingConfig, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param fileCrawlingConfig The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final FileCrawlingConfig fileCrawlingConfig, - final UpdateOption<FileCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(fileCrawlingConfig, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * fileCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * fileCrawlingConfig.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setVersionNo(value);</span> - * UpdateOption<FileCrawlingConfigCB> option = new UpdateOption<FileCrawlingConfigCB>(); - * option.self(new SpecifyQuery<FileCrawlingConfigCB>() { - * public void specify(FileCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * fileCrawlingConfigBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(fileCrawlingConfig, option); - * </pre> - * @param fileCrawlingConfig The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict( - final FileCrawlingConfig fileCrawlingConfig, - final UpdateOption<FileCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(fileCrawlingConfig, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param fileCrawlingConfig The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final FileCrawlingConfig fileCrawlingConfig, - final InsertOption<FileCrawlingConfigCB> insertOption, - final UpdateOption<FileCrawlingConfigCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(fileCrawlingConfig, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param fileCrawlingConfig The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict( - final FileCrawlingConfig fileCrawlingConfig, - final InsertOption<FileCrawlingConfigCB> insertOption, - final UpdateOption<FileCrawlingConfigCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(fileCrawlingConfig, insertOption, - updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param fileCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final FileCrawlingConfig fileCrawlingConfig, - final DeleteOption<FileCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - doDelete(fileCrawlingConfig, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param fileCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict( - final FileCrawlingConfig fileCrawlingConfig, - final DeleteOption<FileCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(fileCrawlingConfig, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param fileCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final InsertOption<FileCrawlingConfigCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(fileCrawlingConfigList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param fileCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final UpdateOption<FileCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(fileCrawlingConfigList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param fileCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final UpdateOption<FileCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(fileCrawlingConfigList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param fileCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final DeleteOption<FileCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(fileCrawlingConfigList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param fileCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<FileCrawlingConfig> fileCrawlingConfigList, - final DeleteOption<FileCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(fileCrawlingConfigList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<FileCrawlingConfig, FileCrawlingConfigCB> setupper, - final InsertOption<FileCrawlingConfigCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * FileCrawlingConfig fileCrawlingConfig = new FileCrawlingConfig(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setPK...(value);</span> - * fileCrawlingConfig.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//fileCrawlingConfig.setVersionNo(value);</span> - * FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - * cb.query().setFoo...(value); - * UpdateOption<FileCrawlingConfigCB> option = new UpdateOption<FileCrawlingConfigCB>(); - * option.self(new SpecifyQuery<FileCrawlingConfigCB>() { - * public void specify(FileCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * fileCrawlingConfigBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(fileCrawlingConfig, cb, option); - * </pre> - * @param fileCrawlingConfig The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of FileCrawlingConfig. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final FileCrawlingConfig fileCrawlingConfig, - final FileCrawlingConfigCB cb, - final UpdateOption<FileCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(fileCrawlingConfig, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of FileCrawlingConfig. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final FileCrawlingConfigCB cb, - final DeleteOption<FileCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<FileCrawlingConfigBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends FileCrawlingConfig> typeOfSelectedEntity() { - return FileCrawlingConfig.class; - } - - @Override - protected Class<FileCrawlingConfig> typeOfHandlingEntity() { - return FileCrawlingConfig.class; - } - - @Override - protected Class<FileCrawlingConfigCB> typeOfHandlingConditionBean() { - return FileCrawlingConfigCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsJobLogBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsJobLogBhv.java deleted file mode 100644 index efe1dc966..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsJobLogBhv.java +++ /dev/null @@ -1,980 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfJobLog; -import jp.sf.fess.db.bsentity.dbmeta.JobLogDbm; -import jp.sf.fess.db.cbean.JobLogCB; -import jp.sf.fess.db.exbhv.JobLogBhv; -import jp.sf.fess.db.exentity.JobLog; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of JOB_LOG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, JOB_NAME, JOB_STATUS, TARGET, SCRIPT_TYPE, SCRIPT_DATA, SCRIPT_RESULT, START_TIME, END_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsJobLogBhv extends - AbstractBehaviorWritable<JobLog, JobLogCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public JobLogDbm getDBMeta() { - return JobLogDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public JobLogDbm getMyDBMeta() { - return JobLogDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public JobLogCB newConditionBean() { - return new JobLogCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public JobLog newMyEntity() { - return new JobLog(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public JobLogCB newMyConditionBean() { - return new JobLogCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * JobLogCB cb = new JobLogCB(); - * cb.query().setFoo...(value); - * int count = jobLogBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of JobLog. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final JobLogCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * JobLogCB cb = new JobLogCB(); - * cb.query().setFoo...(value); - * JobLog jobLog = jobLogBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (jobLog != null) { <span style="color: #3F7E5E">// null check</span> - * ... = jobLog.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of JobLog. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public JobLog selectEntity(final JobLogCB cb) { - return facadeSelectEntity(cb); - } - - protected JobLog facadeSelectEntity(final JobLogCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends JobLog> OptionalEntity<ENTITY> doSelectOptionalEntity( - final JobLogCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * JobLogCB cb = new JobLogCB(); - * cb.query().setFoo...(value); - * JobLog jobLog = jobLogBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = jobLog.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of JobLog. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public JobLog selectEntityWithDeletedCheck(final JobLogCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public JobLog selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected JobLog facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends JobLog> ENTITY doSelectByPK(final Long id, - final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends JobLog> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public JobLog selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends JobLog> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected JobLogCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * JobLogCB cb = new JobLogCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<JobLog> jobLogList = jobLogBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (JobLog jobLog : jobLogList) { - * ... = jobLog.get...(); - * } - * </pre> - * @param cb The condition-bean of JobLog. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<JobLog> selectList(final JobLogCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * JobLogCB cb = new JobLogCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<JobLog> page = jobLogBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (JobLog jobLog : page) { - * ... = jobLog.get...(); - * } - * </pre> - * @param cb The condition-bean of JobLog. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<JobLog> selectPage(final JobLogCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * JobLogCB cb = new JobLogCB(); - * cb.query().setFoo...(value); - * jobLogBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<JobLog>() { - * public void handle(JobLog entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of JobLog. (NotNull) - * @param entityRowHandler The handler of entity row of JobLog. (NotNull) - */ - public void selectCursor(final JobLogCB cb, - final EntityRowHandler<JobLog> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * jobLogBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(JobLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<JobLogCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param jobLogList The entity list of jobLog. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<JobLog> jobLogList, - final ReferrerLoaderHandler<LoaderOfJobLog> handler) { - xassLRArg(jobLogList, handler); - handler.handle(new LoaderOfJobLog() - .ready(jobLogList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param jobLog The entity of jobLog. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final JobLog jobLog, - final ReferrerLoaderHandler<LoaderOfJobLog> handler) { - xassLRArg(jobLog, handler); - handler.handle(new LoaderOfJobLog().ready(xnewLRAryLs(jobLog), - _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param jobLogList The list of jobLog. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList(final List<JobLog> jobLogList) { - return helpExtractListInternally(jobLogList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * JobLog jobLog = new JobLog(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * jobLog.setFoo...(value); - * jobLog.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//jobLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//jobLog.set...;</span> - * jobLogBhv.<span style="color: #DD4747">insert</span>(jobLog); - * ... = jobLog.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param jobLog The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final JobLog jobLog) { - doInsert(jobLog, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * JobLog jobLog = new JobLog(); - * jobLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * jobLog.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//jobLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//jobLog.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * jobLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * jobLogBhv.<span style="color: #DD4747">update</span>(jobLog); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param jobLog The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final JobLog jobLog) { - doUpdate(jobLog, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param jobLog The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final JobLog jobLog) { - doInsertOrUpdate(jobLog, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * JobLog jobLog = new JobLog(); - * jobLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * jobLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * jobLogBhv.<span style="color: #DD4747">delete</span>(jobLog); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param jobLog The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final JobLog jobLog) { - doDelete(jobLog, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * JobLog jobLog = new JobLog(); - * jobLog.setFooName("foo"); - * if (...) { - * jobLog.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * jobLogList.add(jobLog); - * } - * jobLogBhv.<span style="color: #DD4747">batchInsert</span>(jobLogList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param jobLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<JobLog> jobLogList) { - return doBatchInsert(jobLogList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * JobLog jobLog = new JobLog(); - * jobLog.setFooName("foo"); - * if (...) { - * jobLog.setFooPrice(123); - * } else { - * jobLog.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//jobLog.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * jobLogList.add(jobLog); - * } - * jobLogBhv.<span style="color: #DD4747">batchUpdate</span>(jobLogList); - * </pre> - * @param jobLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<JobLog> jobLogList) { - return doBatchUpdate(jobLogList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * jobLogBhv.<span style="color: #DD4747">batchUpdate</span>(jobLogList, new SpecifyQuery<JobLogCB>() { - * public void specify(JobLogCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * jobLogBhv.<span style="color: #DD4747">batchUpdate</span>(jobLogList, new SpecifyQuery<JobLogCB>() { - * public void specify(JobLogCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param jobLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<JobLog> jobLogList, - final SpecifyQuery<JobLogCB> updateColumnSpec) { - return doBatchUpdate(jobLogList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param jobLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete(final List<JobLog> jobLogList) { - return doBatchDelete(jobLogList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * jobLogBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<JobLog, JobLogCB>() { - * public ConditionBean setup(JobLog entity, JobLogCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert(final QueryInsertSetupper<JobLog, JobLogCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * JobLog jobLog = new JobLog(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//jobLog.setPK...(value);</span> - * jobLog.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//jobLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//jobLog.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//jobLog.setVersionNo(value);</span> - * JobLogCB cb = new JobLogCB(); - * cb.query().setFoo...(value); - * jobLogBhv.<span style="color: #DD4747">queryUpdate</span>(jobLog, cb); - * </pre> - * @param jobLog The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of JobLog. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final JobLog jobLog, final JobLogCB cb) { - return doQueryUpdate(jobLog, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * JobLogCB cb = new JobLogCB(); - * cb.query().setFoo...(value); - * jobLogBhv.<span style="color: #DD4747">queryDelete</span>(jobLog, cb); - * </pre> - * @param cb The condition-bean of JobLog. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final JobLogCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * JobLog jobLog = new JobLog(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * jobLog.setFoo...(value); - * jobLog.setBar...(value); - * InsertOption<JobLogCB> option = new InsertOption<JobLogCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * jobLogBhv.<span style="color: #DD4747">varyingInsert</span>(jobLog, option); - * ... = jobLog.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param jobLog The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final JobLog jobLog, - final InsertOption<JobLogCB> option) { - assertInsertOptionNotNull(option); - doInsert(jobLog, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * JobLog jobLog = new JobLog(); - * jobLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * jobLog.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * jobLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<JobLogCB> option = new UpdateOption<JobLogCB>(); - * option.self(new SpecifyQuery<JobLogCB>() { - * public void specify(JobLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * jobLogBhv.<span style="color: #DD4747">varyingUpdate</span>(jobLog, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param jobLog The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final JobLog jobLog, - final UpdateOption<JobLogCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(jobLog, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param jobLog The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final JobLog jobLog, - final InsertOption<JobLogCB> insertOption, - final UpdateOption<JobLogCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(jobLog, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param jobLog The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final JobLog jobLog, - final DeleteOption<JobLogCB> option) { - assertDeleteOptionNotNull(option); - doDelete(jobLog, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param jobLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert(final List<JobLog> jobLogList, - final InsertOption<JobLogCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(jobLogList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param jobLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate(final List<JobLog> jobLogList, - final UpdateOption<JobLogCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(jobLogList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param jobLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete(final List<JobLog> jobLogList, - final DeleteOption<JobLogCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(jobLogList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<JobLog, JobLogCB> setupper, - final InsertOption<JobLogCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * JobLog jobLog = new JobLog(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//jobLog.setPK...(value);</span> - * jobLog.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//jobLog.setVersionNo(value);</span> - * JobLogCB cb = new JobLogCB(); - * cb.query().setFoo...(value); - * UpdateOption<JobLogCB> option = new UpdateOption<JobLogCB>(); - * option.self(new SpecifyQuery<JobLogCB>() { - * public void specify(JobLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * jobLogBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(jobLog, cb, option); - * </pre> - * @param jobLog The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of JobLog. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final JobLog jobLog, final JobLogCB cb, - final UpdateOption<JobLogCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(jobLog, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of JobLog. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final JobLogCB cb, - final DeleteOption<JobLogCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<JobLogBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends JobLog> typeOfSelectedEntity() { - return JobLog.class; - } - - @Override - protected Class<JobLog> typeOfHandlingEntity() { - return JobLog.class; - } - - @Override - protected Class<JobLogCB> typeOfHandlingConditionBean() { - return JobLogCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsKeyMatchBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsKeyMatchBhv.java deleted file mode 100644 index 6f3303347..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsKeyMatchBhv.java +++ /dev/null @@ -1,1236 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfKeyMatch; -import jp.sf.fess.db.bsentity.dbmeta.KeyMatchDbm; -import jp.sf.fess.db.cbean.KeyMatchCB; -import jp.sf.fess.db.exbhv.KeyMatchBhv; -import jp.sf.fess.db.exentity.KeyMatch; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of KEY_MATCH as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, TERM, QUERY, MAX_SIZE, BOOST, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsKeyMatchBhv extends - AbstractBehaviorWritable<KeyMatch, KeyMatchCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public KeyMatchDbm getDBMeta() { - return KeyMatchDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public KeyMatchDbm getMyDBMeta() { - return KeyMatchDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public KeyMatchCB newConditionBean() { - return new KeyMatchCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public KeyMatch newMyEntity() { - return new KeyMatch(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public KeyMatchCB newMyConditionBean() { - return new KeyMatchCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * KeyMatchCB cb = new KeyMatchCB(); - * cb.query().setFoo...(value); - * int count = keyMatchBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of KeyMatch. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final KeyMatchCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * KeyMatchCB cb = new KeyMatchCB(); - * cb.query().setFoo...(value); - * KeyMatch keyMatch = keyMatchBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (keyMatch != null) { <span style="color: #3F7E5E">// null check</span> - * ... = keyMatch.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of KeyMatch. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public KeyMatch selectEntity(final KeyMatchCB cb) { - return facadeSelectEntity(cb); - } - - protected KeyMatch facadeSelectEntity(final KeyMatchCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends KeyMatch> OptionalEntity<ENTITY> doSelectOptionalEntity( - final KeyMatchCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * KeyMatchCB cb = new KeyMatchCB(); - * cb.query().setFoo...(value); - * KeyMatch keyMatch = keyMatchBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = keyMatch.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of KeyMatch. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public KeyMatch selectEntityWithDeletedCheck(final KeyMatchCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public KeyMatch selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected KeyMatch facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends KeyMatch> ENTITY doSelectByPK(final Long id, - final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends KeyMatch> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public KeyMatch selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends KeyMatch> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected KeyMatchCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * KeyMatchCB cb = new KeyMatchCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<KeyMatch> keyMatchList = keyMatchBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (KeyMatch keyMatch : keyMatchList) { - * ... = keyMatch.get...(); - * } - * </pre> - * @param cb The condition-bean of KeyMatch. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<KeyMatch> selectList(final KeyMatchCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * KeyMatchCB cb = new KeyMatchCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<KeyMatch> page = keyMatchBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (KeyMatch keyMatch : page) { - * ... = keyMatch.get...(); - * } - * </pre> - * @param cb The condition-bean of KeyMatch. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<KeyMatch> selectPage(final KeyMatchCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * KeyMatchCB cb = new KeyMatchCB(); - * cb.query().setFoo...(value); - * keyMatchBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<KeyMatch>() { - * public void handle(KeyMatch entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of KeyMatch. (NotNull) - * @param entityRowHandler The handler of entity row of KeyMatch. (NotNull) - */ - public void selectCursor(final KeyMatchCB cb, - final EntityRowHandler<KeyMatch> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * keyMatchBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(KeyMatchCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<KeyMatchCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param keyMatchList The entity list of keyMatch. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<KeyMatch> keyMatchList, - final ReferrerLoaderHandler<LoaderOfKeyMatch> handler) { - xassLRArg(keyMatchList, handler); - handler.handle(new LoaderOfKeyMatch().ready(keyMatchList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param keyMatch The entity of keyMatch. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final KeyMatch keyMatch, - final ReferrerLoaderHandler<LoaderOfKeyMatch> handler) { - xassLRArg(keyMatch, handler); - handler.handle(new LoaderOfKeyMatch().ready(xnewLRAryLs(keyMatch), - _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param keyMatchList The list of keyMatch. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList(final List<KeyMatch> keyMatchList) { - return helpExtractListInternally(keyMatchList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * KeyMatch keyMatch = new KeyMatch(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * keyMatch.setFoo...(value); - * keyMatch.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//keyMatch.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//keyMatch.set...;</span> - * keyMatchBhv.<span style="color: #DD4747">insert</span>(keyMatch); - * ... = keyMatch.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param keyMatch The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final KeyMatch keyMatch) { - doInsert(keyMatch, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * KeyMatch keyMatch = new KeyMatch(); - * keyMatch.setPK...(value); <span style="color: #3F7E5E">// required</span> - * keyMatch.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//keyMatch.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//keyMatch.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * keyMatch.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * keyMatchBhv.<span style="color: #DD4747">update</span>(keyMatch); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param keyMatch The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final KeyMatch keyMatch) { - doUpdate(keyMatch, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * KeyMatch keyMatch = new KeyMatch(); - * keyMatch.setPK...(value); <span style="color: #3F7E5E">// required</span> - * keyMatch.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//keyMatch.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//keyMatch.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//keyMatch.setVersionNo(value);</span> - * keyMatchBhv.<span style="color: #DD4747">updateNonstrict</span>(keyMatch); - * </pre> - * @param keyMatch The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final KeyMatch keyMatch) { - doUpdateNonstrict(keyMatch, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param keyMatch The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final KeyMatch keyMatch) { - doInsertOrUpdate(keyMatch, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param keyMatch The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict(final KeyMatch keyMatch) { - doInsertOrUpdateNonstrict(keyMatch, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * KeyMatch keyMatch = new KeyMatch(); - * keyMatch.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * keyMatch.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * keyMatchBhv.<span style="color: #DD4747">delete</span>(keyMatch); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param keyMatch The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final KeyMatch keyMatch) { - doDelete(keyMatch, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * KeyMatch keyMatch = new KeyMatch(); - * keyMatch.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//keyMatch.setVersionNo(value);</span> - * keyMatchBhv.<span style="color: #DD4747">deleteNonstrict</span>(keyMatch); - * </pre> - * @param keyMatch The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final KeyMatch keyMatch) { - doDeleteNonstrict(keyMatch, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * KeyMatch keyMatch = new KeyMatch(); - * keyMatch.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//keyMatch.setVersionNo(value);</span> - * keyMatchBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(keyMatch); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param keyMatch The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted(final KeyMatch keyMatch) { - doDeleteNonstrictIgnoreDeleted(keyMatch, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final KeyMatch et, - final DeleteOption<KeyMatchCB> op) { - assertObjectNotNull("keyMatch", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * KeyMatch keyMatch = new KeyMatch(); - * keyMatch.setFooName("foo"); - * if (...) { - * keyMatch.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * keyMatchList.add(keyMatch); - * } - * keyMatchBhv.<span style="color: #DD4747">batchInsert</span>(keyMatchList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param keyMatchList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<KeyMatch> keyMatchList) { - return doBatchInsert(keyMatchList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * KeyMatch keyMatch = new KeyMatch(); - * keyMatch.setFooName("foo"); - * if (...) { - * keyMatch.setFooPrice(123); - * } else { - * keyMatch.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//keyMatch.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * keyMatchList.add(keyMatch); - * } - * keyMatchBhv.<span style="color: #DD4747">batchUpdate</span>(keyMatchList); - * </pre> - * @param keyMatchList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<KeyMatch> keyMatchList) { - return doBatchUpdate(keyMatchList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * keyMatchBhv.<span style="color: #DD4747">batchUpdate</span>(keyMatchList, new SpecifyQuery<KeyMatchCB>() { - * public void specify(KeyMatchCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * keyMatchBhv.<span style="color: #DD4747">batchUpdate</span>(keyMatchList, new SpecifyQuery<KeyMatchCB>() { - * public void specify(KeyMatchCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param keyMatchList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<KeyMatch> keyMatchList, - final SpecifyQuery<KeyMatchCB> updateColumnSpec) { - return doBatchUpdate(keyMatchList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * KeyMatch keyMatch = new KeyMatch(); - * keyMatch.setFooName("foo"); - * if (...) { - * keyMatch.setFooPrice(123); - * } else { - * keyMatch.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//keyMatch.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * keyMatchList.add(keyMatch); - * } - * keyMatchBhv.<span style="color: #DD4747">batchUpdate</span>(keyMatchList); - * </pre> - * @param keyMatchList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict(final List<KeyMatch> keyMatchList) { - return doBatchUpdateNonstrict(keyMatchList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * keyMatchBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(keyMatchList, new SpecifyQuery<KeyMatchCB>() { - * public void specify(KeyMatchCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * keyMatchBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(keyMatchList, new SpecifyQuery<KeyMatchCB>() { - * public void specify(KeyMatchCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param keyMatchList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict(final List<KeyMatch> keyMatchList, - final SpecifyQuery<KeyMatchCB> updateColumnSpec) { - return doBatchUpdateNonstrict(keyMatchList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param keyMatchList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete(final List<KeyMatch> keyMatchList) { - return doBatchDelete(keyMatchList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param keyMatchList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict(final List<KeyMatch> keyMatchList) { - return doBatchDeleteNonstrict(keyMatchList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * keyMatchBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<KeyMatch, KeyMatchCB>() { - * public ConditionBean setup(KeyMatch entity, KeyMatchCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<KeyMatch, KeyMatchCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * KeyMatch keyMatch = new KeyMatch(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//keyMatch.setPK...(value);</span> - * keyMatch.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//keyMatch.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//keyMatch.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//keyMatch.setVersionNo(value);</span> - * KeyMatchCB cb = new KeyMatchCB(); - * cb.query().setFoo...(value); - * keyMatchBhv.<span style="color: #DD4747">queryUpdate</span>(keyMatch, cb); - * </pre> - * @param keyMatch The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of KeyMatch. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final KeyMatch keyMatch, final KeyMatchCB cb) { - return doQueryUpdate(keyMatch, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * KeyMatchCB cb = new KeyMatchCB(); - * cb.query().setFoo...(value); - * keyMatchBhv.<span style="color: #DD4747">queryDelete</span>(keyMatch, cb); - * </pre> - * @param cb The condition-bean of KeyMatch. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final KeyMatchCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * KeyMatch keyMatch = new KeyMatch(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * keyMatch.setFoo...(value); - * keyMatch.setBar...(value); - * InsertOption<KeyMatchCB> option = new InsertOption<KeyMatchCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * keyMatchBhv.<span style="color: #DD4747">varyingInsert</span>(keyMatch, option); - * ... = keyMatch.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param keyMatch The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final KeyMatch keyMatch, - final InsertOption<KeyMatchCB> option) { - assertInsertOptionNotNull(option); - doInsert(keyMatch, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * KeyMatch keyMatch = new KeyMatch(); - * keyMatch.setPK...(value); <span style="color: #3F7E5E">// required</span> - * keyMatch.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * keyMatch.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<KeyMatchCB> option = new UpdateOption<KeyMatchCB>(); - * option.self(new SpecifyQuery<KeyMatchCB>() { - * public void specify(KeyMatchCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * keyMatchBhv.<span style="color: #DD4747">varyingUpdate</span>(keyMatch, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param keyMatch The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final KeyMatch keyMatch, - final UpdateOption<KeyMatchCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(keyMatch, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * KeyMatch keyMatch = new KeyMatch(); - * keyMatch.setPK...(value); <span style="color: #3F7E5E">// required</span> - * keyMatch.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//keyMatch.setVersionNo(value);</span> - * UpdateOption<KeyMatchCB> option = new UpdateOption<KeyMatchCB>(); - * option.self(new SpecifyQuery<KeyMatchCB>() { - * public void specify(KeyMatchCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * keyMatchBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(keyMatch, option); - * </pre> - * @param keyMatch The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict(final KeyMatch keyMatch, - final UpdateOption<KeyMatchCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(keyMatch, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param keyMatch The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final KeyMatch keyMatch, - final InsertOption<KeyMatchCB> insertOption, - final UpdateOption<KeyMatchCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(keyMatch, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param keyMatch The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict(final KeyMatch keyMatch, - final InsertOption<KeyMatchCB> insertOption, - final UpdateOption<KeyMatchCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(keyMatch, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param keyMatch The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final KeyMatch keyMatch, - final DeleteOption<KeyMatchCB> option) { - assertDeleteOptionNotNull(option); - doDelete(keyMatch, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param keyMatch The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict(final KeyMatch keyMatch, - final DeleteOption<KeyMatchCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(keyMatch, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param keyMatchList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert(final List<KeyMatch> keyMatchList, - final InsertOption<KeyMatchCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(keyMatchList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param keyMatchList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate(final List<KeyMatch> keyMatchList, - final UpdateOption<KeyMatchCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(keyMatchList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param keyMatchList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict(final List<KeyMatch> keyMatchList, - final UpdateOption<KeyMatchCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(keyMatchList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param keyMatchList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete(final List<KeyMatch> keyMatchList, - final DeleteOption<KeyMatchCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(keyMatchList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param keyMatchList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict(final List<KeyMatch> keyMatchList, - final DeleteOption<KeyMatchCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(keyMatchList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<KeyMatch, KeyMatchCB> setupper, - final InsertOption<KeyMatchCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * KeyMatch keyMatch = new KeyMatch(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//keyMatch.setPK...(value);</span> - * keyMatch.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//keyMatch.setVersionNo(value);</span> - * KeyMatchCB cb = new KeyMatchCB(); - * cb.query().setFoo...(value); - * UpdateOption<KeyMatchCB> option = new UpdateOption<KeyMatchCB>(); - * option.self(new SpecifyQuery<KeyMatchCB>() { - * public void specify(KeyMatchCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * keyMatchBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(keyMatch, cb, option); - * </pre> - * @param keyMatch The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of KeyMatch. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final KeyMatch keyMatch, final KeyMatchCB cb, - final UpdateOption<KeyMatchCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(keyMatch, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of KeyMatch. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final KeyMatchCB cb, - final DeleteOption<KeyMatchCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<KeyMatchBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends KeyMatch> typeOfSelectedEntity() { - return KeyMatch.class; - } - - @Override - protected Class<KeyMatch> typeOfHandlingEntity() { - return KeyMatch.class; - } - - @Override - protected Class<KeyMatchCB> typeOfHandlingConditionBean() { - return KeyMatchCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsLabelTypeBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsLabelTypeBhv.java deleted file mode 100644 index d0b0e26e0..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsLabelTypeBhv.java +++ /dev/null @@ -1,1701 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfLabelType; -import jp.sf.fess.db.bsentity.dbmeta.LabelTypeDbm; -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.exbhv.LabelTypeBhv; -import jp.sf.fess.db.exentity.DataConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.FileConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping; -import jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.LoadReferrerOption; -import org.seasar.dbflute.bhv.NestedReferrerListGateway; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of LABEL_TYPE as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, VALUE, INCLUDED_PATHS, EXCLUDED_PATHS, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING, FILE_CONFIG_TO_LABEL_TYPE_MAPPING, LABEL_TYPE_TO_ROLE_TYPE_MAPPING, WEB_CONFIG_TO_LABEL_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * dataConfigToLabelTypeMappingList, fileConfigToLabelTypeMappingList, labelTypeToRoleTypeMappingList, webConfigToLabelTypeMappingList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsLabelTypeBhv extends - AbstractBehaviorWritable<LabelType, LabelTypeCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public LabelTypeDbm getDBMeta() { - return LabelTypeDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public LabelTypeDbm getMyDBMeta() { - return LabelTypeDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public LabelTypeCB newConditionBean() { - return new LabelTypeCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public LabelType newMyEntity() { - return new LabelType(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public LabelTypeCB newMyConditionBean() { - return new LabelTypeCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * LabelTypeCB cb = new LabelTypeCB(); - * cb.query().setFoo...(value); - * int count = labelTypeBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of LabelType. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final LabelTypeCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * LabelTypeCB cb = new LabelTypeCB(); - * cb.query().setFoo...(value); - * LabelType labelType = labelTypeBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (labelType != null) { <span style="color: #3F7E5E">// null check</span> - * ... = labelType.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of LabelType. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public LabelType selectEntity(final LabelTypeCB cb) { - return facadeSelectEntity(cb); - } - - protected LabelType facadeSelectEntity(final LabelTypeCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends LabelType> OptionalEntity<ENTITY> doSelectOptionalEntity( - final LabelTypeCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * LabelTypeCB cb = new LabelTypeCB(); - * cb.query().setFoo...(value); - * LabelType labelType = labelTypeBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = labelType.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of LabelType. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public LabelType selectEntityWithDeletedCheck(final LabelTypeCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public LabelType selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected LabelType facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends LabelType> ENTITY doSelectByPK(final Long id, - final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends LabelType> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public LabelType selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends LabelType> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected LabelTypeCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * LabelTypeCB cb = new LabelTypeCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<LabelType> labelTypeList = labelTypeBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (LabelType labelType : labelTypeList) { - * ... = labelType.get...(); - * } - * </pre> - * @param cb The condition-bean of LabelType. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<LabelType> selectList(final LabelTypeCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * LabelTypeCB cb = new LabelTypeCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<LabelType> page = labelTypeBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (LabelType labelType : page) { - * ... = labelType.get...(); - * } - * </pre> - * @param cb The condition-bean of LabelType. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<LabelType> selectPage(final LabelTypeCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * LabelTypeCB cb = new LabelTypeCB(); - * cb.query().setFoo...(value); - * labelTypeBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<LabelType>() { - * public void handle(LabelType entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of LabelType. (NotNull) - * @param entityRowHandler The handler of entity row of LabelType. (NotNull) - */ - public void selectCursor(final LabelTypeCB cb, - final EntityRowHandler<LabelType> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * labelTypeBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(LabelTypeCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<LabelTypeCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param labelTypeList The entity list of labelType. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<LabelType> labelTypeList, - final ReferrerLoaderHandler<LoaderOfLabelType> handler) { - xassLRArg(labelTypeList, handler); - handler.handle(new LoaderOfLabelType().ready(labelTypeList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param labelType The entity of labelType. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final LabelType labelType, - final ReferrerLoaderHandler<LoaderOfLabelType> handler) { - xassLRArg(labelType, handler); - handler.handle(new LoaderOfLabelType().ready(xnewLRAryLs(labelType), - _behaviorSelector)); - } - - /** - * Load referrer of dataConfigToLabelTypeMappingList by the set-upper of referrer. <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'dataConfigToLabelTypeMappingList'. - * <pre> - * labelTypeBhv.<span style="color: #DD4747">loadDataConfigToLabelTypeMappingList</span>(labelTypeList, new ConditionBeanSetupper<DataConfigToLabelTypeMappingCB>() { - * public void setup(DataConfigToLabelTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (LabelType labelType : labelTypeList) { - * ... = labelType.<span style="color: #DD4747">getDataConfigToLabelTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setLabelTypeId_InScope(pkList); - * cb.query().addOrderBy_LabelTypeId_Asc(); - * </pre> - * @param labelTypeList The entity list of labelType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<DataConfigToLabelTypeMapping> loadDataConfigToLabelTypeMappingList( - final List<LabelType> labelTypeList, - final ConditionBeanSetupper<DataConfigToLabelTypeMappingCB> setupper) { - xassLRArg(labelTypeList, setupper); - return doLoadDataConfigToLabelTypeMappingList( - labelTypeList, - new LoadReferrerOption<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of dataConfigToLabelTypeMappingList by the set-upper of referrer. <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'dataConfigToLabelTypeMappingList'. - * <pre> - * labelTypeBhv.<span style="color: #DD4747">loadDataConfigToLabelTypeMappingList</span>(labelTypeList, new ConditionBeanSetupper<DataConfigToLabelTypeMappingCB>() { - * public void setup(DataConfigToLabelTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = labelType.<span style="color: #DD4747">getDataConfigToLabelTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setLabelTypeId_InScope(pkList); - * cb.query().addOrderBy_LabelTypeId_Asc(); - * </pre> - * @param labelType The entity of labelType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<DataConfigToLabelTypeMapping> loadDataConfigToLabelTypeMappingList( - final LabelType labelType, - final ConditionBeanSetupper<DataConfigToLabelTypeMappingCB> setupper) { - xassLRArg(labelType, setupper); - return doLoadDataConfigToLabelTypeMappingList( - xnewLRLs(labelType), - new LoadReferrerOption<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param labelType The entity of labelType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<DataConfigToLabelTypeMapping> loadDataConfigToLabelTypeMappingList( - final LabelType labelType, - final LoadReferrerOption<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMapping> loadReferrerOption) { - xassLRArg(labelType, loadReferrerOption); - return loadDataConfigToLabelTypeMappingList(xnewLRLs(labelType), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param labelTypeList The entity list of labelType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<DataConfigToLabelTypeMapping> loadDataConfigToLabelTypeMappingList( - final List<LabelType> labelTypeList, - final LoadReferrerOption<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMapping> loadReferrerOption) { - xassLRArg(labelTypeList, loadReferrerOption); - if (labelTypeList.isEmpty()) { - return (NestedReferrerListGateway<DataConfigToLabelTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadDataConfigToLabelTypeMappingList(labelTypeList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<DataConfigToLabelTypeMapping> doLoadDataConfigToLabelTypeMappingList( - final List<LabelType> labelTypeList, - final LoadReferrerOption<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMapping> option) { - return helpLoadReferrerInternally(labelTypeList, option, - "dataConfigToLabelTypeMappingList"); - } - - /** - * Load referrer of fileConfigToLabelTypeMappingList by the set-upper of referrer. <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'fileConfigToLabelTypeMappingList'. - * <pre> - * labelTypeBhv.<span style="color: #DD4747">loadFileConfigToLabelTypeMappingList</span>(labelTypeList, new ConditionBeanSetupper<FileConfigToLabelTypeMappingCB>() { - * public void setup(FileConfigToLabelTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (LabelType labelType : labelTypeList) { - * ... = labelType.<span style="color: #DD4747">getFileConfigToLabelTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setLabelTypeId_InScope(pkList); - * cb.query().addOrderBy_LabelTypeId_Asc(); - * </pre> - * @param labelTypeList The entity list of labelType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileConfigToLabelTypeMapping> loadFileConfigToLabelTypeMappingList( - final List<LabelType> labelTypeList, - final ConditionBeanSetupper<FileConfigToLabelTypeMappingCB> setupper) { - xassLRArg(labelTypeList, setupper); - return doLoadFileConfigToLabelTypeMappingList( - labelTypeList, - new LoadReferrerOption<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of fileConfigToLabelTypeMappingList by the set-upper of referrer. <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'fileConfigToLabelTypeMappingList'. - * <pre> - * labelTypeBhv.<span style="color: #DD4747">loadFileConfigToLabelTypeMappingList</span>(labelTypeList, new ConditionBeanSetupper<FileConfigToLabelTypeMappingCB>() { - * public void setup(FileConfigToLabelTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = labelType.<span style="color: #DD4747">getFileConfigToLabelTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setLabelTypeId_InScope(pkList); - * cb.query().addOrderBy_LabelTypeId_Asc(); - * </pre> - * @param labelType The entity of labelType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileConfigToLabelTypeMapping> loadFileConfigToLabelTypeMappingList( - final LabelType labelType, - final ConditionBeanSetupper<FileConfigToLabelTypeMappingCB> setupper) { - xassLRArg(labelType, setupper); - return doLoadFileConfigToLabelTypeMappingList( - xnewLRLs(labelType), - new LoadReferrerOption<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param labelType The entity of labelType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileConfigToLabelTypeMapping> loadFileConfigToLabelTypeMappingList( - final LabelType labelType, - final LoadReferrerOption<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMapping> loadReferrerOption) { - xassLRArg(labelType, loadReferrerOption); - return loadFileConfigToLabelTypeMappingList(xnewLRLs(labelType), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param labelTypeList The entity list of labelType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<FileConfigToLabelTypeMapping> loadFileConfigToLabelTypeMappingList( - final List<LabelType> labelTypeList, - final LoadReferrerOption<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMapping> loadReferrerOption) { - xassLRArg(labelTypeList, loadReferrerOption); - if (labelTypeList.isEmpty()) { - return (NestedReferrerListGateway<FileConfigToLabelTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadFileConfigToLabelTypeMappingList(labelTypeList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<FileConfigToLabelTypeMapping> doLoadFileConfigToLabelTypeMappingList( - final List<LabelType> labelTypeList, - final LoadReferrerOption<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMapping> option) { - return helpLoadReferrerInternally(labelTypeList, option, - "fileConfigToLabelTypeMappingList"); - } - - /** - * Load referrer of labelTypeToRoleTypeMappingList by the set-upper of referrer. <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by LABEL_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. - * <pre> - * labelTypeBhv.<span style="color: #DD4747">loadLabelTypeToRoleTypeMappingList</span>(labelTypeList, new ConditionBeanSetupper<LabelTypeToRoleTypeMappingCB>() { - * public void setup(LabelTypeToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (LabelType labelType : labelTypeList) { - * ... = labelType.<span style="color: #DD4747">getLabelTypeToRoleTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setLabelTypeId_InScope(pkList); - * cb.query().addOrderBy_LabelTypeId_Asc(); - * </pre> - * @param labelTypeList The entity list of labelType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<LabelTypeToRoleTypeMapping> loadLabelTypeToRoleTypeMappingList( - final List<LabelType> labelTypeList, - final ConditionBeanSetupper<LabelTypeToRoleTypeMappingCB> setupper) { - xassLRArg(labelTypeList, setupper); - return doLoadLabelTypeToRoleTypeMappingList( - labelTypeList, - new LoadReferrerOption<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of labelTypeToRoleTypeMappingList by the set-upper of referrer. <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by LABEL_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. - * <pre> - * labelTypeBhv.<span style="color: #DD4747">loadLabelTypeToRoleTypeMappingList</span>(labelTypeList, new ConditionBeanSetupper<LabelTypeToRoleTypeMappingCB>() { - * public void setup(LabelTypeToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = labelType.<span style="color: #DD4747">getLabelTypeToRoleTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setLabelTypeId_InScope(pkList); - * cb.query().addOrderBy_LabelTypeId_Asc(); - * </pre> - * @param labelType The entity of labelType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<LabelTypeToRoleTypeMapping> loadLabelTypeToRoleTypeMappingList( - final LabelType labelType, - final ConditionBeanSetupper<LabelTypeToRoleTypeMappingCB> setupper) { - xassLRArg(labelType, setupper); - return doLoadLabelTypeToRoleTypeMappingList( - xnewLRLs(labelType), - new LoadReferrerOption<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param labelType The entity of labelType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<LabelTypeToRoleTypeMapping> loadLabelTypeToRoleTypeMappingList( - final LabelType labelType, - final LoadReferrerOption<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMapping> loadReferrerOption) { - xassLRArg(labelType, loadReferrerOption); - return loadLabelTypeToRoleTypeMappingList(xnewLRLs(labelType), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param labelTypeList The entity list of labelType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<LabelTypeToRoleTypeMapping> loadLabelTypeToRoleTypeMappingList( - final List<LabelType> labelTypeList, - final LoadReferrerOption<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMapping> loadReferrerOption) { - xassLRArg(labelTypeList, loadReferrerOption); - if (labelTypeList.isEmpty()) { - return (NestedReferrerListGateway<LabelTypeToRoleTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadLabelTypeToRoleTypeMappingList(labelTypeList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<LabelTypeToRoleTypeMapping> doLoadLabelTypeToRoleTypeMappingList( - final List<LabelType> labelTypeList, - final LoadReferrerOption<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMapping> option) { - return helpLoadReferrerInternally(labelTypeList, option, - "labelTypeToRoleTypeMappingList"); - } - - /** - * Load referrer of webConfigToLabelTypeMappingList by the set-upper of referrer. <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'webConfigToLabelTypeMappingList'. - * <pre> - * labelTypeBhv.<span style="color: #DD4747">loadWebConfigToLabelTypeMappingList</span>(labelTypeList, new ConditionBeanSetupper<WebConfigToLabelTypeMappingCB>() { - * public void setup(WebConfigToLabelTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (LabelType labelType : labelTypeList) { - * ... = labelType.<span style="color: #DD4747">getWebConfigToLabelTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setLabelTypeId_InScope(pkList); - * cb.query().addOrderBy_LabelTypeId_Asc(); - * </pre> - * @param labelTypeList The entity list of labelType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebConfigToLabelTypeMapping> loadWebConfigToLabelTypeMappingList( - final List<LabelType> labelTypeList, - final ConditionBeanSetupper<WebConfigToLabelTypeMappingCB> setupper) { - xassLRArg(labelTypeList, setupper); - return doLoadWebConfigToLabelTypeMappingList( - labelTypeList, - new LoadReferrerOption<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of webConfigToLabelTypeMappingList by the set-upper of referrer. <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'webConfigToLabelTypeMappingList'. - * <pre> - * labelTypeBhv.<span style="color: #DD4747">loadWebConfigToLabelTypeMappingList</span>(labelTypeList, new ConditionBeanSetupper<WebConfigToLabelTypeMappingCB>() { - * public void setup(WebConfigToLabelTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = labelType.<span style="color: #DD4747">getWebConfigToLabelTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setLabelTypeId_InScope(pkList); - * cb.query().addOrderBy_LabelTypeId_Asc(); - * </pre> - * @param labelType The entity of labelType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebConfigToLabelTypeMapping> loadWebConfigToLabelTypeMappingList( - final LabelType labelType, - final ConditionBeanSetupper<WebConfigToLabelTypeMappingCB> setupper) { - xassLRArg(labelType, setupper); - return doLoadWebConfigToLabelTypeMappingList( - xnewLRLs(labelType), - new LoadReferrerOption<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param labelType The entity of labelType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebConfigToLabelTypeMapping> loadWebConfigToLabelTypeMappingList( - final LabelType labelType, - final LoadReferrerOption<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMapping> loadReferrerOption) { - xassLRArg(labelType, loadReferrerOption); - return loadWebConfigToLabelTypeMappingList(xnewLRLs(labelType), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param labelTypeList The entity list of labelType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<WebConfigToLabelTypeMapping> loadWebConfigToLabelTypeMappingList( - final List<LabelType> labelTypeList, - final LoadReferrerOption<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMapping> loadReferrerOption) { - xassLRArg(labelTypeList, loadReferrerOption); - if (labelTypeList.isEmpty()) { - return (NestedReferrerListGateway<WebConfigToLabelTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadWebConfigToLabelTypeMappingList(labelTypeList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<WebConfigToLabelTypeMapping> doLoadWebConfigToLabelTypeMappingList( - final List<LabelType> labelTypeList, - final LoadReferrerOption<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMapping> option) { - return helpLoadReferrerInternally(labelTypeList, option, - "webConfigToLabelTypeMappingList"); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param labelTypeList The list of labelType. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList(final List<LabelType> labelTypeList) { - return helpExtractListInternally(labelTypeList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * LabelType labelType = new LabelType(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * labelType.setFoo...(value); - * labelType.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//labelType.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//labelType.set...;</span> - * labelTypeBhv.<span style="color: #DD4747">insert</span>(labelType); - * ... = labelType.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param labelType The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final LabelType labelType) { - doInsert(labelType, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * LabelType labelType = new LabelType(); - * labelType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * labelType.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//labelType.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//labelType.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * labelType.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * labelTypeBhv.<span style="color: #DD4747">update</span>(labelType); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param labelType The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final LabelType labelType) { - doUpdate(labelType, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * LabelType labelType = new LabelType(); - * labelType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * labelType.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//labelType.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//labelType.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//labelType.setVersionNo(value);</span> - * labelTypeBhv.<span style="color: #DD4747">updateNonstrict</span>(labelType); - * </pre> - * @param labelType The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final LabelType labelType) { - doUpdateNonstrict(labelType, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param labelType The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final LabelType labelType) { - doInsertOrUpdate(labelType, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param labelType The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict(final LabelType labelType) { - doInsertOrUpdateNonstrict(labelType, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * LabelType labelType = new LabelType(); - * labelType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * labelType.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * labelTypeBhv.<span style="color: #DD4747">delete</span>(labelType); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param labelType The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final LabelType labelType) { - doDelete(labelType, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * LabelType labelType = new LabelType(); - * labelType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//labelType.setVersionNo(value);</span> - * labelTypeBhv.<span style="color: #DD4747">deleteNonstrict</span>(labelType); - * </pre> - * @param labelType The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final LabelType labelType) { - doDeleteNonstrict(labelType, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * LabelType labelType = new LabelType(); - * labelType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//labelType.setVersionNo(value);</span> - * labelTypeBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(labelType); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param labelType The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted(final LabelType labelType) { - doDeleteNonstrictIgnoreDeleted(labelType, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final LabelType et, - final DeleteOption<LabelTypeCB> op) { - assertObjectNotNull("labelType", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * LabelType labelType = new LabelType(); - * labelType.setFooName("foo"); - * if (...) { - * labelType.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * labelTypeList.add(labelType); - * } - * labelTypeBhv.<span style="color: #DD4747">batchInsert</span>(labelTypeList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param labelTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<LabelType> labelTypeList) { - return doBatchInsert(labelTypeList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * LabelType labelType = new LabelType(); - * labelType.setFooName("foo"); - * if (...) { - * labelType.setFooPrice(123); - * } else { - * labelType.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//labelType.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * labelTypeList.add(labelType); - * } - * labelTypeBhv.<span style="color: #DD4747">batchUpdate</span>(labelTypeList); - * </pre> - * @param labelTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<LabelType> labelTypeList) { - return doBatchUpdate(labelTypeList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * labelTypeBhv.<span style="color: #DD4747">batchUpdate</span>(labelTypeList, new SpecifyQuery<LabelTypeCB>() { - * public void specify(LabelTypeCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * labelTypeBhv.<span style="color: #DD4747">batchUpdate</span>(labelTypeList, new SpecifyQuery<LabelTypeCB>() { - * public void specify(LabelTypeCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param labelTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<LabelType> labelTypeList, - final SpecifyQuery<LabelTypeCB> updateColumnSpec) { - return doBatchUpdate(labelTypeList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * LabelType labelType = new LabelType(); - * labelType.setFooName("foo"); - * if (...) { - * labelType.setFooPrice(123); - * } else { - * labelType.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//labelType.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * labelTypeList.add(labelType); - * } - * labelTypeBhv.<span style="color: #DD4747">batchUpdate</span>(labelTypeList); - * </pre> - * @param labelTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict(final List<LabelType> labelTypeList) { - return doBatchUpdateNonstrict(labelTypeList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * labelTypeBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(labelTypeList, new SpecifyQuery<LabelTypeCB>() { - * public void specify(LabelTypeCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * labelTypeBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(labelTypeList, new SpecifyQuery<LabelTypeCB>() { - * public void specify(LabelTypeCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param labelTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict(final List<LabelType> labelTypeList, - final SpecifyQuery<LabelTypeCB> updateColumnSpec) { - return doBatchUpdateNonstrict(labelTypeList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param labelTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete(final List<LabelType> labelTypeList) { - return doBatchDelete(labelTypeList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param labelTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict(final List<LabelType> labelTypeList) { - return doBatchDeleteNonstrict(labelTypeList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * labelTypeBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<LabelType, LabelTypeCB>() { - * public ConditionBean setup(LabelType entity, LabelTypeCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<LabelType, LabelTypeCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * LabelType labelType = new LabelType(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//labelType.setPK...(value);</span> - * labelType.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//labelType.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//labelType.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//labelType.setVersionNo(value);</span> - * LabelTypeCB cb = new LabelTypeCB(); - * cb.query().setFoo...(value); - * labelTypeBhv.<span style="color: #DD4747">queryUpdate</span>(labelType, cb); - * </pre> - * @param labelType The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of LabelType. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final LabelType labelType, final LabelTypeCB cb) { - return doQueryUpdate(labelType, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * LabelTypeCB cb = new LabelTypeCB(); - * cb.query().setFoo...(value); - * labelTypeBhv.<span style="color: #DD4747">queryDelete</span>(labelType, cb); - * </pre> - * @param cb The condition-bean of LabelType. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final LabelTypeCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * LabelType labelType = new LabelType(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * labelType.setFoo...(value); - * labelType.setBar...(value); - * InsertOption<LabelTypeCB> option = new InsertOption<LabelTypeCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * labelTypeBhv.<span style="color: #DD4747">varyingInsert</span>(labelType, option); - * ... = labelType.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param labelType The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final LabelType labelType, - final InsertOption<LabelTypeCB> option) { - assertInsertOptionNotNull(option); - doInsert(labelType, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * LabelType labelType = new LabelType(); - * labelType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * labelType.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * labelType.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<LabelTypeCB> option = new UpdateOption<LabelTypeCB>(); - * option.self(new SpecifyQuery<LabelTypeCB>() { - * public void specify(LabelTypeCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * labelTypeBhv.<span style="color: #DD4747">varyingUpdate</span>(labelType, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param labelType The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final LabelType labelType, - final UpdateOption<LabelTypeCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(labelType, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * LabelType labelType = new LabelType(); - * labelType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * labelType.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//labelType.setVersionNo(value);</span> - * UpdateOption<LabelTypeCB> option = new UpdateOption<LabelTypeCB>(); - * option.self(new SpecifyQuery<LabelTypeCB>() { - * public void specify(LabelTypeCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * labelTypeBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(labelType, option); - * </pre> - * @param labelType The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict(final LabelType labelType, - final UpdateOption<LabelTypeCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(labelType, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param labelType The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final LabelType labelType, - final InsertOption<LabelTypeCB> insertOption, - final UpdateOption<LabelTypeCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(labelType, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param labelType The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict(final LabelType labelType, - final InsertOption<LabelTypeCB> insertOption, - final UpdateOption<LabelTypeCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(labelType, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param labelType The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final LabelType labelType, - final DeleteOption<LabelTypeCB> option) { - assertDeleteOptionNotNull(option); - doDelete(labelType, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param labelType The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict(final LabelType labelType, - final DeleteOption<LabelTypeCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(labelType, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param labelTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert(final List<LabelType> labelTypeList, - final InsertOption<LabelTypeCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(labelTypeList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param labelTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate(final List<LabelType> labelTypeList, - final UpdateOption<LabelTypeCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(labelTypeList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param labelTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<LabelType> labelTypeList, - final UpdateOption<LabelTypeCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(labelTypeList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param labelTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete(final List<LabelType> labelTypeList, - final DeleteOption<LabelTypeCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(labelTypeList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param labelTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<LabelType> labelTypeList, - final DeleteOption<LabelTypeCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(labelTypeList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<LabelType, LabelTypeCB> setupper, - final InsertOption<LabelTypeCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * LabelType labelType = new LabelType(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//labelType.setPK...(value);</span> - * labelType.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//labelType.setVersionNo(value);</span> - * LabelTypeCB cb = new LabelTypeCB(); - * cb.query().setFoo...(value); - * UpdateOption<LabelTypeCB> option = new UpdateOption<LabelTypeCB>(); - * option.self(new SpecifyQuery<LabelTypeCB>() { - * public void specify(LabelTypeCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * labelTypeBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(labelType, cb, option); - * </pre> - * @param labelType The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of LabelType. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final LabelType labelType, - final LabelTypeCB cb, final UpdateOption<LabelTypeCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(labelType, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of LabelType. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final LabelTypeCB cb, - final DeleteOption<LabelTypeCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<LabelTypeBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends LabelType> typeOfSelectedEntity() { - return LabelType.class; - } - - @Override - protected Class<LabelType> typeOfHandlingEntity() { - return LabelType.class; - } - - @Override - protected Class<LabelTypeCB> typeOfHandlingConditionBean() { - return LabelTypeCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsLabelTypeToRoleTypeMappingBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsLabelTypeToRoleTypeMappingBhv.java deleted file mode 100644 index 1778a2cd3..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsLabelTypeToRoleTypeMappingBhv.java +++ /dev/null @@ -1,1034 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfLabelTypeToRoleTypeMapping; -import jp.sf.fess.db.bsentity.dbmeta.LabelTypeToRoleTypeMappingDbm; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.exbhv.LabelTypeToRoleTypeMappingBhv; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping; -import jp.sf.fess.db.exentity.RoleType; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of LABEL_TYPE_TO_ROLE_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, LABEL_TYPE_ID, ROLE_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * LABEL_TYPE, ROLE_TYPE - * - * [referrer table] - * - * - * [foreign property] - * labelType, roleType - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsLabelTypeToRoleTypeMappingBhv - extends - AbstractBehaviorWritable<LabelTypeToRoleTypeMapping, LabelTypeToRoleTypeMappingCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public LabelTypeToRoleTypeMappingDbm getDBMeta() { - return LabelTypeToRoleTypeMappingDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public LabelTypeToRoleTypeMappingDbm getMyDBMeta() { - return LabelTypeToRoleTypeMappingDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public LabelTypeToRoleTypeMappingCB newConditionBean() { - return new LabelTypeToRoleTypeMappingCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public LabelTypeToRoleTypeMapping newMyEntity() { - return new LabelTypeToRoleTypeMapping(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public LabelTypeToRoleTypeMappingCB newMyConditionBean() { - return new LabelTypeToRoleTypeMappingCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * int count = labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of LabelTypeToRoleTypeMapping. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final LabelTypeToRoleTypeMappingCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (labelTypeToRoleTypeMapping != null) { <span style="color: #3F7E5E">// null check</span> - * ... = labelTypeToRoleTypeMapping.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of LabelTypeToRoleTypeMapping. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public LabelTypeToRoleTypeMapping selectEntity( - final LabelTypeToRoleTypeMappingCB cb) { - return facadeSelectEntity(cb); - } - - protected LabelTypeToRoleTypeMapping facadeSelectEntity( - final LabelTypeToRoleTypeMappingCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends LabelTypeToRoleTypeMapping> OptionalEntity<ENTITY> doSelectOptionalEntity( - final LabelTypeToRoleTypeMappingCB cb, - final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = labelTypeToRoleTypeMapping.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of LabelTypeToRoleTypeMapping. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public LabelTypeToRoleTypeMapping selectEntityWithDeletedCheck( - final LabelTypeToRoleTypeMappingCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public LabelTypeToRoleTypeMapping selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected LabelTypeToRoleTypeMapping facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends LabelTypeToRoleTypeMapping> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends LabelTypeToRoleTypeMapping> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public LabelTypeToRoleTypeMapping selectByPKValueWithDeletedCheck( - final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends LabelTypeToRoleTypeMapping> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected LabelTypeToRoleTypeMappingCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList = labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping : labelTypeToRoleTypeMappingList) { - * ... = labelTypeToRoleTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of LabelTypeToRoleTypeMapping. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<LabelTypeToRoleTypeMapping> selectList( - final LabelTypeToRoleTypeMappingCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<LabelTypeToRoleTypeMapping> page = labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping : page) { - * ... = labelTypeToRoleTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of LabelTypeToRoleTypeMapping. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<LabelTypeToRoleTypeMapping> selectPage( - final LabelTypeToRoleTypeMappingCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<LabelTypeToRoleTypeMapping>() { - * public void handle(LabelTypeToRoleTypeMapping entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of LabelTypeToRoleTypeMapping. (NotNull) - * @param entityRowHandler The handler of entity row of LabelTypeToRoleTypeMapping. (NotNull) - */ - public void selectCursor(final LabelTypeToRoleTypeMappingCB cb, - final EntityRowHandler<LabelTypeToRoleTypeMapping> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(LabelTypeToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<LabelTypeToRoleTypeMappingCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param labelTypeToRoleTypeMappingList The entity list of labelTypeToRoleTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList, - final ReferrerLoaderHandler<LoaderOfLabelTypeToRoleTypeMapping> handler) { - xassLRArg(labelTypeToRoleTypeMappingList, handler); - handler.handle(new LoaderOfLabelTypeToRoleTypeMapping().ready( - labelTypeToRoleTypeMappingList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param labelTypeToRoleTypeMapping The entity of labelTypeToRoleTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping, - final ReferrerLoaderHandler<LoaderOfLabelTypeToRoleTypeMapping> handler) { - xassLRArg(labelTypeToRoleTypeMapping, handler); - handler.handle(new LoaderOfLabelTypeToRoleTypeMapping().ready( - xnewLRAryLs(labelTypeToRoleTypeMapping), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'LabelType'. - * @param labelTypeToRoleTypeMappingList The list of labelTypeToRoleTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<LabelType> pulloutLabelType( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList) { - return helpPulloutInternally(labelTypeToRoleTypeMappingList, - "labelType"); - } - - /** - * Pull out the list of foreign table 'RoleType'. - * @param labelTypeToRoleTypeMappingList The list of labelTypeToRoleTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<RoleType> pulloutRoleType( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList) { - return helpPulloutInternally(labelTypeToRoleTypeMappingList, "roleType"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param labelTypeToRoleTypeMappingList The list of labelTypeToRoleTypeMapping. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList) { - return helpExtractListInternally(labelTypeToRoleTypeMappingList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = new LabelTypeToRoleTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * labelTypeToRoleTypeMapping.setFoo...(value); - * labelTypeToRoleTypeMapping.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//labelTypeToRoleTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//labelTypeToRoleTypeMapping.set...;</span> - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">insert</span>(labelTypeToRoleTypeMapping); - * ... = labelTypeToRoleTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param labelTypeToRoleTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert( - final LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping) { - doInsert(labelTypeToRoleTypeMapping, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = new LabelTypeToRoleTypeMapping(); - * labelTypeToRoleTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * labelTypeToRoleTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//labelTypeToRoleTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//labelTypeToRoleTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * labelTypeToRoleTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">update</span>(labelTypeToRoleTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param labelTypeToRoleTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update( - final LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping) { - doUpdate(labelTypeToRoleTypeMapping, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param labelTypeToRoleTypeMapping The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate( - final LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping) { - doInsertOrUpdate(labelTypeToRoleTypeMapping, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = new LabelTypeToRoleTypeMapping(); - * labelTypeToRoleTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * labelTypeToRoleTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">delete</span>(labelTypeToRoleTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param labelTypeToRoleTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete( - final LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping) { - doDelete(labelTypeToRoleTypeMapping, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = new LabelTypeToRoleTypeMapping(); - * labelTypeToRoleTypeMapping.setFooName("foo"); - * if (...) { - * labelTypeToRoleTypeMapping.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * labelTypeToRoleTypeMappingList.add(labelTypeToRoleTypeMapping); - * } - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">batchInsert</span>(labelTypeToRoleTypeMappingList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param labelTypeToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList) { - return doBatchInsert(labelTypeToRoleTypeMappingList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = new LabelTypeToRoleTypeMapping(); - * labelTypeToRoleTypeMapping.setFooName("foo"); - * if (...) { - * labelTypeToRoleTypeMapping.setFooPrice(123); - * } else { - * labelTypeToRoleTypeMapping.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//labelTypeToRoleTypeMapping.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * labelTypeToRoleTypeMappingList.add(labelTypeToRoleTypeMapping); - * } - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(labelTypeToRoleTypeMappingList); - * </pre> - * @param labelTypeToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList) { - return doBatchUpdate(labelTypeToRoleTypeMappingList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(labelTypeToRoleTypeMappingList, new SpecifyQuery<LabelTypeToRoleTypeMappingCB>() { - * public void specify(LabelTypeToRoleTypeMappingCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(labelTypeToRoleTypeMappingList, new SpecifyQuery<LabelTypeToRoleTypeMappingCB>() { - * public void specify(LabelTypeToRoleTypeMappingCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param labelTypeToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList, - final SpecifyQuery<LabelTypeToRoleTypeMappingCB> updateColumnSpec) { - return doBatchUpdate(labelTypeToRoleTypeMappingList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param labelTypeToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList) { - return doBatchDelete(labelTypeToRoleTypeMappingList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<LabelTypeToRoleTypeMapping, LabelTypeToRoleTypeMappingCB>() { - * public ConditionBean setup(LabelTypeToRoleTypeMapping entity, LabelTypeToRoleTypeMappingCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<LabelTypeToRoleTypeMapping, LabelTypeToRoleTypeMappingCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = new LabelTypeToRoleTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//labelTypeToRoleTypeMapping.setPK...(value);</span> - * labelTypeToRoleTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//labelTypeToRoleTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//labelTypeToRoleTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//labelTypeToRoleTypeMapping.setVersionNo(value);</span> - * LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">queryUpdate</span>(labelTypeToRoleTypeMapping, cb); - * </pre> - * @param labelTypeToRoleTypeMapping The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of LabelTypeToRoleTypeMapping. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate( - final LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping, - final LabelTypeToRoleTypeMappingCB cb) { - return doQueryUpdate(labelTypeToRoleTypeMapping, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">queryDelete</span>(labelTypeToRoleTypeMapping, cb); - * </pre> - * @param cb The condition-bean of LabelTypeToRoleTypeMapping. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final LabelTypeToRoleTypeMappingCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = new LabelTypeToRoleTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * labelTypeToRoleTypeMapping.setFoo...(value); - * labelTypeToRoleTypeMapping.setBar...(value); - * InsertOption<LabelTypeToRoleTypeMappingCB> option = new InsertOption<LabelTypeToRoleTypeMappingCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">varyingInsert</span>(labelTypeToRoleTypeMapping, option); - * ... = labelTypeToRoleTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param labelTypeToRoleTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert( - final LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping, - final InsertOption<LabelTypeToRoleTypeMappingCB> option) { - assertInsertOptionNotNull(option); - doInsert(labelTypeToRoleTypeMapping, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = new LabelTypeToRoleTypeMapping(); - * labelTypeToRoleTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * labelTypeToRoleTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * labelTypeToRoleTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<LabelTypeToRoleTypeMappingCB> option = new UpdateOption<LabelTypeToRoleTypeMappingCB>(); - * option.self(new SpecifyQuery<LabelTypeToRoleTypeMappingCB>() { - * public void specify(LabelTypeToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">varyingUpdate</span>(labelTypeToRoleTypeMapping, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param labelTypeToRoleTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate( - final LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping, - final UpdateOption<LabelTypeToRoleTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(labelTypeToRoleTypeMapping, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param labelTypeToRoleTypeMapping The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping, - final InsertOption<LabelTypeToRoleTypeMappingCB> insertOption, - final UpdateOption<LabelTypeToRoleTypeMappingCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(labelTypeToRoleTypeMapping, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param labelTypeToRoleTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete( - final LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping, - final DeleteOption<LabelTypeToRoleTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - doDelete(labelTypeToRoleTypeMapping, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param labelTypeToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList, - final InsertOption<LabelTypeToRoleTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(labelTypeToRoleTypeMappingList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param labelTypeToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList, - final UpdateOption<LabelTypeToRoleTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(labelTypeToRoleTypeMappingList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param labelTypeToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList, - final DeleteOption<LabelTypeToRoleTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(labelTypeToRoleTypeMappingList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<LabelTypeToRoleTypeMapping, LabelTypeToRoleTypeMappingCB> setupper, - final InsertOption<LabelTypeToRoleTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = new LabelTypeToRoleTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//labelTypeToRoleTypeMapping.setPK...(value);</span> - * labelTypeToRoleTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//labelTypeToRoleTypeMapping.setVersionNo(value);</span> - * LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * UpdateOption<LabelTypeToRoleTypeMappingCB> option = new UpdateOption<LabelTypeToRoleTypeMappingCB>(); - * option.self(new SpecifyQuery<LabelTypeToRoleTypeMappingCB>() { - * public void specify(LabelTypeToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * labelTypeToRoleTypeMappingBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(labelTypeToRoleTypeMapping, cb, option); - * </pre> - * @param labelTypeToRoleTypeMapping The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of LabelTypeToRoleTypeMapping. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate( - final LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping, - final LabelTypeToRoleTypeMappingCB cb, - final UpdateOption<LabelTypeToRoleTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(labelTypeToRoleTypeMapping, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of LabelTypeToRoleTypeMapping. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final LabelTypeToRoleTypeMappingCB cb, - final DeleteOption<LabelTypeToRoleTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<LabelTypeToRoleTypeMappingBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends LabelTypeToRoleTypeMapping> typeOfSelectedEntity() { - return LabelTypeToRoleTypeMapping.class; - } - - @Override - protected Class<LabelTypeToRoleTypeMapping> typeOfHandlingEntity() { - return LabelTypeToRoleTypeMapping.class; - } - - @Override - protected Class<LabelTypeToRoleTypeMappingCB> typeOfHandlingConditionBean() { - return LabelTypeToRoleTypeMappingCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsOverlappingHostBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsOverlappingHostBhv.java deleted file mode 100644 index 57ee34508..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsOverlappingHostBhv.java +++ /dev/null @@ -1,1251 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfOverlappingHost; -import jp.sf.fess.db.bsentity.dbmeta.OverlappingHostDbm; -import jp.sf.fess.db.cbean.OverlappingHostCB; -import jp.sf.fess.db.exbhv.OverlappingHostBhv; -import jp.sf.fess.db.exentity.OverlappingHost; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of OVERLAPPING_HOST as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, REGULAR_NAME, OVERLAPPING_NAME, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsOverlappingHostBhv extends - AbstractBehaviorWritable<OverlappingHost, OverlappingHostCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public OverlappingHostDbm getDBMeta() { - return OverlappingHostDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public OverlappingHostDbm getMyDBMeta() { - return OverlappingHostDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public OverlappingHostCB newConditionBean() { - return new OverlappingHostCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public OverlappingHost newMyEntity() { - return new OverlappingHost(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public OverlappingHostCB newMyConditionBean() { - return new OverlappingHostCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * OverlappingHostCB cb = new OverlappingHostCB(); - * cb.query().setFoo...(value); - * int count = overlappingHostBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of OverlappingHost. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final OverlappingHostCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * OverlappingHostCB cb = new OverlappingHostCB(); - * cb.query().setFoo...(value); - * OverlappingHost overlappingHost = overlappingHostBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (overlappingHost != null) { <span style="color: #3F7E5E">// null check</span> - * ... = overlappingHost.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of OverlappingHost. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public OverlappingHost selectEntity(final OverlappingHostCB cb) { - return facadeSelectEntity(cb); - } - - protected OverlappingHost facadeSelectEntity(final OverlappingHostCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends OverlappingHost> OptionalEntity<ENTITY> doSelectOptionalEntity( - final OverlappingHostCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * OverlappingHostCB cb = new OverlappingHostCB(); - * cb.query().setFoo...(value); - * OverlappingHost overlappingHost = overlappingHostBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = overlappingHost.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of OverlappingHost. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public OverlappingHost selectEntityWithDeletedCheck( - final OverlappingHostCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public OverlappingHost selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected OverlappingHost facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends OverlappingHost> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends OverlappingHost> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public OverlappingHost selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends OverlappingHost> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected OverlappingHostCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * OverlappingHostCB cb = new OverlappingHostCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<OverlappingHost> overlappingHostList = overlappingHostBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (OverlappingHost overlappingHost : overlappingHostList) { - * ... = overlappingHost.get...(); - * } - * </pre> - * @param cb The condition-bean of OverlappingHost. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<OverlappingHost> selectList(final OverlappingHostCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * OverlappingHostCB cb = new OverlappingHostCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<OverlappingHost> page = overlappingHostBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (OverlappingHost overlappingHost : page) { - * ... = overlappingHost.get...(); - * } - * </pre> - * @param cb The condition-bean of OverlappingHost. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<OverlappingHost> selectPage( - final OverlappingHostCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * OverlappingHostCB cb = new OverlappingHostCB(); - * cb.query().setFoo...(value); - * overlappingHostBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<OverlappingHost>() { - * public void handle(OverlappingHost entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of OverlappingHost. (NotNull) - * @param entityRowHandler The handler of entity row of OverlappingHost. (NotNull) - */ - public void selectCursor(final OverlappingHostCB cb, - final EntityRowHandler<OverlappingHost> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * overlappingHostBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(OverlappingHostCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<OverlappingHostCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param overlappingHostList The entity list of overlappingHost. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<OverlappingHost> overlappingHostList, - final ReferrerLoaderHandler<LoaderOfOverlappingHost> handler) { - xassLRArg(overlappingHostList, handler); - handler.handle(new LoaderOfOverlappingHost().ready(overlappingHostList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param overlappingHost The entity of overlappingHost. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final OverlappingHost overlappingHost, - final ReferrerLoaderHandler<LoaderOfOverlappingHost> handler) { - xassLRArg(overlappingHost, handler); - handler.handle(new LoaderOfOverlappingHost().ready( - xnewLRAryLs(overlappingHost), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param overlappingHostList The list of overlappingHost. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<OverlappingHost> overlappingHostList) { - return helpExtractListInternally(overlappingHostList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * OverlappingHost overlappingHost = new OverlappingHost(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * overlappingHost.setFoo...(value); - * overlappingHost.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//overlappingHost.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//overlappingHost.set...;</span> - * overlappingHostBhv.<span style="color: #DD4747">insert</span>(overlappingHost); - * ... = overlappingHost.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param overlappingHost The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final OverlappingHost overlappingHost) { - doInsert(overlappingHost, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * OverlappingHost overlappingHost = new OverlappingHost(); - * overlappingHost.setPK...(value); <span style="color: #3F7E5E">// required</span> - * overlappingHost.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//overlappingHost.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//overlappingHost.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * overlappingHost.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * overlappingHostBhv.<span style="color: #DD4747">update</span>(overlappingHost); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param overlappingHost The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final OverlappingHost overlappingHost) { - doUpdate(overlappingHost, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * OverlappingHost overlappingHost = new OverlappingHost(); - * overlappingHost.setPK...(value); <span style="color: #3F7E5E">// required</span> - * overlappingHost.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//overlappingHost.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//overlappingHost.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//overlappingHost.setVersionNo(value);</span> - * overlappingHostBhv.<span style="color: #DD4747">updateNonstrict</span>(overlappingHost); - * </pre> - * @param overlappingHost The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final OverlappingHost overlappingHost) { - doUpdateNonstrict(overlappingHost, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param overlappingHost The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final OverlappingHost overlappingHost) { - doInsertOrUpdate(overlappingHost, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param overlappingHost The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict(final OverlappingHost overlappingHost) { - doInsertOrUpdateNonstrict(overlappingHost, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * OverlappingHost overlappingHost = new OverlappingHost(); - * overlappingHost.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * overlappingHost.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * overlappingHostBhv.<span style="color: #DD4747">delete</span>(overlappingHost); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param overlappingHost The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final OverlappingHost overlappingHost) { - doDelete(overlappingHost, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * OverlappingHost overlappingHost = new OverlappingHost(); - * overlappingHost.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//overlappingHost.setVersionNo(value);</span> - * overlappingHostBhv.<span style="color: #DD4747">deleteNonstrict</span>(overlappingHost); - * </pre> - * @param overlappingHost The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final OverlappingHost overlappingHost) { - doDeleteNonstrict(overlappingHost, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * OverlappingHost overlappingHost = new OverlappingHost(); - * overlappingHost.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//overlappingHost.setVersionNo(value);</span> - * overlappingHostBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(overlappingHost); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param overlappingHost The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted( - final OverlappingHost overlappingHost) { - doDeleteNonstrictIgnoreDeleted(overlappingHost, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final OverlappingHost et, - final DeleteOption<OverlappingHostCB> op) { - assertObjectNotNull("overlappingHost", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * OverlappingHost overlappingHost = new OverlappingHost(); - * overlappingHost.setFooName("foo"); - * if (...) { - * overlappingHost.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * overlappingHostList.add(overlappingHost); - * } - * overlappingHostBhv.<span style="color: #DD4747">batchInsert</span>(overlappingHostList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param overlappingHostList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<OverlappingHost> overlappingHostList) { - return doBatchInsert(overlappingHostList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * OverlappingHost overlappingHost = new OverlappingHost(); - * overlappingHost.setFooName("foo"); - * if (...) { - * overlappingHost.setFooPrice(123); - * } else { - * overlappingHost.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//overlappingHost.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * overlappingHostList.add(overlappingHost); - * } - * overlappingHostBhv.<span style="color: #DD4747">batchUpdate</span>(overlappingHostList); - * </pre> - * @param overlappingHostList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<OverlappingHost> overlappingHostList) { - return doBatchUpdate(overlappingHostList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * overlappingHostBhv.<span style="color: #DD4747">batchUpdate</span>(overlappingHostList, new SpecifyQuery<OverlappingHostCB>() { - * public void specify(OverlappingHostCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * overlappingHostBhv.<span style="color: #DD4747">batchUpdate</span>(overlappingHostList, new SpecifyQuery<OverlappingHostCB>() { - * public void specify(OverlappingHostCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param overlappingHostList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<OverlappingHost> overlappingHostList, - final SpecifyQuery<OverlappingHostCB> updateColumnSpec) { - return doBatchUpdate(overlappingHostList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * OverlappingHost overlappingHost = new OverlappingHost(); - * overlappingHost.setFooName("foo"); - * if (...) { - * overlappingHost.setFooPrice(123); - * } else { - * overlappingHost.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//overlappingHost.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * overlappingHostList.add(overlappingHost); - * } - * overlappingHostBhv.<span style="color: #DD4747">batchUpdate</span>(overlappingHostList); - * </pre> - * @param overlappingHostList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<OverlappingHost> overlappingHostList) { - return doBatchUpdateNonstrict(overlappingHostList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * overlappingHostBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(overlappingHostList, new SpecifyQuery<OverlappingHostCB>() { - * public void specify(OverlappingHostCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * overlappingHostBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(overlappingHostList, new SpecifyQuery<OverlappingHostCB>() { - * public void specify(OverlappingHostCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param overlappingHostList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<OverlappingHost> overlappingHostList, - final SpecifyQuery<OverlappingHostCB> updateColumnSpec) { - return doBatchUpdateNonstrict(overlappingHostList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param overlappingHostList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete(final List<OverlappingHost> overlappingHostList) { - return doBatchDelete(overlappingHostList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param overlappingHostList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict( - final List<OverlappingHost> overlappingHostList) { - return doBatchDeleteNonstrict(overlappingHostList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * overlappingHostBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<OverlappingHost, OverlappingHostCB>() { - * public ConditionBean setup(OverlappingHost entity, OverlappingHostCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<OverlappingHost, OverlappingHostCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * OverlappingHost overlappingHost = new OverlappingHost(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//overlappingHost.setPK...(value);</span> - * overlappingHost.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//overlappingHost.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//overlappingHost.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//overlappingHost.setVersionNo(value);</span> - * OverlappingHostCB cb = new OverlappingHostCB(); - * cb.query().setFoo...(value); - * overlappingHostBhv.<span style="color: #DD4747">queryUpdate</span>(overlappingHost, cb); - * </pre> - * @param overlappingHost The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of OverlappingHost. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final OverlappingHost overlappingHost, - final OverlappingHostCB cb) { - return doQueryUpdate(overlappingHost, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * OverlappingHostCB cb = new OverlappingHostCB(); - * cb.query().setFoo...(value); - * overlappingHostBhv.<span style="color: #DD4747">queryDelete</span>(overlappingHost, cb); - * </pre> - * @param cb The condition-bean of OverlappingHost. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final OverlappingHostCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * OverlappingHost overlappingHost = new OverlappingHost(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * overlappingHost.setFoo...(value); - * overlappingHost.setBar...(value); - * InsertOption<OverlappingHostCB> option = new InsertOption<OverlappingHostCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * overlappingHostBhv.<span style="color: #DD4747">varyingInsert</span>(overlappingHost, option); - * ... = overlappingHost.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param overlappingHost The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final OverlappingHost overlappingHost, - final InsertOption<OverlappingHostCB> option) { - assertInsertOptionNotNull(option); - doInsert(overlappingHost, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * OverlappingHost overlappingHost = new OverlappingHost(); - * overlappingHost.setPK...(value); <span style="color: #3F7E5E">// required</span> - * overlappingHost.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * overlappingHost.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<OverlappingHostCB> option = new UpdateOption<OverlappingHostCB>(); - * option.self(new SpecifyQuery<OverlappingHostCB>() { - * public void specify(OverlappingHostCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * overlappingHostBhv.<span style="color: #DD4747">varyingUpdate</span>(overlappingHost, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param overlappingHost The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final OverlappingHost overlappingHost, - final UpdateOption<OverlappingHostCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(overlappingHost, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * OverlappingHost overlappingHost = new OverlappingHost(); - * overlappingHost.setPK...(value); <span style="color: #3F7E5E">// required</span> - * overlappingHost.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//overlappingHost.setVersionNo(value);</span> - * UpdateOption<OverlappingHostCB> option = new UpdateOption<OverlappingHostCB>(); - * option.self(new SpecifyQuery<OverlappingHostCB>() { - * public void specify(OverlappingHostCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * overlappingHostBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(overlappingHost, option); - * </pre> - * @param overlappingHost The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict(final OverlappingHost overlappingHost, - final UpdateOption<OverlappingHostCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(overlappingHost, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param overlappingHost The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final OverlappingHost overlappingHost, - final InsertOption<OverlappingHostCB> insertOption, - final UpdateOption<OverlappingHostCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(overlappingHost, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param overlappingHost The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict( - final OverlappingHost overlappingHost, - final InsertOption<OverlappingHostCB> insertOption, - final UpdateOption<OverlappingHostCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(overlappingHost, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param overlappingHost The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final OverlappingHost overlappingHost, - final DeleteOption<OverlappingHostCB> option) { - assertDeleteOptionNotNull(option); - doDelete(overlappingHost, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param overlappingHost The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict(final OverlappingHost overlappingHost, - final DeleteOption<OverlappingHostCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(overlappingHost, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param overlappingHostList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<OverlappingHost> overlappingHostList, - final InsertOption<OverlappingHostCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(overlappingHostList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param overlappingHostList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<OverlappingHost> overlappingHostList, - final UpdateOption<OverlappingHostCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(overlappingHostList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param overlappingHostList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<OverlappingHost> overlappingHostList, - final UpdateOption<OverlappingHostCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(overlappingHostList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param overlappingHostList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<OverlappingHost> overlappingHostList, - final DeleteOption<OverlappingHostCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(overlappingHostList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param overlappingHostList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<OverlappingHost> overlappingHostList, - final DeleteOption<OverlappingHostCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(overlappingHostList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<OverlappingHost, OverlappingHostCB> setupper, - final InsertOption<OverlappingHostCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * OverlappingHost overlappingHost = new OverlappingHost(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//overlappingHost.setPK...(value);</span> - * overlappingHost.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//overlappingHost.setVersionNo(value);</span> - * OverlappingHostCB cb = new OverlappingHostCB(); - * cb.query().setFoo...(value); - * UpdateOption<OverlappingHostCB> option = new UpdateOption<OverlappingHostCB>(); - * option.self(new SpecifyQuery<OverlappingHostCB>() { - * public void specify(OverlappingHostCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * overlappingHostBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(overlappingHost, cb, option); - * </pre> - * @param overlappingHost The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of OverlappingHost. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final OverlappingHost overlappingHost, - final OverlappingHostCB cb, - final UpdateOption<OverlappingHostCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(overlappingHost, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of OverlappingHost. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final OverlappingHostCB cb, - final DeleteOption<OverlappingHostCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<OverlappingHostBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends OverlappingHost> typeOfSelectedEntity() { - return OverlappingHost.class; - } - - @Override - protected Class<OverlappingHost> typeOfHandlingEntity() { - return OverlappingHost.class; - } - - @Override - protected Class<OverlappingHostCB> typeOfHandlingConditionBean() { - return OverlappingHostCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsPathMappingBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsPathMappingBhv.java deleted file mode 100644 index 58797df33..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsPathMappingBhv.java +++ /dev/null @@ -1,1238 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfPathMapping; -import jp.sf.fess.db.bsentity.dbmeta.PathMappingDbm; -import jp.sf.fess.db.cbean.PathMappingCB; -import jp.sf.fess.db.exbhv.PathMappingBhv; -import jp.sf.fess.db.exentity.PathMapping; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of PATH_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, REGEX, REPLACEMENT, PROCESS_TYPE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsPathMappingBhv extends - AbstractBehaviorWritable<PathMapping, PathMappingCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public PathMappingDbm getDBMeta() { - return PathMappingDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public PathMappingDbm getMyDBMeta() { - return PathMappingDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public PathMappingCB newConditionBean() { - return new PathMappingCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public PathMapping newMyEntity() { - return new PathMapping(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public PathMappingCB newMyConditionBean() { - return new PathMappingCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * PathMappingCB cb = new PathMappingCB(); - * cb.query().setFoo...(value); - * int count = pathMappingBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of PathMapping. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final PathMappingCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * PathMappingCB cb = new PathMappingCB(); - * cb.query().setFoo...(value); - * PathMapping pathMapping = pathMappingBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (pathMapping != null) { <span style="color: #3F7E5E">// null check</span> - * ... = pathMapping.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of PathMapping. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public PathMapping selectEntity(final PathMappingCB cb) { - return facadeSelectEntity(cb); - } - - protected PathMapping facadeSelectEntity(final PathMappingCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends PathMapping> OptionalEntity<ENTITY> doSelectOptionalEntity( - final PathMappingCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * PathMappingCB cb = new PathMappingCB(); - * cb.query().setFoo...(value); - * PathMapping pathMapping = pathMappingBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = pathMapping.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of PathMapping. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public PathMapping selectEntityWithDeletedCheck(final PathMappingCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public PathMapping selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected PathMapping facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends PathMapping> ENTITY doSelectByPK(final Long id, - final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends PathMapping> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public PathMapping selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends PathMapping> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected PathMappingCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * PathMappingCB cb = new PathMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<PathMapping> pathMappingList = pathMappingBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (PathMapping pathMapping : pathMappingList) { - * ... = pathMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of PathMapping. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<PathMapping> selectList(final PathMappingCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * PathMappingCB cb = new PathMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<PathMapping> page = pathMappingBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (PathMapping pathMapping : page) { - * ... = pathMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of PathMapping. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<PathMapping> selectPage(final PathMappingCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * PathMappingCB cb = new PathMappingCB(); - * cb.query().setFoo...(value); - * pathMappingBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<PathMapping>() { - * public void handle(PathMapping entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of PathMapping. (NotNull) - * @param entityRowHandler The handler of entity row of PathMapping. (NotNull) - */ - public void selectCursor(final PathMappingCB cb, - final EntityRowHandler<PathMapping> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * pathMappingBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(PathMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<PathMappingCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param pathMappingList The entity list of pathMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<PathMapping> pathMappingList, - final ReferrerLoaderHandler<LoaderOfPathMapping> handler) { - xassLRArg(pathMappingList, handler); - handler.handle(new LoaderOfPathMapping().ready(pathMappingList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param pathMapping The entity of pathMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final PathMapping pathMapping, - final ReferrerLoaderHandler<LoaderOfPathMapping> handler) { - xassLRArg(pathMapping, handler); - handler.handle(new LoaderOfPathMapping().ready( - xnewLRAryLs(pathMapping), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param pathMappingList The list of pathMapping. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList(final List<PathMapping> pathMappingList) { - return helpExtractListInternally(pathMappingList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * PathMapping pathMapping = new PathMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * pathMapping.setFoo...(value); - * pathMapping.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//pathMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//pathMapping.set...;</span> - * pathMappingBhv.<span style="color: #DD4747">insert</span>(pathMapping); - * ... = pathMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param pathMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final PathMapping pathMapping) { - doInsert(pathMapping, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * PathMapping pathMapping = new PathMapping(); - * pathMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * pathMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//pathMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//pathMapping.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * pathMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * pathMappingBhv.<span style="color: #DD4747">update</span>(pathMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param pathMapping The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final PathMapping pathMapping) { - doUpdate(pathMapping, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * PathMapping pathMapping = new PathMapping(); - * pathMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * pathMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//pathMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//pathMapping.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//pathMapping.setVersionNo(value);</span> - * pathMappingBhv.<span style="color: #DD4747">updateNonstrict</span>(pathMapping); - * </pre> - * @param pathMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final PathMapping pathMapping) { - doUpdateNonstrict(pathMapping, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param pathMapping The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final PathMapping pathMapping) { - doInsertOrUpdate(pathMapping, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param pathMapping The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict(final PathMapping pathMapping) { - doInsertOrUpdateNonstrict(pathMapping, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * PathMapping pathMapping = new PathMapping(); - * pathMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * pathMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * pathMappingBhv.<span style="color: #DD4747">delete</span>(pathMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param pathMapping The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final PathMapping pathMapping) { - doDelete(pathMapping, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * PathMapping pathMapping = new PathMapping(); - * pathMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//pathMapping.setVersionNo(value);</span> - * pathMappingBhv.<span style="color: #DD4747">deleteNonstrict</span>(pathMapping); - * </pre> - * @param pathMapping The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final PathMapping pathMapping) { - doDeleteNonstrict(pathMapping, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * PathMapping pathMapping = new PathMapping(); - * pathMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//pathMapping.setVersionNo(value);</span> - * pathMappingBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(pathMapping); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param pathMapping The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted(final PathMapping pathMapping) { - doDeleteNonstrictIgnoreDeleted(pathMapping, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final PathMapping et, - final DeleteOption<PathMappingCB> op) { - assertObjectNotNull("pathMapping", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * PathMapping pathMapping = new PathMapping(); - * pathMapping.setFooName("foo"); - * if (...) { - * pathMapping.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * pathMappingList.add(pathMapping); - * } - * pathMappingBhv.<span style="color: #DD4747">batchInsert</span>(pathMappingList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param pathMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<PathMapping> pathMappingList) { - return doBatchInsert(pathMappingList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * PathMapping pathMapping = new PathMapping(); - * pathMapping.setFooName("foo"); - * if (...) { - * pathMapping.setFooPrice(123); - * } else { - * pathMapping.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//pathMapping.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * pathMappingList.add(pathMapping); - * } - * pathMappingBhv.<span style="color: #DD4747">batchUpdate</span>(pathMappingList); - * </pre> - * @param pathMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<PathMapping> pathMappingList) { - return doBatchUpdate(pathMappingList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * pathMappingBhv.<span style="color: #DD4747">batchUpdate</span>(pathMappingList, new SpecifyQuery<PathMappingCB>() { - * public void specify(PathMappingCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * pathMappingBhv.<span style="color: #DD4747">batchUpdate</span>(pathMappingList, new SpecifyQuery<PathMappingCB>() { - * public void specify(PathMappingCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param pathMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<PathMapping> pathMappingList, - final SpecifyQuery<PathMappingCB> updateColumnSpec) { - return doBatchUpdate(pathMappingList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * PathMapping pathMapping = new PathMapping(); - * pathMapping.setFooName("foo"); - * if (...) { - * pathMapping.setFooPrice(123); - * } else { - * pathMapping.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//pathMapping.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * pathMappingList.add(pathMapping); - * } - * pathMappingBhv.<span style="color: #DD4747">batchUpdate</span>(pathMappingList); - * </pre> - * @param pathMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict(final List<PathMapping> pathMappingList) { - return doBatchUpdateNonstrict(pathMappingList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * pathMappingBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(pathMappingList, new SpecifyQuery<PathMappingCB>() { - * public void specify(PathMappingCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * pathMappingBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(pathMappingList, new SpecifyQuery<PathMappingCB>() { - * public void specify(PathMappingCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param pathMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict(final List<PathMapping> pathMappingList, - final SpecifyQuery<PathMappingCB> updateColumnSpec) { - return doBatchUpdateNonstrict(pathMappingList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param pathMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete(final List<PathMapping> pathMappingList) { - return doBatchDelete(pathMappingList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param pathMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict(final List<PathMapping> pathMappingList) { - return doBatchDeleteNonstrict(pathMappingList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * pathMappingBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<PathMapping, PathMappingCB>() { - * public ConditionBean setup(PathMapping entity, PathMappingCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<PathMapping, PathMappingCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * PathMapping pathMapping = new PathMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//pathMapping.setPK...(value);</span> - * pathMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//pathMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//pathMapping.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//pathMapping.setVersionNo(value);</span> - * PathMappingCB cb = new PathMappingCB(); - * cb.query().setFoo...(value); - * pathMappingBhv.<span style="color: #DD4747">queryUpdate</span>(pathMapping, cb); - * </pre> - * @param pathMapping The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of PathMapping. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final PathMapping pathMapping, final PathMappingCB cb) { - return doQueryUpdate(pathMapping, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * PathMappingCB cb = new PathMappingCB(); - * cb.query().setFoo...(value); - * pathMappingBhv.<span style="color: #DD4747">queryDelete</span>(pathMapping, cb); - * </pre> - * @param cb The condition-bean of PathMapping. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final PathMappingCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * PathMapping pathMapping = new PathMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * pathMapping.setFoo...(value); - * pathMapping.setBar...(value); - * InsertOption<PathMappingCB> option = new InsertOption<PathMappingCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * pathMappingBhv.<span style="color: #DD4747">varyingInsert</span>(pathMapping, option); - * ... = pathMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param pathMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final PathMapping pathMapping, - final InsertOption<PathMappingCB> option) { - assertInsertOptionNotNull(option); - doInsert(pathMapping, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * PathMapping pathMapping = new PathMapping(); - * pathMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * pathMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * pathMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<PathMappingCB> option = new UpdateOption<PathMappingCB>(); - * option.self(new SpecifyQuery<PathMappingCB>() { - * public void specify(PathMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * pathMappingBhv.<span style="color: #DD4747">varyingUpdate</span>(pathMapping, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param pathMapping The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final PathMapping pathMapping, - final UpdateOption<PathMappingCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(pathMapping, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * PathMapping pathMapping = new PathMapping(); - * pathMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * pathMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//pathMapping.setVersionNo(value);</span> - * UpdateOption<PathMappingCB> option = new UpdateOption<PathMappingCB>(); - * option.self(new SpecifyQuery<PathMappingCB>() { - * public void specify(PathMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * pathMappingBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(pathMapping, option); - * </pre> - * @param pathMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict(final PathMapping pathMapping, - final UpdateOption<PathMappingCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(pathMapping, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param pathMapping The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final PathMapping pathMapping, - final InsertOption<PathMappingCB> insertOption, - final UpdateOption<PathMappingCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(pathMapping, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param pathMapping The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict(final PathMapping pathMapping, - final InsertOption<PathMappingCB> insertOption, - final UpdateOption<PathMappingCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(pathMapping, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param pathMapping The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final PathMapping pathMapping, - final DeleteOption<PathMappingCB> option) { - assertDeleteOptionNotNull(option); - doDelete(pathMapping, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param pathMapping The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict(final PathMapping pathMapping, - final DeleteOption<PathMappingCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(pathMapping, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param pathMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert(final List<PathMapping> pathMappingList, - final InsertOption<PathMappingCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(pathMappingList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param pathMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate(final List<PathMapping> pathMappingList, - final UpdateOption<PathMappingCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(pathMappingList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param pathMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<PathMapping> pathMappingList, - final UpdateOption<PathMappingCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(pathMappingList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param pathMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete(final List<PathMapping> pathMappingList, - final DeleteOption<PathMappingCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(pathMappingList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param pathMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<PathMapping> pathMappingList, - final DeleteOption<PathMappingCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(pathMappingList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<PathMapping, PathMappingCB> setupper, - final InsertOption<PathMappingCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * PathMapping pathMapping = new PathMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//pathMapping.setPK...(value);</span> - * pathMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//pathMapping.setVersionNo(value);</span> - * PathMappingCB cb = new PathMappingCB(); - * cb.query().setFoo...(value); - * UpdateOption<PathMappingCB> option = new UpdateOption<PathMappingCB>(); - * option.self(new SpecifyQuery<PathMappingCB>() { - * public void specify(PathMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * pathMappingBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(pathMapping, cb, option); - * </pre> - * @param pathMapping The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of PathMapping. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final PathMapping pathMapping, - final PathMappingCB cb, final UpdateOption<PathMappingCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(pathMapping, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of PathMapping. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final PathMappingCB cb, - final DeleteOption<PathMappingCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<PathMappingBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends PathMapping> typeOfSelectedEntity() { - return PathMapping.class; - } - - @Override - protected Class<PathMapping> typeOfHandlingEntity() { - return PathMapping.class; - } - - @Override - protected Class<PathMappingCB> typeOfHandlingConditionBean() { - return PathMappingCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsRequestHeaderBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsRequestHeaderBhv.java deleted file mode 100644 index 8d3efc1b3..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsRequestHeaderBhv.java +++ /dev/null @@ -1,1257 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfRequestHeader; -import jp.sf.fess.db.bsentity.dbmeta.RequestHeaderDbm; -import jp.sf.fess.db.cbean.RequestHeaderCB; -import jp.sf.fess.db.exbhv.RequestHeaderBhv; -import jp.sf.fess.db.exentity.RequestHeader; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of REQUEST_HEADER as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, VALUE, WEB_CRAWLING_CONFIG_ID, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * WEB_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * webCrawlingConfig - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsRequestHeaderBhv extends - AbstractBehaviorWritable<RequestHeader, RequestHeaderCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public RequestHeaderDbm getDBMeta() { - return RequestHeaderDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public RequestHeaderDbm getMyDBMeta() { - return RequestHeaderDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public RequestHeaderCB newConditionBean() { - return new RequestHeaderCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public RequestHeader newMyEntity() { - return new RequestHeader(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public RequestHeaderCB newMyConditionBean() { - return new RequestHeaderCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * RequestHeaderCB cb = new RequestHeaderCB(); - * cb.query().setFoo...(value); - * int count = requestHeaderBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of RequestHeader. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final RequestHeaderCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * RequestHeaderCB cb = new RequestHeaderCB(); - * cb.query().setFoo...(value); - * RequestHeader requestHeader = requestHeaderBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (requestHeader != null) { <span style="color: #3F7E5E">// null check</span> - * ... = requestHeader.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of RequestHeader. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public RequestHeader selectEntity(final RequestHeaderCB cb) { - return facadeSelectEntity(cb); - } - - protected RequestHeader facadeSelectEntity(final RequestHeaderCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends RequestHeader> OptionalEntity<ENTITY> doSelectOptionalEntity( - final RequestHeaderCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * RequestHeaderCB cb = new RequestHeaderCB(); - * cb.query().setFoo...(value); - * RequestHeader requestHeader = requestHeaderBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = requestHeader.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of RequestHeader. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public RequestHeader selectEntityWithDeletedCheck(final RequestHeaderCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public RequestHeader selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected RequestHeader facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends RequestHeader> ENTITY doSelectByPK(final Long id, - final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends RequestHeader> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public RequestHeader selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends RequestHeader> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected RequestHeaderCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * RequestHeaderCB cb = new RequestHeaderCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<RequestHeader> requestHeaderList = requestHeaderBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (RequestHeader requestHeader : requestHeaderList) { - * ... = requestHeader.get...(); - * } - * </pre> - * @param cb The condition-bean of RequestHeader. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<RequestHeader> selectList(final RequestHeaderCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * RequestHeaderCB cb = new RequestHeaderCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<RequestHeader> page = requestHeaderBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (RequestHeader requestHeader : page) { - * ... = requestHeader.get...(); - * } - * </pre> - * @param cb The condition-bean of RequestHeader. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<RequestHeader> selectPage(final RequestHeaderCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * RequestHeaderCB cb = new RequestHeaderCB(); - * cb.query().setFoo...(value); - * requestHeaderBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<RequestHeader>() { - * public void handle(RequestHeader entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of RequestHeader. (NotNull) - * @param entityRowHandler The handler of entity row of RequestHeader. (NotNull) - */ - public void selectCursor(final RequestHeaderCB cb, - final EntityRowHandler<RequestHeader> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * requestHeaderBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(RequestHeaderCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<RequestHeaderCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param requestHeaderList The entity list of requestHeader. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<RequestHeader> requestHeaderList, - final ReferrerLoaderHandler<LoaderOfRequestHeader> handler) { - xassLRArg(requestHeaderList, handler); - handler.handle(new LoaderOfRequestHeader().ready(requestHeaderList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param requestHeader The entity of requestHeader. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final RequestHeader requestHeader, - final ReferrerLoaderHandler<LoaderOfRequestHeader> handler) { - xassLRArg(requestHeader, handler); - handler.handle(new LoaderOfRequestHeader().ready( - xnewLRAryLs(requestHeader), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'WebCrawlingConfig'. - * @param requestHeaderList The list of requestHeader. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<WebCrawlingConfig> pulloutWebCrawlingConfig( - final List<RequestHeader> requestHeaderList) { - return helpPulloutInternally(requestHeaderList, "webCrawlingConfig"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param requestHeaderList The list of requestHeader. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList(final List<RequestHeader> requestHeaderList) { - return helpExtractListInternally(requestHeaderList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * RequestHeader requestHeader = new RequestHeader(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * requestHeader.setFoo...(value); - * requestHeader.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//requestHeader.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//requestHeader.set...;</span> - * requestHeaderBhv.<span style="color: #DD4747">insert</span>(requestHeader); - * ... = requestHeader.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param requestHeader The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final RequestHeader requestHeader) { - doInsert(requestHeader, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * RequestHeader requestHeader = new RequestHeader(); - * requestHeader.setPK...(value); <span style="color: #3F7E5E">// required</span> - * requestHeader.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//requestHeader.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//requestHeader.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * requestHeader.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * requestHeaderBhv.<span style="color: #DD4747">update</span>(requestHeader); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param requestHeader The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final RequestHeader requestHeader) { - doUpdate(requestHeader, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * RequestHeader requestHeader = new RequestHeader(); - * requestHeader.setPK...(value); <span style="color: #3F7E5E">// required</span> - * requestHeader.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//requestHeader.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//requestHeader.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//requestHeader.setVersionNo(value);</span> - * requestHeaderBhv.<span style="color: #DD4747">updateNonstrict</span>(requestHeader); - * </pre> - * @param requestHeader The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final RequestHeader requestHeader) { - doUpdateNonstrict(requestHeader, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param requestHeader The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final RequestHeader requestHeader) { - doInsertOrUpdate(requestHeader, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param requestHeader The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict(final RequestHeader requestHeader) { - doInsertOrUpdateNonstrict(requestHeader, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * RequestHeader requestHeader = new RequestHeader(); - * requestHeader.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * requestHeader.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * requestHeaderBhv.<span style="color: #DD4747">delete</span>(requestHeader); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param requestHeader The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final RequestHeader requestHeader) { - doDelete(requestHeader, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * RequestHeader requestHeader = new RequestHeader(); - * requestHeader.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//requestHeader.setVersionNo(value);</span> - * requestHeaderBhv.<span style="color: #DD4747">deleteNonstrict</span>(requestHeader); - * </pre> - * @param requestHeader The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final RequestHeader requestHeader) { - doDeleteNonstrict(requestHeader, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * RequestHeader requestHeader = new RequestHeader(); - * requestHeader.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//requestHeader.setVersionNo(value);</span> - * requestHeaderBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(requestHeader); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param requestHeader The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted(final RequestHeader requestHeader) { - doDeleteNonstrictIgnoreDeleted(requestHeader, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final RequestHeader et, - final DeleteOption<RequestHeaderCB> op) { - assertObjectNotNull("requestHeader", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * RequestHeader requestHeader = new RequestHeader(); - * requestHeader.setFooName("foo"); - * if (...) { - * requestHeader.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * requestHeaderList.add(requestHeader); - * } - * requestHeaderBhv.<span style="color: #DD4747">batchInsert</span>(requestHeaderList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param requestHeaderList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<RequestHeader> requestHeaderList) { - return doBatchInsert(requestHeaderList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * RequestHeader requestHeader = new RequestHeader(); - * requestHeader.setFooName("foo"); - * if (...) { - * requestHeader.setFooPrice(123); - * } else { - * requestHeader.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//requestHeader.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * requestHeaderList.add(requestHeader); - * } - * requestHeaderBhv.<span style="color: #DD4747">batchUpdate</span>(requestHeaderList); - * </pre> - * @param requestHeaderList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<RequestHeader> requestHeaderList) { - return doBatchUpdate(requestHeaderList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * requestHeaderBhv.<span style="color: #DD4747">batchUpdate</span>(requestHeaderList, new SpecifyQuery<RequestHeaderCB>() { - * public void specify(RequestHeaderCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * requestHeaderBhv.<span style="color: #DD4747">batchUpdate</span>(requestHeaderList, new SpecifyQuery<RequestHeaderCB>() { - * public void specify(RequestHeaderCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param requestHeaderList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<RequestHeader> requestHeaderList, - final SpecifyQuery<RequestHeaderCB> updateColumnSpec) { - return doBatchUpdate(requestHeaderList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * RequestHeader requestHeader = new RequestHeader(); - * requestHeader.setFooName("foo"); - * if (...) { - * requestHeader.setFooPrice(123); - * } else { - * requestHeader.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//requestHeader.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * requestHeaderList.add(requestHeader); - * } - * requestHeaderBhv.<span style="color: #DD4747">batchUpdate</span>(requestHeaderList); - * </pre> - * @param requestHeaderList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<RequestHeader> requestHeaderList) { - return doBatchUpdateNonstrict(requestHeaderList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * requestHeaderBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(requestHeaderList, new SpecifyQuery<RequestHeaderCB>() { - * public void specify(RequestHeaderCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * requestHeaderBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(requestHeaderList, new SpecifyQuery<RequestHeaderCB>() { - * public void specify(RequestHeaderCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param requestHeaderList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<RequestHeader> requestHeaderList, - final SpecifyQuery<RequestHeaderCB> updateColumnSpec) { - return doBatchUpdateNonstrict(requestHeaderList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param requestHeaderList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete(final List<RequestHeader> requestHeaderList) { - return doBatchDelete(requestHeaderList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param requestHeaderList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict( - final List<RequestHeader> requestHeaderList) { - return doBatchDeleteNonstrict(requestHeaderList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * requestHeaderBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<RequestHeader, RequestHeaderCB>() { - * public ConditionBean setup(RequestHeader entity, RequestHeaderCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<RequestHeader, RequestHeaderCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * RequestHeader requestHeader = new RequestHeader(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//requestHeader.setPK...(value);</span> - * requestHeader.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//requestHeader.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//requestHeader.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//requestHeader.setVersionNo(value);</span> - * RequestHeaderCB cb = new RequestHeaderCB(); - * cb.query().setFoo...(value); - * requestHeaderBhv.<span style="color: #DD4747">queryUpdate</span>(requestHeader, cb); - * </pre> - * @param requestHeader The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of RequestHeader. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final RequestHeader requestHeader, - final RequestHeaderCB cb) { - return doQueryUpdate(requestHeader, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * RequestHeaderCB cb = new RequestHeaderCB(); - * cb.query().setFoo...(value); - * requestHeaderBhv.<span style="color: #DD4747">queryDelete</span>(requestHeader, cb); - * </pre> - * @param cb The condition-bean of RequestHeader. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final RequestHeaderCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * RequestHeader requestHeader = new RequestHeader(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * requestHeader.setFoo...(value); - * requestHeader.setBar...(value); - * InsertOption<RequestHeaderCB> option = new InsertOption<RequestHeaderCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * requestHeaderBhv.<span style="color: #DD4747">varyingInsert</span>(requestHeader, option); - * ... = requestHeader.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param requestHeader The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final RequestHeader requestHeader, - final InsertOption<RequestHeaderCB> option) { - assertInsertOptionNotNull(option); - doInsert(requestHeader, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * RequestHeader requestHeader = new RequestHeader(); - * requestHeader.setPK...(value); <span style="color: #3F7E5E">// required</span> - * requestHeader.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * requestHeader.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<RequestHeaderCB> option = new UpdateOption<RequestHeaderCB>(); - * option.self(new SpecifyQuery<RequestHeaderCB>() { - * public void specify(RequestHeaderCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * requestHeaderBhv.<span style="color: #DD4747">varyingUpdate</span>(requestHeader, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param requestHeader The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final RequestHeader requestHeader, - final UpdateOption<RequestHeaderCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(requestHeader, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * RequestHeader requestHeader = new RequestHeader(); - * requestHeader.setPK...(value); <span style="color: #3F7E5E">// required</span> - * requestHeader.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//requestHeader.setVersionNo(value);</span> - * UpdateOption<RequestHeaderCB> option = new UpdateOption<RequestHeaderCB>(); - * option.self(new SpecifyQuery<RequestHeaderCB>() { - * public void specify(RequestHeaderCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * requestHeaderBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(requestHeader, option); - * </pre> - * @param requestHeader The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict(final RequestHeader requestHeader, - final UpdateOption<RequestHeaderCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(requestHeader, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param requestHeader The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final RequestHeader requestHeader, - final InsertOption<RequestHeaderCB> insertOption, - final UpdateOption<RequestHeaderCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(requestHeader, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param requestHeader The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict( - final RequestHeader requestHeader, - final InsertOption<RequestHeaderCB> insertOption, - final UpdateOption<RequestHeaderCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(requestHeader, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param requestHeader The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final RequestHeader requestHeader, - final DeleteOption<RequestHeaderCB> option) { - assertDeleteOptionNotNull(option); - doDelete(requestHeader, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param requestHeader The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict(final RequestHeader requestHeader, - final DeleteOption<RequestHeaderCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(requestHeader, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param requestHeaderList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<RequestHeader> requestHeaderList, - final InsertOption<RequestHeaderCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(requestHeaderList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param requestHeaderList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<RequestHeader> requestHeaderList, - final UpdateOption<RequestHeaderCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(requestHeaderList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param requestHeaderList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<RequestHeader> requestHeaderList, - final UpdateOption<RequestHeaderCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(requestHeaderList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param requestHeaderList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<RequestHeader> requestHeaderList, - final DeleteOption<RequestHeaderCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(requestHeaderList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param requestHeaderList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<RequestHeader> requestHeaderList, - final DeleteOption<RequestHeaderCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(requestHeaderList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<RequestHeader, RequestHeaderCB> setupper, - final InsertOption<RequestHeaderCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * RequestHeader requestHeader = new RequestHeader(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//requestHeader.setPK...(value);</span> - * requestHeader.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//requestHeader.setVersionNo(value);</span> - * RequestHeaderCB cb = new RequestHeaderCB(); - * cb.query().setFoo...(value); - * UpdateOption<RequestHeaderCB> option = new UpdateOption<RequestHeaderCB>(); - * option.self(new SpecifyQuery<RequestHeaderCB>() { - * public void specify(RequestHeaderCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * requestHeaderBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(requestHeader, cb, option); - * </pre> - * @param requestHeader The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of RequestHeader. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final RequestHeader requestHeader, - final RequestHeaderCB cb, final UpdateOption<RequestHeaderCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(requestHeader, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of RequestHeader. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final RequestHeaderCB cb, - final DeleteOption<RequestHeaderCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<RequestHeaderBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends RequestHeader> typeOfSelectedEntity() { - return RequestHeader.class; - } - - @Override - protected Class<RequestHeader> typeOfHandlingEntity() { - return RequestHeader.class; - } - - @Override - protected Class<RequestHeaderCB> typeOfHandlingConditionBean() { - return RequestHeaderCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsRoleTypeBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsRoleTypeBhv.java deleted file mode 100644 index 34fde2897..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsRoleTypeBhv.java +++ /dev/null @@ -1,1699 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfRoleType; -import jp.sf.fess.db.bsentity.dbmeta.RoleTypeDbm; -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.exbhv.RoleTypeBhv; -import jp.sf.fess.db.exentity.DataConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.FileConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.LoadReferrerOption; -import org.seasar.dbflute.bhv.NestedReferrerListGateway; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of ROLE_TYPE as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, VALUE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING, FILE_CONFIG_TO_ROLE_TYPE_MAPPING, LABEL_TYPE_TO_ROLE_TYPE_MAPPING, WEB_CONFIG_TO_ROLE_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * dataConfigToRoleTypeMappingList, fileConfigToRoleTypeMappingList, labelTypeToRoleTypeMappingList, webConfigToRoleTypeMappingList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsRoleTypeBhv extends - AbstractBehaviorWritable<RoleType, RoleTypeCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public RoleTypeDbm getDBMeta() { - return RoleTypeDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public RoleTypeDbm getMyDBMeta() { - return RoleTypeDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public RoleTypeCB newConditionBean() { - return new RoleTypeCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public RoleType newMyEntity() { - return new RoleType(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public RoleTypeCB newMyConditionBean() { - return new RoleTypeCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * RoleTypeCB cb = new RoleTypeCB(); - * cb.query().setFoo...(value); - * int count = roleTypeBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of RoleType. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final RoleTypeCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * RoleTypeCB cb = new RoleTypeCB(); - * cb.query().setFoo...(value); - * RoleType roleType = roleTypeBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (roleType != null) { <span style="color: #3F7E5E">// null check</span> - * ... = roleType.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of RoleType. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public RoleType selectEntity(final RoleTypeCB cb) { - return facadeSelectEntity(cb); - } - - protected RoleType facadeSelectEntity(final RoleTypeCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends RoleType> OptionalEntity<ENTITY> doSelectOptionalEntity( - final RoleTypeCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * RoleTypeCB cb = new RoleTypeCB(); - * cb.query().setFoo...(value); - * RoleType roleType = roleTypeBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = roleType.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of RoleType. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public RoleType selectEntityWithDeletedCheck(final RoleTypeCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public RoleType selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected RoleType facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends RoleType> ENTITY doSelectByPK(final Long id, - final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends RoleType> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public RoleType selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends RoleType> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected RoleTypeCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * RoleTypeCB cb = new RoleTypeCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<RoleType> roleTypeList = roleTypeBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (RoleType roleType : roleTypeList) { - * ... = roleType.get...(); - * } - * </pre> - * @param cb The condition-bean of RoleType. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<RoleType> selectList(final RoleTypeCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * RoleTypeCB cb = new RoleTypeCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<RoleType> page = roleTypeBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (RoleType roleType : page) { - * ... = roleType.get...(); - * } - * </pre> - * @param cb The condition-bean of RoleType. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<RoleType> selectPage(final RoleTypeCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * RoleTypeCB cb = new RoleTypeCB(); - * cb.query().setFoo...(value); - * roleTypeBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<RoleType>() { - * public void handle(RoleType entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of RoleType. (NotNull) - * @param entityRowHandler The handler of entity row of RoleType. (NotNull) - */ - public void selectCursor(final RoleTypeCB cb, - final EntityRowHandler<RoleType> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * roleTypeBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(RoleTypeCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<RoleTypeCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param roleTypeList The entity list of roleType. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<RoleType> roleTypeList, - final ReferrerLoaderHandler<LoaderOfRoleType> handler) { - xassLRArg(roleTypeList, handler); - handler.handle(new LoaderOfRoleType().ready(roleTypeList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param roleType The entity of roleType. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final RoleType roleType, - final ReferrerLoaderHandler<LoaderOfRoleType> handler) { - xassLRArg(roleType, handler); - handler.handle(new LoaderOfRoleType().ready(xnewLRAryLs(roleType), - _behaviorSelector)); - } - - /** - * Load referrer of dataConfigToRoleTypeMappingList by the set-upper of referrer. <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'dataConfigToRoleTypeMappingList'. - * <pre> - * roleTypeBhv.<span style="color: #DD4747">loadDataConfigToRoleTypeMappingList</span>(roleTypeList, new ConditionBeanSetupper<DataConfigToRoleTypeMappingCB>() { - * public void setup(DataConfigToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (RoleType roleType : roleTypeList) { - * ... = roleType.<span style="color: #DD4747">getDataConfigToRoleTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setRoleTypeId_InScope(pkList); - * cb.query().addOrderBy_RoleTypeId_Asc(); - * </pre> - * @param roleTypeList The entity list of roleType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<DataConfigToRoleTypeMapping> loadDataConfigToRoleTypeMappingList( - final List<RoleType> roleTypeList, - final ConditionBeanSetupper<DataConfigToRoleTypeMappingCB> setupper) { - xassLRArg(roleTypeList, setupper); - return doLoadDataConfigToRoleTypeMappingList( - roleTypeList, - new LoadReferrerOption<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of dataConfigToRoleTypeMappingList by the set-upper of referrer. <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'dataConfigToRoleTypeMappingList'. - * <pre> - * roleTypeBhv.<span style="color: #DD4747">loadDataConfigToRoleTypeMappingList</span>(roleTypeList, new ConditionBeanSetupper<DataConfigToRoleTypeMappingCB>() { - * public void setup(DataConfigToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = roleType.<span style="color: #DD4747">getDataConfigToRoleTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setRoleTypeId_InScope(pkList); - * cb.query().addOrderBy_RoleTypeId_Asc(); - * </pre> - * @param roleType The entity of roleType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<DataConfigToRoleTypeMapping> loadDataConfigToRoleTypeMappingList( - final RoleType roleType, - final ConditionBeanSetupper<DataConfigToRoleTypeMappingCB> setupper) { - xassLRArg(roleType, setupper); - return doLoadDataConfigToRoleTypeMappingList( - xnewLRLs(roleType), - new LoadReferrerOption<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param roleType The entity of roleType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<DataConfigToRoleTypeMapping> loadDataConfigToRoleTypeMappingList( - final RoleType roleType, - final LoadReferrerOption<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMapping> loadReferrerOption) { - xassLRArg(roleType, loadReferrerOption); - return loadDataConfigToRoleTypeMappingList(xnewLRLs(roleType), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param roleTypeList The entity list of roleType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<DataConfigToRoleTypeMapping> loadDataConfigToRoleTypeMappingList( - final List<RoleType> roleTypeList, - final LoadReferrerOption<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMapping> loadReferrerOption) { - xassLRArg(roleTypeList, loadReferrerOption); - if (roleTypeList.isEmpty()) { - return (NestedReferrerListGateway<DataConfigToRoleTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadDataConfigToRoleTypeMappingList(roleTypeList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<DataConfigToRoleTypeMapping> doLoadDataConfigToRoleTypeMappingList( - final List<RoleType> roleTypeList, - final LoadReferrerOption<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMapping> option) { - return helpLoadReferrerInternally(roleTypeList, option, - "dataConfigToRoleTypeMappingList"); - } - - /** - * Load referrer of fileConfigToRoleTypeMappingList by the set-upper of referrer. <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'fileConfigToRoleTypeMappingList'. - * <pre> - * roleTypeBhv.<span style="color: #DD4747">loadFileConfigToRoleTypeMappingList</span>(roleTypeList, new ConditionBeanSetupper<FileConfigToRoleTypeMappingCB>() { - * public void setup(FileConfigToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (RoleType roleType : roleTypeList) { - * ... = roleType.<span style="color: #DD4747">getFileConfigToRoleTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setRoleTypeId_InScope(pkList); - * cb.query().addOrderBy_RoleTypeId_Asc(); - * </pre> - * @param roleTypeList The entity list of roleType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileConfigToRoleTypeMapping> loadFileConfigToRoleTypeMappingList( - final List<RoleType> roleTypeList, - final ConditionBeanSetupper<FileConfigToRoleTypeMappingCB> setupper) { - xassLRArg(roleTypeList, setupper); - return doLoadFileConfigToRoleTypeMappingList( - roleTypeList, - new LoadReferrerOption<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of fileConfigToRoleTypeMappingList by the set-upper of referrer. <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'fileConfigToRoleTypeMappingList'. - * <pre> - * roleTypeBhv.<span style="color: #DD4747">loadFileConfigToRoleTypeMappingList</span>(roleTypeList, new ConditionBeanSetupper<FileConfigToRoleTypeMappingCB>() { - * public void setup(FileConfigToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = roleType.<span style="color: #DD4747">getFileConfigToRoleTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setRoleTypeId_InScope(pkList); - * cb.query().addOrderBy_RoleTypeId_Asc(); - * </pre> - * @param roleType The entity of roleType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileConfigToRoleTypeMapping> loadFileConfigToRoleTypeMappingList( - final RoleType roleType, - final ConditionBeanSetupper<FileConfigToRoleTypeMappingCB> setupper) { - xassLRArg(roleType, setupper); - return doLoadFileConfigToRoleTypeMappingList( - xnewLRLs(roleType), - new LoadReferrerOption<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param roleType The entity of roleType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FileConfigToRoleTypeMapping> loadFileConfigToRoleTypeMappingList( - final RoleType roleType, - final LoadReferrerOption<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMapping> loadReferrerOption) { - xassLRArg(roleType, loadReferrerOption); - return loadFileConfigToRoleTypeMappingList(xnewLRLs(roleType), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param roleTypeList The entity list of roleType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<FileConfigToRoleTypeMapping> loadFileConfigToRoleTypeMappingList( - final List<RoleType> roleTypeList, - final LoadReferrerOption<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMapping> loadReferrerOption) { - xassLRArg(roleTypeList, loadReferrerOption); - if (roleTypeList.isEmpty()) { - return (NestedReferrerListGateway<FileConfigToRoleTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadFileConfigToRoleTypeMappingList(roleTypeList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<FileConfigToRoleTypeMapping> doLoadFileConfigToRoleTypeMappingList( - final List<RoleType> roleTypeList, - final LoadReferrerOption<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMapping> option) { - return helpLoadReferrerInternally(roleTypeList, option, - "fileConfigToRoleTypeMappingList"); - } - - /** - * Load referrer of labelTypeToRoleTypeMappingList by the set-upper of referrer. <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. - * <pre> - * roleTypeBhv.<span style="color: #DD4747">loadLabelTypeToRoleTypeMappingList</span>(roleTypeList, new ConditionBeanSetupper<LabelTypeToRoleTypeMappingCB>() { - * public void setup(LabelTypeToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (RoleType roleType : roleTypeList) { - * ... = roleType.<span style="color: #DD4747">getLabelTypeToRoleTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setRoleTypeId_InScope(pkList); - * cb.query().addOrderBy_RoleTypeId_Asc(); - * </pre> - * @param roleTypeList The entity list of roleType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<LabelTypeToRoleTypeMapping> loadLabelTypeToRoleTypeMappingList( - final List<RoleType> roleTypeList, - final ConditionBeanSetupper<LabelTypeToRoleTypeMappingCB> setupper) { - xassLRArg(roleTypeList, setupper); - return doLoadLabelTypeToRoleTypeMappingList( - roleTypeList, - new LoadReferrerOption<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of labelTypeToRoleTypeMappingList by the set-upper of referrer. <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. - * <pre> - * roleTypeBhv.<span style="color: #DD4747">loadLabelTypeToRoleTypeMappingList</span>(roleTypeList, new ConditionBeanSetupper<LabelTypeToRoleTypeMappingCB>() { - * public void setup(LabelTypeToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = roleType.<span style="color: #DD4747">getLabelTypeToRoleTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setRoleTypeId_InScope(pkList); - * cb.query().addOrderBy_RoleTypeId_Asc(); - * </pre> - * @param roleType The entity of roleType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<LabelTypeToRoleTypeMapping> loadLabelTypeToRoleTypeMappingList( - final RoleType roleType, - final ConditionBeanSetupper<LabelTypeToRoleTypeMappingCB> setupper) { - xassLRArg(roleType, setupper); - return doLoadLabelTypeToRoleTypeMappingList( - xnewLRLs(roleType), - new LoadReferrerOption<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param roleType The entity of roleType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<LabelTypeToRoleTypeMapping> loadLabelTypeToRoleTypeMappingList( - final RoleType roleType, - final LoadReferrerOption<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMapping> loadReferrerOption) { - xassLRArg(roleType, loadReferrerOption); - return loadLabelTypeToRoleTypeMappingList(xnewLRLs(roleType), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param roleTypeList The entity list of roleType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<LabelTypeToRoleTypeMapping> loadLabelTypeToRoleTypeMappingList( - final List<RoleType> roleTypeList, - final LoadReferrerOption<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMapping> loadReferrerOption) { - xassLRArg(roleTypeList, loadReferrerOption); - if (roleTypeList.isEmpty()) { - return (NestedReferrerListGateway<LabelTypeToRoleTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadLabelTypeToRoleTypeMappingList(roleTypeList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<LabelTypeToRoleTypeMapping> doLoadLabelTypeToRoleTypeMappingList( - final List<RoleType> roleTypeList, - final LoadReferrerOption<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMapping> option) { - return helpLoadReferrerInternally(roleTypeList, option, - "labelTypeToRoleTypeMappingList"); - } - - /** - * Load referrer of webConfigToRoleTypeMappingList by the set-upper of referrer. <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'webConfigToRoleTypeMappingList'. - * <pre> - * roleTypeBhv.<span style="color: #DD4747">loadWebConfigToRoleTypeMappingList</span>(roleTypeList, new ConditionBeanSetupper<WebConfigToRoleTypeMappingCB>() { - * public void setup(WebConfigToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (RoleType roleType : roleTypeList) { - * ... = roleType.<span style="color: #DD4747">getWebConfigToRoleTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setRoleTypeId_InScope(pkList); - * cb.query().addOrderBy_RoleTypeId_Asc(); - * </pre> - * @param roleTypeList The entity list of roleType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebConfigToRoleTypeMapping> loadWebConfigToRoleTypeMappingList( - final List<RoleType> roleTypeList, - final ConditionBeanSetupper<WebConfigToRoleTypeMappingCB> setupper) { - xassLRArg(roleTypeList, setupper); - return doLoadWebConfigToRoleTypeMappingList( - roleTypeList, - new LoadReferrerOption<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of webConfigToRoleTypeMappingList by the set-upper of referrer. <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'webConfigToRoleTypeMappingList'. - * <pre> - * roleTypeBhv.<span style="color: #DD4747">loadWebConfigToRoleTypeMappingList</span>(roleTypeList, new ConditionBeanSetupper<WebConfigToRoleTypeMappingCB>() { - * public void setup(WebConfigToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = roleType.<span style="color: #DD4747">getWebConfigToRoleTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setRoleTypeId_InScope(pkList); - * cb.query().addOrderBy_RoleTypeId_Asc(); - * </pre> - * @param roleType The entity of roleType. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebConfigToRoleTypeMapping> loadWebConfigToRoleTypeMappingList( - final RoleType roleType, - final ConditionBeanSetupper<WebConfigToRoleTypeMappingCB> setupper) { - xassLRArg(roleType, setupper); - return doLoadWebConfigToRoleTypeMappingList( - xnewLRLs(roleType), - new LoadReferrerOption<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param roleType The entity of roleType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebConfigToRoleTypeMapping> loadWebConfigToRoleTypeMappingList( - final RoleType roleType, - final LoadReferrerOption<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMapping> loadReferrerOption) { - xassLRArg(roleType, loadReferrerOption); - return loadWebConfigToRoleTypeMappingList(xnewLRLs(roleType), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param roleTypeList The entity list of roleType. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<WebConfigToRoleTypeMapping> loadWebConfigToRoleTypeMappingList( - final List<RoleType> roleTypeList, - final LoadReferrerOption<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMapping> loadReferrerOption) { - xassLRArg(roleTypeList, loadReferrerOption); - if (roleTypeList.isEmpty()) { - return (NestedReferrerListGateway<WebConfigToRoleTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadWebConfigToRoleTypeMappingList(roleTypeList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<WebConfigToRoleTypeMapping> doLoadWebConfigToRoleTypeMappingList( - final List<RoleType> roleTypeList, - final LoadReferrerOption<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMapping> option) { - return helpLoadReferrerInternally(roleTypeList, option, - "webConfigToRoleTypeMappingList"); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param roleTypeList The list of roleType. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList(final List<RoleType> roleTypeList) { - return helpExtractListInternally(roleTypeList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * RoleType roleType = new RoleType(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * roleType.setFoo...(value); - * roleType.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//roleType.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//roleType.set...;</span> - * roleTypeBhv.<span style="color: #DD4747">insert</span>(roleType); - * ... = roleType.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param roleType The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final RoleType roleType) { - doInsert(roleType, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * RoleType roleType = new RoleType(); - * roleType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * roleType.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//roleType.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//roleType.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * roleType.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * roleTypeBhv.<span style="color: #DD4747">update</span>(roleType); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param roleType The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final RoleType roleType) { - doUpdate(roleType, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * RoleType roleType = new RoleType(); - * roleType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * roleType.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//roleType.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//roleType.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//roleType.setVersionNo(value);</span> - * roleTypeBhv.<span style="color: #DD4747">updateNonstrict</span>(roleType); - * </pre> - * @param roleType The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final RoleType roleType) { - doUpdateNonstrict(roleType, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param roleType The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final RoleType roleType) { - doInsertOrUpdate(roleType, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param roleType The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict(final RoleType roleType) { - doInsertOrUpdateNonstrict(roleType, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * RoleType roleType = new RoleType(); - * roleType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * roleType.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * roleTypeBhv.<span style="color: #DD4747">delete</span>(roleType); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param roleType The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final RoleType roleType) { - doDelete(roleType, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * RoleType roleType = new RoleType(); - * roleType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//roleType.setVersionNo(value);</span> - * roleTypeBhv.<span style="color: #DD4747">deleteNonstrict</span>(roleType); - * </pre> - * @param roleType The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final RoleType roleType) { - doDeleteNonstrict(roleType, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * RoleType roleType = new RoleType(); - * roleType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//roleType.setVersionNo(value);</span> - * roleTypeBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(roleType); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param roleType The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted(final RoleType roleType) { - doDeleteNonstrictIgnoreDeleted(roleType, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final RoleType et, - final DeleteOption<RoleTypeCB> op) { - assertObjectNotNull("roleType", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * RoleType roleType = new RoleType(); - * roleType.setFooName("foo"); - * if (...) { - * roleType.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * roleTypeList.add(roleType); - * } - * roleTypeBhv.<span style="color: #DD4747">batchInsert</span>(roleTypeList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param roleTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<RoleType> roleTypeList) { - return doBatchInsert(roleTypeList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * RoleType roleType = new RoleType(); - * roleType.setFooName("foo"); - * if (...) { - * roleType.setFooPrice(123); - * } else { - * roleType.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//roleType.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * roleTypeList.add(roleType); - * } - * roleTypeBhv.<span style="color: #DD4747">batchUpdate</span>(roleTypeList); - * </pre> - * @param roleTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<RoleType> roleTypeList) { - return doBatchUpdate(roleTypeList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * roleTypeBhv.<span style="color: #DD4747">batchUpdate</span>(roleTypeList, new SpecifyQuery<RoleTypeCB>() { - * public void specify(RoleTypeCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * roleTypeBhv.<span style="color: #DD4747">batchUpdate</span>(roleTypeList, new SpecifyQuery<RoleTypeCB>() { - * public void specify(RoleTypeCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param roleTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<RoleType> roleTypeList, - final SpecifyQuery<RoleTypeCB> updateColumnSpec) { - return doBatchUpdate(roleTypeList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * RoleType roleType = new RoleType(); - * roleType.setFooName("foo"); - * if (...) { - * roleType.setFooPrice(123); - * } else { - * roleType.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//roleType.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * roleTypeList.add(roleType); - * } - * roleTypeBhv.<span style="color: #DD4747">batchUpdate</span>(roleTypeList); - * </pre> - * @param roleTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict(final List<RoleType> roleTypeList) { - return doBatchUpdateNonstrict(roleTypeList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * roleTypeBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(roleTypeList, new SpecifyQuery<RoleTypeCB>() { - * public void specify(RoleTypeCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * roleTypeBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(roleTypeList, new SpecifyQuery<RoleTypeCB>() { - * public void specify(RoleTypeCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param roleTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict(final List<RoleType> roleTypeList, - final SpecifyQuery<RoleTypeCB> updateColumnSpec) { - return doBatchUpdateNonstrict(roleTypeList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param roleTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete(final List<RoleType> roleTypeList) { - return doBatchDelete(roleTypeList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param roleTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict(final List<RoleType> roleTypeList) { - return doBatchDeleteNonstrict(roleTypeList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * roleTypeBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<RoleType, RoleTypeCB>() { - * public ConditionBean setup(RoleType entity, RoleTypeCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<RoleType, RoleTypeCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * RoleType roleType = new RoleType(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//roleType.setPK...(value);</span> - * roleType.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//roleType.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//roleType.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//roleType.setVersionNo(value);</span> - * RoleTypeCB cb = new RoleTypeCB(); - * cb.query().setFoo...(value); - * roleTypeBhv.<span style="color: #DD4747">queryUpdate</span>(roleType, cb); - * </pre> - * @param roleType The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of RoleType. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final RoleType roleType, final RoleTypeCB cb) { - return doQueryUpdate(roleType, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * RoleTypeCB cb = new RoleTypeCB(); - * cb.query().setFoo...(value); - * roleTypeBhv.<span style="color: #DD4747">queryDelete</span>(roleType, cb); - * </pre> - * @param cb The condition-bean of RoleType. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final RoleTypeCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * RoleType roleType = new RoleType(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * roleType.setFoo...(value); - * roleType.setBar...(value); - * InsertOption<RoleTypeCB> option = new InsertOption<RoleTypeCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * roleTypeBhv.<span style="color: #DD4747">varyingInsert</span>(roleType, option); - * ... = roleType.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param roleType The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final RoleType roleType, - final InsertOption<RoleTypeCB> option) { - assertInsertOptionNotNull(option); - doInsert(roleType, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * RoleType roleType = new RoleType(); - * roleType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * roleType.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * roleType.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<RoleTypeCB> option = new UpdateOption<RoleTypeCB>(); - * option.self(new SpecifyQuery<RoleTypeCB>() { - * public void specify(RoleTypeCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * roleTypeBhv.<span style="color: #DD4747">varyingUpdate</span>(roleType, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param roleType The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final RoleType roleType, - final UpdateOption<RoleTypeCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(roleType, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * RoleType roleType = new RoleType(); - * roleType.setPK...(value); <span style="color: #3F7E5E">// required</span> - * roleType.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//roleType.setVersionNo(value);</span> - * UpdateOption<RoleTypeCB> option = new UpdateOption<RoleTypeCB>(); - * option.self(new SpecifyQuery<RoleTypeCB>() { - * public void specify(RoleTypeCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * roleTypeBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(roleType, option); - * </pre> - * @param roleType The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict(final RoleType roleType, - final UpdateOption<RoleTypeCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(roleType, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param roleType The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final RoleType roleType, - final InsertOption<RoleTypeCB> insertOption, - final UpdateOption<RoleTypeCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(roleType, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param roleType The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict(final RoleType roleType, - final InsertOption<RoleTypeCB> insertOption, - final UpdateOption<RoleTypeCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(roleType, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param roleType The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final RoleType roleType, - final DeleteOption<RoleTypeCB> option) { - assertDeleteOptionNotNull(option); - doDelete(roleType, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param roleType The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict(final RoleType roleType, - final DeleteOption<RoleTypeCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(roleType, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param roleTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert(final List<RoleType> roleTypeList, - final InsertOption<RoleTypeCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(roleTypeList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param roleTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate(final List<RoleType> roleTypeList, - final UpdateOption<RoleTypeCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(roleTypeList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param roleTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict(final List<RoleType> roleTypeList, - final UpdateOption<RoleTypeCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(roleTypeList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param roleTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete(final List<RoleType> roleTypeList, - final DeleteOption<RoleTypeCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(roleTypeList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param roleTypeList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict(final List<RoleType> roleTypeList, - final DeleteOption<RoleTypeCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(roleTypeList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<RoleType, RoleTypeCB> setupper, - final InsertOption<RoleTypeCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * RoleType roleType = new RoleType(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//roleType.setPK...(value);</span> - * roleType.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//roleType.setVersionNo(value);</span> - * RoleTypeCB cb = new RoleTypeCB(); - * cb.query().setFoo...(value); - * UpdateOption<RoleTypeCB> option = new UpdateOption<RoleTypeCB>(); - * option.self(new SpecifyQuery<RoleTypeCB>() { - * public void specify(RoleTypeCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * roleTypeBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(roleType, cb, option); - * </pre> - * @param roleType The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of RoleType. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final RoleType roleType, final RoleTypeCB cb, - final UpdateOption<RoleTypeCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(roleType, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of RoleType. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final RoleTypeCB cb, - final DeleteOption<RoleTypeCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<RoleTypeBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends RoleType> typeOfSelectedEntity() { - return RoleType.class; - } - - @Override - protected Class<RoleType> typeOfHandlingEntity() { - return RoleType.class; - } - - @Override - protected Class<RoleTypeCB> typeOfHandlingConditionBean() { - return RoleTypeCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsScheduledJobBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsScheduledJobBhv.java deleted file mode 100644 index 0262a5dde..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsScheduledJobBhv.java +++ /dev/null @@ -1,1240 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfScheduledJob; -import jp.sf.fess.db.bsentity.dbmeta.ScheduledJobDbm; -import jp.sf.fess.db.cbean.ScheduledJobCB; -import jp.sf.fess.db.exbhv.ScheduledJobBhv; -import jp.sf.fess.db.exentity.ScheduledJob; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of SCHEDULED_JOB as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, TARGET, CRON_EXPRESSION, SCRIPT_TYPE, SCRIPT_DATA, CRAWLER, JOB_LOGGING, AVAILABLE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsScheduledJobBhv extends - AbstractBehaviorWritable<ScheduledJob, ScheduledJobCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public ScheduledJobDbm getDBMeta() { - return ScheduledJobDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public ScheduledJobDbm getMyDBMeta() { - return ScheduledJobDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public ScheduledJobCB newConditionBean() { - return new ScheduledJobCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public ScheduledJob newMyEntity() { - return new ScheduledJob(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public ScheduledJobCB newMyConditionBean() { - return new ScheduledJobCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * ScheduledJobCB cb = new ScheduledJobCB(); - * cb.query().setFoo...(value); - * int count = scheduledJobBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of ScheduledJob. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final ScheduledJobCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * ScheduledJobCB cb = new ScheduledJobCB(); - * cb.query().setFoo...(value); - * ScheduledJob scheduledJob = scheduledJobBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (scheduledJob != null) { <span style="color: #3F7E5E">// null check</span> - * ... = scheduledJob.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of ScheduledJob. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public ScheduledJob selectEntity(final ScheduledJobCB cb) { - return facadeSelectEntity(cb); - } - - protected ScheduledJob facadeSelectEntity(final ScheduledJobCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends ScheduledJob> OptionalEntity<ENTITY> doSelectOptionalEntity( - final ScheduledJobCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * ScheduledJobCB cb = new ScheduledJobCB(); - * cb.query().setFoo...(value); - * ScheduledJob scheduledJob = scheduledJobBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = scheduledJob.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of ScheduledJob. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public ScheduledJob selectEntityWithDeletedCheck(final ScheduledJobCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public ScheduledJob selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected ScheduledJob facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends ScheduledJob> ENTITY doSelectByPK(final Long id, - final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends ScheduledJob> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public ScheduledJob selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends ScheduledJob> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected ScheduledJobCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * ScheduledJobCB cb = new ScheduledJobCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<ScheduledJob> scheduledJobList = scheduledJobBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (ScheduledJob scheduledJob : scheduledJobList) { - * ... = scheduledJob.get...(); - * } - * </pre> - * @param cb The condition-bean of ScheduledJob. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<ScheduledJob> selectList(final ScheduledJobCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * ScheduledJobCB cb = new ScheduledJobCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<ScheduledJob> page = scheduledJobBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (ScheduledJob scheduledJob : page) { - * ... = scheduledJob.get...(); - * } - * </pre> - * @param cb The condition-bean of ScheduledJob. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<ScheduledJob> selectPage(final ScheduledJobCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * ScheduledJobCB cb = new ScheduledJobCB(); - * cb.query().setFoo...(value); - * scheduledJobBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<ScheduledJob>() { - * public void handle(ScheduledJob entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of ScheduledJob. (NotNull) - * @param entityRowHandler The handler of entity row of ScheduledJob. (NotNull) - */ - public void selectCursor(final ScheduledJobCB cb, - final EntityRowHandler<ScheduledJob> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * scheduledJobBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(ScheduledJobCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<ScheduledJobCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param scheduledJobList The entity list of scheduledJob. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<ScheduledJob> scheduledJobList, - final ReferrerLoaderHandler<LoaderOfScheduledJob> handler) { - xassLRArg(scheduledJobList, handler); - handler.handle(new LoaderOfScheduledJob().ready(scheduledJobList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param scheduledJob The entity of scheduledJob. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final ScheduledJob scheduledJob, - final ReferrerLoaderHandler<LoaderOfScheduledJob> handler) { - xassLRArg(scheduledJob, handler); - handler.handle(new LoaderOfScheduledJob().ready( - xnewLRAryLs(scheduledJob), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param scheduledJobList The list of scheduledJob. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList(final List<ScheduledJob> scheduledJobList) { - return helpExtractListInternally(scheduledJobList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * ScheduledJob scheduledJob = new ScheduledJob(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * scheduledJob.setFoo...(value); - * scheduledJob.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//scheduledJob.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//scheduledJob.set...;</span> - * scheduledJobBhv.<span style="color: #DD4747">insert</span>(scheduledJob); - * ... = scheduledJob.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param scheduledJob The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final ScheduledJob scheduledJob) { - doInsert(scheduledJob, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * ScheduledJob scheduledJob = new ScheduledJob(); - * scheduledJob.setPK...(value); <span style="color: #3F7E5E">// required</span> - * scheduledJob.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//scheduledJob.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//scheduledJob.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * scheduledJob.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * scheduledJobBhv.<span style="color: #DD4747">update</span>(scheduledJob); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param scheduledJob The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final ScheduledJob scheduledJob) { - doUpdate(scheduledJob, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * ScheduledJob scheduledJob = new ScheduledJob(); - * scheduledJob.setPK...(value); <span style="color: #3F7E5E">// required</span> - * scheduledJob.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//scheduledJob.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//scheduledJob.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//scheduledJob.setVersionNo(value);</span> - * scheduledJobBhv.<span style="color: #DD4747">updateNonstrict</span>(scheduledJob); - * </pre> - * @param scheduledJob The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final ScheduledJob scheduledJob) { - doUpdateNonstrict(scheduledJob, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param scheduledJob The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final ScheduledJob scheduledJob) { - doInsertOrUpdate(scheduledJob, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param scheduledJob The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict(final ScheduledJob scheduledJob) { - doInsertOrUpdateNonstrict(scheduledJob, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * ScheduledJob scheduledJob = new ScheduledJob(); - * scheduledJob.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * scheduledJob.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * scheduledJobBhv.<span style="color: #DD4747">delete</span>(scheduledJob); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param scheduledJob The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final ScheduledJob scheduledJob) { - doDelete(scheduledJob, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * ScheduledJob scheduledJob = new ScheduledJob(); - * scheduledJob.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//scheduledJob.setVersionNo(value);</span> - * scheduledJobBhv.<span style="color: #DD4747">deleteNonstrict</span>(scheduledJob); - * </pre> - * @param scheduledJob The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final ScheduledJob scheduledJob) { - doDeleteNonstrict(scheduledJob, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * ScheduledJob scheduledJob = new ScheduledJob(); - * scheduledJob.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//scheduledJob.setVersionNo(value);</span> - * scheduledJobBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(scheduledJob); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param scheduledJob The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted(final ScheduledJob scheduledJob) { - doDeleteNonstrictIgnoreDeleted(scheduledJob, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final ScheduledJob et, - final DeleteOption<ScheduledJobCB> op) { - assertObjectNotNull("scheduledJob", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * ScheduledJob scheduledJob = new ScheduledJob(); - * scheduledJob.setFooName("foo"); - * if (...) { - * scheduledJob.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * scheduledJobList.add(scheduledJob); - * } - * scheduledJobBhv.<span style="color: #DD4747">batchInsert</span>(scheduledJobList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param scheduledJobList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<ScheduledJob> scheduledJobList) { - return doBatchInsert(scheduledJobList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * ScheduledJob scheduledJob = new ScheduledJob(); - * scheduledJob.setFooName("foo"); - * if (...) { - * scheduledJob.setFooPrice(123); - * } else { - * scheduledJob.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//scheduledJob.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * scheduledJobList.add(scheduledJob); - * } - * scheduledJobBhv.<span style="color: #DD4747">batchUpdate</span>(scheduledJobList); - * </pre> - * @param scheduledJobList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<ScheduledJob> scheduledJobList) { - return doBatchUpdate(scheduledJobList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * scheduledJobBhv.<span style="color: #DD4747">batchUpdate</span>(scheduledJobList, new SpecifyQuery<ScheduledJobCB>() { - * public void specify(ScheduledJobCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * scheduledJobBhv.<span style="color: #DD4747">batchUpdate</span>(scheduledJobList, new SpecifyQuery<ScheduledJobCB>() { - * public void specify(ScheduledJobCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param scheduledJobList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<ScheduledJob> scheduledJobList, - final SpecifyQuery<ScheduledJobCB> updateColumnSpec) { - return doBatchUpdate(scheduledJobList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * ScheduledJob scheduledJob = new ScheduledJob(); - * scheduledJob.setFooName("foo"); - * if (...) { - * scheduledJob.setFooPrice(123); - * } else { - * scheduledJob.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//scheduledJob.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * scheduledJobList.add(scheduledJob); - * } - * scheduledJobBhv.<span style="color: #DD4747">batchUpdate</span>(scheduledJobList); - * </pre> - * @param scheduledJobList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict(final List<ScheduledJob> scheduledJobList) { - return doBatchUpdateNonstrict(scheduledJobList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * scheduledJobBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(scheduledJobList, new SpecifyQuery<ScheduledJobCB>() { - * public void specify(ScheduledJobCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * scheduledJobBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(scheduledJobList, new SpecifyQuery<ScheduledJobCB>() { - * public void specify(ScheduledJobCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param scheduledJobList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<ScheduledJob> scheduledJobList, - final SpecifyQuery<ScheduledJobCB> updateColumnSpec) { - return doBatchUpdateNonstrict(scheduledJobList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param scheduledJobList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete(final List<ScheduledJob> scheduledJobList) { - return doBatchDelete(scheduledJobList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param scheduledJobList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict(final List<ScheduledJob> scheduledJobList) { - return doBatchDeleteNonstrict(scheduledJobList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * scheduledJobBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<ScheduledJob, ScheduledJobCB>() { - * public ConditionBean setup(ScheduledJob entity, ScheduledJobCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<ScheduledJob, ScheduledJobCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * ScheduledJob scheduledJob = new ScheduledJob(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//scheduledJob.setPK...(value);</span> - * scheduledJob.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//scheduledJob.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//scheduledJob.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//scheduledJob.setVersionNo(value);</span> - * ScheduledJobCB cb = new ScheduledJobCB(); - * cb.query().setFoo...(value); - * scheduledJobBhv.<span style="color: #DD4747">queryUpdate</span>(scheduledJob, cb); - * </pre> - * @param scheduledJob The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of ScheduledJob. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final ScheduledJob scheduledJob, - final ScheduledJobCB cb) { - return doQueryUpdate(scheduledJob, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * ScheduledJobCB cb = new ScheduledJobCB(); - * cb.query().setFoo...(value); - * scheduledJobBhv.<span style="color: #DD4747">queryDelete</span>(scheduledJob, cb); - * </pre> - * @param cb The condition-bean of ScheduledJob. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final ScheduledJobCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * ScheduledJob scheduledJob = new ScheduledJob(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * scheduledJob.setFoo...(value); - * scheduledJob.setBar...(value); - * InsertOption<ScheduledJobCB> option = new InsertOption<ScheduledJobCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * scheduledJobBhv.<span style="color: #DD4747">varyingInsert</span>(scheduledJob, option); - * ... = scheduledJob.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param scheduledJob The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final ScheduledJob scheduledJob, - final InsertOption<ScheduledJobCB> option) { - assertInsertOptionNotNull(option); - doInsert(scheduledJob, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * ScheduledJob scheduledJob = new ScheduledJob(); - * scheduledJob.setPK...(value); <span style="color: #3F7E5E">// required</span> - * scheduledJob.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * scheduledJob.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<ScheduledJobCB> option = new UpdateOption<ScheduledJobCB>(); - * option.self(new SpecifyQuery<ScheduledJobCB>() { - * public void specify(ScheduledJobCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * scheduledJobBhv.<span style="color: #DD4747">varyingUpdate</span>(scheduledJob, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param scheduledJob The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final ScheduledJob scheduledJob, - final UpdateOption<ScheduledJobCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(scheduledJob, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * ScheduledJob scheduledJob = new ScheduledJob(); - * scheduledJob.setPK...(value); <span style="color: #3F7E5E">// required</span> - * scheduledJob.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//scheduledJob.setVersionNo(value);</span> - * UpdateOption<ScheduledJobCB> option = new UpdateOption<ScheduledJobCB>(); - * option.self(new SpecifyQuery<ScheduledJobCB>() { - * public void specify(ScheduledJobCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * scheduledJobBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(scheduledJob, option); - * </pre> - * @param scheduledJob The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict(final ScheduledJob scheduledJob, - final UpdateOption<ScheduledJobCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(scheduledJob, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param scheduledJob The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final ScheduledJob scheduledJob, - final InsertOption<ScheduledJobCB> insertOption, - final UpdateOption<ScheduledJobCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(scheduledJob, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param scheduledJob The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict(final ScheduledJob scheduledJob, - final InsertOption<ScheduledJobCB> insertOption, - final UpdateOption<ScheduledJobCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(scheduledJob, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param scheduledJob The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final ScheduledJob scheduledJob, - final DeleteOption<ScheduledJobCB> option) { - assertDeleteOptionNotNull(option); - doDelete(scheduledJob, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param scheduledJob The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict(final ScheduledJob scheduledJob, - final DeleteOption<ScheduledJobCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(scheduledJob, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param scheduledJobList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert(final List<ScheduledJob> scheduledJobList, - final InsertOption<ScheduledJobCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(scheduledJobList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param scheduledJobList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate(final List<ScheduledJob> scheduledJobList, - final UpdateOption<ScheduledJobCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(scheduledJobList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param scheduledJobList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<ScheduledJob> scheduledJobList, - final UpdateOption<ScheduledJobCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(scheduledJobList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param scheduledJobList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete(final List<ScheduledJob> scheduledJobList, - final DeleteOption<ScheduledJobCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(scheduledJobList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param scheduledJobList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<ScheduledJob> scheduledJobList, - final DeleteOption<ScheduledJobCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(scheduledJobList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<ScheduledJob, ScheduledJobCB> setupper, - final InsertOption<ScheduledJobCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * ScheduledJob scheduledJob = new ScheduledJob(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//scheduledJob.setPK...(value);</span> - * scheduledJob.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//scheduledJob.setVersionNo(value);</span> - * ScheduledJobCB cb = new ScheduledJobCB(); - * cb.query().setFoo...(value); - * UpdateOption<ScheduledJobCB> option = new UpdateOption<ScheduledJobCB>(); - * option.self(new SpecifyQuery<ScheduledJobCB>() { - * public void specify(ScheduledJobCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * scheduledJobBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(scheduledJob, cb, option); - * </pre> - * @param scheduledJob The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of ScheduledJob. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final ScheduledJob scheduledJob, - final ScheduledJobCB cb, final UpdateOption<ScheduledJobCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(scheduledJob, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of ScheduledJob. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final ScheduledJobCB cb, - final DeleteOption<ScheduledJobCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<ScheduledJobBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends ScheduledJob> typeOfSelectedEntity() { - return ScheduledJob.class; - } - - @Override - protected Class<ScheduledJob> typeOfHandlingEntity() { - return ScheduledJob.class; - } - - @Override - protected Class<ScheduledJobCB> typeOfHandlingConditionBean() { - return ScheduledJobCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsSearchFieldLogBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsSearchFieldLogBhv.java deleted file mode 100644 index 8676a7c15..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsSearchFieldLogBhv.java +++ /dev/null @@ -1,1000 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfSearchFieldLog; -import jp.sf.fess.db.bsentity.dbmeta.SearchFieldLogDbm; -import jp.sf.fess.db.cbean.SearchFieldLogCB; -import jp.sf.fess.db.exbhv.SearchFieldLogBhv; -import jp.sf.fess.db.exentity.SearchFieldLog; -import jp.sf.fess.db.exentity.SearchLog; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of SEARCH_FIELD_LOG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, SEARCH_ID, NAME, VALUE - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * SEARCH_LOG - * - * [referrer table] - * - * - * [foreign property] - * searchLog - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsSearchFieldLogBhv extends - AbstractBehaviorWritable<SearchFieldLog, SearchFieldLogCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - public static final String PATH_selectGroupedFieldName = "selectGroupedFieldName"; - - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public SearchFieldLogDbm getDBMeta() { - return SearchFieldLogDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public SearchFieldLogDbm getMyDBMeta() { - return SearchFieldLogDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public SearchFieldLogCB newConditionBean() { - return new SearchFieldLogCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public SearchFieldLog newMyEntity() { - return new SearchFieldLog(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public SearchFieldLogCB newMyConditionBean() { - return new SearchFieldLogCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * SearchFieldLogCB cb = new SearchFieldLogCB(); - * cb.query().setFoo...(value); - * int count = searchFieldLogBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of SearchFieldLog. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final SearchFieldLogCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * SearchFieldLogCB cb = new SearchFieldLogCB(); - * cb.query().setFoo...(value); - * SearchFieldLog searchFieldLog = searchFieldLogBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (searchFieldLog != null) { <span style="color: #3F7E5E">// null check</span> - * ... = searchFieldLog.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of SearchFieldLog. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SearchFieldLog selectEntity(final SearchFieldLogCB cb) { - return facadeSelectEntity(cb); - } - - protected SearchFieldLog facadeSelectEntity(final SearchFieldLogCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends SearchFieldLog> OptionalEntity<ENTITY> doSelectOptionalEntity( - final SearchFieldLogCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * SearchFieldLogCB cb = new SearchFieldLogCB(); - * cb.query().setFoo...(value); - * SearchFieldLog searchFieldLog = searchFieldLogBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = searchFieldLog.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of SearchFieldLog. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SearchFieldLog selectEntityWithDeletedCheck(final SearchFieldLogCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SearchFieldLog selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected SearchFieldLog facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends SearchFieldLog> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends SearchFieldLog> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SearchFieldLog selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends SearchFieldLog> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected SearchFieldLogCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * SearchFieldLogCB cb = new SearchFieldLogCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<SearchFieldLog> searchFieldLogList = searchFieldLogBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (SearchFieldLog searchFieldLog : searchFieldLogList) { - * ... = searchFieldLog.get...(); - * } - * </pre> - * @param cb The condition-bean of SearchFieldLog. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<SearchFieldLog> selectList(final SearchFieldLogCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * SearchFieldLogCB cb = new SearchFieldLogCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<SearchFieldLog> page = searchFieldLogBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (SearchFieldLog searchFieldLog : page) { - * ... = searchFieldLog.get...(); - * } - * </pre> - * @param cb The condition-bean of SearchFieldLog. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<SearchFieldLog> selectPage(final SearchFieldLogCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * SearchFieldLogCB cb = new SearchFieldLogCB(); - * cb.query().setFoo...(value); - * searchFieldLogBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<SearchFieldLog>() { - * public void handle(SearchFieldLog entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of SearchFieldLog. (NotNull) - * @param entityRowHandler The handler of entity row of SearchFieldLog. (NotNull) - */ - public void selectCursor(final SearchFieldLogCB cb, - final EntityRowHandler<SearchFieldLog> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * searchFieldLogBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(SearchFieldLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<SearchFieldLogCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param searchFieldLogList The entity list of searchFieldLog. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<SearchFieldLog> searchFieldLogList, - final ReferrerLoaderHandler<LoaderOfSearchFieldLog> handler) { - xassLRArg(searchFieldLogList, handler); - handler.handle(new LoaderOfSearchFieldLog().ready(searchFieldLogList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param searchFieldLog The entity of searchFieldLog. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final SearchFieldLog searchFieldLog, - final ReferrerLoaderHandler<LoaderOfSearchFieldLog> handler) { - xassLRArg(searchFieldLog, handler); - handler.handle(new LoaderOfSearchFieldLog().ready( - xnewLRAryLs(searchFieldLog), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'SearchLog'. - * @param searchFieldLogList The list of searchFieldLog. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<SearchLog> pulloutSearchLog( - final List<SearchFieldLog> searchFieldLogList) { - return helpPulloutInternally(searchFieldLogList, "searchLog"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param searchFieldLogList The list of searchFieldLog. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<SearchFieldLog> searchFieldLogList) { - return helpExtractListInternally(searchFieldLogList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * SearchFieldLog searchFieldLog = new SearchFieldLog(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * searchFieldLog.setFoo...(value); - * searchFieldLog.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//searchFieldLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//searchFieldLog.set...;</span> - * searchFieldLogBhv.<span style="color: #DD4747">insert</span>(searchFieldLog); - * ... = searchFieldLog.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param searchFieldLog The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final SearchFieldLog searchFieldLog) { - doInsert(searchFieldLog, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * SearchFieldLog searchFieldLog = new SearchFieldLog(); - * searchFieldLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * searchFieldLog.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//searchFieldLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//searchFieldLog.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * searchFieldLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * searchFieldLogBhv.<span style="color: #DD4747">update</span>(searchFieldLog); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param searchFieldLog The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final SearchFieldLog searchFieldLog) { - doUpdate(searchFieldLog, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param searchFieldLog The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final SearchFieldLog searchFieldLog) { - doInsertOrUpdate(searchFieldLog, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * SearchFieldLog searchFieldLog = new SearchFieldLog(); - * searchFieldLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * searchFieldLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * searchFieldLogBhv.<span style="color: #DD4747">delete</span>(searchFieldLog); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param searchFieldLog The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final SearchFieldLog searchFieldLog) { - doDelete(searchFieldLog, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * SearchFieldLog searchFieldLog = new SearchFieldLog(); - * searchFieldLog.setFooName("foo"); - * if (...) { - * searchFieldLog.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * searchFieldLogList.add(searchFieldLog); - * } - * searchFieldLogBhv.<span style="color: #DD4747">batchInsert</span>(searchFieldLogList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param searchFieldLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<SearchFieldLog> searchFieldLogList) { - return doBatchInsert(searchFieldLogList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * SearchFieldLog searchFieldLog = new SearchFieldLog(); - * searchFieldLog.setFooName("foo"); - * if (...) { - * searchFieldLog.setFooPrice(123); - * } else { - * searchFieldLog.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//searchFieldLog.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * searchFieldLogList.add(searchFieldLog); - * } - * searchFieldLogBhv.<span style="color: #DD4747">batchUpdate</span>(searchFieldLogList); - * </pre> - * @param searchFieldLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<SearchFieldLog> searchFieldLogList) { - return doBatchUpdate(searchFieldLogList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * searchFieldLogBhv.<span style="color: #DD4747">batchUpdate</span>(searchFieldLogList, new SpecifyQuery<SearchFieldLogCB>() { - * public void specify(SearchFieldLogCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * searchFieldLogBhv.<span style="color: #DD4747">batchUpdate</span>(searchFieldLogList, new SpecifyQuery<SearchFieldLogCB>() { - * public void specify(SearchFieldLogCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param searchFieldLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<SearchFieldLog> searchFieldLogList, - final SpecifyQuery<SearchFieldLogCB> updateColumnSpec) { - return doBatchUpdate(searchFieldLogList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param searchFieldLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete(final List<SearchFieldLog> searchFieldLogList) { - return doBatchDelete(searchFieldLogList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * searchFieldLogBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<SearchFieldLog, SearchFieldLogCB>() { - * public ConditionBean setup(SearchFieldLog entity, SearchFieldLogCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<SearchFieldLog, SearchFieldLogCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * SearchFieldLog searchFieldLog = new SearchFieldLog(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//searchFieldLog.setPK...(value);</span> - * searchFieldLog.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//searchFieldLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//searchFieldLog.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//searchFieldLog.setVersionNo(value);</span> - * SearchFieldLogCB cb = new SearchFieldLogCB(); - * cb.query().setFoo...(value); - * searchFieldLogBhv.<span style="color: #DD4747">queryUpdate</span>(searchFieldLog, cb); - * </pre> - * @param searchFieldLog The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of SearchFieldLog. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final SearchFieldLog searchFieldLog, - final SearchFieldLogCB cb) { - return doQueryUpdate(searchFieldLog, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * SearchFieldLogCB cb = new SearchFieldLogCB(); - * cb.query().setFoo...(value); - * searchFieldLogBhv.<span style="color: #DD4747">queryDelete</span>(searchFieldLog, cb); - * </pre> - * @param cb The condition-bean of SearchFieldLog. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final SearchFieldLogCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * SearchFieldLog searchFieldLog = new SearchFieldLog(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * searchFieldLog.setFoo...(value); - * searchFieldLog.setBar...(value); - * InsertOption<SearchFieldLogCB> option = new InsertOption<SearchFieldLogCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * searchFieldLogBhv.<span style="color: #DD4747">varyingInsert</span>(searchFieldLog, option); - * ... = searchFieldLog.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param searchFieldLog The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final SearchFieldLog searchFieldLog, - final InsertOption<SearchFieldLogCB> option) { - assertInsertOptionNotNull(option); - doInsert(searchFieldLog, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * SearchFieldLog searchFieldLog = new SearchFieldLog(); - * searchFieldLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * searchFieldLog.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * searchFieldLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<SearchFieldLogCB> option = new UpdateOption<SearchFieldLogCB>(); - * option.self(new SpecifyQuery<SearchFieldLogCB>() { - * public void specify(SearchFieldLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * searchFieldLogBhv.<span style="color: #DD4747">varyingUpdate</span>(searchFieldLog, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param searchFieldLog The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final SearchFieldLog searchFieldLog, - final UpdateOption<SearchFieldLogCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(searchFieldLog, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param searchFieldLog The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final SearchFieldLog searchFieldLog, - final InsertOption<SearchFieldLogCB> insertOption, - final UpdateOption<SearchFieldLogCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(searchFieldLog, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param searchFieldLog The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final SearchFieldLog searchFieldLog, - final DeleteOption<SearchFieldLogCB> option) { - assertDeleteOptionNotNull(option); - doDelete(searchFieldLog, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param searchFieldLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<SearchFieldLog> searchFieldLogList, - final InsertOption<SearchFieldLogCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(searchFieldLogList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param searchFieldLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<SearchFieldLog> searchFieldLogList, - final UpdateOption<SearchFieldLogCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(searchFieldLogList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param searchFieldLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<SearchFieldLog> searchFieldLogList, - final DeleteOption<SearchFieldLogCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(searchFieldLogList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<SearchFieldLog, SearchFieldLogCB> setupper, - final InsertOption<SearchFieldLogCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * SearchFieldLog searchFieldLog = new SearchFieldLog(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//searchFieldLog.setPK...(value);</span> - * searchFieldLog.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//searchFieldLog.setVersionNo(value);</span> - * SearchFieldLogCB cb = new SearchFieldLogCB(); - * cb.query().setFoo...(value); - * UpdateOption<SearchFieldLogCB> option = new UpdateOption<SearchFieldLogCB>(); - * option.self(new SpecifyQuery<SearchFieldLogCB>() { - * public void specify(SearchFieldLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * searchFieldLogBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(searchFieldLog, cb, option); - * </pre> - * @param searchFieldLog The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of SearchFieldLog. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final SearchFieldLog searchFieldLog, - final SearchFieldLogCB cb, - final UpdateOption<SearchFieldLogCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(searchFieldLog, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of SearchFieldLog. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final SearchFieldLogCB cb, - final DeleteOption<SearchFieldLogCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<SearchFieldLogBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends SearchFieldLog> typeOfSelectedEntity() { - return SearchFieldLog.class; - } - - @Override - protected Class<SearchFieldLog> typeOfHandlingEntity() { - return SearchFieldLog.class; - } - - @Override - protected Class<SearchFieldLogCB> typeOfHandlingConditionBean() { - return SearchFieldLogCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsSearchLogBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsSearchLogBhv.java deleted file mode 100644 index 1a51174fa..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsSearchLogBhv.java +++ /dev/null @@ -1,1229 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfSearchLog; -import jp.sf.fess.db.bsentity.dbmeta.SearchLogDbm; -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.cbean.SearchFieldLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.ClickLog; -import jp.sf.fess.db.exentity.SearchFieldLog; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.db.exentity.UserInfo; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.LoadReferrerOption; -import org.seasar.dbflute.bhv.NestedReferrerListGateway; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of SEARCH_LOG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, SEARCH_WORD, REQUESTED_TIME, RESPONSE_TIME, HIT_COUNT, QUERY_OFFSET, QUERY_PAGE_SIZE, USER_AGENT, REFERER, CLIENT_IP, USER_SESSION_ID, ACCESS_TYPE, USER_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * USER_INFO - * - * [referrer table] - * CLICK_LOG, SEARCH_FIELD_LOG - * - * [foreign property] - * userInfo - * - * [referrer property] - * clickLogList, searchFieldLogList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsSearchLogBhv extends - AbstractBehaviorWritable<SearchLog, SearchLogCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - public static final String PATH_selectHotSearchWord = "selectHotSearchWord"; - - public static final String PATH_selectSearchFieldRanking = "selectSearchFieldRanking"; - - public static final String PATH_selectRefererRanking = "selectRefererRanking"; - - public static final String PATH_selectSearchWordRanking = "selectSearchWordRanking"; - - public static final String PATH_selectClientIpRanking = "selectClientIpRanking"; - - public static final String PATH_selectSearchQueryRanking = "selectSearchQueryRanking"; - - public static final String PATH_selectSolrQueryRanking = "selectSolrQueryRanking"; - - public static final String PATH_selectUserAgentRanking = "selectUserAgentRanking"; - - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public SearchLogDbm getDBMeta() { - return SearchLogDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public SearchLogDbm getMyDBMeta() { - return SearchLogDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public SearchLogCB newConditionBean() { - return new SearchLogCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public SearchLog newMyEntity() { - return new SearchLog(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public SearchLogCB newMyConditionBean() { - return new SearchLogCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * SearchLogCB cb = new SearchLogCB(); - * cb.query().setFoo...(value); - * int count = searchLogBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of SearchLog. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final SearchLogCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * SearchLogCB cb = new SearchLogCB(); - * cb.query().setFoo...(value); - * SearchLog searchLog = searchLogBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (searchLog != null) { <span style="color: #3F7E5E">// null check</span> - * ... = searchLog.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of SearchLog. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SearchLog selectEntity(final SearchLogCB cb) { - return facadeSelectEntity(cb); - } - - protected SearchLog facadeSelectEntity(final SearchLogCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends SearchLog> OptionalEntity<ENTITY> doSelectOptionalEntity( - final SearchLogCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * SearchLogCB cb = new SearchLogCB(); - * cb.query().setFoo...(value); - * SearchLog searchLog = searchLogBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = searchLog.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of SearchLog. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SearchLog selectEntityWithDeletedCheck(final SearchLogCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SearchLog selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected SearchLog facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends SearchLog> ENTITY doSelectByPK(final Long id, - final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends SearchLog> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SearchLog selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends SearchLog> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected SearchLogCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * SearchLogCB cb = new SearchLogCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<SearchLog> searchLogList = searchLogBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (SearchLog searchLog : searchLogList) { - * ... = searchLog.get...(); - * } - * </pre> - * @param cb The condition-bean of SearchLog. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<SearchLog> selectList(final SearchLogCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * SearchLogCB cb = new SearchLogCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<SearchLog> page = searchLogBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (SearchLog searchLog : page) { - * ... = searchLog.get...(); - * } - * </pre> - * @param cb The condition-bean of SearchLog. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<SearchLog> selectPage(final SearchLogCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * SearchLogCB cb = new SearchLogCB(); - * cb.query().setFoo...(value); - * searchLogBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<SearchLog>() { - * public void handle(SearchLog entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of SearchLog. (NotNull) - * @param entityRowHandler The handler of entity row of SearchLog. (NotNull) - */ - public void selectCursor(final SearchLogCB cb, - final EntityRowHandler<SearchLog> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * searchLogBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(SearchLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<SearchLogCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param searchLogList The entity list of searchLog. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<SearchLog> searchLogList, - final ReferrerLoaderHandler<LoaderOfSearchLog> handler) { - xassLRArg(searchLogList, handler); - handler.handle(new LoaderOfSearchLog().ready(searchLogList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param searchLog The entity of searchLog. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final SearchLog searchLog, - final ReferrerLoaderHandler<LoaderOfSearchLog> handler) { - xassLRArg(searchLog, handler); - handler.handle(new LoaderOfSearchLog().ready(xnewLRAryLs(searchLog), - _behaviorSelector)); - } - - /** - * Load referrer of clickLogList by the set-upper of referrer. <br /> - * CLICK_LOG by SEARCH_ID, named 'clickLogList'. - * <pre> - * searchLogBhv.<span style="color: #DD4747">loadClickLogList</span>(searchLogList, new ConditionBeanSetupper<ClickLogCB>() { - * public void setup(ClickLogCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (SearchLog searchLog : searchLogList) { - * ... = searchLog.<span style="color: #DD4747">getClickLogList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setSearchId_InScope(pkList); - * cb.query().addOrderBy_SearchId_Asc(); - * </pre> - * @param searchLogList The entity list of searchLog. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<ClickLog> loadClickLogList( - final List<SearchLog> searchLogList, - final ConditionBeanSetupper<ClickLogCB> setupper) { - xassLRArg(searchLogList, setupper); - return doLoadClickLogList(searchLogList, - new LoadReferrerOption<ClickLogCB, ClickLog>().xinit(setupper)); - } - - /** - * Load referrer of clickLogList by the set-upper of referrer. <br /> - * CLICK_LOG by SEARCH_ID, named 'clickLogList'. - * <pre> - * searchLogBhv.<span style="color: #DD4747">loadClickLogList</span>(searchLogList, new ConditionBeanSetupper<ClickLogCB>() { - * public void setup(ClickLogCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = searchLog.<span style="color: #DD4747">getClickLogList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setSearchId_InScope(pkList); - * cb.query().addOrderBy_SearchId_Asc(); - * </pre> - * @param searchLog The entity of searchLog. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<ClickLog> loadClickLogList( - final SearchLog searchLog, - final ConditionBeanSetupper<ClickLogCB> setupper) { - xassLRArg(searchLog, setupper); - return doLoadClickLogList(xnewLRLs(searchLog), - new LoadReferrerOption<ClickLogCB, ClickLog>().xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param searchLog The entity of searchLog. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<ClickLog> loadClickLogList( - final SearchLog searchLog, - final LoadReferrerOption<ClickLogCB, ClickLog> loadReferrerOption) { - xassLRArg(searchLog, loadReferrerOption); - return loadClickLogList(xnewLRLs(searchLog), loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param searchLogList The entity list of searchLog. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<ClickLog> loadClickLogList( - final List<SearchLog> searchLogList, - final LoadReferrerOption<ClickLogCB, ClickLog> loadReferrerOption) { - xassLRArg(searchLogList, loadReferrerOption); - if (searchLogList.isEmpty()) { - return (NestedReferrerListGateway<ClickLog>) EMPTY_NREF_LGWAY; - } - return doLoadClickLogList(searchLogList, loadReferrerOption); - } - - protected NestedReferrerListGateway<ClickLog> doLoadClickLogList( - final List<SearchLog> searchLogList, - final LoadReferrerOption<ClickLogCB, ClickLog> option) { - return helpLoadReferrerInternally(searchLogList, option, "clickLogList"); - } - - /** - * Load referrer of searchFieldLogList by the set-upper of referrer. <br /> - * SEARCH_FIELD_LOG by SEARCH_ID, named 'searchFieldLogList'. - * <pre> - * searchLogBhv.<span style="color: #DD4747">loadSearchFieldLogList</span>(searchLogList, new ConditionBeanSetupper<SearchFieldLogCB>() { - * public void setup(SearchFieldLogCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (SearchLog searchLog : searchLogList) { - * ... = searchLog.<span style="color: #DD4747">getSearchFieldLogList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setSearchId_InScope(pkList); - * cb.query().addOrderBy_SearchId_Asc(); - * </pre> - * @param searchLogList The entity list of searchLog. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<SearchFieldLog> loadSearchFieldLogList( - final List<SearchLog> searchLogList, - final ConditionBeanSetupper<SearchFieldLogCB> setupper) { - xassLRArg(searchLogList, setupper); - return doLoadSearchFieldLogList(searchLogList, - new LoadReferrerOption<SearchFieldLogCB, SearchFieldLog>() - .xinit(setupper)); - } - - /** - * Load referrer of searchFieldLogList by the set-upper of referrer. <br /> - * SEARCH_FIELD_LOG by SEARCH_ID, named 'searchFieldLogList'. - * <pre> - * searchLogBhv.<span style="color: #DD4747">loadSearchFieldLogList</span>(searchLogList, new ConditionBeanSetupper<SearchFieldLogCB>() { - * public void setup(SearchFieldLogCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = searchLog.<span style="color: #DD4747">getSearchFieldLogList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setSearchId_InScope(pkList); - * cb.query().addOrderBy_SearchId_Asc(); - * </pre> - * @param searchLog The entity of searchLog. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<SearchFieldLog> loadSearchFieldLogList( - final SearchLog searchLog, - final ConditionBeanSetupper<SearchFieldLogCB> setupper) { - xassLRArg(searchLog, setupper); - return doLoadSearchFieldLogList(xnewLRLs(searchLog), - new LoadReferrerOption<SearchFieldLogCB, SearchFieldLog>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param searchLog The entity of searchLog. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<SearchFieldLog> loadSearchFieldLogList( - final SearchLog searchLog, - final LoadReferrerOption<SearchFieldLogCB, SearchFieldLog> loadReferrerOption) { - xassLRArg(searchLog, loadReferrerOption); - return loadSearchFieldLogList(xnewLRLs(searchLog), loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param searchLogList The entity list of searchLog. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<SearchFieldLog> loadSearchFieldLogList( - final List<SearchLog> searchLogList, - final LoadReferrerOption<SearchFieldLogCB, SearchFieldLog> loadReferrerOption) { - xassLRArg(searchLogList, loadReferrerOption); - if (searchLogList.isEmpty()) { - return (NestedReferrerListGateway<SearchFieldLog>) EMPTY_NREF_LGWAY; - } - return doLoadSearchFieldLogList(searchLogList, loadReferrerOption); - } - - protected NestedReferrerListGateway<SearchFieldLog> doLoadSearchFieldLogList( - final List<SearchLog> searchLogList, - final LoadReferrerOption<SearchFieldLogCB, SearchFieldLog> option) { - return helpLoadReferrerInternally(searchLogList, option, - "searchFieldLogList"); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'UserInfo'. - * @param searchLogList The list of searchLog. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<UserInfo> pulloutUserInfo(final List<SearchLog> searchLogList) { - return helpPulloutInternally(searchLogList, "userInfo"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param searchLogList The list of searchLog. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList(final List<SearchLog> searchLogList) { - return helpExtractListInternally(searchLogList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * SearchLog searchLog = new SearchLog(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * searchLog.setFoo...(value); - * searchLog.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//searchLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//searchLog.set...;</span> - * searchLogBhv.<span style="color: #DD4747">insert</span>(searchLog); - * ... = searchLog.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param searchLog The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final SearchLog searchLog) { - doInsert(searchLog, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * SearchLog searchLog = new SearchLog(); - * searchLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * searchLog.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//searchLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//searchLog.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * searchLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * searchLogBhv.<span style="color: #DD4747">update</span>(searchLog); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param searchLog The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final SearchLog searchLog) { - doUpdate(searchLog, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param searchLog The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final SearchLog searchLog) { - doInsertOrUpdate(searchLog, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * SearchLog searchLog = new SearchLog(); - * searchLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * searchLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * searchLogBhv.<span style="color: #DD4747">delete</span>(searchLog); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param searchLog The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final SearchLog searchLog) { - doDelete(searchLog, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * SearchLog searchLog = new SearchLog(); - * searchLog.setFooName("foo"); - * if (...) { - * searchLog.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * searchLogList.add(searchLog); - * } - * searchLogBhv.<span style="color: #DD4747">batchInsert</span>(searchLogList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param searchLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<SearchLog> searchLogList) { - return doBatchInsert(searchLogList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * SearchLog searchLog = new SearchLog(); - * searchLog.setFooName("foo"); - * if (...) { - * searchLog.setFooPrice(123); - * } else { - * searchLog.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//searchLog.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * searchLogList.add(searchLog); - * } - * searchLogBhv.<span style="color: #DD4747">batchUpdate</span>(searchLogList); - * </pre> - * @param searchLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<SearchLog> searchLogList) { - return doBatchUpdate(searchLogList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * searchLogBhv.<span style="color: #DD4747">batchUpdate</span>(searchLogList, new SpecifyQuery<SearchLogCB>() { - * public void specify(SearchLogCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * searchLogBhv.<span style="color: #DD4747">batchUpdate</span>(searchLogList, new SpecifyQuery<SearchLogCB>() { - * public void specify(SearchLogCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param searchLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<SearchLog> searchLogList, - final SpecifyQuery<SearchLogCB> updateColumnSpec) { - return doBatchUpdate(searchLogList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param searchLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete(final List<SearchLog> searchLogList) { - return doBatchDelete(searchLogList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * searchLogBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<SearchLog, SearchLogCB>() { - * public ConditionBean setup(SearchLog entity, SearchLogCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<SearchLog, SearchLogCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * SearchLog searchLog = new SearchLog(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//searchLog.setPK...(value);</span> - * searchLog.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//searchLog.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//searchLog.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//searchLog.setVersionNo(value);</span> - * SearchLogCB cb = new SearchLogCB(); - * cb.query().setFoo...(value); - * searchLogBhv.<span style="color: #DD4747">queryUpdate</span>(searchLog, cb); - * </pre> - * @param searchLog The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of SearchLog. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final SearchLog searchLog, final SearchLogCB cb) { - return doQueryUpdate(searchLog, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * SearchLogCB cb = new SearchLogCB(); - * cb.query().setFoo...(value); - * searchLogBhv.<span style="color: #DD4747">queryDelete</span>(searchLog, cb); - * </pre> - * @param cb The condition-bean of SearchLog. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final SearchLogCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * SearchLog searchLog = new SearchLog(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * searchLog.setFoo...(value); - * searchLog.setBar...(value); - * InsertOption<SearchLogCB> option = new InsertOption<SearchLogCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * searchLogBhv.<span style="color: #DD4747">varyingInsert</span>(searchLog, option); - * ... = searchLog.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param searchLog The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final SearchLog searchLog, - final InsertOption<SearchLogCB> option) { - assertInsertOptionNotNull(option); - doInsert(searchLog, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * SearchLog searchLog = new SearchLog(); - * searchLog.setPK...(value); <span style="color: #3F7E5E">// required</span> - * searchLog.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * searchLog.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<SearchLogCB> option = new UpdateOption<SearchLogCB>(); - * option.self(new SpecifyQuery<SearchLogCB>() { - * public void specify(SearchLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * searchLogBhv.<span style="color: #DD4747">varyingUpdate</span>(searchLog, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param searchLog The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final SearchLog searchLog, - final UpdateOption<SearchLogCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(searchLog, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param searchLog The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final SearchLog searchLog, - final InsertOption<SearchLogCB> insertOption, - final UpdateOption<SearchLogCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(searchLog, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param searchLog The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final SearchLog searchLog, - final DeleteOption<SearchLogCB> option) { - assertDeleteOptionNotNull(option); - doDelete(searchLog, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param searchLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert(final List<SearchLog> searchLogList, - final InsertOption<SearchLogCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(searchLogList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param searchLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate(final List<SearchLog> searchLogList, - final UpdateOption<SearchLogCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(searchLogList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param searchLogList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete(final List<SearchLog> searchLogList, - final DeleteOption<SearchLogCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(searchLogList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<SearchLog, SearchLogCB> setupper, - final InsertOption<SearchLogCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * SearchLog searchLog = new SearchLog(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//searchLog.setPK...(value);</span> - * searchLog.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//searchLog.setVersionNo(value);</span> - * SearchLogCB cb = new SearchLogCB(); - * cb.query().setFoo...(value); - * UpdateOption<SearchLogCB> option = new UpdateOption<SearchLogCB>(); - * option.self(new SpecifyQuery<SearchLogCB>() { - * public void specify(SearchLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * searchLogBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(searchLog, cb, option); - * </pre> - * @param searchLog The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of SearchLog. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final SearchLog searchLog, - final SearchLogCB cb, final UpdateOption<SearchLogCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(searchLog, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of SearchLog. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final SearchLogCB cb, - final DeleteOption<SearchLogCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<SearchLogBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends SearchLog> typeOfSelectedEntity() { - return SearchLog.class; - } - - @Override - protected Class<SearchLog> typeOfHandlingEntity() { - return SearchLog.class; - } - - @Override - protected Class<SearchLogCB> typeOfHandlingConditionBean() { - return SearchLogCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsSuggestBadWordBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsSuggestBadWordBhv.java deleted file mode 100644 index 42a5fc6c3..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsSuggestBadWordBhv.java +++ /dev/null @@ -1,1248 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfSuggestBadWord; -import jp.sf.fess.db.bsentity.dbmeta.SuggestBadWordDbm; -import jp.sf.fess.db.cbean.SuggestBadWordCB; -import jp.sf.fess.db.exbhv.SuggestBadWordBhv; -import jp.sf.fess.db.exentity.SuggestBadWord; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of SUGGEST_BAD_WORD as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, SUGGEST_WORD, TARGET_ROLE, TARGET_LABEL, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsSuggestBadWordBhv extends - AbstractBehaviorWritable<SuggestBadWord, SuggestBadWordCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public SuggestBadWordDbm getDBMeta() { - return SuggestBadWordDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public SuggestBadWordDbm getMyDBMeta() { - return SuggestBadWordDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public SuggestBadWordCB newConditionBean() { - return new SuggestBadWordCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public SuggestBadWord newMyEntity() { - return new SuggestBadWord(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public SuggestBadWordCB newMyConditionBean() { - return new SuggestBadWordCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * SuggestBadWordCB cb = new SuggestBadWordCB(); - * cb.query().setFoo...(value); - * int count = suggestBadWordBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of SuggestBadWord. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final SuggestBadWordCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * SuggestBadWordCB cb = new SuggestBadWordCB(); - * cb.query().setFoo...(value); - * SuggestBadWord suggestBadWord = suggestBadWordBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (suggestBadWord != null) { <span style="color: #3F7E5E">// null check</span> - * ... = suggestBadWord.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of SuggestBadWord. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SuggestBadWord selectEntity(final SuggestBadWordCB cb) { - return facadeSelectEntity(cb); - } - - protected SuggestBadWord facadeSelectEntity(final SuggestBadWordCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends SuggestBadWord> OptionalEntity<ENTITY> doSelectOptionalEntity( - final SuggestBadWordCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * SuggestBadWordCB cb = new SuggestBadWordCB(); - * cb.query().setFoo...(value); - * SuggestBadWord suggestBadWord = suggestBadWordBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = suggestBadWord.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of SuggestBadWord. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SuggestBadWord selectEntityWithDeletedCheck(final SuggestBadWordCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SuggestBadWord selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected SuggestBadWord facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends SuggestBadWord> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends SuggestBadWord> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SuggestBadWord selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends SuggestBadWord> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected SuggestBadWordCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * SuggestBadWordCB cb = new SuggestBadWordCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<SuggestBadWord> suggestBadWordList = suggestBadWordBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (SuggestBadWord suggestBadWord : suggestBadWordList) { - * ... = suggestBadWord.get...(); - * } - * </pre> - * @param cb The condition-bean of SuggestBadWord. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<SuggestBadWord> selectList(final SuggestBadWordCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * SuggestBadWordCB cb = new SuggestBadWordCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<SuggestBadWord> page = suggestBadWordBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (SuggestBadWord suggestBadWord : page) { - * ... = suggestBadWord.get...(); - * } - * </pre> - * @param cb The condition-bean of SuggestBadWord. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<SuggestBadWord> selectPage(final SuggestBadWordCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * SuggestBadWordCB cb = new SuggestBadWordCB(); - * cb.query().setFoo...(value); - * suggestBadWordBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<SuggestBadWord>() { - * public void handle(SuggestBadWord entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of SuggestBadWord. (NotNull) - * @param entityRowHandler The handler of entity row of SuggestBadWord. (NotNull) - */ - public void selectCursor(final SuggestBadWordCB cb, - final EntityRowHandler<SuggestBadWord> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * suggestBadWordBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(SuggestBadWordCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<SuggestBadWordCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param suggestBadWordList The entity list of suggestBadWord. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<SuggestBadWord> suggestBadWordList, - final ReferrerLoaderHandler<LoaderOfSuggestBadWord> handler) { - xassLRArg(suggestBadWordList, handler); - handler.handle(new LoaderOfSuggestBadWord().ready(suggestBadWordList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param suggestBadWord The entity of suggestBadWord. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final SuggestBadWord suggestBadWord, - final ReferrerLoaderHandler<LoaderOfSuggestBadWord> handler) { - xassLRArg(suggestBadWord, handler); - handler.handle(new LoaderOfSuggestBadWord().ready( - xnewLRAryLs(suggestBadWord), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param suggestBadWordList The list of suggestBadWord. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<SuggestBadWord> suggestBadWordList) { - return helpExtractListInternally(suggestBadWordList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * suggestBadWord.setFoo...(value); - * suggestBadWord.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//suggestBadWord.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//suggestBadWord.set...;</span> - * suggestBadWordBhv.<span style="color: #DD4747">insert</span>(suggestBadWord); - * ... = suggestBadWord.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param suggestBadWord The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final SuggestBadWord suggestBadWord) { - doInsert(suggestBadWord, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * suggestBadWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * suggestBadWord.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//suggestBadWord.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//suggestBadWord.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * suggestBadWord.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * suggestBadWordBhv.<span style="color: #DD4747">update</span>(suggestBadWord); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param suggestBadWord The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final SuggestBadWord suggestBadWord) { - doUpdate(suggestBadWord, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * suggestBadWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * suggestBadWord.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//suggestBadWord.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//suggestBadWord.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//suggestBadWord.setVersionNo(value);</span> - * suggestBadWordBhv.<span style="color: #DD4747">updateNonstrict</span>(suggestBadWord); - * </pre> - * @param suggestBadWord The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final SuggestBadWord suggestBadWord) { - doUpdateNonstrict(suggestBadWord, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param suggestBadWord The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final SuggestBadWord suggestBadWord) { - doInsertOrUpdate(suggestBadWord, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param suggestBadWord The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict(final SuggestBadWord suggestBadWord) { - doInsertOrUpdateNonstrict(suggestBadWord, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * suggestBadWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * suggestBadWord.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * suggestBadWordBhv.<span style="color: #DD4747">delete</span>(suggestBadWord); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param suggestBadWord The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final SuggestBadWord suggestBadWord) { - doDelete(suggestBadWord, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * suggestBadWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//suggestBadWord.setVersionNo(value);</span> - * suggestBadWordBhv.<span style="color: #DD4747">deleteNonstrict</span>(suggestBadWord); - * </pre> - * @param suggestBadWord The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final SuggestBadWord suggestBadWord) { - doDeleteNonstrict(suggestBadWord, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * suggestBadWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//suggestBadWord.setVersionNo(value);</span> - * suggestBadWordBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(suggestBadWord); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param suggestBadWord The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted(final SuggestBadWord suggestBadWord) { - doDeleteNonstrictIgnoreDeleted(suggestBadWord, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final SuggestBadWord et, - final DeleteOption<SuggestBadWordCB> op) { - assertObjectNotNull("suggestBadWord", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * suggestBadWord.setFooName("foo"); - * if (...) { - * suggestBadWord.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * suggestBadWordList.add(suggestBadWord); - * } - * suggestBadWordBhv.<span style="color: #DD4747">batchInsert</span>(suggestBadWordList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param suggestBadWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<SuggestBadWord> suggestBadWordList) { - return doBatchInsert(suggestBadWordList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * suggestBadWord.setFooName("foo"); - * if (...) { - * suggestBadWord.setFooPrice(123); - * } else { - * suggestBadWord.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//suggestBadWord.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * suggestBadWordList.add(suggestBadWord); - * } - * suggestBadWordBhv.<span style="color: #DD4747">batchUpdate</span>(suggestBadWordList); - * </pre> - * @param suggestBadWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<SuggestBadWord> suggestBadWordList) { - return doBatchUpdate(suggestBadWordList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * suggestBadWordBhv.<span style="color: #DD4747">batchUpdate</span>(suggestBadWordList, new SpecifyQuery<SuggestBadWordCB>() { - * public void specify(SuggestBadWordCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * suggestBadWordBhv.<span style="color: #DD4747">batchUpdate</span>(suggestBadWordList, new SpecifyQuery<SuggestBadWordCB>() { - * public void specify(SuggestBadWordCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param suggestBadWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<SuggestBadWord> suggestBadWordList, - final SpecifyQuery<SuggestBadWordCB> updateColumnSpec) { - return doBatchUpdate(suggestBadWordList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * suggestBadWord.setFooName("foo"); - * if (...) { - * suggestBadWord.setFooPrice(123); - * } else { - * suggestBadWord.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//suggestBadWord.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * suggestBadWordList.add(suggestBadWord); - * } - * suggestBadWordBhv.<span style="color: #DD4747">batchUpdate</span>(suggestBadWordList); - * </pre> - * @param suggestBadWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<SuggestBadWord> suggestBadWordList) { - return doBatchUpdateNonstrict(suggestBadWordList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * suggestBadWordBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(suggestBadWordList, new SpecifyQuery<SuggestBadWordCB>() { - * public void specify(SuggestBadWordCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * suggestBadWordBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(suggestBadWordList, new SpecifyQuery<SuggestBadWordCB>() { - * public void specify(SuggestBadWordCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param suggestBadWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<SuggestBadWord> suggestBadWordList, - final SpecifyQuery<SuggestBadWordCB> updateColumnSpec) { - return doBatchUpdateNonstrict(suggestBadWordList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param suggestBadWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete(final List<SuggestBadWord> suggestBadWordList) { - return doBatchDelete(suggestBadWordList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param suggestBadWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict( - final List<SuggestBadWord> suggestBadWordList) { - return doBatchDeleteNonstrict(suggestBadWordList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * suggestBadWordBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<SuggestBadWord, SuggestBadWordCB>() { - * public ConditionBean setup(SuggestBadWord entity, SuggestBadWordCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<SuggestBadWord, SuggestBadWordCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//suggestBadWord.setPK...(value);</span> - * suggestBadWord.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//suggestBadWord.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//suggestBadWord.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//suggestBadWord.setVersionNo(value);</span> - * SuggestBadWordCB cb = new SuggestBadWordCB(); - * cb.query().setFoo...(value); - * suggestBadWordBhv.<span style="color: #DD4747">queryUpdate</span>(suggestBadWord, cb); - * </pre> - * @param suggestBadWord The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of SuggestBadWord. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final SuggestBadWord suggestBadWord, - final SuggestBadWordCB cb) { - return doQueryUpdate(suggestBadWord, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * SuggestBadWordCB cb = new SuggestBadWordCB(); - * cb.query().setFoo...(value); - * suggestBadWordBhv.<span style="color: #DD4747">queryDelete</span>(suggestBadWord, cb); - * </pre> - * @param cb The condition-bean of SuggestBadWord. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final SuggestBadWordCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * suggestBadWord.setFoo...(value); - * suggestBadWord.setBar...(value); - * InsertOption<SuggestBadWordCB> option = new InsertOption<SuggestBadWordCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * suggestBadWordBhv.<span style="color: #DD4747">varyingInsert</span>(suggestBadWord, option); - * ... = suggestBadWord.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param suggestBadWord The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final SuggestBadWord suggestBadWord, - final InsertOption<SuggestBadWordCB> option) { - assertInsertOptionNotNull(option); - doInsert(suggestBadWord, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * suggestBadWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * suggestBadWord.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * suggestBadWord.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<SuggestBadWordCB> option = new UpdateOption<SuggestBadWordCB>(); - * option.self(new SpecifyQuery<SuggestBadWordCB>() { - * public void specify(SuggestBadWordCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * suggestBadWordBhv.<span style="color: #DD4747">varyingUpdate</span>(suggestBadWord, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param suggestBadWord The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final SuggestBadWord suggestBadWord, - final UpdateOption<SuggestBadWordCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(suggestBadWord, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * suggestBadWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * suggestBadWord.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//suggestBadWord.setVersionNo(value);</span> - * UpdateOption<SuggestBadWordCB> option = new UpdateOption<SuggestBadWordCB>(); - * option.self(new SpecifyQuery<SuggestBadWordCB>() { - * public void specify(SuggestBadWordCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * suggestBadWordBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(suggestBadWord, option); - * </pre> - * @param suggestBadWord The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict(final SuggestBadWord suggestBadWord, - final UpdateOption<SuggestBadWordCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(suggestBadWord, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param suggestBadWord The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final SuggestBadWord suggestBadWord, - final InsertOption<SuggestBadWordCB> insertOption, - final UpdateOption<SuggestBadWordCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(suggestBadWord, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param suggestBadWord The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict( - final SuggestBadWord suggestBadWord, - final InsertOption<SuggestBadWordCB> insertOption, - final UpdateOption<SuggestBadWordCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(suggestBadWord, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param suggestBadWord The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final SuggestBadWord suggestBadWord, - final DeleteOption<SuggestBadWordCB> option) { - assertDeleteOptionNotNull(option); - doDelete(suggestBadWord, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param suggestBadWord The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict(final SuggestBadWord suggestBadWord, - final DeleteOption<SuggestBadWordCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(suggestBadWord, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param suggestBadWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<SuggestBadWord> suggestBadWordList, - final InsertOption<SuggestBadWordCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(suggestBadWordList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param suggestBadWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<SuggestBadWord> suggestBadWordList, - final UpdateOption<SuggestBadWordCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(suggestBadWordList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param suggestBadWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<SuggestBadWord> suggestBadWordList, - final UpdateOption<SuggestBadWordCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(suggestBadWordList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param suggestBadWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<SuggestBadWord> suggestBadWordList, - final DeleteOption<SuggestBadWordCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(suggestBadWordList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param suggestBadWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<SuggestBadWord> suggestBadWordList, - final DeleteOption<SuggestBadWordCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(suggestBadWordList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<SuggestBadWord, SuggestBadWordCB> setupper, - final InsertOption<SuggestBadWordCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * SuggestBadWord suggestBadWord = new SuggestBadWord(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//suggestBadWord.setPK...(value);</span> - * suggestBadWord.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//suggestBadWord.setVersionNo(value);</span> - * SuggestBadWordCB cb = new SuggestBadWordCB(); - * cb.query().setFoo...(value); - * UpdateOption<SuggestBadWordCB> option = new UpdateOption<SuggestBadWordCB>(); - * option.self(new SpecifyQuery<SuggestBadWordCB>() { - * public void specify(SuggestBadWordCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * suggestBadWordBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(suggestBadWord, cb, option); - * </pre> - * @param suggestBadWord The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of SuggestBadWord. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final SuggestBadWord suggestBadWord, - final SuggestBadWordCB cb, - final UpdateOption<SuggestBadWordCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(suggestBadWord, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of SuggestBadWord. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final SuggestBadWordCB cb, - final DeleteOption<SuggestBadWordCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<SuggestBadWordBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends SuggestBadWord> typeOfSelectedEntity() { - return SuggestBadWord.class; - } - - @Override - protected Class<SuggestBadWord> typeOfHandlingEntity() { - return SuggestBadWord.class; - } - - @Override - protected Class<SuggestBadWordCB> typeOfHandlingConditionBean() { - return SuggestBadWordCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsSuggestElevateWordBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsSuggestElevateWordBhv.java deleted file mode 100644 index 91d3ca7b4..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsSuggestElevateWordBhv.java +++ /dev/null @@ -1,1262 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfSuggestElevateWord; -import jp.sf.fess.db.bsentity.dbmeta.SuggestElevateWordDbm; -import jp.sf.fess.db.cbean.SuggestElevateWordCB; -import jp.sf.fess.db.exbhv.SuggestElevateWordBhv; -import jp.sf.fess.db.exentity.SuggestElevateWord; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of SUGGEST_ELEVATE_WORD as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, SUGGEST_WORD, READING, TARGET_ROLE, TARGET_LABEL, BOOST, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsSuggestElevateWordBhv extends - AbstractBehaviorWritable<SuggestElevateWord, SuggestElevateWordCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public SuggestElevateWordDbm getDBMeta() { - return SuggestElevateWordDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public SuggestElevateWordDbm getMyDBMeta() { - return SuggestElevateWordDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public SuggestElevateWordCB newConditionBean() { - return new SuggestElevateWordCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public SuggestElevateWord newMyEntity() { - return new SuggestElevateWord(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public SuggestElevateWordCB newMyConditionBean() { - return new SuggestElevateWordCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * SuggestElevateWordCB cb = new SuggestElevateWordCB(); - * cb.query().setFoo...(value); - * int count = suggestElevateWordBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of SuggestElevateWord. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final SuggestElevateWordCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * SuggestElevateWordCB cb = new SuggestElevateWordCB(); - * cb.query().setFoo...(value); - * SuggestElevateWord suggestElevateWord = suggestElevateWordBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (suggestElevateWord != null) { <span style="color: #3F7E5E">// null check</span> - * ... = suggestElevateWord.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of SuggestElevateWord. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SuggestElevateWord selectEntity(final SuggestElevateWordCB cb) { - return facadeSelectEntity(cb); - } - - protected SuggestElevateWord facadeSelectEntity( - final SuggestElevateWordCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends SuggestElevateWord> OptionalEntity<ENTITY> doSelectOptionalEntity( - final SuggestElevateWordCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * SuggestElevateWordCB cb = new SuggestElevateWordCB(); - * cb.query().setFoo...(value); - * SuggestElevateWord suggestElevateWord = suggestElevateWordBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = suggestElevateWord.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of SuggestElevateWord. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SuggestElevateWord selectEntityWithDeletedCheck( - final SuggestElevateWordCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SuggestElevateWord selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected SuggestElevateWord facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends SuggestElevateWord> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends SuggestElevateWord> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public SuggestElevateWord selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends SuggestElevateWord> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected SuggestElevateWordCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * SuggestElevateWordCB cb = new SuggestElevateWordCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<SuggestElevateWord> suggestElevateWordList = suggestElevateWordBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (SuggestElevateWord suggestElevateWord : suggestElevateWordList) { - * ... = suggestElevateWord.get...(); - * } - * </pre> - * @param cb The condition-bean of SuggestElevateWord. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<SuggestElevateWord> selectList( - final SuggestElevateWordCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * SuggestElevateWordCB cb = new SuggestElevateWordCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<SuggestElevateWord> page = suggestElevateWordBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (SuggestElevateWord suggestElevateWord : page) { - * ... = suggestElevateWord.get...(); - * } - * </pre> - * @param cb The condition-bean of SuggestElevateWord. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<SuggestElevateWord> selectPage( - final SuggestElevateWordCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * SuggestElevateWordCB cb = new SuggestElevateWordCB(); - * cb.query().setFoo...(value); - * suggestElevateWordBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<SuggestElevateWord>() { - * public void handle(SuggestElevateWord entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of SuggestElevateWord. (NotNull) - * @param entityRowHandler The handler of entity row of SuggestElevateWord. (NotNull) - */ - public void selectCursor(final SuggestElevateWordCB cb, - final EntityRowHandler<SuggestElevateWord> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * suggestElevateWordBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(SuggestElevateWordCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<SuggestElevateWordCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param suggestElevateWordList The entity list of suggestElevateWord. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<SuggestElevateWord> suggestElevateWordList, - final ReferrerLoaderHandler<LoaderOfSuggestElevateWord> handler) { - xassLRArg(suggestElevateWordList, handler); - handler.handle(new LoaderOfSuggestElevateWord().ready( - suggestElevateWordList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param suggestElevateWord The entity of suggestElevateWord. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final SuggestElevateWord suggestElevateWord, - final ReferrerLoaderHandler<LoaderOfSuggestElevateWord> handler) { - xassLRArg(suggestElevateWord, handler); - handler.handle(new LoaderOfSuggestElevateWord().ready( - xnewLRAryLs(suggestElevateWord), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param suggestElevateWordList The list of suggestElevateWord. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<SuggestElevateWord> suggestElevateWordList) { - return helpExtractListInternally(suggestElevateWordList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * suggestElevateWord.setFoo...(value); - * suggestElevateWord.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//suggestElevateWord.set...;</span> - * suggestElevateWordBhv.<span style="color: #DD4747">insert</span>(suggestElevateWord); - * ... = suggestElevateWord.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param suggestElevateWord The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final SuggestElevateWord suggestElevateWord) { - doInsert(suggestElevateWord, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * suggestElevateWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * suggestElevateWord.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//suggestElevateWord.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * suggestElevateWord.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * suggestElevateWordBhv.<span style="color: #DD4747">update</span>(suggestElevateWord); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param suggestElevateWord The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final SuggestElevateWord suggestElevateWord) { - doUpdate(suggestElevateWord, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * suggestElevateWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * suggestElevateWord.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//suggestElevateWord.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setVersionNo(value);</span> - * suggestElevateWordBhv.<span style="color: #DD4747">updateNonstrict</span>(suggestElevateWord); - * </pre> - * @param suggestElevateWord The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final SuggestElevateWord suggestElevateWord) { - doUpdateNonstrict(suggestElevateWord, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param suggestElevateWord The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final SuggestElevateWord suggestElevateWord) { - doInsertOrUpdate(suggestElevateWord, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param suggestElevateWord The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict( - final SuggestElevateWord suggestElevateWord) { - doInsertOrUpdateNonstrict(suggestElevateWord, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * suggestElevateWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * suggestElevateWord.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * suggestElevateWordBhv.<span style="color: #DD4747">delete</span>(suggestElevateWord); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param suggestElevateWord The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final SuggestElevateWord suggestElevateWord) { - doDelete(suggestElevateWord, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * suggestElevateWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setVersionNo(value);</span> - * suggestElevateWordBhv.<span style="color: #DD4747">deleteNonstrict</span>(suggestElevateWord); - * </pre> - * @param suggestElevateWord The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final SuggestElevateWord suggestElevateWord) { - doDeleteNonstrict(suggestElevateWord, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * suggestElevateWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setVersionNo(value);</span> - * suggestElevateWordBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(suggestElevateWord); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param suggestElevateWord The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted( - final SuggestElevateWord suggestElevateWord) { - doDeleteNonstrictIgnoreDeleted(suggestElevateWord, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final SuggestElevateWord et, - final DeleteOption<SuggestElevateWordCB> op) { - assertObjectNotNull("suggestElevateWord", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * suggestElevateWord.setFooName("foo"); - * if (...) { - * suggestElevateWord.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * suggestElevateWordList.add(suggestElevateWord); - * } - * suggestElevateWordBhv.<span style="color: #DD4747">batchInsert</span>(suggestElevateWordList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param suggestElevateWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert( - final List<SuggestElevateWord> suggestElevateWordList) { - return doBatchInsert(suggestElevateWordList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * suggestElevateWord.setFooName("foo"); - * if (...) { - * suggestElevateWord.setFooPrice(123); - * } else { - * suggestElevateWord.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * suggestElevateWordList.add(suggestElevateWord); - * } - * suggestElevateWordBhv.<span style="color: #DD4747">batchUpdate</span>(suggestElevateWordList); - * </pre> - * @param suggestElevateWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate( - final List<SuggestElevateWord> suggestElevateWordList) { - return doBatchUpdate(suggestElevateWordList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * suggestElevateWordBhv.<span style="color: #DD4747">batchUpdate</span>(suggestElevateWordList, new SpecifyQuery<SuggestElevateWordCB>() { - * public void specify(SuggestElevateWordCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * suggestElevateWordBhv.<span style="color: #DD4747">batchUpdate</span>(suggestElevateWordList, new SpecifyQuery<SuggestElevateWordCB>() { - * public void specify(SuggestElevateWordCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param suggestElevateWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate( - final List<SuggestElevateWord> suggestElevateWordList, - final SpecifyQuery<SuggestElevateWordCB> updateColumnSpec) { - return doBatchUpdate(suggestElevateWordList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * suggestElevateWord.setFooName("foo"); - * if (...) { - * suggestElevateWord.setFooPrice(123); - * } else { - * suggestElevateWord.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * suggestElevateWordList.add(suggestElevateWord); - * } - * suggestElevateWordBhv.<span style="color: #DD4747">batchUpdate</span>(suggestElevateWordList); - * </pre> - * @param suggestElevateWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<SuggestElevateWord> suggestElevateWordList) { - return doBatchUpdateNonstrict(suggestElevateWordList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * suggestElevateWordBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(suggestElevateWordList, new SpecifyQuery<SuggestElevateWordCB>() { - * public void specify(SuggestElevateWordCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * suggestElevateWordBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(suggestElevateWordList, new SpecifyQuery<SuggestElevateWordCB>() { - * public void specify(SuggestElevateWordCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param suggestElevateWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<SuggestElevateWord> suggestElevateWordList, - final SpecifyQuery<SuggestElevateWordCB> updateColumnSpec) { - return doBatchUpdateNonstrict(suggestElevateWordList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param suggestElevateWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete( - final List<SuggestElevateWord> suggestElevateWordList) { - return doBatchDelete(suggestElevateWordList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param suggestElevateWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict( - final List<SuggestElevateWord> suggestElevateWordList) { - return doBatchDeleteNonstrict(suggestElevateWordList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * suggestElevateWordBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<SuggestElevateWord, SuggestElevateWordCB>() { - * public ConditionBean setup(SuggestElevateWord entity, SuggestElevateWordCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<SuggestElevateWord, SuggestElevateWordCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setPK...(value);</span> - * suggestElevateWord.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//suggestElevateWord.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setVersionNo(value);</span> - * SuggestElevateWordCB cb = new SuggestElevateWordCB(); - * cb.query().setFoo...(value); - * suggestElevateWordBhv.<span style="color: #DD4747">queryUpdate</span>(suggestElevateWord, cb); - * </pre> - * @param suggestElevateWord The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of SuggestElevateWord. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final SuggestElevateWord suggestElevateWord, - final SuggestElevateWordCB cb) { - return doQueryUpdate(suggestElevateWord, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * SuggestElevateWordCB cb = new SuggestElevateWordCB(); - * cb.query().setFoo...(value); - * suggestElevateWordBhv.<span style="color: #DD4747">queryDelete</span>(suggestElevateWord, cb); - * </pre> - * @param cb The condition-bean of SuggestElevateWord. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final SuggestElevateWordCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * suggestElevateWord.setFoo...(value); - * suggestElevateWord.setBar...(value); - * InsertOption<SuggestElevateWordCB> option = new InsertOption<SuggestElevateWordCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * suggestElevateWordBhv.<span style="color: #DD4747">varyingInsert</span>(suggestElevateWord, option); - * ... = suggestElevateWord.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param suggestElevateWord The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final SuggestElevateWord suggestElevateWord, - final InsertOption<SuggestElevateWordCB> option) { - assertInsertOptionNotNull(option); - doInsert(suggestElevateWord, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * suggestElevateWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * suggestElevateWord.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * suggestElevateWord.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<SuggestElevateWordCB> option = new UpdateOption<SuggestElevateWordCB>(); - * option.self(new SpecifyQuery<SuggestElevateWordCB>() { - * public void specify(SuggestElevateWordCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * suggestElevateWordBhv.<span style="color: #DD4747">varyingUpdate</span>(suggestElevateWord, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param suggestElevateWord The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final SuggestElevateWord suggestElevateWord, - final UpdateOption<SuggestElevateWordCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(suggestElevateWord, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * suggestElevateWord.setPK...(value); <span style="color: #3F7E5E">// required</span> - * suggestElevateWord.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setVersionNo(value);</span> - * UpdateOption<SuggestElevateWordCB> option = new UpdateOption<SuggestElevateWordCB>(); - * option.self(new SpecifyQuery<SuggestElevateWordCB>() { - * public void specify(SuggestElevateWordCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * suggestElevateWordBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(suggestElevateWord, option); - * </pre> - * @param suggestElevateWord The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict( - final SuggestElevateWord suggestElevateWord, - final UpdateOption<SuggestElevateWordCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(suggestElevateWord, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param suggestElevateWord The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final SuggestElevateWord suggestElevateWord, - final InsertOption<SuggestElevateWordCB> insertOption, - final UpdateOption<SuggestElevateWordCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(suggestElevateWord, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param suggestElevateWord The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict( - final SuggestElevateWord suggestElevateWord, - final InsertOption<SuggestElevateWordCB> insertOption, - final UpdateOption<SuggestElevateWordCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(suggestElevateWord, insertOption, - updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param suggestElevateWord The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final SuggestElevateWord suggestElevateWord, - final DeleteOption<SuggestElevateWordCB> option) { - assertDeleteOptionNotNull(option); - doDelete(suggestElevateWord, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param suggestElevateWord The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict( - final SuggestElevateWord suggestElevateWord, - final DeleteOption<SuggestElevateWordCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(suggestElevateWord, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param suggestElevateWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<SuggestElevateWord> suggestElevateWordList, - final InsertOption<SuggestElevateWordCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(suggestElevateWordList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param suggestElevateWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<SuggestElevateWord> suggestElevateWordList, - final UpdateOption<SuggestElevateWordCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(suggestElevateWordList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param suggestElevateWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<SuggestElevateWord> suggestElevateWordList, - final UpdateOption<SuggestElevateWordCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(suggestElevateWordList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param suggestElevateWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<SuggestElevateWord> suggestElevateWordList, - final DeleteOption<SuggestElevateWordCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(suggestElevateWordList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param suggestElevateWordList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<SuggestElevateWord> suggestElevateWordList, - final DeleteOption<SuggestElevateWordCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(suggestElevateWordList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<SuggestElevateWord, SuggestElevateWordCB> setupper, - final InsertOption<SuggestElevateWordCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * SuggestElevateWord suggestElevateWord = new SuggestElevateWord(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setPK...(value);</span> - * suggestElevateWord.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//suggestElevateWord.setVersionNo(value);</span> - * SuggestElevateWordCB cb = new SuggestElevateWordCB(); - * cb.query().setFoo...(value); - * UpdateOption<SuggestElevateWordCB> option = new UpdateOption<SuggestElevateWordCB>(); - * option.self(new SpecifyQuery<SuggestElevateWordCB>() { - * public void specify(SuggestElevateWordCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * suggestElevateWordBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(suggestElevateWord, cb, option); - * </pre> - * @param suggestElevateWord The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of SuggestElevateWord. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final SuggestElevateWord suggestElevateWord, - final SuggestElevateWordCB cb, - final UpdateOption<SuggestElevateWordCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(suggestElevateWord, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of SuggestElevateWord. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final SuggestElevateWordCB cb, - final DeleteOption<SuggestElevateWordCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<SuggestElevateWordBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends SuggestElevateWord> typeOfSelectedEntity() { - return SuggestElevateWord.class; - } - - @Override - protected Class<SuggestElevateWord> typeOfHandlingEntity() { - return SuggestElevateWord.class; - } - - @Override - protected Class<SuggestElevateWordCB> typeOfHandlingConditionBean() { - return SuggestElevateWordCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsUserInfoBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsUserInfoBhv.java deleted file mode 100644 index c1446e1c8..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsUserInfoBhv.java +++ /dev/null @@ -1,1205 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfUserInfo; -import jp.sf.fess.db.bsentity.dbmeta.UserInfoDbm; -import jp.sf.fess.db.cbean.FavoriteLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.exbhv.UserInfoBhv; -import jp.sf.fess.db.exentity.FavoriteLog; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.db.exentity.UserInfo; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.LoadReferrerOption; -import org.seasar.dbflute.bhv.NestedReferrerListGateway; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of USER_INFO as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, CODE, CREATED_TIME, UPDATED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * FAVORITE_LOG, SEARCH_LOG - * - * [foreign property] - * - * - * [referrer property] - * favoriteLogList, searchLogList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsUserInfoBhv extends - AbstractBehaviorWritable<UserInfo, UserInfoCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public UserInfoDbm getDBMeta() { - return UserInfoDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public UserInfoDbm getMyDBMeta() { - return UserInfoDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public UserInfoCB newConditionBean() { - return new UserInfoCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public UserInfo newMyEntity() { - return new UserInfo(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public UserInfoCB newMyConditionBean() { - return new UserInfoCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * UserInfoCB cb = new UserInfoCB(); - * cb.query().setFoo...(value); - * int count = userInfoBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of UserInfo. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final UserInfoCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * UserInfoCB cb = new UserInfoCB(); - * cb.query().setFoo...(value); - * UserInfo userInfo = userInfoBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (userInfo != null) { <span style="color: #3F7E5E">// null check</span> - * ... = userInfo.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of UserInfo. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public UserInfo selectEntity(final UserInfoCB cb) { - return facadeSelectEntity(cb); - } - - protected UserInfo facadeSelectEntity(final UserInfoCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends UserInfo> OptionalEntity<ENTITY> doSelectOptionalEntity( - final UserInfoCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * UserInfoCB cb = new UserInfoCB(); - * cb.query().setFoo...(value); - * UserInfo userInfo = userInfoBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = userInfo.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of UserInfo. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public UserInfo selectEntityWithDeletedCheck(final UserInfoCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public UserInfo selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected UserInfo facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends UserInfo> ENTITY doSelectByPK(final Long id, - final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends UserInfo> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public UserInfo selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends UserInfo> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected UserInfoCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * UserInfoCB cb = new UserInfoCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<UserInfo> userInfoList = userInfoBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (UserInfo userInfo : userInfoList) { - * ... = userInfo.get...(); - * } - * </pre> - * @param cb The condition-bean of UserInfo. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<UserInfo> selectList(final UserInfoCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * UserInfoCB cb = new UserInfoCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<UserInfo> page = userInfoBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (UserInfo userInfo : page) { - * ... = userInfo.get...(); - * } - * </pre> - * @param cb The condition-bean of UserInfo. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<UserInfo> selectPage(final UserInfoCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * UserInfoCB cb = new UserInfoCB(); - * cb.query().setFoo...(value); - * userInfoBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<UserInfo>() { - * public void handle(UserInfo entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of UserInfo. (NotNull) - * @param entityRowHandler The handler of entity row of UserInfo. (NotNull) - */ - public void selectCursor(final UserInfoCB cb, - final EntityRowHandler<UserInfo> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * userInfoBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(UserInfoCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<UserInfoCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param userInfoList The entity list of userInfo. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<UserInfo> userInfoList, - final ReferrerLoaderHandler<LoaderOfUserInfo> handler) { - xassLRArg(userInfoList, handler); - handler.handle(new LoaderOfUserInfo().ready(userInfoList, - _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param userInfo The entity of userInfo. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final UserInfo userInfo, - final ReferrerLoaderHandler<LoaderOfUserInfo> handler) { - xassLRArg(userInfo, handler); - handler.handle(new LoaderOfUserInfo().ready(xnewLRAryLs(userInfo), - _behaviorSelector)); - } - - /** - * Load referrer of favoriteLogList by the set-upper of referrer. <br /> - * FAVORITE_LOG by USER_ID, named 'favoriteLogList'. - * <pre> - * userInfoBhv.<span style="color: #DD4747">loadFavoriteLogList</span>(userInfoList, new ConditionBeanSetupper<FavoriteLogCB>() { - * public void setup(FavoriteLogCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (UserInfo userInfo : userInfoList) { - * ... = userInfo.<span style="color: #DD4747">getFavoriteLogList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setUserId_InScope(pkList); - * cb.query().addOrderBy_UserId_Asc(); - * </pre> - * @param userInfoList The entity list of userInfo. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FavoriteLog> loadFavoriteLogList( - final List<UserInfo> userInfoList, - final ConditionBeanSetupper<FavoriteLogCB> setupper) { - xassLRArg(userInfoList, setupper); - return doLoadFavoriteLogList(userInfoList, - new LoadReferrerOption<FavoriteLogCB, FavoriteLog>() - .xinit(setupper)); - } - - /** - * Load referrer of favoriteLogList by the set-upper of referrer. <br /> - * FAVORITE_LOG by USER_ID, named 'favoriteLogList'. - * <pre> - * userInfoBhv.<span style="color: #DD4747">loadFavoriteLogList</span>(userInfoList, new ConditionBeanSetupper<FavoriteLogCB>() { - * public void setup(FavoriteLogCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = userInfo.<span style="color: #DD4747">getFavoriteLogList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setUserId_InScope(pkList); - * cb.query().addOrderBy_UserId_Asc(); - * </pre> - * @param userInfo The entity of userInfo. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FavoriteLog> loadFavoriteLogList( - final UserInfo userInfo, - final ConditionBeanSetupper<FavoriteLogCB> setupper) { - xassLRArg(userInfo, setupper); - return doLoadFavoriteLogList(xnewLRLs(userInfo), - new LoadReferrerOption<FavoriteLogCB, FavoriteLog>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param userInfo The entity of userInfo. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<FavoriteLog> loadFavoriteLogList( - final UserInfo userInfo, - final LoadReferrerOption<FavoriteLogCB, FavoriteLog> loadReferrerOption) { - xassLRArg(userInfo, loadReferrerOption); - return loadFavoriteLogList(xnewLRLs(userInfo), loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param userInfoList The entity list of userInfo. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<FavoriteLog> loadFavoriteLogList( - final List<UserInfo> userInfoList, - final LoadReferrerOption<FavoriteLogCB, FavoriteLog> loadReferrerOption) { - xassLRArg(userInfoList, loadReferrerOption); - if (userInfoList.isEmpty()) { - return (NestedReferrerListGateway<FavoriteLog>) EMPTY_NREF_LGWAY; - } - return doLoadFavoriteLogList(userInfoList, loadReferrerOption); - } - - protected NestedReferrerListGateway<FavoriteLog> doLoadFavoriteLogList( - final List<UserInfo> userInfoList, - final LoadReferrerOption<FavoriteLogCB, FavoriteLog> option) { - return helpLoadReferrerInternally(userInfoList, option, - "favoriteLogList"); - } - - /** - * Load referrer of searchLogList by the set-upper of referrer. <br /> - * SEARCH_LOG by USER_ID, named 'searchLogList'. - * <pre> - * userInfoBhv.<span style="color: #DD4747">loadSearchLogList</span>(userInfoList, new ConditionBeanSetupper<SearchLogCB>() { - * public void setup(SearchLogCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (UserInfo userInfo : userInfoList) { - * ... = userInfo.<span style="color: #DD4747">getSearchLogList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setUserId_InScope(pkList); - * cb.query().addOrderBy_UserId_Asc(); - * </pre> - * @param userInfoList The entity list of userInfo. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<SearchLog> loadSearchLogList( - final List<UserInfo> userInfoList, - final ConditionBeanSetupper<SearchLogCB> setupper) { - xassLRArg(userInfoList, setupper); - return doLoadSearchLogList(userInfoList, - new LoadReferrerOption<SearchLogCB, SearchLog>() - .xinit(setupper)); - } - - /** - * Load referrer of searchLogList by the set-upper of referrer. <br /> - * SEARCH_LOG by USER_ID, named 'searchLogList'. - * <pre> - * userInfoBhv.<span style="color: #DD4747">loadSearchLogList</span>(userInfoList, new ConditionBeanSetupper<SearchLogCB>() { - * public void setup(SearchLogCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = userInfo.<span style="color: #DD4747">getSearchLogList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setUserId_InScope(pkList); - * cb.query().addOrderBy_UserId_Asc(); - * </pre> - * @param userInfo The entity of userInfo. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<SearchLog> loadSearchLogList( - final UserInfo userInfo, - final ConditionBeanSetupper<SearchLogCB> setupper) { - xassLRArg(userInfo, setupper); - return doLoadSearchLogList(xnewLRLs(userInfo), - new LoadReferrerOption<SearchLogCB, SearchLog>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param userInfo The entity of userInfo. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<SearchLog> loadSearchLogList( - final UserInfo userInfo, - final LoadReferrerOption<SearchLogCB, SearchLog> loadReferrerOption) { - xassLRArg(userInfo, loadReferrerOption); - return loadSearchLogList(xnewLRLs(userInfo), loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param userInfoList The entity list of userInfo. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<SearchLog> loadSearchLogList( - final List<UserInfo> userInfoList, - final LoadReferrerOption<SearchLogCB, SearchLog> loadReferrerOption) { - xassLRArg(userInfoList, loadReferrerOption); - if (userInfoList.isEmpty()) { - return (NestedReferrerListGateway<SearchLog>) EMPTY_NREF_LGWAY; - } - return doLoadSearchLogList(userInfoList, loadReferrerOption); - } - - protected NestedReferrerListGateway<SearchLog> doLoadSearchLogList( - final List<UserInfo> userInfoList, - final LoadReferrerOption<SearchLogCB, SearchLog> option) { - return helpLoadReferrerInternally(userInfoList, option, "searchLogList"); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param userInfoList The list of userInfo. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList(final List<UserInfo> userInfoList) { - return helpExtractListInternally(userInfoList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * UserInfo userInfo = new UserInfo(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * userInfo.setFoo...(value); - * userInfo.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//userInfo.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//userInfo.set...;</span> - * userInfoBhv.<span style="color: #DD4747">insert</span>(userInfo); - * ... = userInfo.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param userInfo The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final UserInfo userInfo) { - doInsert(userInfo, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * UserInfo userInfo = new UserInfo(); - * userInfo.setPK...(value); <span style="color: #3F7E5E">// required</span> - * userInfo.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//userInfo.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//userInfo.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * userInfo.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * userInfoBhv.<span style="color: #DD4747">update</span>(userInfo); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param userInfo The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final UserInfo userInfo) { - doUpdate(userInfo, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param userInfo The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final UserInfo userInfo) { - doInsertOrUpdate(userInfo, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * UserInfo userInfo = new UserInfo(); - * userInfo.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * userInfo.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * userInfoBhv.<span style="color: #DD4747">delete</span>(userInfo); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param userInfo The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final UserInfo userInfo) { - doDelete(userInfo, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * UserInfo userInfo = new UserInfo(); - * userInfo.setFooName("foo"); - * if (...) { - * userInfo.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * userInfoList.add(userInfo); - * } - * userInfoBhv.<span style="color: #DD4747">batchInsert</span>(userInfoList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param userInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<UserInfo> userInfoList) { - return doBatchInsert(userInfoList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * UserInfo userInfo = new UserInfo(); - * userInfo.setFooName("foo"); - * if (...) { - * userInfo.setFooPrice(123); - * } else { - * userInfo.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//userInfo.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * userInfoList.add(userInfo); - * } - * userInfoBhv.<span style="color: #DD4747">batchUpdate</span>(userInfoList); - * </pre> - * @param userInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<UserInfo> userInfoList) { - return doBatchUpdate(userInfoList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * userInfoBhv.<span style="color: #DD4747">batchUpdate</span>(userInfoList, new SpecifyQuery<UserInfoCB>() { - * public void specify(UserInfoCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * userInfoBhv.<span style="color: #DD4747">batchUpdate</span>(userInfoList, new SpecifyQuery<UserInfoCB>() { - * public void specify(UserInfoCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param userInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate(final List<UserInfo> userInfoList, - final SpecifyQuery<UserInfoCB> updateColumnSpec) { - return doBatchUpdate(userInfoList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param userInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete(final List<UserInfo> userInfoList) { - return doBatchDelete(userInfoList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * userInfoBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<UserInfo, UserInfoCB>() { - * public ConditionBean setup(UserInfo entity, UserInfoCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<UserInfo, UserInfoCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * UserInfo userInfo = new UserInfo(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//userInfo.setPK...(value);</span> - * userInfo.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//userInfo.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//userInfo.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//userInfo.setVersionNo(value);</span> - * UserInfoCB cb = new UserInfoCB(); - * cb.query().setFoo...(value); - * userInfoBhv.<span style="color: #DD4747">queryUpdate</span>(userInfo, cb); - * </pre> - * @param userInfo The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of UserInfo. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final UserInfo userInfo, final UserInfoCB cb) { - return doQueryUpdate(userInfo, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * UserInfoCB cb = new UserInfoCB(); - * cb.query().setFoo...(value); - * userInfoBhv.<span style="color: #DD4747">queryDelete</span>(userInfo, cb); - * </pre> - * @param cb The condition-bean of UserInfo. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final UserInfoCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * UserInfo userInfo = new UserInfo(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * userInfo.setFoo...(value); - * userInfo.setBar...(value); - * InsertOption<UserInfoCB> option = new InsertOption<UserInfoCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * userInfoBhv.<span style="color: #DD4747">varyingInsert</span>(userInfo, option); - * ... = userInfo.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param userInfo The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final UserInfo userInfo, - final InsertOption<UserInfoCB> option) { - assertInsertOptionNotNull(option); - doInsert(userInfo, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * UserInfo userInfo = new UserInfo(); - * userInfo.setPK...(value); <span style="color: #3F7E5E">// required</span> - * userInfo.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * userInfo.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<UserInfoCB> option = new UpdateOption<UserInfoCB>(); - * option.self(new SpecifyQuery<UserInfoCB>() { - * public void specify(UserInfoCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * userInfoBhv.<span style="color: #DD4747">varyingUpdate</span>(userInfo, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param userInfo The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final UserInfo userInfo, - final UpdateOption<UserInfoCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(userInfo, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param userInfo The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate(final UserInfo userInfo, - final InsertOption<UserInfoCB> insertOption, - final UpdateOption<UserInfoCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(userInfo, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param userInfo The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final UserInfo userInfo, - final DeleteOption<UserInfoCB> option) { - assertDeleteOptionNotNull(option); - doDelete(userInfo, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param userInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert(final List<UserInfo> userInfoList, - final InsertOption<UserInfoCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(userInfoList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param userInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate(final List<UserInfo> userInfoList, - final UpdateOption<UserInfoCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(userInfoList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param userInfoList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete(final List<UserInfo> userInfoList, - final DeleteOption<UserInfoCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(userInfoList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<UserInfo, UserInfoCB> setupper, - final InsertOption<UserInfoCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * UserInfo userInfo = new UserInfo(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//userInfo.setPK...(value);</span> - * userInfo.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//userInfo.setVersionNo(value);</span> - * UserInfoCB cb = new UserInfoCB(); - * cb.query().setFoo...(value); - * UpdateOption<UserInfoCB> option = new UpdateOption<UserInfoCB>(); - * option.self(new SpecifyQuery<UserInfoCB>() { - * public void specify(UserInfoCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * userInfoBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(userInfo, cb, option); - * </pre> - * @param userInfo The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of UserInfo. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final UserInfo userInfo, final UserInfoCB cb, - final UpdateOption<UserInfoCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(userInfo, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of UserInfo. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final UserInfoCB cb, - final DeleteOption<UserInfoCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<UserInfoBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends UserInfo> typeOfSelectedEntity() { - return UserInfo.class; - } - - @Override - protected Class<UserInfo> typeOfHandlingEntity() { - return UserInfo.class; - } - - @Override - protected Class<UserInfoCB> typeOfHandlingConditionBean() { - return UserInfoCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsWebAuthenticationBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsWebAuthenticationBhv.java deleted file mode 100644 index 37f2a66ed..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsWebAuthenticationBhv.java +++ /dev/null @@ -1,1268 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfWebAuthentication; -import jp.sf.fess.db.bsentity.dbmeta.WebAuthenticationDbm; -import jp.sf.fess.db.cbean.WebAuthenticationCB; -import jp.sf.fess.db.exbhv.WebAuthenticationBhv; -import jp.sf.fess.db.exentity.WebAuthentication; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of WEB_AUTHENTICATION as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, HOSTNAME, PORT, AUTH_REALM, PROTOCOL_SCHEME, USERNAME, PASSWORD, PARAMETERS, WEB_CRAWLING_CONFIG_ID, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * WEB_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * webCrawlingConfig - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsWebAuthenticationBhv extends - AbstractBehaviorWritable<WebAuthentication, WebAuthenticationCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public WebAuthenticationDbm getDBMeta() { - return WebAuthenticationDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public WebAuthenticationDbm getMyDBMeta() { - return WebAuthenticationDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public WebAuthenticationCB newConditionBean() { - return new WebAuthenticationCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public WebAuthentication newMyEntity() { - return new WebAuthentication(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public WebAuthenticationCB newMyConditionBean() { - return new WebAuthenticationCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * WebAuthenticationCB cb = new WebAuthenticationCB(); - * cb.query().setFoo...(value); - * int count = webAuthenticationBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of WebAuthentication. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final WebAuthenticationCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * WebAuthenticationCB cb = new WebAuthenticationCB(); - * cb.query().setFoo...(value); - * WebAuthentication webAuthentication = webAuthenticationBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (webAuthentication != null) { <span style="color: #3F7E5E">// null check</span> - * ... = webAuthentication.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of WebAuthentication. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebAuthentication selectEntity(final WebAuthenticationCB cb) { - return facadeSelectEntity(cb); - } - - protected WebAuthentication facadeSelectEntity(final WebAuthenticationCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends WebAuthentication> OptionalEntity<ENTITY> doSelectOptionalEntity( - final WebAuthenticationCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * WebAuthenticationCB cb = new WebAuthenticationCB(); - * cb.query().setFoo...(value); - * WebAuthentication webAuthentication = webAuthenticationBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = webAuthentication.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of WebAuthentication. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebAuthentication selectEntityWithDeletedCheck( - final WebAuthenticationCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebAuthentication selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected WebAuthentication facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends WebAuthentication> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends WebAuthentication> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebAuthentication selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends WebAuthentication> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected WebAuthenticationCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * WebAuthenticationCB cb = new WebAuthenticationCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<WebAuthentication> webAuthenticationList = webAuthenticationBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (WebAuthentication webAuthentication : webAuthenticationList) { - * ... = webAuthentication.get...(); - * } - * </pre> - * @param cb The condition-bean of WebAuthentication. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<WebAuthentication> selectList( - final WebAuthenticationCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * WebAuthenticationCB cb = new WebAuthenticationCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<WebAuthentication> page = webAuthenticationBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (WebAuthentication webAuthentication : page) { - * ... = webAuthentication.get...(); - * } - * </pre> - * @param cb The condition-bean of WebAuthentication. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<WebAuthentication> selectPage( - final WebAuthenticationCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * WebAuthenticationCB cb = new WebAuthenticationCB(); - * cb.query().setFoo...(value); - * webAuthenticationBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<WebAuthentication>() { - * public void handle(WebAuthentication entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of WebAuthentication. (NotNull) - * @param entityRowHandler The handler of entity row of WebAuthentication. (NotNull) - */ - public void selectCursor(final WebAuthenticationCB cb, - final EntityRowHandler<WebAuthentication> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * webAuthenticationBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(WebAuthenticationCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<WebAuthenticationCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param webAuthenticationList The entity list of webAuthentication. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<WebAuthentication> webAuthenticationList, - final ReferrerLoaderHandler<LoaderOfWebAuthentication> handler) { - xassLRArg(webAuthenticationList, handler); - handler.handle(new LoaderOfWebAuthentication().ready( - webAuthenticationList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param webAuthentication The entity of webAuthentication. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final WebAuthentication webAuthentication, - final ReferrerLoaderHandler<LoaderOfWebAuthentication> handler) { - xassLRArg(webAuthentication, handler); - handler.handle(new LoaderOfWebAuthentication().ready( - xnewLRAryLs(webAuthentication), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'WebCrawlingConfig'. - * @param webAuthenticationList The list of webAuthentication. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<WebCrawlingConfig> pulloutWebCrawlingConfig( - final List<WebAuthentication> webAuthenticationList) { - return helpPulloutInternally(webAuthenticationList, "webCrawlingConfig"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param webAuthenticationList The list of webAuthentication. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<WebAuthentication> webAuthenticationList) { - return helpExtractListInternally(webAuthenticationList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * WebAuthentication webAuthentication = new WebAuthentication(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * webAuthentication.setFoo...(value); - * webAuthentication.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webAuthentication.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webAuthentication.set...;</span> - * webAuthenticationBhv.<span style="color: #DD4747">insert</span>(webAuthentication); - * ... = webAuthentication.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param webAuthentication The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final WebAuthentication webAuthentication) { - doInsert(webAuthentication, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * WebAuthentication webAuthentication = new WebAuthentication(); - * webAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * webAuthentication.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webAuthentication.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webAuthentication.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * webAuthentication.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * webAuthenticationBhv.<span style="color: #DD4747">update</span>(webAuthentication); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param webAuthentication The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final WebAuthentication webAuthentication) { - doUpdate(webAuthentication, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * WebAuthentication webAuthentication = new WebAuthentication(); - * webAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * webAuthentication.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webAuthentication.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webAuthentication.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webAuthentication.setVersionNo(value);</span> - * webAuthenticationBhv.<span style="color: #DD4747">updateNonstrict</span>(webAuthentication); - * </pre> - * @param webAuthentication The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final WebAuthentication webAuthentication) { - doUpdateNonstrict(webAuthentication, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param webAuthentication The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final WebAuthentication webAuthentication) { - doInsertOrUpdate(webAuthentication, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param webAuthentication The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict( - final WebAuthentication webAuthentication) { - doInsertOrUpdateNonstrict(webAuthentication, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * WebAuthentication webAuthentication = new WebAuthentication(); - * webAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * webAuthentication.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * webAuthenticationBhv.<span style="color: #DD4747">delete</span>(webAuthentication); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param webAuthentication The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final WebAuthentication webAuthentication) { - doDelete(webAuthentication, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * WebAuthentication webAuthentication = new WebAuthentication(); - * webAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webAuthentication.setVersionNo(value);</span> - * webAuthenticationBhv.<span style="color: #DD4747">deleteNonstrict</span>(webAuthentication); - * </pre> - * @param webAuthentication The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final WebAuthentication webAuthentication) { - doDeleteNonstrict(webAuthentication, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * WebAuthentication webAuthentication = new WebAuthentication(); - * webAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webAuthentication.setVersionNo(value);</span> - * webAuthenticationBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(webAuthentication); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param webAuthentication The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted( - final WebAuthentication webAuthentication) { - doDeleteNonstrictIgnoreDeleted(webAuthentication, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final WebAuthentication et, - final DeleteOption<WebAuthenticationCB> op) { - assertObjectNotNull("webAuthentication", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * WebAuthentication webAuthentication = new WebAuthentication(); - * webAuthentication.setFooName("foo"); - * if (...) { - * webAuthentication.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * webAuthenticationList.add(webAuthentication); - * } - * webAuthenticationBhv.<span style="color: #DD4747">batchInsert</span>(webAuthenticationList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param webAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<WebAuthentication> webAuthenticationList) { - return doBatchInsert(webAuthenticationList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * WebAuthentication webAuthentication = new WebAuthentication(); - * webAuthentication.setFooName("foo"); - * if (...) { - * webAuthentication.setFooPrice(123); - * } else { - * webAuthentication.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//webAuthentication.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * webAuthenticationList.add(webAuthentication); - * } - * webAuthenticationBhv.<span style="color: #DD4747">batchUpdate</span>(webAuthenticationList); - * </pre> - * @param webAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<WebAuthentication> webAuthenticationList) { - return doBatchUpdate(webAuthenticationList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * webAuthenticationBhv.<span style="color: #DD4747">batchUpdate</span>(webAuthenticationList, new SpecifyQuery<WebAuthenticationCB>() { - * public void specify(WebAuthenticationCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * webAuthenticationBhv.<span style="color: #DD4747">batchUpdate</span>(webAuthenticationList, new SpecifyQuery<WebAuthenticationCB>() { - * public void specify(WebAuthenticationCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param webAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate( - final List<WebAuthentication> webAuthenticationList, - final SpecifyQuery<WebAuthenticationCB> updateColumnSpec) { - return doBatchUpdate(webAuthenticationList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * WebAuthentication webAuthentication = new WebAuthentication(); - * webAuthentication.setFooName("foo"); - * if (...) { - * webAuthentication.setFooPrice(123); - * } else { - * webAuthentication.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//webAuthentication.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * webAuthenticationList.add(webAuthentication); - * } - * webAuthenticationBhv.<span style="color: #DD4747">batchUpdate</span>(webAuthenticationList); - * </pre> - * @param webAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<WebAuthentication> webAuthenticationList) { - return doBatchUpdateNonstrict(webAuthenticationList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * webAuthenticationBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(webAuthenticationList, new SpecifyQuery<WebAuthenticationCB>() { - * public void specify(WebAuthenticationCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * webAuthenticationBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(webAuthenticationList, new SpecifyQuery<WebAuthenticationCB>() { - * public void specify(WebAuthenticationCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param webAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<WebAuthentication> webAuthenticationList, - final SpecifyQuery<WebAuthenticationCB> updateColumnSpec) { - return doBatchUpdateNonstrict(webAuthenticationList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param webAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete(final List<WebAuthentication> webAuthenticationList) { - return doBatchDelete(webAuthenticationList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param webAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict( - final List<WebAuthentication> webAuthenticationList) { - return doBatchDeleteNonstrict(webAuthenticationList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * webAuthenticationBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<WebAuthentication, WebAuthenticationCB>() { - * public ConditionBean setup(WebAuthentication entity, WebAuthenticationCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<WebAuthentication, WebAuthenticationCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * WebAuthentication webAuthentication = new WebAuthentication(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//webAuthentication.setPK...(value);</span> - * webAuthentication.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webAuthentication.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webAuthentication.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webAuthentication.setVersionNo(value);</span> - * WebAuthenticationCB cb = new WebAuthenticationCB(); - * cb.query().setFoo...(value); - * webAuthenticationBhv.<span style="color: #DD4747">queryUpdate</span>(webAuthentication, cb); - * </pre> - * @param webAuthentication The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of WebAuthentication. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final WebAuthentication webAuthentication, - final WebAuthenticationCB cb) { - return doQueryUpdate(webAuthentication, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * WebAuthenticationCB cb = new WebAuthenticationCB(); - * cb.query().setFoo...(value); - * webAuthenticationBhv.<span style="color: #DD4747">queryDelete</span>(webAuthentication, cb); - * </pre> - * @param cb The condition-bean of WebAuthentication. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final WebAuthenticationCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * WebAuthentication webAuthentication = new WebAuthentication(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * webAuthentication.setFoo...(value); - * webAuthentication.setBar...(value); - * InsertOption<WebAuthenticationCB> option = new InsertOption<WebAuthenticationCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * webAuthenticationBhv.<span style="color: #DD4747">varyingInsert</span>(webAuthentication, option); - * ... = webAuthentication.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param webAuthentication The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final WebAuthentication webAuthentication, - final InsertOption<WebAuthenticationCB> option) { - assertInsertOptionNotNull(option); - doInsert(webAuthentication, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * WebAuthentication webAuthentication = new WebAuthentication(); - * webAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * webAuthentication.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * webAuthentication.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<WebAuthenticationCB> option = new UpdateOption<WebAuthenticationCB>(); - * option.self(new SpecifyQuery<WebAuthenticationCB>() { - * public void specify(WebAuthenticationCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * webAuthenticationBhv.<span style="color: #DD4747">varyingUpdate</span>(webAuthentication, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param webAuthentication The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final WebAuthentication webAuthentication, - final UpdateOption<WebAuthenticationCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(webAuthentication, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * WebAuthentication webAuthentication = new WebAuthentication(); - * webAuthentication.setPK...(value); <span style="color: #3F7E5E">// required</span> - * webAuthentication.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webAuthentication.setVersionNo(value);</span> - * UpdateOption<WebAuthenticationCB> option = new UpdateOption<WebAuthenticationCB>(); - * option.self(new SpecifyQuery<WebAuthenticationCB>() { - * public void specify(WebAuthenticationCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * webAuthenticationBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(webAuthentication, option); - * </pre> - * @param webAuthentication The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict( - final WebAuthentication webAuthentication, - final UpdateOption<WebAuthenticationCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(webAuthentication, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param webAuthentication The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final WebAuthentication webAuthentication, - final InsertOption<WebAuthenticationCB> insertOption, - final UpdateOption<WebAuthenticationCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(webAuthentication, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param webAuthentication The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict( - final WebAuthentication webAuthentication, - final InsertOption<WebAuthenticationCB> insertOption, - final UpdateOption<WebAuthenticationCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(webAuthentication, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param webAuthentication The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final WebAuthentication webAuthentication, - final DeleteOption<WebAuthenticationCB> option) { - assertDeleteOptionNotNull(option); - doDelete(webAuthentication, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param webAuthentication The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict( - final WebAuthentication webAuthentication, - final DeleteOption<WebAuthenticationCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(webAuthentication, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param webAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<WebAuthentication> webAuthenticationList, - final InsertOption<WebAuthenticationCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(webAuthenticationList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param webAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<WebAuthentication> webAuthenticationList, - final UpdateOption<WebAuthenticationCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(webAuthenticationList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param webAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<WebAuthentication> webAuthenticationList, - final UpdateOption<WebAuthenticationCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(webAuthenticationList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param webAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<WebAuthentication> webAuthenticationList, - final DeleteOption<WebAuthenticationCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(webAuthenticationList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param webAuthenticationList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<WebAuthentication> webAuthenticationList, - final DeleteOption<WebAuthenticationCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(webAuthenticationList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<WebAuthentication, WebAuthenticationCB> setupper, - final InsertOption<WebAuthenticationCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * WebAuthentication webAuthentication = new WebAuthentication(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//webAuthentication.setPK...(value);</span> - * webAuthentication.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webAuthentication.setVersionNo(value);</span> - * WebAuthenticationCB cb = new WebAuthenticationCB(); - * cb.query().setFoo...(value); - * UpdateOption<WebAuthenticationCB> option = new UpdateOption<WebAuthenticationCB>(); - * option.self(new SpecifyQuery<WebAuthenticationCB>() { - * public void specify(WebAuthenticationCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * webAuthenticationBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(webAuthentication, cb, option); - * </pre> - * @param webAuthentication The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of WebAuthentication. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final WebAuthentication webAuthentication, - final WebAuthenticationCB cb, - final UpdateOption<WebAuthenticationCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(webAuthentication, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of WebAuthentication. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final WebAuthenticationCB cb, - final DeleteOption<WebAuthenticationCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<WebAuthenticationBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends WebAuthentication> typeOfSelectedEntity() { - return WebAuthentication.class; - } - - @Override - protected Class<WebAuthentication> typeOfHandlingEntity() { - return WebAuthentication.class; - } - - @Override - protected Class<WebAuthenticationCB> typeOfHandlingConditionBean() { - return WebAuthenticationCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsWebConfigToLabelTypeMappingBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsWebConfigToLabelTypeMappingBhv.java deleted file mode 100644 index 533b0cb74..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsWebConfigToLabelTypeMappingBhv.java +++ /dev/null @@ -1,1036 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfWebConfigToLabelTypeMapping; -import jp.sf.fess.db.bsentity.dbmeta.WebConfigToLabelTypeMappingDbm; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.exbhv.WebConfigToLabelTypeMappingBhv; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of WEB_CONFIG_TO_LABEL_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, WEB_CONFIG_ID, LABEL_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * LABEL_TYPE, WEB_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * labelType, webCrawlingConfig - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsWebConfigToLabelTypeMappingBhv - extends - AbstractBehaviorWritable<WebConfigToLabelTypeMapping, WebConfigToLabelTypeMappingCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public WebConfigToLabelTypeMappingDbm getDBMeta() { - return WebConfigToLabelTypeMappingDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public WebConfigToLabelTypeMappingDbm getMyDBMeta() { - return WebConfigToLabelTypeMappingDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public WebConfigToLabelTypeMappingCB newConditionBean() { - return new WebConfigToLabelTypeMappingCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public WebConfigToLabelTypeMapping newMyEntity() { - return new WebConfigToLabelTypeMapping(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public WebConfigToLabelTypeMappingCB newMyConditionBean() { - return new WebConfigToLabelTypeMappingCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * int count = webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of WebConfigToLabelTypeMapping. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final WebConfigToLabelTypeMappingCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (webConfigToLabelTypeMapping != null) { <span style="color: #3F7E5E">// null check</span> - * ... = webConfigToLabelTypeMapping.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of WebConfigToLabelTypeMapping. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebConfigToLabelTypeMapping selectEntity( - final WebConfigToLabelTypeMappingCB cb) { - return facadeSelectEntity(cb); - } - - protected WebConfigToLabelTypeMapping facadeSelectEntity( - final WebConfigToLabelTypeMappingCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends WebConfigToLabelTypeMapping> OptionalEntity<ENTITY> doSelectOptionalEntity( - final WebConfigToLabelTypeMappingCB cb, - final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = webConfigToLabelTypeMapping.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of WebConfigToLabelTypeMapping. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebConfigToLabelTypeMapping selectEntityWithDeletedCheck( - final WebConfigToLabelTypeMappingCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebConfigToLabelTypeMapping selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected WebConfigToLabelTypeMapping facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends WebConfigToLabelTypeMapping> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends WebConfigToLabelTypeMapping> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebConfigToLabelTypeMapping selectByPKValueWithDeletedCheck( - final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends WebConfigToLabelTypeMapping> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected WebConfigToLabelTypeMappingCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList = webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (WebConfigToLabelTypeMapping webConfigToLabelTypeMapping : webConfigToLabelTypeMappingList) { - * ... = webConfigToLabelTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of WebConfigToLabelTypeMapping. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<WebConfigToLabelTypeMapping> selectList( - final WebConfigToLabelTypeMappingCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<WebConfigToLabelTypeMapping> page = webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (WebConfigToLabelTypeMapping webConfigToLabelTypeMapping : page) { - * ... = webConfigToLabelTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of WebConfigToLabelTypeMapping. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<WebConfigToLabelTypeMapping> selectPage( - final WebConfigToLabelTypeMappingCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<WebConfigToLabelTypeMapping>() { - * public void handle(WebConfigToLabelTypeMapping entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of WebConfigToLabelTypeMapping. (NotNull) - * @param entityRowHandler The handler of entity row of WebConfigToLabelTypeMapping. (NotNull) - */ - public void selectCursor(final WebConfigToLabelTypeMappingCB cb, - final EntityRowHandler<WebConfigToLabelTypeMapping> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(WebConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<WebConfigToLabelTypeMappingCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param webConfigToLabelTypeMappingList The entity list of webConfigToLabelTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList, - final ReferrerLoaderHandler<LoaderOfWebConfigToLabelTypeMapping> handler) { - xassLRArg(webConfigToLabelTypeMappingList, handler); - handler.handle(new LoaderOfWebConfigToLabelTypeMapping().ready( - webConfigToLabelTypeMappingList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param webConfigToLabelTypeMapping The entity of webConfigToLabelTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final WebConfigToLabelTypeMapping webConfigToLabelTypeMapping, - final ReferrerLoaderHandler<LoaderOfWebConfigToLabelTypeMapping> handler) { - xassLRArg(webConfigToLabelTypeMapping, handler); - handler.handle(new LoaderOfWebConfigToLabelTypeMapping().ready( - xnewLRAryLs(webConfigToLabelTypeMapping), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'LabelType'. - * @param webConfigToLabelTypeMappingList The list of webConfigToLabelTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<LabelType> pulloutLabelType( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList) { - return helpPulloutInternally(webConfigToLabelTypeMappingList, - "labelType"); - } - - /** - * Pull out the list of foreign table 'WebCrawlingConfig'. - * @param webConfigToLabelTypeMappingList The list of webConfigToLabelTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<WebCrawlingConfig> pulloutWebCrawlingConfig( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList) { - return helpPulloutInternally(webConfigToLabelTypeMappingList, - "webCrawlingConfig"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param webConfigToLabelTypeMappingList The list of webConfigToLabelTypeMapping. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList) { - return helpExtractListInternally(webConfigToLabelTypeMappingList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = new WebConfigToLabelTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * webConfigToLabelTypeMapping.setFoo...(value); - * webConfigToLabelTypeMapping.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webConfigToLabelTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webConfigToLabelTypeMapping.set...;</span> - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">insert</span>(webConfigToLabelTypeMapping); - * ... = webConfigToLabelTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param webConfigToLabelTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert( - final WebConfigToLabelTypeMapping webConfigToLabelTypeMapping) { - doInsert(webConfigToLabelTypeMapping, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = new WebConfigToLabelTypeMapping(); - * webConfigToLabelTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * webConfigToLabelTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webConfigToLabelTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webConfigToLabelTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * webConfigToLabelTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">update</span>(webConfigToLabelTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param webConfigToLabelTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update( - final WebConfigToLabelTypeMapping webConfigToLabelTypeMapping) { - doUpdate(webConfigToLabelTypeMapping, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param webConfigToLabelTypeMapping The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate( - final WebConfigToLabelTypeMapping webConfigToLabelTypeMapping) { - doInsertOrUpdate(webConfigToLabelTypeMapping, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = new WebConfigToLabelTypeMapping(); - * webConfigToLabelTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * webConfigToLabelTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">delete</span>(webConfigToLabelTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param webConfigToLabelTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete( - final WebConfigToLabelTypeMapping webConfigToLabelTypeMapping) { - doDelete(webConfigToLabelTypeMapping, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = new WebConfigToLabelTypeMapping(); - * webConfigToLabelTypeMapping.setFooName("foo"); - * if (...) { - * webConfigToLabelTypeMapping.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * webConfigToLabelTypeMappingList.add(webConfigToLabelTypeMapping); - * } - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">batchInsert</span>(webConfigToLabelTypeMappingList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param webConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList) { - return doBatchInsert(webConfigToLabelTypeMappingList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = new WebConfigToLabelTypeMapping(); - * webConfigToLabelTypeMapping.setFooName("foo"); - * if (...) { - * webConfigToLabelTypeMapping.setFooPrice(123); - * } else { - * webConfigToLabelTypeMapping.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//webConfigToLabelTypeMapping.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * webConfigToLabelTypeMappingList.add(webConfigToLabelTypeMapping); - * } - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(webConfigToLabelTypeMappingList); - * </pre> - * @param webConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList) { - return doBatchUpdate(webConfigToLabelTypeMappingList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(webConfigToLabelTypeMappingList, new SpecifyQuery<WebConfigToLabelTypeMappingCB>() { - * public void specify(WebConfigToLabelTypeMappingCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(webConfigToLabelTypeMappingList, new SpecifyQuery<WebConfigToLabelTypeMappingCB>() { - * public void specify(WebConfigToLabelTypeMappingCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param webConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList, - final SpecifyQuery<WebConfigToLabelTypeMappingCB> updateColumnSpec) { - return doBatchUpdate(webConfigToLabelTypeMappingList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param webConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList) { - return doBatchDelete(webConfigToLabelTypeMappingList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<WebConfigToLabelTypeMapping, WebConfigToLabelTypeMappingCB>() { - * public ConditionBean setup(WebConfigToLabelTypeMapping entity, WebConfigToLabelTypeMappingCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<WebConfigToLabelTypeMapping, WebConfigToLabelTypeMappingCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = new WebConfigToLabelTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//webConfigToLabelTypeMapping.setPK...(value);</span> - * webConfigToLabelTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webConfigToLabelTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webConfigToLabelTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webConfigToLabelTypeMapping.setVersionNo(value);</span> - * WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">queryUpdate</span>(webConfigToLabelTypeMapping, cb); - * </pre> - * @param webConfigToLabelTypeMapping The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of WebConfigToLabelTypeMapping. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate( - final WebConfigToLabelTypeMapping webConfigToLabelTypeMapping, - final WebConfigToLabelTypeMappingCB cb) { - return doQueryUpdate(webConfigToLabelTypeMapping, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">queryDelete</span>(webConfigToLabelTypeMapping, cb); - * </pre> - * @param cb The condition-bean of WebConfigToLabelTypeMapping. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final WebConfigToLabelTypeMappingCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = new WebConfigToLabelTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * webConfigToLabelTypeMapping.setFoo...(value); - * webConfigToLabelTypeMapping.setBar...(value); - * InsertOption<WebConfigToLabelTypeMappingCB> option = new InsertOption<WebConfigToLabelTypeMappingCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">varyingInsert</span>(webConfigToLabelTypeMapping, option); - * ... = webConfigToLabelTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param webConfigToLabelTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert( - final WebConfigToLabelTypeMapping webConfigToLabelTypeMapping, - final InsertOption<WebConfigToLabelTypeMappingCB> option) { - assertInsertOptionNotNull(option); - doInsert(webConfigToLabelTypeMapping, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = new WebConfigToLabelTypeMapping(); - * webConfigToLabelTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * webConfigToLabelTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * webConfigToLabelTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<WebConfigToLabelTypeMappingCB> option = new UpdateOption<WebConfigToLabelTypeMappingCB>(); - * option.self(new SpecifyQuery<WebConfigToLabelTypeMappingCB>() { - * public void specify(WebConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">varyingUpdate</span>(webConfigToLabelTypeMapping, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param webConfigToLabelTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate( - final WebConfigToLabelTypeMapping webConfigToLabelTypeMapping, - final UpdateOption<WebConfigToLabelTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(webConfigToLabelTypeMapping, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param webConfigToLabelTypeMapping The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final WebConfigToLabelTypeMapping webConfigToLabelTypeMapping, - final InsertOption<WebConfigToLabelTypeMappingCB> insertOption, - final UpdateOption<WebConfigToLabelTypeMappingCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(webConfigToLabelTypeMapping, insertOption, - updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param webConfigToLabelTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete( - final WebConfigToLabelTypeMapping webConfigToLabelTypeMapping, - final DeleteOption<WebConfigToLabelTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - doDelete(webConfigToLabelTypeMapping, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param webConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList, - final InsertOption<WebConfigToLabelTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(webConfigToLabelTypeMappingList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param webConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList, - final UpdateOption<WebConfigToLabelTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(webConfigToLabelTypeMappingList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param webConfigToLabelTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList, - final DeleteOption<WebConfigToLabelTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(webConfigToLabelTypeMappingList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<WebConfigToLabelTypeMapping, WebConfigToLabelTypeMappingCB> setupper, - final InsertOption<WebConfigToLabelTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = new WebConfigToLabelTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//webConfigToLabelTypeMapping.setPK...(value);</span> - * webConfigToLabelTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webConfigToLabelTypeMapping.setVersionNo(value);</span> - * WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - * cb.query().setFoo...(value); - * UpdateOption<WebConfigToLabelTypeMappingCB> option = new UpdateOption<WebConfigToLabelTypeMappingCB>(); - * option.self(new SpecifyQuery<WebConfigToLabelTypeMappingCB>() { - * public void specify(WebConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * webConfigToLabelTypeMappingBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(webConfigToLabelTypeMapping, cb, option); - * </pre> - * @param webConfigToLabelTypeMapping The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of WebConfigToLabelTypeMapping. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate( - final WebConfigToLabelTypeMapping webConfigToLabelTypeMapping, - final WebConfigToLabelTypeMappingCB cb, - final UpdateOption<WebConfigToLabelTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(webConfigToLabelTypeMapping, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of WebConfigToLabelTypeMapping. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final WebConfigToLabelTypeMappingCB cb, - final DeleteOption<WebConfigToLabelTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<WebConfigToLabelTypeMappingBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends WebConfigToLabelTypeMapping> typeOfSelectedEntity() { - return WebConfigToLabelTypeMapping.class; - } - - @Override - protected Class<WebConfigToLabelTypeMapping> typeOfHandlingEntity() { - return WebConfigToLabelTypeMapping.class; - } - - @Override - protected Class<WebConfigToLabelTypeMappingCB> typeOfHandlingConditionBean() { - return WebConfigToLabelTypeMappingCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsWebConfigToRoleTypeMappingBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsWebConfigToRoleTypeMappingBhv.java deleted file mode 100644 index 6fa8f8a48..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsWebConfigToRoleTypeMappingBhv.java +++ /dev/null @@ -1,1034 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfWebConfigToRoleTypeMapping; -import jp.sf.fess.db.bsentity.dbmeta.WebConfigToRoleTypeMappingDbm; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.exbhv.WebConfigToRoleTypeMappingBhv; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of WEB_CONFIG_TO_ROLE_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, WEB_CONFIG_ID, ROLE_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * ROLE_TYPE, WEB_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * roleType, webCrawlingConfig - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsWebConfigToRoleTypeMappingBhv - extends - AbstractBehaviorWritable<WebConfigToRoleTypeMapping, WebConfigToRoleTypeMappingCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public WebConfigToRoleTypeMappingDbm getDBMeta() { - return WebConfigToRoleTypeMappingDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public WebConfigToRoleTypeMappingDbm getMyDBMeta() { - return WebConfigToRoleTypeMappingDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public WebConfigToRoleTypeMappingCB newConditionBean() { - return new WebConfigToRoleTypeMappingCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public WebConfigToRoleTypeMapping newMyEntity() { - return new WebConfigToRoleTypeMapping(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public WebConfigToRoleTypeMappingCB newMyConditionBean() { - return new WebConfigToRoleTypeMappingCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * int count = webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of WebConfigToRoleTypeMapping. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final WebConfigToRoleTypeMappingCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (webConfigToRoleTypeMapping != null) { <span style="color: #3F7E5E">// null check</span> - * ... = webConfigToRoleTypeMapping.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of WebConfigToRoleTypeMapping. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebConfigToRoleTypeMapping selectEntity( - final WebConfigToRoleTypeMappingCB cb) { - return facadeSelectEntity(cb); - } - - protected WebConfigToRoleTypeMapping facadeSelectEntity( - final WebConfigToRoleTypeMappingCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends WebConfigToRoleTypeMapping> OptionalEntity<ENTITY> doSelectOptionalEntity( - final WebConfigToRoleTypeMappingCB cb, - final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = webConfigToRoleTypeMapping.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of WebConfigToRoleTypeMapping. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebConfigToRoleTypeMapping selectEntityWithDeletedCheck( - final WebConfigToRoleTypeMappingCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebConfigToRoleTypeMapping selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected WebConfigToRoleTypeMapping facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends WebConfigToRoleTypeMapping> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends WebConfigToRoleTypeMapping> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebConfigToRoleTypeMapping selectByPKValueWithDeletedCheck( - final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends WebConfigToRoleTypeMapping> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected WebConfigToRoleTypeMappingCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList = webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (WebConfigToRoleTypeMapping webConfigToRoleTypeMapping : webConfigToRoleTypeMappingList) { - * ... = webConfigToRoleTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of WebConfigToRoleTypeMapping. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<WebConfigToRoleTypeMapping> selectList( - final WebConfigToRoleTypeMappingCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<WebConfigToRoleTypeMapping> page = webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (WebConfigToRoleTypeMapping webConfigToRoleTypeMapping : page) { - * ... = webConfigToRoleTypeMapping.get...(); - * } - * </pre> - * @param cb The condition-bean of WebConfigToRoleTypeMapping. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<WebConfigToRoleTypeMapping> selectPage( - final WebConfigToRoleTypeMappingCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<WebConfigToRoleTypeMapping>() { - * public void handle(WebConfigToRoleTypeMapping entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of WebConfigToRoleTypeMapping. (NotNull) - * @param entityRowHandler The handler of entity row of WebConfigToRoleTypeMapping. (NotNull) - */ - public void selectCursor(final WebConfigToRoleTypeMappingCB cb, - final EntityRowHandler<WebConfigToRoleTypeMapping> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(WebConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<WebConfigToRoleTypeMappingCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param webConfigToRoleTypeMappingList The entity list of webConfigToRoleTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList, - final ReferrerLoaderHandler<LoaderOfWebConfigToRoleTypeMapping> handler) { - xassLRArg(webConfigToRoleTypeMappingList, handler); - handler.handle(new LoaderOfWebConfigToRoleTypeMapping().ready( - webConfigToRoleTypeMappingList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param webConfigToRoleTypeMapping The entity of webConfigToRoleTypeMapping. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load( - final WebConfigToRoleTypeMapping webConfigToRoleTypeMapping, - final ReferrerLoaderHandler<LoaderOfWebConfigToRoleTypeMapping> handler) { - xassLRArg(webConfigToRoleTypeMapping, handler); - handler.handle(new LoaderOfWebConfigToRoleTypeMapping().ready( - xnewLRAryLs(webConfigToRoleTypeMapping), _behaviorSelector)); - } - - // =================================================================================== - // Pull out Relation - // ================= - /** - * Pull out the list of foreign table 'RoleType'. - * @param webConfigToRoleTypeMappingList The list of webConfigToRoleTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<RoleType> pulloutRoleType( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList) { - return helpPulloutInternally(webConfigToRoleTypeMappingList, "roleType"); - } - - /** - * Pull out the list of foreign table 'WebCrawlingConfig'. - * @param webConfigToRoleTypeMappingList The list of webConfigToRoleTypeMapping. (NotNull, EmptyAllowed) - * @return The list of foreign table. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<WebCrawlingConfig> pulloutWebCrawlingConfig( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList) { - return helpPulloutInternally(webConfigToRoleTypeMappingList, - "webCrawlingConfig"); - } - - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param webConfigToRoleTypeMappingList The list of webConfigToRoleTypeMapping. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList) { - return helpExtractListInternally(webConfigToRoleTypeMappingList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = new WebConfigToRoleTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * webConfigToRoleTypeMapping.setFoo...(value); - * webConfigToRoleTypeMapping.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webConfigToRoleTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webConfigToRoleTypeMapping.set...;</span> - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">insert</span>(webConfigToRoleTypeMapping); - * ... = webConfigToRoleTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param webConfigToRoleTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert( - final WebConfigToRoleTypeMapping webConfigToRoleTypeMapping) { - doInsert(webConfigToRoleTypeMapping, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = new WebConfigToRoleTypeMapping(); - * webConfigToRoleTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * webConfigToRoleTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webConfigToRoleTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webConfigToRoleTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * webConfigToRoleTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">update</span>(webConfigToRoleTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param webConfigToRoleTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update( - final WebConfigToRoleTypeMapping webConfigToRoleTypeMapping) { - doUpdate(webConfigToRoleTypeMapping, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param webConfigToRoleTypeMapping The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate( - final WebConfigToRoleTypeMapping webConfigToRoleTypeMapping) { - doInsertOrUpdate(webConfigToRoleTypeMapping, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = new WebConfigToRoleTypeMapping(); - * webConfigToRoleTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * webConfigToRoleTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">delete</span>(webConfigToRoleTypeMapping); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param webConfigToRoleTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete( - final WebConfigToRoleTypeMapping webConfigToRoleTypeMapping) { - doDelete(webConfigToRoleTypeMapping, null); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = new WebConfigToRoleTypeMapping(); - * webConfigToRoleTypeMapping.setFooName("foo"); - * if (...) { - * webConfigToRoleTypeMapping.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * webConfigToRoleTypeMappingList.add(webConfigToRoleTypeMapping); - * } - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">batchInsert</span>(webConfigToRoleTypeMappingList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param webConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList) { - return doBatchInsert(webConfigToRoleTypeMappingList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = new WebConfigToRoleTypeMapping(); - * webConfigToRoleTypeMapping.setFooName("foo"); - * if (...) { - * webConfigToRoleTypeMapping.setFooPrice(123); - * } else { - * webConfigToRoleTypeMapping.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//webConfigToRoleTypeMapping.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * webConfigToRoleTypeMappingList.add(webConfigToRoleTypeMapping); - * } - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(webConfigToRoleTypeMappingList); - * </pre> - * @param webConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList) { - return doBatchUpdate(webConfigToRoleTypeMappingList, null); - } - - /** - * Batch-update the entity list specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(webConfigToRoleTypeMappingList, new SpecifyQuery<WebConfigToRoleTypeMappingCB>() { - * public void specify(WebConfigToRoleTypeMappingCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">batchUpdate</span>(webConfigToRoleTypeMappingList, new SpecifyQuery<WebConfigToRoleTypeMappingCB>() { - * public void specify(WebConfigToRoleTypeMappingCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param webConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdate( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList, - final SpecifyQuery<WebConfigToRoleTypeMappingCB> updateColumnSpec) { - return doBatchUpdate(webConfigToRoleTypeMappingList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param webConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDelete( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList) { - return doBatchDelete(webConfigToRoleTypeMappingList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<WebConfigToRoleTypeMapping, WebConfigToRoleTypeMappingCB>() { - * public ConditionBean setup(WebConfigToRoleTypeMapping entity, WebConfigToRoleTypeMappingCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<WebConfigToRoleTypeMapping, WebConfigToRoleTypeMappingCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = new WebConfigToRoleTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//webConfigToRoleTypeMapping.setPK...(value);</span> - * webConfigToRoleTypeMapping.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webConfigToRoleTypeMapping.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webConfigToRoleTypeMapping.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webConfigToRoleTypeMapping.setVersionNo(value);</span> - * WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">queryUpdate</span>(webConfigToRoleTypeMapping, cb); - * </pre> - * @param webConfigToRoleTypeMapping The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of WebConfigToRoleTypeMapping. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate( - final WebConfigToRoleTypeMapping webConfigToRoleTypeMapping, - final WebConfigToRoleTypeMappingCB cb) { - return doQueryUpdate(webConfigToRoleTypeMapping, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">queryDelete</span>(webConfigToRoleTypeMapping, cb); - * </pre> - * @param cb The condition-bean of WebConfigToRoleTypeMapping. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final WebConfigToRoleTypeMappingCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = new WebConfigToRoleTypeMapping(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * webConfigToRoleTypeMapping.setFoo...(value); - * webConfigToRoleTypeMapping.setBar...(value); - * InsertOption<WebConfigToRoleTypeMappingCB> option = new InsertOption<WebConfigToRoleTypeMappingCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">varyingInsert</span>(webConfigToRoleTypeMapping, option); - * ... = webConfigToRoleTypeMapping.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param webConfigToRoleTypeMapping The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert( - final WebConfigToRoleTypeMapping webConfigToRoleTypeMapping, - final InsertOption<WebConfigToRoleTypeMappingCB> option) { - assertInsertOptionNotNull(option); - doInsert(webConfigToRoleTypeMapping, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = new WebConfigToRoleTypeMapping(); - * webConfigToRoleTypeMapping.setPK...(value); <span style="color: #3F7E5E">// required</span> - * webConfigToRoleTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * webConfigToRoleTypeMapping.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<WebConfigToRoleTypeMappingCB> option = new UpdateOption<WebConfigToRoleTypeMappingCB>(); - * option.self(new SpecifyQuery<WebConfigToRoleTypeMappingCB>() { - * public void specify(WebConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">varyingUpdate</span>(webConfigToRoleTypeMapping, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param webConfigToRoleTypeMapping The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate( - final WebConfigToRoleTypeMapping webConfigToRoleTypeMapping, - final UpdateOption<WebConfigToRoleTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(webConfigToRoleTypeMapping, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param webConfigToRoleTypeMapping The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final WebConfigToRoleTypeMapping webConfigToRoleTypeMapping, - final InsertOption<WebConfigToRoleTypeMappingCB> insertOption, - final UpdateOption<WebConfigToRoleTypeMappingCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(webConfigToRoleTypeMapping, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param webConfigToRoleTypeMapping The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete( - final WebConfigToRoleTypeMapping webConfigToRoleTypeMapping, - final DeleteOption<WebConfigToRoleTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - doDelete(webConfigToRoleTypeMapping, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param webConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList, - final InsertOption<WebConfigToRoleTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(webConfigToRoleTypeMappingList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param webConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList, - final UpdateOption<WebConfigToRoleTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(webConfigToRoleTypeMappingList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param webConfigToRoleTypeMappingList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList, - final DeleteOption<WebConfigToRoleTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(webConfigToRoleTypeMappingList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<WebConfigToRoleTypeMapping, WebConfigToRoleTypeMappingCB> setupper, - final InsertOption<WebConfigToRoleTypeMappingCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = new WebConfigToRoleTypeMapping(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//webConfigToRoleTypeMapping.setPK...(value);</span> - * webConfigToRoleTypeMapping.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webConfigToRoleTypeMapping.setVersionNo(value);</span> - * WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - * cb.query().setFoo...(value); - * UpdateOption<WebConfigToRoleTypeMappingCB> option = new UpdateOption<WebConfigToRoleTypeMappingCB>(); - * option.self(new SpecifyQuery<WebConfigToRoleTypeMappingCB>() { - * public void specify(WebConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * webConfigToRoleTypeMappingBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(webConfigToRoleTypeMapping, cb, option); - * </pre> - * @param webConfigToRoleTypeMapping The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of WebConfigToRoleTypeMapping. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate( - final WebConfigToRoleTypeMapping webConfigToRoleTypeMapping, - final WebConfigToRoleTypeMappingCB cb, - final UpdateOption<WebConfigToRoleTypeMappingCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(webConfigToRoleTypeMapping, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of WebConfigToRoleTypeMapping. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final WebConfigToRoleTypeMappingCB cb, - final DeleteOption<WebConfigToRoleTypeMappingCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<WebConfigToRoleTypeMappingBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends WebConfigToRoleTypeMapping> typeOfSelectedEntity() { - return WebConfigToRoleTypeMapping.class; - } - - @Override - protected Class<WebConfigToRoleTypeMapping> typeOfHandlingEntity() { - return WebConfigToRoleTypeMapping.class; - } - - @Override - protected Class<WebConfigToRoleTypeMappingCB> typeOfHandlingConditionBean() { - return WebConfigToRoleTypeMappingCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/BsWebCrawlingConfigBhv.java b/src/main/java/jp/sf/fess/db/bsbhv/BsWebCrawlingConfigBhv.java deleted file mode 100644 index ee636edde..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/BsWebCrawlingConfigBhv.java +++ /dev/null @@ -1,1718 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv; - -import java.util.List; - -import jp.sf.fess.db.bsbhv.loader.LoaderOfWebCrawlingConfig; -import jp.sf.fess.db.bsentity.dbmeta.WebCrawlingConfigDbm; -import jp.sf.fess.db.cbean.RequestHeaderCB; -import jp.sf.fess.db.cbean.WebAuthenticationCB; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.exbhv.WebCrawlingConfigBhv; -import jp.sf.fess.db.exentity.RequestHeader; -import jp.sf.fess.db.exentity.WebAuthentication; -import jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.bhv.AbstractBehaviorWritable; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.InsertOption; -import org.seasar.dbflute.bhv.LoadReferrerOption; -import org.seasar.dbflute.bhv.NestedReferrerListGateway; -import org.seasar.dbflute.bhv.QueryInsertSetupper; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; -import org.seasar.dbflute.bhv.UpdateOption; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.PagingResultBean; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.chelper.HpSLSFunction; -import org.seasar.dbflute.exception.BatchEntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.DangerousResultSizeException; -import org.seasar.dbflute.exception.EntityAlreadyDeletedException; -import org.seasar.dbflute.exception.EntityAlreadyExistsException; -import org.seasar.dbflute.exception.EntityAlreadyUpdatedException; -import org.seasar.dbflute.exception.EntityDuplicatedException; -import org.seasar.dbflute.exception.NonQueryDeleteNotAllowedException; -import org.seasar.dbflute.exception.NonQueryUpdateNotAllowedException; -import org.seasar.dbflute.exception.SelectEntityConditionNotFoundException; -import org.seasar.dbflute.optional.OptionalEntity; -import org.seasar.dbflute.outsidesql.executor.OutsideSqlBasicExecutor; - -/** - * The behavior of WEB_CRAWLING_CONFIG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, URLS, INCLUDED_URLS, EXCLUDED_URLS, INCLUDED_DOC_URLS, EXCLUDED_DOC_URLS, CONFIG_PARAMETER, DEPTH, MAX_ACCESS_COUNT, USER_AGENT, NUM_OF_THREAD, INTERVAL_TIME, BOOST, AVAILABLE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * REQUEST_HEADER, WEB_AUTHENTICATION, WEB_CONFIG_TO_LABEL_TYPE_MAPPING, WEB_CONFIG_TO_ROLE_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * requestHeaderList, webAuthenticationList, webConfigToLabelTypeMappingList, webConfigToRoleTypeMappingList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsWebCrawlingConfigBhv extends - AbstractBehaviorWritable<WebCrawlingConfig, WebCrawlingConfigCB> { - - // =================================================================================== - // Definition - // ========== - /*df:beginQueryPath*/ - /*df:endQueryPath*/ - - // =================================================================================== - // DBMeta - // ====== - /** {@inheritDoc} */ - @Override - public WebCrawlingConfigDbm getDBMeta() { - return WebCrawlingConfigDbm.getInstance(); - } - - /** @return The instance of DBMeta as my table type. (NotNull) */ - public WebCrawlingConfigDbm getMyDBMeta() { - return WebCrawlingConfigDbm.getInstance(); - } - - // =================================================================================== - // New Instance - // ============ - /** {@inheritDoc} */ - @Override - public WebCrawlingConfigCB newConditionBean() { - return new WebCrawlingConfigCB(); - } - - /** @return The instance of new entity as my table type. (NotNull) */ - public WebCrawlingConfig newMyEntity() { - return new WebCrawlingConfig(); - } - - /** @return The instance of new condition-bean as my table type. (NotNull) */ - public WebCrawlingConfigCB newMyConditionBean() { - return new WebCrawlingConfigCB(); - } - - // =================================================================================== - // Count Select - // ============ - /** - * Select the count of uniquely-selected records by the condition-bean. {IgnorePagingCondition, IgnoreSpecifyColumn}<br /> - * SpecifyColumn is ignored but you can use it only to remove text type column for union's distinct. - * <pre> - * WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - * cb.query().setFoo...(value); - * int count = webCrawlingConfigBhv.<span style="color: #DD4747">selectCount</span>(cb); - * </pre> - * @param cb The condition-bean of WebCrawlingConfig. (NotNull) - * @return The count for the condition. (NotMinus) - */ - public int selectCount(final WebCrawlingConfigCB cb) { - return facadeSelectCount(cb); - } - - // =================================================================================== - // Entity Select - // ============= - /** - * Select the entity by the condition-bean. #beforejava8 <br /> - * <span style="color: #AD4747; font-size: 120%">The return might be null if no data, so you should have null check.</span> <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, use selectEntityWithDeletedCheck().</span> - * <pre> - * WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - * cb.query().setFoo...(value); - * WebCrawlingConfig webCrawlingConfig = webCrawlingConfigBhv.<span style="color: #DD4747">selectEntity</span>(cb); - * if (webCrawlingConfig != null) { <span style="color: #3F7E5E">// null check</span> - * ... = webCrawlingConfig.get...(); - * } else { - * ... - * } - * </pre> - * @param cb The condition-bean of WebCrawlingConfig. (NotNull) - * @return The entity selected by the condition. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebCrawlingConfig selectEntity(final WebCrawlingConfigCB cb) { - return facadeSelectEntity(cb); - } - - protected WebCrawlingConfig facadeSelectEntity(final WebCrawlingConfigCB cb) { - return doSelectEntity(cb, typeOfSelectedEntity()); - } - - protected <ENTITY extends WebCrawlingConfig> OptionalEntity<ENTITY> doSelectOptionalEntity( - final WebCrawlingConfigCB cb, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectEntity(cb, tp), cb); - } - - @Override - protected Entity doReadEntity(final ConditionBean cb) { - return facadeSelectEntity(downcast(cb)); - } - - /** - * Select the entity by the condition-bean with deleted check. <br /> - * <span style="color: #AD4747; font-size: 120%">If the data always exists as your business rule, this method is good.</span> - * <pre> - * WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - * cb.query().setFoo...(value); - * WebCrawlingConfig webCrawlingConfig = webCrawlingConfigBhv.<span style="color: #DD4747">selectEntityWithDeletedCheck</span>(cb); - * ... = webCrawlingConfig.get...(); <span style="color: #3F7E5E">// the entity always be not null</span> - * </pre> - * @param cb The condition-bean of WebCrawlingConfig. (NotNull) - * @return The entity selected by the condition. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebCrawlingConfig selectEntityWithDeletedCheck( - final WebCrawlingConfigCB cb) { - return facadeSelectEntityWithDeletedCheck(cb); - } - - /** - * Select the entity by the primary-key value. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NullAllowed: if no data, it returns null) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebCrawlingConfig selectByPKValue(final Long id) { - return facadeSelectByPKValue(id); - } - - protected WebCrawlingConfig facadeSelectByPKValue(final Long id) { - return doSelectByPK(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends WebCrawlingConfig> ENTITY doSelectByPK( - final Long id, final Class<? extends ENTITY> tp) { - return doSelectEntity(xprepareCBAsPK(id), tp); - } - - protected <ENTITY extends WebCrawlingConfig> OptionalEntity<ENTITY> doSelectOptionalByPK( - final Long id, final Class<? extends ENTITY> tp) { - return createOptionalEntity(doSelectByPK(id, tp), id); - } - - /** - * Select the entity by the primary-key value with deleted check. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return The entity selected by the PK. (NotNull: if no data, throws exception) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception SelectEntityConditionNotFoundException When the condition for selecting an entity is not found. - */ - public WebCrawlingConfig selectByPKValueWithDeletedCheck(final Long id) { - return doSelectByPKWithDeletedCheck(id, typeOfSelectedEntity()); - } - - protected <ENTITY extends WebCrawlingConfig> ENTITY doSelectByPKWithDeletedCheck( - final Long id, final Class<ENTITY> tp) { - return doSelectEntityWithDeletedCheck(xprepareCBAsPK(id), tp); - } - - protected WebCrawlingConfigCB xprepareCBAsPK(final Long id) { - assertObjectNotNull("id", id); - return newConditionBean().acceptPK(id); - } - - // =================================================================================== - // List Select - // =========== - /** - * Select the list as result bean. - * <pre> - * WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * ListResultBean<WebCrawlingConfig> webCrawlingConfigList = webCrawlingConfigBhv.<span style="color: #DD4747">selectList</span>(cb); - * for (WebCrawlingConfig webCrawlingConfig : webCrawlingConfigList) { - * ... = webCrawlingConfig.get...(); - * } - * </pre> - * @param cb The condition-bean of WebCrawlingConfig. (NotNull) - * @return The result bean of selected list. (NotNull: if no data, returns empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public ListResultBean<WebCrawlingConfig> selectList( - final WebCrawlingConfigCB cb) { - return facadeSelectList(cb); - } - - // =================================================================================== - // Page Select - // =========== - /** - * Select the page as result bean. <br /> - * (both count-select and paging-select are executed) - * <pre> - * WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * cb.<span style="color: #DD4747">paging</span>(20, 3); <span style="color: #3F7E5E">// 20 records per a page and current page number is 3</span> - * PagingResultBean<WebCrawlingConfig> page = webCrawlingConfigBhv.<span style="color: #DD4747">selectPage</span>(cb); - * int allRecordCount = page.getAllRecordCount(); - * int allPageCount = page.getAllPageCount(); - * boolean isExistPrePage = page.isExistPrePage(); - * boolean isExistNextPage = page.isExistNextPage(); - * ... - * for (WebCrawlingConfig webCrawlingConfig : page) { - * ... = webCrawlingConfig.get...(); - * } - * </pre> - * @param cb The condition-bean of WebCrawlingConfig. (NotNull) - * @return The result bean of selected page. (NotNull: if no data, returns bean as empty list) - * @exception DangerousResultSizeException When the result size is over the specified safety size. - */ - public PagingResultBean<WebCrawlingConfig> selectPage( - final WebCrawlingConfigCB cb) { - return facadeSelectPage(cb); - } - - // =================================================================================== - // Cursor Select - // ============= - /** - * Select the cursor by the condition-bean. - * <pre> - * WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - * cb.query().setFoo...(value); - * webCrawlingConfigBhv.<span style="color: #DD4747">selectCursor</span>(cb, new EntityRowHandler<WebCrawlingConfig>() { - * public void handle(WebCrawlingConfig entity) { - * ... = entity.getFoo...(); - * } - * }); - * </pre> - * @param cb The condition-bean of WebCrawlingConfig. (NotNull) - * @param entityRowHandler The handler of entity row of WebCrawlingConfig. (NotNull) - */ - public void selectCursor(final WebCrawlingConfigCB cb, - final EntityRowHandler<WebCrawlingConfig> entityRowHandler) { - facadeSelectCursor(cb, entityRowHandler); - } - - // =================================================================================== - // Scalar Select - // ============= - /** - * Select the scalar value derived by a function from uniquely-selected records. <br /> - * You should call a function method after this method called like as follows: - * <pre> - * webCrawlingConfigBhv.<span style="color: #DD4747">scalarSelect</span>(Date.class).max(new ScalarQuery() { - * public void query(WebCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooDatetime()</span>; <span style="color: #3F7E5E">// required for a function</span> - * cb.query().setBarName_PrefixSearch("S"); - * } - * }); - * </pre> - * @param <RESULT> The type of result. - * @param resultType The type of result. (NotNull) - * @return The scalar function object to specify function for scalar value. (NotNull) - */ - public <RESULT> HpSLSFunction<WebCrawlingConfigCB, RESULT> scalarSelect( - final Class<RESULT> resultType) { - return facadeScalarSelect(resultType); - } - - // =================================================================================== - // Sequence - // ======== - @Override - protected Number doReadNextVal() { - final String msg = "This table is NOT related to sequence: " - + getTableDbName(); - throw new UnsupportedOperationException(msg); - } - - // =================================================================================== - // Load Referrer - // ============= - /** - * Load referrer by the the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * List<Member> memberList = memberBhv.selectList(cb); - * memberBhv.<span style="color: #DD4747">load</span>(memberList, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param webCrawlingConfigList The entity list of webCrawlingConfig. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final List<WebCrawlingConfig> webCrawlingConfigList, - final ReferrerLoaderHandler<LoaderOfWebCrawlingConfig> handler) { - xassLRArg(webCrawlingConfigList, handler); - handler.handle(new LoaderOfWebCrawlingConfig().ready( - webCrawlingConfigList, _behaviorSelector)); - } - - /** - * Load referrer of ${referrer.referrerJavaBeansRulePropertyName} by the referrer loader. <br /> - * <pre> - * MemberCB cb = new MemberCB(); - * cb.query().set... - * Member member = memberBhv.selectEntityWithDeletedCheck(cb); - * memberBhv.<span style="color: #DD4747">load</span>(member, loader -> { - * loader.<span style="color: #DD4747">loadPurchaseList</span>(purchaseCB -> { - * purchaseCB.query().set... - * purchaseCB.query().addOrderBy_PurchasePrice_Desc(); - * }); <span style="color: #3F7E5E">// you can also load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(purchaseLoader -> {</span> - * <span style="color: #3F7E5E">// purchaseLoader.loadPurchasePaymentList(...);</span> - * <span style="color: #3F7E5E">//});</span> - * - * <span style="color: #3F7E5E">// you can also pull out foreign table and load its referrer</span> - * <span style="color: #3F7E5E">// (setupSelect of the foreign table should be called)</span> - * <span style="color: #3F7E5E">//loader.pulloutMemberStatus().loadMemberLoginList(...)</span> - * } - * for (Member member : memberList) { - * List<Purchase> purchaseList = member.<span style="color: #DD4747">getPurchaseList()</span>; - * for (Purchase purchase : purchaseList) { - * ... - * } - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has order by FK before callback. - * @param webCrawlingConfig The entity of webCrawlingConfig. (NotNull) - * @param handler The callback to handle the referrer loader for actually loading referrer. (NotNull) - */ - public void load(final WebCrawlingConfig webCrawlingConfig, - final ReferrerLoaderHandler<LoaderOfWebCrawlingConfig> handler) { - xassLRArg(webCrawlingConfig, handler); - handler.handle(new LoaderOfWebCrawlingConfig().ready( - xnewLRAryLs(webCrawlingConfig), _behaviorSelector)); - } - - /** - * Load referrer of requestHeaderList by the set-upper of referrer. <br /> - * REQUEST_HEADER by WEB_CRAWLING_CONFIG_ID, named 'requestHeaderList'. - * <pre> - * webCrawlingConfigBhv.<span style="color: #DD4747">loadRequestHeaderList</span>(webCrawlingConfigList, new ConditionBeanSetupper<RequestHeaderCB>() { - * public void setup(RequestHeaderCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (WebCrawlingConfig webCrawlingConfig : webCrawlingConfigList) { - * ... = webCrawlingConfig.<span style="color: #DD4747">getRequestHeaderList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setWebCrawlingConfigId_InScope(pkList); - * cb.query().addOrderBy_WebCrawlingConfigId_Asc(); - * </pre> - * @param webCrawlingConfigList The entity list of webCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<RequestHeader> loadRequestHeaderList( - final List<WebCrawlingConfig> webCrawlingConfigList, - final ConditionBeanSetupper<RequestHeaderCB> setupper) { - xassLRArg(webCrawlingConfigList, setupper); - return doLoadRequestHeaderList(webCrawlingConfigList, - new LoadReferrerOption<RequestHeaderCB, RequestHeader>() - .xinit(setupper)); - } - - /** - * Load referrer of requestHeaderList by the set-upper of referrer. <br /> - * REQUEST_HEADER by WEB_CRAWLING_CONFIG_ID, named 'requestHeaderList'. - * <pre> - * webCrawlingConfigBhv.<span style="color: #DD4747">loadRequestHeaderList</span>(webCrawlingConfigList, new ConditionBeanSetupper<RequestHeaderCB>() { - * public void setup(RequestHeaderCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = webCrawlingConfig.<span style="color: #DD4747">getRequestHeaderList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setWebCrawlingConfigId_InScope(pkList); - * cb.query().addOrderBy_WebCrawlingConfigId_Asc(); - * </pre> - * @param webCrawlingConfig The entity of webCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<RequestHeader> loadRequestHeaderList( - final WebCrawlingConfig webCrawlingConfig, - final ConditionBeanSetupper<RequestHeaderCB> setupper) { - xassLRArg(webCrawlingConfig, setupper); - return doLoadRequestHeaderList(xnewLRLs(webCrawlingConfig), - new LoadReferrerOption<RequestHeaderCB, RequestHeader>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param webCrawlingConfig The entity of webCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<RequestHeader> loadRequestHeaderList( - final WebCrawlingConfig webCrawlingConfig, - final LoadReferrerOption<RequestHeaderCB, RequestHeader> loadReferrerOption) { - xassLRArg(webCrawlingConfig, loadReferrerOption); - return loadRequestHeaderList(xnewLRLs(webCrawlingConfig), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param webCrawlingConfigList The entity list of webCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<RequestHeader> loadRequestHeaderList( - final List<WebCrawlingConfig> webCrawlingConfigList, - final LoadReferrerOption<RequestHeaderCB, RequestHeader> loadReferrerOption) { - xassLRArg(webCrawlingConfigList, loadReferrerOption); - if (webCrawlingConfigList.isEmpty()) { - return (NestedReferrerListGateway<RequestHeader>) EMPTY_NREF_LGWAY; - } - return doLoadRequestHeaderList(webCrawlingConfigList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<RequestHeader> doLoadRequestHeaderList( - final List<WebCrawlingConfig> webCrawlingConfigList, - final LoadReferrerOption<RequestHeaderCB, RequestHeader> option) { - return helpLoadReferrerInternally(webCrawlingConfigList, option, - "requestHeaderList"); - } - - /** - * Load referrer of webAuthenticationList by the set-upper of referrer. <br /> - * WEB_AUTHENTICATION by WEB_CRAWLING_CONFIG_ID, named 'webAuthenticationList'. - * <pre> - * webCrawlingConfigBhv.<span style="color: #DD4747">loadWebAuthenticationList</span>(webCrawlingConfigList, new ConditionBeanSetupper<WebAuthenticationCB>() { - * public void setup(WebAuthenticationCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (WebCrawlingConfig webCrawlingConfig : webCrawlingConfigList) { - * ... = webCrawlingConfig.<span style="color: #DD4747">getWebAuthenticationList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setWebCrawlingConfigId_InScope(pkList); - * cb.query().addOrderBy_WebCrawlingConfigId_Asc(); - * </pre> - * @param webCrawlingConfigList The entity list of webCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebAuthentication> loadWebAuthenticationList( - final List<WebCrawlingConfig> webCrawlingConfigList, - final ConditionBeanSetupper<WebAuthenticationCB> setupper) { - xassLRArg(webCrawlingConfigList, setupper); - return doLoadWebAuthenticationList( - webCrawlingConfigList, - new LoadReferrerOption<WebAuthenticationCB, WebAuthentication>() - .xinit(setupper)); - } - - /** - * Load referrer of webAuthenticationList by the set-upper of referrer. <br /> - * WEB_AUTHENTICATION by WEB_CRAWLING_CONFIG_ID, named 'webAuthenticationList'. - * <pre> - * webCrawlingConfigBhv.<span style="color: #DD4747">loadWebAuthenticationList</span>(webCrawlingConfigList, new ConditionBeanSetupper<WebAuthenticationCB>() { - * public void setup(WebAuthenticationCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = webCrawlingConfig.<span style="color: #DD4747">getWebAuthenticationList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setWebCrawlingConfigId_InScope(pkList); - * cb.query().addOrderBy_WebCrawlingConfigId_Asc(); - * </pre> - * @param webCrawlingConfig The entity of webCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebAuthentication> loadWebAuthenticationList( - final WebCrawlingConfig webCrawlingConfig, - final ConditionBeanSetupper<WebAuthenticationCB> setupper) { - xassLRArg(webCrawlingConfig, setupper); - return doLoadWebAuthenticationList( - xnewLRLs(webCrawlingConfig), - new LoadReferrerOption<WebAuthenticationCB, WebAuthentication>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param webCrawlingConfig The entity of webCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebAuthentication> loadWebAuthenticationList( - final WebCrawlingConfig webCrawlingConfig, - final LoadReferrerOption<WebAuthenticationCB, WebAuthentication> loadReferrerOption) { - xassLRArg(webCrawlingConfig, loadReferrerOption); - return loadWebAuthenticationList(xnewLRLs(webCrawlingConfig), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param webCrawlingConfigList The entity list of webCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<WebAuthentication> loadWebAuthenticationList( - final List<WebCrawlingConfig> webCrawlingConfigList, - final LoadReferrerOption<WebAuthenticationCB, WebAuthentication> loadReferrerOption) { - xassLRArg(webCrawlingConfigList, loadReferrerOption); - if (webCrawlingConfigList.isEmpty()) { - return (NestedReferrerListGateway<WebAuthentication>) EMPTY_NREF_LGWAY; - } - return doLoadWebAuthenticationList(webCrawlingConfigList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<WebAuthentication> doLoadWebAuthenticationList( - final List<WebCrawlingConfig> webCrawlingConfigList, - final LoadReferrerOption<WebAuthenticationCB, WebAuthentication> option) { - return helpLoadReferrerInternally(webCrawlingConfigList, option, - "webAuthenticationList"); - } - - /** - * Load referrer of webConfigToLabelTypeMappingList by the set-upper of referrer. <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToLabelTypeMappingList'. - * <pre> - * webCrawlingConfigBhv.<span style="color: #DD4747">loadWebConfigToLabelTypeMappingList</span>(webCrawlingConfigList, new ConditionBeanSetupper<WebConfigToLabelTypeMappingCB>() { - * public void setup(WebConfigToLabelTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (WebCrawlingConfig webCrawlingConfig : webCrawlingConfigList) { - * ... = webCrawlingConfig.<span style="color: #DD4747">getWebConfigToLabelTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setWebConfigId_InScope(pkList); - * cb.query().addOrderBy_WebConfigId_Asc(); - * </pre> - * @param webCrawlingConfigList The entity list of webCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebConfigToLabelTypeMapping> loadWebConfigToLabelTypeMappingList( - final List<WebCrawlingConfig> webCrawlingConfigList, - final ConditionBeanSetupper<WebConfigToLabelTypeMappingCB> setupper) { - xassLRArg(webCrawlingConfigList, setupper); - return doLoadWebConfigToLabelTypeMappingList( - webCrawlingConfigList, - new LoadReferrerOption<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of webConfigToLabelTypeMappingList by the set-upper of referrer. <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToLabelTypeMappingList'. - * <pre> - * webCrawlingConfigBhv.<span style="color: #DD4747">loadWebConfigToLabelTypeMappingList</span>(webCrawlingConfigList, new ConditionBeanSetupper<WebConfigToLabelTypeMappingCB>() { - * public void setup(WebConfigToLabelTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = webCrawlingConfig.<span style="color: #DD4747">getWebConfigToLabelTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setWebConfigId_InScope(pkList); - * cb.query().addOrderBy_WebConfigId_Asc(); - * </pre> - * @param webCrawlingConfig The entity of webCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebConfigToLabelTypeMapping> loadWebConfigToLabelTypeMappingList( - final WebCrawlingConfig webCrawlingConfig, - final ConditionBeanSetupper<WebConfigToLabelTypeMappingCB> setupper) { - xassLRArg(webCrawlingConfig, setupper); - return doLoadWebConfigToLabelTypeMappingList( - xnewLRLs(webCrawlingConfig), - new LoadReferrerOption<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param webCrawlingConfig The entity of webCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebConfigToLabelTypeMapping> loadWebConfigToLabelTypeMappingList( - final WebCrawlingConfig webCrawlingConfig, - final LoadReferrerOption<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMapping> loadReferrerOption) { - xassLRArg(webCrawlingConfig, loadReferrerOption); - return loadWebConfigToLabelTypeMappingList(xnewLRLs(webCrawlingConfig), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param webCrawlingConfigList The entity list of webCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<WebConfigToLabelTypeMapping> loadWebConfigToLabelTypeMappingList( - final List<WebCrawlingConfig> webCrawlingConfigList, - final LoadReferrerOption<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMapping> loadReferrerOption) { - xassLRArg(webCrawlingConfigList, loadReferrerOption); - if (webCrawlingConfigList.isEmpty()) { - return (NestedReferrerListGateway<WebConfigToLabelTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadWebConfigToLabelTypeMappingList(webCrawlingConfigList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<WebConfigToLabelTypeMapping> doLoadWebConfigToLabelTypeMappingList( - final List<WebCrawlingConfig> webCrawlingConfigList, - final LoadReferrerOption<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMapping> option) { - return helpLoadReferrerInternally(webCrawlingConfigList, option, - "webConfigToLabelTypeMappingList"); - } - - /** - * Load referrer of webConfigToRoleTypeMappingList by the set-upper of referrer. <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToRoleTypeMappingList'. - * <pre> - * webCrawlingConfigBhv.<span style="color: #DD4747">loadWebConfigToRoleTypeMappingList</span>(webCrawlingConfigList, new ConditionBeanSetupper<WebConfigToRoleTypeMappingCB>() { - * public void setup(WebConfigToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * for (WebCrawlingConfig webCrawlingConfig : webCrawlingConfigList) { - * ... = webCrawlingConfig.<span style="color: #DD4747">getWebConfigToRoleTypeMappingList()</span>; - * } - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setWebConfigId_InScope(pkList); - * cb.query().addOrderBy_WebConfigId_Asc(); - * </pre> - * @param webCrawlingConfigList The entity list of webCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebConfigToRoleTypeMapping> loadWebConfigToRoleTypeMappingList( - final List<WebCrawlingConfig> webCrawlingConfigList, - final ConditionBeanSetupper<WebConfigToRoleTypeMappingCB> setupper) { - xassLRArg(webCrawlingConfigList, setupper); - return doLoadWebConfigToRoleTypeMappingList( - webCrawlingConfigList, - new LoadReferrerOption<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * Load referrer of webConfigToRoleTypeMappingList by the set-upper of referrer. <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToRoleTypeMappingList'. - * <pre> - * webCrawlingConfigBhv.<span style="color: #DD4747">loadWebConfigToRoleTypeMappingList</span>(webCrawlingConfigList, new ConditionBeanSetupper<WebConfigToRoleTypeMappingCB>() { - * public void setup(WebConfigToRoleTypeMappingCB cb) { - * cb.setupSelect...(); - * cb.query().setFoo...(value); - * cb.query().addOrderBy_Bar...(); - * } - * }); <span style="color: #3F7E5E">// you can load nested referrer from here</span> - * <span style="color: #3F7E5E">//}).withNestedList(referrerList -> {</span> - * <span style="color: #3F7E5E">// ...</span> - * <span style="color: #3F7E5E">//});</span> - * ... = webCrawlingConfig.<span style="color: #DD4747">getWebConfigToRoleTypeMappingList()</span>; - * </pre> - * About internal policy, the value of primary key (and others too) is treated as case-insensitive. <br /> - * The condition-bean, which the set-upper provides, has settings before callback as follows: - * <pre> - * cb.query().setWebConfigId_InScope(pkList); - * cb.query().addOrderBy_WebConfigId_Asc(); - * </pre> - * @param webCrawlingConfig The entity of webCrawlingConfig. (NotNull) - * @param setupper The callback to set up referrer condition-bean for loading referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebConfigToRoleTypeMapping> loadWebConfigToRoleTypeMappingList( - final WebCrawlingConfig webCrawlingConfig, - final ConditionBeanSetupper<WebConfigToRoleTypeMappingCB> setupper) { - xassLRArg(webCrawlingConfig, setupper); - return doLoadWebConfigToRoleTypeMappingList( - xnewLRLs(webCrawlingConfig), - new LoadReferrerOption<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMapping>() - .xinit(setupper)); - } - - /** - * {Refer to overload method that has an argument of the list of entity.} #beforejava8 - * @param webCrawlingConfig The entity of webCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - public NestedReferrerListGateway<WebConfigToRoleTypeMapping> loadWebConfigToRoleTypeMappingList( - final WebCrawlingConfig webCrawlingConfig, - final LoadReferrerOption<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMapping> loadReferrerOption) { - xassLRArg(webCrawlingConfig, loadReferrerOption); - return loadWebConfigToRoleTypeMappingList(xnewLRLs(webCrawlingConfig), - loadReferrerOption); - } - - /** - * {Refer to overload method that has an argument of condition-bean set-upper} #beforejava8 - * @param webCrawlingConfigList The entity list of webCrawlingConfig. (NotNull) - * @param loadReferrerOption The option of load-referrer. (NotNull) - * @return The callback interface which you can load nested referrer by calling withNestedReferrer(). (NotNull) - */ - @SuppressWarnings("unchecked") - public NestedReferrerListGateway<WebConfigToRoleTypeMapping> loadWebConfigToRoleTypeMappingList( - final List<WebCrawlingConfig> webCrawlingConfigList, - final LoadReferrerOption<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMapping> loadReferrerOption) { - xassLRArg(webCrawlingConfigList, loadReferrerOption); - if (webCrawlingConfigList.isEmpty()) { - return (NestedReferrerListGateway<WebConfigToRoleTypeMapping>) EMPTY_NREF_LGWAY; - } - return doLoadWebConfigToRoleTypeMappingList(webCrawlingConfigList, - loadReferrerOption); - } - - protected NestedReferrerListGateway<WebConfigToRoleTypeMapping> doLoadWebConfigToRoleTypeMappingList( - final List<WebCrawlingConfig> webCrawlingConfigList, - final LoadReferrerOption<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMapping> option) { - return helpLoadReferrerInternally(webCrawlingConfigList, option, - "webConfigToRoleTypeMappingList"); - } - - // =================================================================================== - // Pull out Relation - // ================= - // =================================================================================== - // Extract Column - // ============== - /** - * Extract the value list of (single) primary key id. - * @param webCrawlingConfigList The list of webCrawlingConfig. (NotNull, EmptyAllowed) - * @return The list of the column value. (NotNull, EmptyAllowed, NotNullElement) - */ - public List<Long> extractIdList( - final List<WebCrawlingConfig> webCrawlingConfigList) { - return helpExtractListInternally(webCrawlingConfigList, "id"); - } - - // =================================================================================== - // Entity Update - // ============= - /** - * Insert the entity modified-only. (DefaultConstraintsEnabled) - * <pre> - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * webCrawlingConfig.setFoo...(value); - * webCrawlingConfig.setBar...(value); - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.set...;</span> - * webCrawlingConfigBhv.<span style="color: #DD4747">insert</span>(webCrawlingConfig); - * ... = webCrawlingConfig.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * <p>While, when the entity is created by select, all columns are registered.</p> - * @param webCrawlingConfig The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insert(final WebCrawlingConfig webCrawlingConfig) { - doInsert(webCrawlingConfig, null); - } - - /** - * Update the entity modified-only. (ZeroUpdateException, ExclusiveControl) - * <pre> - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * webCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * webCrawlingConfig.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.set...;</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * webCrawlingConfig.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * webCrawlingConfigBhv.<span style="color: #DD4747">update</span>(webCrawlingConfig); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param webCrawlingConfig The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void update(final WebCrawlingConfig webCrawlingConfig) { - doUpdate(webCrawlingConfig, null); - } - - /** - * Update the entity non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) - * <pre> - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * webCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * webCrawlingConfig.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setVersionNo(value);</span> - * webCrawlingConfigBhv.<span style="color: #DD4747">updateNonstrict</span>(webCrawlingConfig); - * </pre> - * @param webCrawlingConfig The entity of update. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void updateNonstrict(final WebCrawlingConfig webCrawlingConfig) { - doUpdateNonstrict(webCrawlingConfig, null); - } - - /** - * Insert or update the entity modified-only. (DefaultConstraintsEnabled, ExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } <br /> - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param webCrawlingConfig The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdate(final WebCrawlingConfig webCrawlingConfig) { - doInsertOrUpdate(webCrawlingConfig, null, null); - } - - /** - * Insert or update the entity non-strictly modified-only. (DefaultConstraintsEnabled, NonExclusiveControl) <br /> - * if (the entity has no PK) { insert() } else { update(), but no data, insert() } - * <p><span style="color: #DD4747; font-size: 120%">Attention, you cannot update by unique keys instead of PK.</span></p> - * @param webCrawlingConfig The entity of insert or update. (NotNull, ...depends on insert or update) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void insertOrUpdateNonstrict( - final WebCrawlingConfig webCrawlingConfig) { - doInsertOrUpdateNonstrict(webCrawlingConfig, null, null); - } - - /** - * Delete the entity. (ZeroUpdateException, ExclusiveControl) - * <pre> - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * webCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * webCrawlingConfig.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * webCrawlingConfigBhv.<span style="color: #DD4747">delete</span>(webCrawlingConfig); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param webCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void delete(final WebCrawlingConfig webCrawlingConfig) { - doDelete(webCrawlingConfig, null); - } - - /** - * Delete the entity non-strictly. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * webCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setVersionNo(value);</span> - * webCrawlingConfigBhv.<span style="color: #DD4747">deleteNonstrict</span>(webCrawlingConfig); - * </pre> - * @param webCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrict(final WebCrawlingConfig webCrawlingConfig) { - doDeleteNonstrict(webCrawlingConfig, null); - } - - /** - * Delete the entity non-strictly ignoring deleted. {ZeroUpdateException, NonExclusiveControl} - * <pre> - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * webCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setVersionNo(value);</span> - * webCrawlingConfigBhv.<span style="color: #DD4747">deleteNonstrictIgnoreDeleted</span>(webCrawlingConfig); - * <span style="color: #3F7E5E">// if the target entity doesn't exist, no exception</span> - * </pre> - * @param webCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void deleteNonstrictIgnoreDeleted( - final WebCrawlingConfig webCrawlingConfig) { - doDeleteNonstrictIgnoreDeleted(webCrawlingConfig, null); - } - - protected void doDeleteNonstrictIgnoreDeleted(final WebCrawlingConfig et, - final DeleteOption<WebCrawlingConfigCB> op) { - assertObjectNotNull("webCrawlingConfig", et); - prepareDeleteOption(op); - helpDeleteNonstrictIgnoreDeletedInternally(et, op); - } - - // =================================================================================== - // Batch Update - // ============ - /** - * Batch-insert the entity list modified-only of same-set columns. (DefaultConstraintsEnabled) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <p><span style="color: #DD4747; font-size: 120%">The columns of least common multiple are registered like this:</span></p> - * <pre> - * for (... : ...) { - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * webCrawlingConfig.setFooName("foo"); - * if (...) { - * webCrawlingConfig.setFooPrice(123); - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are registered</span> - * <span style="color: #3F7E5E">// FOO_PRICE not-called in any entities are registered as null without default value</span> - * <span style="color: #3F7E5E">// columns not-called in all entities are registered as null or default value</span> - * webCrawlingConfigList.add(webCrawlingConfig); - * } - * webCrawlingConfigBhv.<span style="color: #DD4747">batchInsert</span>(webCrawlingConfigList); - * </pre> - * <p>While, when the entities are created by select, all columns are registered.</p> - * <p>And if the table has an identity, entities after the process don't have incremented values. - * (When you use the (normal) insert(), you can get the incremented value from your entity)</p> - * @param webCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNullAllowed: when auto-increment) - * @return The array of inserted count. (NotNull, EmptyAllowed) - */ - public int[] batchInsert(final List<WebCrawlingConfig> webCrawlingConfigList) { - return doBatchInsert(webCrawlingConfigList, null); - } - - /** - * Batch-update the entity list modified-only of same-set columns. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 120%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * webCrawlingConfig.setFooName("foo"); - * if (...) { - * webCrawlingConfig.setFooPrice(123); - * } else { - * webCrawlingConfig.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * webCrawlingConfigList.add(webCrawlingConfig); - * } - * webCrawlingConfigBhv.<span style="color: #DD4747">batchUpdate</span>(webCrawlingConfigList); - * </pre> - * @param webCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate(final List<WebCrawlingConfig> webCrawlingConfigList) { - return doBatchUpdate(webCrawlingConfigList, null); - } - - /** - * Batch-update the entity list specified-only. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * webCrawlingConfigBhv.<span style="color: #DD4747">batchUpdate</span>(webCrawlingConfigList, new SpecifyQuery<WebCrawlingConfigCB>() { - * public void specify(WebCrawlingConfigCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * webCrawlingConfigBhv.<span style="color: #DD4747">batchUpdate</span>(webCrawlingConfigList, new SpecifyQuery<WebCrawlingConfigCB>() { - * public void specify(WebCrawlingConfigCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity). - * But if you specify every column, it has no check.</p> - * @param webCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchUpdate( - final List<WebCrawlingConfig> webCrawlingConfigList, - final SpecifyQuery<WebCrawlingConfigCB> updateColumnSpec) { - return doBatchUpdate(webCrawlingConfigList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-update the entity list non-strictly modified-only of same-set columns. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. <br /> - * <span style="color: #DD4747; font-size: 140%">You should specify same-set columns to all entities like this:</span> - * <pre> - * for (... : ...) { - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * webCrawlingConfig.setFooName("foo"); - * if (...) { - * webCrawlingConfig.setFooPrice(123); - * } else { - * webCrawlingConfig.setFooPrice(null); <span style="color: #3F7E5E">// updated as null</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setFooDate(...); // *not allowed, fragmented</span> - * } - * <span style="color: #3F7E5E">// FOO_NAME and FOO_PRICE (and record meta columns) are updated</span> - * <span style="color: #3F7E5E">// (others are not updated: their values are kept)</span> - * webCrawlingConfigList.add(webCrawlingConfig); - * } - * webCrawlingConfigBhv.<span style="color: #DD4747">batchUpdate</span>(webCrawlingConfigList); - * </pre> - * @param webCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<WebCrawlingConfig> webCrawlingConfigList) { - return doBatchUpdateNonstrict(webCrawlingConfigList, null); - } - - /** - * Batch-update the entity list non-strictly specified-only. (NonExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * <pre> - * <span style="color: #3F7E5E">// e.g. update two columns only</span> - * webCrawlingConfigBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(webCrawlingConfigList, new SpecifyQuery<WebCrawlingConfigCB>() { - * public void specify(WebCrawlingConfigCB cb) { <span style="color: #3F7E5E">// the two only updated</span> - * cb.specify().<span style="color: #DD4747">columnFooStatusCode()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * cb.specify().<span style="color: #DD4747">columnBarDate()</span>; <span style="color: #3F7E5E">// should be modified in any entities</span> - * } - * }); - * <span style="color: #3F7E5E">// e.g. update every column in the table</span> - * webCrawlingConfigBhv.<span style="color: #DD4747">batchUpdateNonstrict</span>(webCrawlingConfigList, new SpecifyQuery<WebCrawlingConfigCB>() { - * public void specify(WebCrawlingConfigCB cb) { <span style="color: #3F7E5E">// all columns are updated</span> - * cb.specify().<span style="color: #DD4747">columnEveryColumn()</span>; <span style="color: #3F7E5E">// no check of modified properties</span> - * } - * }); - * </pre> - * <p>You can specify update columns used on set clause of update statement. - * However you do not need to specify common columns for update - * and an optimistic lock column because they are specified implicitly.</p> - * <p>And you should specify columns that are modified in any entities (at least one entity).</p> - * @param webCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param updateColumnSpec The specification of update columns. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchUpdateNonstrict( - final List<WebCrawlingConfig> webCrawlingConfigList, - final SpecifyQuery<WebCrawlingConfigCB> updateColumnSpec) { - return doBatchUpdateNonstrict(webCrawlingConfigList, - createSpecifiedUpdateOption(updateColumnSpec)); - } - - /** - * Batch-delete the entity list. (ExclusiveControl) <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param webCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception BatchEntityAlreadyUpdatedException When the entity has already been updated. This exception extends EntityAlreadyUpdatedException. - */ - public int[] batchDelete(final List<WebCrawlingConfig> webCrawlingConfigList) { - return doBatchDelete(webCrawlingConfigList, null); - } - - /** - * Batch-delete the entity list non-strictly. {NonExclusiveControl} <br /> - * This method uses executeBatch() of java.sql.PreparedStatement. - * @param webCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - */ - public int[] batchDeleteNonstrict( - final List<WebCrawlingConfig> webCrawlingConfigList) { - return doBatchDeleteNonstrict(webCrawlingConfigList, null); - } - - // =================================================================================== - // Query Update - // ============ - /** - * Insert the several entities by query (modified-only for fixed value). - * <pre> - * webCrawlingConfigBhv.<span style="color: #DD4747">queryInsert</span>(new QueryInsertSetupper<WebCrawlingConfig, WebCrawlingConfigCB>() { - * public ConditionBean setup(WebCrawlingConfig entity, WebCrawlingConfigCB intoCB) { - * FooCB cb = FooCB(); - * cb.setupSelect_Bar(); - * - * <span style="color: #3F7E5E">// mapping</span> - * intoCB.specify().columnMyName().mappedFrom(cb.specify().columnFooName()); - * intoCB.specify().columnMyCount().mappedFrom(cb.specify().columnFooCount()); - * intoCB.specify().columnMyDate().mappedFrom(cb.specify().specifyBar().columnBarDate()); - * entity.setMyFixedValue("foo"); <span style="color: #3F7E5E">// fixed value</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//entity.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//entity.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">//entity.setVersionNo(value);</span> - * - * return cb; - * } - * }); - * </pre> - * @param setupper The set-upper of query-insert. (NotNull) - * @return The inserted count. - */ - public int queryInsert( - final QueryInsertSetupper<WebCrawlingConfig, WebCrawlingConfigCB> setupper) { - return doQueryInsert(setupper, null); - } - - /** - * Update the several entities by query non-strictly modified-only. (NonExclusiveControl) - * <pre> - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setPK...(value);</span> - * webCrawlingConfig.setFoo...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set values of common columns</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setRegisterUser(value);</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.set...;</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setVersionNo(value);</span> - * WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - * cb.query().setFoo...(value); - * webCrawlingConfigBhv.<span style="color: #DD4747">queryUpdate</span>(webCrawlingConfig, cb); - * </pre> - * @param webCrawlingConfig The entity that contains update values. (NotNull, PrimaryKeyNullAllowed) - * @param cb The condition-bean of WebCrawlingConfig. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition. - */ - public int queryUpdate(final WebCrawlingConfig webCrawlingConfig, - final WebCrawlingConfigCB cb) { - return doQueryUpdate(webCrawlingConfig, cb, null); - } - - /** - * Delete the several entities by query. (NonExclusiveControl) - * <pre> - * WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - * cb.query().setFoo...(value); - * webCrawlingConfigBhv.<span style="color: #DD4747">queryDelete</span>(webCrawlingConfig, cb); - * </pre> - * @param cb The condition-bean of WebCrawlingConfig. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition. - */ - public int queryDelete(final WebCrawlingConfigCB cb) { - return doQueryDelete(cb, null); - } - - // =================================================================================== - // Varying Update - // ============== - // ----------------------------------------------------- - // Entity Update - // ------------- - /** - * Insert the entity with varying requests. <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as insert(entity). - * <pre> - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * <span style="color: #3F7E5E">// if auto-increment, you don't need to set the PK value</span> - * webCrawlingConfig.setFoo...(value); - * webCrawlingConfig.setBar...(value); - * InsertOption<WebCrawlingConfigCB> option = new InsertOption<WebCrawlingConfigCB>(); - * <span style="color: #3F7E5E">// you can insert by your values for common columns</span> - * option.disableCommonColumnAutoSetup(); - * webCrawlingConfigBhv.<span style="color: #DD4747">varyingInsert</span>(webCrawlingConfig, option); - * ... = webCrawlingConfig.getPK...(); <span style="color: #3F7E5E">// if auto-increment, you can get the value after</span> - * </pre> - * @param webCrawlingConfig The entity of insert. (NotNull, PrimaryKeyNullAllowed: when auto-increment) - * @param option The option of insert for varying requests. (NotNull) - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsert(final WebCrawlingConfig webCrawlingConfig, - final InsertOption<WebCrawlingConfigCB> option) { - assertInsertOptionNotNull(option); - doInsert(webCrawlingConfig, option); - } - - /** - * Update the entity with varying requests modified-only. (ZeroUpdateException, ExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as update(entity). - * <pre> - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * webCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * webCrawlingConfig.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// if exclusive control, the value of concurrency column is required</span> - * webCrawlingConfig.<span style="color: #DD4747">setVersionNo</span>(value); - * try { - * <span style="color: #3F7E5E">// you can update by self calculation values</span> - * UpdateOption<WebCrawlingConfigCB> option = new UpdateOption<WebCrawlingConfigCB>(); - * option.self(new SpecifyQuery<WebCrawlingConfigCB>() { - * public void specify(WebCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnXxxCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// XXX_COUNT = XXX_COUNT + 1</span> - * webCrawlingConfigBhv.<span style="color: #DD4747">varyingUpdate</span>(webCrawlingConfig, option); - * } catch (EntityAlreadyUpdatedException e) { <span style="color: #3F7E5E">// if concurrent update</span> - * ... - * } - * </pre> - * @param webCrawlingConfig The entity of update. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdate(final WebCrawlingConfig webCrawlingConfig, - final UpdateOption<WebCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - doUpdate(webCrawlingConfig, option); - } - - /** - * Update the entity with varying requests non-strictly modified-only. (ZeroUpdateException, NonExclusiveControl) <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification), disableCommonColumnAutoSetup(). <br /> - * Other specifications are same as updateNonstrict(entity). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * webCrawlingConfig.setPK...(value); <span style="color: #3F7E5E">// required</span> - * webCrawlingConfig.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setVersionNo(value);</span> - * UpdateOption<WebCrawlingConfigCB> option = new UpdateOption<WebCrawlingConfigCB>(); - * option.self(new SpecifyQuery<WebCrawlingConfigCB>() { - * public void specify(WebCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * webCrawlingConfigBhv.<span style="color: #DD4747">varyingUpdateNonstrict</span>(webCrawlingConfig, option); - * </pre> - * @param webCrawlingConfig The entity of update. (NotNull, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingUpdateNonstrict( - final WebCrawlingConfig webCrawlingConfig, - final UpdateOption<WebCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - doUpdateNonstrict(webCrawlingConfig, option); - } - - /** - * Insert or update the entity with varying requests. (ExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdate(entity). - * @param webCrawlingConfig The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdate( - final WebCrawlingConfig webCrawlingConfig, - final InsertOption<WebCrawlingConfigCB> insertOption, - final UpdateOption<WebCrawlingConfigCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdate(webCrawlingConfig, insertOption, updateOption); - } - - /** - * Insert or update the entity with varying requests non-strictly. (NonExclusiveControl: when update) <br /> - * Other specifications are same as insertOrUpdateNonstrict(entity). - * @param webCrawlingConfig The entity of insert or update. (NotNull) - * @param insertOption The option of insert for varying requests. (NotNull) - * @param updateOption The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - * @exception EntityAlreadyExistsException When the entity already exists. (unique constraint violation) - */ - public void varyingInsertOrUpdateNonstrict( - final WebCrawlingConfig webCrawlingConfig, - final InsertOption<WebCrawlingConfigCB> insertOption, - final UpdateOption<WebCrawlingConfigCB> updateOption) { - assertInsertOptionNotNull(insertOption); - assertUpdateOptionNotNull(updateOption); - doInsertOrUpdateNonstrict(webCrawlingConfig, insertOption, updateOption); - } - - /** - * Delete the entity with varying requests. (ZeroUpdateException, ExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as delete(entity). - * @param webCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyUpdatedException When the entity has already been updated. - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDelete(final WebCrawlingConfig webCrawlingConfig, - final DeleteOption<WebCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - doDelete(webCrawlingConfig, option); - } - - /** - * Delete the entity with varying requests non-strictly. (ZeroUpdateException, NonExclusiveControl) <br /> - * Now a valid option does not exist. <br /> - * Other specifications are same as deleteNonstrict(entity). - * @param webCrawlingConfig The entity of delete. (NotNull, PrimaryKeyNotNull, ConcurrencyColumnNotNull) - * @param option The option of update for varying requests. (NotNull) - * @exception EntityAlreadyDeletedException When the entity has already been deleted. (not found) - * @exception EntityDuplicatedException When the entity has been duplicated. - */ - public void varyingDeleteNonstrict( - final WebCrawlingConfig webCrawlingConfig, - final DeleteOption<WebCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - doDeleteNonstrict(webCrawlingConfig, option); - } - - // ----------------------------------------------------- - // Batch Update - // ------------ - /** - * Batch-insert the list with varying requests. <br /> - * For example, disableCommonColumnAutoSetup() - * , disablePrimaryKeyIdentity(), limitBatchInsertLogging(). <br /> - * Other specifications are same as batchInsert(entityList). - * @param webCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchInsert( - final List<WebCrawlingConfig> webCrawlingConfigList, - final InsertOption<WebCrawlingConfigCB> option) { - assertInsertOptionNotNull(option); - return doBatchInsert(webCrawlingConfigList, option); - } - - /** - * Batch-update the list with varying requests. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdate(entityList). - * @param webCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdate( - final List<WebCrawlingConfig> webCrawlingConfigList, - final UpdateOption<WebCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdate(webCrawlingConfigList, option); - } - - /** - * Batch-update the list with varying requests non-strictly. <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), limitBatchUpdateLogging(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param webCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The array of updated count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchUpdateNonstrict( - final List<WebCrawlingConfig> webCrawlingConfigList, - final UpdateOption<WebCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - return doBatchUpdateNonstrict(webCrawlingConfigList, option); - } - - /** - * Batch-delete the list with varying requests. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDelete(entityList). - * @param webCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDelete( - final List<WebCrawlingConfig> webCrawlingConfigList, - final DeleteOption<WebCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDelete(webCrawlingConfigList, option); - } - - /** - * Batch-delete the list with varying requests non-strictly. <br /> - * For example, limitBatchDeleteLogging(). <br /> - * Other specifications are same as batchDeleteNonstrict(entityList). - * @param webCrawlingConfigList The list of the entity. (NotNull, EmptyAllowed, PrimaryKeyNotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The array of deleted count. (NotNull, EmptyAllowed) - */ - public int[] varyingBatchDeleteNonstrict( - final List<WebCrawlingConfig> webCrawlingConfigList, - final DeleteOption<WebCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - return doBatchDeleteNonstrict(webCrawlingConfigList, option); - } - - // ----------------------------------------------------- - // Query Update - // ------------ - /** - * Insert the several entities by query with varying requests (modified-only for fixed value). <br /> - * For example, disableCommonColumnAutoSetup(), disablePrimaryKeyIdentity(). <br /> - * Other specifications are same as queryInsert(entity, setupper). - * @param setupper The set-upper of query-insert. (NotNull) - * @param option The option of insert for varying requests. (NotNull) - * @return The inserted count. - */ - public int varyingQueryInsert( - final QueryInsertSetupper<WebCrawlingConfig, WebCrawlingConfigCB> setupper, - final InsertOption<WebCrawlingConfigCB> option) { - assertInsertOptionNotNull(option); - return doQueryInsert(setupper, option); - } - - /** - * Update the several entities by query with varying requests non-strictly modified-only. {NonExclusiveControl} <br /> - * For example, self(selfCalculationSpecification), specify(updateColumnSpecification) - * , disableCommonColumnAutoSetup(), allowNonQueryUpdate(). <br /> - * Other specifications are same as queryUpdate(entity, cb). - * <pre> - * <span style="color: #3F7E5E">// ex) you can update by self calculation values</span> - * WebCrawlingConfig webCrawlingConfig = new WebCrawlingConfig(); - * <span style="color: #3F7E5E">// you don't need to set PK value</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setPK...(value);</span> - * webCrawlingConfig.setOther...(value); <span style="color: #3F7E5E">// you should set only modified columns</span> - * <span style="color: #3F7E5E">// you don't need to set a value of concurrency column</span> - * <span style="color: #3F7E5E">// (auto-increment for version number is valid though non-exclusive control)</span> - * <span style="color: #3F7E5E">//webCrawlingConfig.setVersionNo(value);</span> - * WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - * cb.query().setFoo...(value); - * UpdateOption<WebCrawlingConfigCB> option = new UpdateOption<WebCrawlingConfigCB>(); - * option.self(new SpecifyQuery<WebCrawlingConfigCB>() { - * public void specify(WebCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnFooCount()</span>; - * } - * }).plus(1); <span style="color: #3F7E5E">// FOO_COUNT = FOO_COUNT + 1</span> - * webCrawlingConfigBhv.<span style="color: #DD4747">varyingQueryUpdate</span>(webCrawlingConfig, cb, option); - * </pre> - * @param webCrawlingConfig The entity that contains update values. (NotNull) {PrimaryKeyNotRequired} - * @param cb The condition-bean of WebCrawlingConfig. (NotNull) - * @param option The option of update for varying requests. (NotNull) - * @return The updated count. - * @exception NonQueryUpdateNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryUpdate(final WebCrawlingConfig webCrawlingConfig, - final WebCrawlingConfigCB cb, - final UpdateOption<WebCrawlingConfigCB> option) { - assertUpdateOptionNotNull(option); - return doQueryUpdate(webCrawlingConfig, cb, option); - } - - /** - * Delete the several entities by query with varying requests non-strictly. <br /> - * For example, allowNonQueryDelete(). <br /> - * Other specifications are same as batchUpdateNonstrict(entityList). - * @param cb The condition-bean of WebCrawlingConfig. (NotNull) - * @param option The option of delete for varying requests. (NotNull) - * @return The deleted count. - * @exception NonQueryDeleteNotAllowedException When the query has no condition (if not allowed). - */ - public int varyingQueryDelete(final WebCrawlingConfigCB cb, - final DeleteOption<WebCrawlingConfigCB> option) { - assertDeleteOptionNotNull(option); - return doQueryDelete(cb, option); - } - - // =================================================================================== - // OutsideSql - // ========== - /** - * Prepare the basic executor of outside-SQL to execute it. <br /> - * The invoker of behavior command should be not null when you call this method. - * <pre> - * You can use the methods for outside-SQL are as follows: - * {Basic} - * o selectList() - * o execute() - * o call() - * - * {Entity} - * o entityHandling().selectEntity() - * o entityHandling().selectEntityWithDeletedCheck() - * - * {Paging} - * o autoPaging().selectList() - * o autoPaging().selectPage() - * o manualPaging().selectList() - * o manualPaging().selectPage() - * - * {Cursor} - * o cursorHandling().selectCursor() - * - * {Option} - * o dynamicBinding().selectList() - * o removeBlockComment().selectList() - * o removeLineComment().selectList() - * o formatSql().selectList() - * </pre> - * @return The basic executor of outside-SQL. (NotNull) - */ - public OutsideSqlBasicExecutor<WebCrawlingConfigBhv> outsideSql() { - return doOutsideSql(); - } - - // =================================================================================== - // Optimistic Lock Info - // ==================== - @Override - protected boolean hasVersionNoValue(final Entity et) { - return downcast(et).getVersionNo() != null; - } - - // =================================================================================== - // Type Helper - // =========== - @Override - protected Class<? extends WebCrawlingConfig> typeOfSelectedEntity() { - return WebCrawlingConfig.class; - } - - @Override - protected Class<WebCrawlingConfig> typeOfHandlingEntity() { - return WebCrawlingConfig.class; - } - - @Override - protected Class<WebCrawlingConfigCB> typeOfHandlingConditionBean() { - return WebCrawlingConfigCB.class; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfBoostDocumentRule.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfBoostDocumentRule.java deleted file mode 100644 index befcb949d..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfBoostDocumentRule.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.BoostDocumentRuleBhv; -import jp.sf.fess.db.exentity.BoostDocumentRule; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of BOOST_DOCUMENT_RULE as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, URL_EXPR, BOOST_EXPR, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfBoostDocumentRule { - - // =================================================================================== - // Attribute - // ========= - protected List<BoostDocumentRule> _selectedList; - - protected BehaviorSelector _selector; - - protected BoostDocumentRuleBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfBoostDocumentRule ready( - final List<BoostDocumentRule> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected BoostDocumentRuleBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(BoostDocumentRuleBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<BoostDocumentRule> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfClickLog.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfClickLog.java deleted file mode 100644 index 28b810926..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfClickLog.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.ClickLogBhv; -import jp.sf.fess.db.exentity.ClickLog; -import jp.sf.fess.db.exentity.SearchLog; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of CLICK_LOG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, SEARCH_ID, URL, REQUESTED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * SEARCH_LOG - * - * [referrer table] - * - * - * [foreign property] - * searchLog - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfClickLog { - - // =================================================================================== - // Attribute - // ========= - protected List<ClickLog> _selectedList; - - protected BehaviorSelector _selector; - - protected ClickLogBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfClickLog ready(final List<ClickLog> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected ClickLogBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(ClickLogBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfSearchLog _foreignSearchLogLoader; - - public LoaderOfSearchLog pulloutSearchLog() { - if (_foreignSearchLogLoader != null) { - return _foreignSearchLogLoader; - } - final List<SearchLog> pulledList = myBhv().pulloutSearchLog( - _selectedList); - _foreignSearchLogLoader = new LoaderOfSearchLog().ready(pulledList, - _selector); - return _foreignSearchLogLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<ClickLog> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfCrawlingSession.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfCrawlingSession.java deleted file mode 100644 index e27784ffd..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfCrawlingSession.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.cbean.CrawlingSessionInfoCB; -import jp.sf.fess.db.exbhv.CrawlingSessionBhv; -import jp.sf.fess.db.exentity.CrawlingSession; -import jp.sf.fess.db.exentity.CrawlingSessionInfo; - -import org.seasar.dbflute.BehaviorSelector; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.NestedReferrerLoaderGateway; -import org.seasar.dbflute.bhv.ReferrerListHandler; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; - -/** - * The referrer loader of CRAWLING_SESSION as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, SESSION_ID, NAME, EXPIRED_TIME, CREATED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * CRAWLING_SESSION_INFO - * - * [foreign property] - * - * - * [referrer property] - * crawlingSessionInfoList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfCrawlingSession { - - // =================================================================================== - // Attribute - // ========= - protected List<CrawlingSession> _selectedList; - - protected BehaviorSelector _selector; - - protected CrawlingSessionBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfCrawlingSession ready( - final List<CrawlingSession> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected CrawlingSessionBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(CrawlingSessionBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Load Referrer - // ============= - protected List<CrawlingSessionInfo> _referrerCrawlingSessionInfoList; - - public NestedReferrerLoaderGateway<LoaderOfCrawlingSessionInfo> loadCrawlingSessionInfoList( - final ConditionBeanSetupper<CrawlingSessionInfoCB> setupper) { - myBhv().loadCrawlingSessionInfoList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<CrawlingSessionInfo>() { - @Override - public void handle( - final List<CrawlingSessionInfo> referrerList) { - _referrerCrawlingSessionInfoList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfCrawlingSessionInfo>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfCrawlingSessionInfo> handler) { - handler.handle(new LoaderOfCrawlingSessionInfo().ready( - _referrerCrawlingSessionInfoList, _selector)); - } - }; - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<CrawlingSession> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfCrawlingSessionInfo.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfCrawlingSessionInfo.java deleted file mode 100644 index d5a8a2365..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfCrawlingSessionInfo.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.CrawlingSessionInfoBhv; -import jp.sf.fess.db.exentity.CrawlingSession; -import jp.sf.fess.db.exentity.CrawlingSessionInfo; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of CRAWLING_SESSION_INFO as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, CRAWLING_SESSION_ID, KEY, VALUE, CREATED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * CRAWLING_SESSION - * - * [referrer table] - * - * - * [foreign property] - * crawlingSession - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfCrawlingSessionInfo { - - // =================================================================================== - // Attribute - // ========= - protected List<CrawlingSessionInfo> _selectedList; - - protected BehaviorSelector _selector; - - protected CrawlingSessionInfoBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfCrawlingSessionInfo ready( - final List<CrawlingSessionInfo> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected CrawlingSessionInfoBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(CrawlingSessionInfoBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfCrawlingSession _foreignCrawlingSessionLoader; - - public LoaderOfCrawlingSession pulloutCrawlingSession() { - if (_foreignCrawlingSessionLoader != null) { - return _foreignCrawlingSessionLoader; - } - final List<CrawlingSession> pulledList = myBhv() - .pulloutCrawlingSession(_selectedList); - _foreignCrawlingSessionLoader = new LoaderOfCrawlingSession().ready( - pulledList, _selector); - return _foreignCrawlingSessionLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<CrawlingSessionInfo> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfDataConfigToLabelTypeMapping.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfDataConfigToLabelTypeMapping.java deleted file mode 100644 index 796ba2612..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfDataConfigToLabelTypeMapping.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.DataConfigToLabelTypeMappingBhv; -import jp.sf.fess.db.exentity.DataConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.db.exentity.LabelType; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of DATA_CONFIG_TO_LABEL_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, DATA_CONFIG_ID, LABEL_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * DATA_CRAWLING_CONFIG, LABEL_TYPE - * - * [referrer table] - * - * - * [foreign property] - * dataCrawlingConfig, labelType - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfDataConfigToLabelTypeMapping { - - // =================================================================================== - // Attribute - // ========= - protected List<DataConfigToLabelTypeMapping> _selectedList; - - protected BehaviorSelector _selector; - - protected DataConfigToLabelTypeMappingBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfDataConfigToLabelTypeMapping ready( - final List<DataConfigToLabelTypeMapping> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected DataConfigToLabelTypeMappingBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(DataConfigToLabelTypeMappingBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfDataCrawlingConfig _foreignDataCrawlingConfigLoader; - - public LoaderOfDataCrawlingConfig pulloutDataCrawlingConfig() { - if (_foreignDataCrawlingConfigLoader != null) { - return _foreignDataCrawlingConfigLoader; - } - final List<DataCrawlingConfig> pulledList = myBhv() - .pulloutDataCrawlingConfig(_selectedList); - _foreignDataCrawlingConfigLoader = new LoaderOfDataCrawlingConfig() - .ready(pulledList, _selector); - return _foreignDataCrawlingConfigLoader; - } - - protected LoaderOfLabelType _foreignLabelTypeLoader; - - public LoaderOfLabelType pulloutLabelType() { - if (_foreignLabelTypeLoader != null) { - return _foreignLabelTypeLoader; - } - final List<LabelType> pulledList = myBhv().pulloutLabelType( - _selectedList); - _foreignLabelTypeLoader = new LoaderOfLabelType().ready(pulledList, - _selector); - return _foreignLabelTypeLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<DataConfigToLabelTypeMapping> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfDataConfigToRoleTypeMapping.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfDataConfigToRoleTypeMapping.java deleted file mode 100644 index 4fd24da0d..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfDataConfigToRoleTypeMapping.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.DataConfigToRoleTypeMappingBhv; -import jp.sf.fess.db.exentity.DataConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.db.exentity.RoleType; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of DATA_CONFIG_TO_ROLE_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, DATA_CONFIG_ID, ROLE_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * DATA_CRAWLING_CONFIG, ROLE_TYPE - * - * [referrer table] - * - * - * [foreign property] - * dataCrawlingConfig, roleType - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfDataConfigToRoleTypeMapping { - - // =================================================================================== - // Attribute - // ========= - protected List<DataConfigToRoleTypeMapping> _selectedList; - - protected BehaviorSelector _selector; - - protected DataConfigToRoleTypeMappingBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfDataConfigToRoleTypeMapping ready( - final List<DataConfigToRoleTypeMapping> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected DataConfigToRoleTypeMappingBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(DataConfigToRoleTypeMappingBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfDataCrawlingConfig _foreignDataCrawlingConfigLoader; - - public LoaderOfDataCrawlingConfig pulloutDataCrawlingConfig() { - if (_foreignDataCrawlingConfigLoader != null) { - return _foreignDataCrawlingConfigLoader; - } - final List<DataCrawlingConfig> pulledList = myBhv() - .pulloutDataCrawlingConfig(_selectedList); - _foreignDataCrawlingConfigLoader = new LoaderOfDataCrawlingConfig() - .ready(pulledList, _selector); - return _foreignDataCrawlingConfigLoader; - } - - protected LoaderOfRoleType _foreignRoleTypeLoader; - - public LoaderOfRoleType pulloutRoleType() { - if (_foreignRoleTypeLoader != null) { - return _foreignRoleTypeLoader; - } - final List<RoleType> pulledList = myBhv() - .pulloutRoleType(_selectedList); - _foreignRoleTypeLoader = new LoaderOfRoleType().ready(pulledList, - _selector); - return _foreignRoleTypeLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<DataConfigToRoleTypeMapping> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfDataCrawlingConfig.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfDataCrawlingConfig.java deleted file mode 100644 index f00a40b5a..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfDataCrawlingConfig.java +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.exbhv.DataCrawlingConfigBhv; -import jp.sf.fess.db.exentity.DataConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.DataConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; - -import org.seasar.dbflute.BehaviorSelector; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.NestedReferrerLoaderGateway; -import org.seasar.dbflute.bhv.ReferrerListHandler; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; - -/** - * The referrer loader of DATA_CRAWLING_CONFIG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, HANDLER_NAME, HANDLER_PARAMETER, HANDLER_SCRIPT, BOOST, AVAILABLE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING, DATA_CONFIG_TO_ROLE_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * dataConfigToLabelTypeMappingList, dataConfigToRoleTypeMappingList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfDataCrawlingConfig { - - // =================================================================================== - // Attribute - // ========= - protected List<DataCrawlingConfig> _selectedList; - - protected BehaviorSelector _selector; - - protected DataCrawlingConfigBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfDataCrawlingConfig ready( - final List<DataCrawlingConfig> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected DataCrawlingConfigBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(DataCrawlingConfigBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Load Referrer - // ============= - protected List<DataConfigToLabelTypeMapping> _referrerDataConfigToLabelTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfDataConfigToLabelTypeMapping> loadDataConfigToLabelTypeMappingList( - final ConditionBeanSetupper<DataConfigToLabelTypeMappingCB> setupper) { - myBhv().loadDataConfigToLabelTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<DataConfigToLabelTypeMapping>() { - @Override - public void handle( - final List<DataConfigToLabelTypeMapping> referrerList) { - _referrerDataConfigToLabelTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfDataConfigToLabelTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfDataConfigToLabelTypeMapping> handler) { - handler.handle(new LoaderOfDataConfigToLabelTypeMapping() - .ready(_referrerDataConfigToLabelTypeMappingList, - _selector)); - } - }; - } - - protected List<DataConfigToRoleTypeMapping> _referrerDataConfigToRoleTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfDataConfigToRoleTypeMapping> loadDataConfigToRoleTypeMappingList( - final ConditionBeanSetupper<DataConfigToRoleTypeMappingCB> setupper) { - myBhv().loadDataConfigToRoleTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<DataConfigToRoleTypeMapping>() { - @Override - public void handle( - final List<DataConfigToRoleTypeMapping> referrerList) { - _referrerDataConfigToRoleTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfDataConfigToRoleTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfDataConfigToRoleTypeMapping> handler) { - handler.handle(new LoaderOfDataConfigToRoleTypeMapping().ready( - _referrerDataConfigToRoleTypeMappingList, _selector)); - } - }; - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<DataCrawlingConfig> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFailureUrl.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFailureUrl.java deleted file mode 100644 index 8b3b9b613..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFailureUrl.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.FailureUrlBhv; -import jp.sf.fess.db.exentity.FailureUrl; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of FAILURE_URL as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, URL, THREAD_NAME, ERROR_NAME, ERROR_LOG, ERROR_COUNT, LAST_ACCESS_TIME, CONFIG_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfFailureUrl { - - // =================================================================================== - // Attribute - // ========= - protected List<FailureUrl> _selectedList; - - protected BehaviorSelector _selector; - - protected FailureUrlBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfFailureUrl ready(final List<FailureUrl> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected FailureUrlBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(FailureUrlBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<FailureUrl> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFavoriteLog.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFavoriteLog.java deleted file mode 100644 index 92148ae2e..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFavoriteLog.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.FavoriteLogBhv; -import jp.sf.fess.db.exentity.FavoriteLog; -import jp.sf.fess.db.exentity.UserInfo; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of FAVORITE_LOG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, USER_ID, URL, CREATED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * USER_INFO - * - * [referrer table] - * - * - * [foreign property] - * userInfo - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfFavoriteLog { - - // =================================================================================== - // Attribute - // ========= - protected List<FavoriteLog> _selectedList; - - protected BehaviorSelector _selector; - - protected FavoriteLogBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfFavoriteLog ready(final List<FavoriteLog> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected FavoriteLogBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(FavoriteLogBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfUserInfo _foreignUserInfoLoader; - - public LoaderOfUserInfo pulloutUserInfo() { - if (_foreignUserInfoLoader != null) { - return _foreignUserInfoLoader; - } - final List<UserInfo> pulledList = myBhv() - .pulloutUserInfo(_selectedList); - _foreignUserInfoLoader = new LoaderOfUserInfo().ready(pulledList, - _selector); - return _foreignUserInfoLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<FavoriteLog> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileAuthentication.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileAuthentication.java deleted file mode 100644 index b18c0b06f..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileAuthentication.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.FileAuthenticationBhv; -import jp.sf.fess.db.exentity.FileAuthentication; -import jp.sf.fess.db.exentity.FileCrawlingConfig; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of FILE_AUTHENTICATION as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, HOSTNAME, PORT, PROTOCOL_SCHEME, USERNAME, PASSWORD, PARAMETERS, FILE_CRAWLING_CONFIG_ID, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * FILE_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * fileCrawlingConfig - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfFileAuthentication { - - // =================================================================================== - // Attribute - // ========= - protected List<FileAuthentication> _selectedList; - - protected BehaviorSelector _selector; - - protected FileAuthenticationBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfFileAuthentication ready( - final List<FileAuthentication> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected FileAuthenticationBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(FileAuthenticationBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfFileCrawlingConfig _foreignFileCrawlingConfigLoader; - - public LoaderOfFileCrawlingConfig pulloutFileCrawlingConfig() { - if (_foreignFileCrawlingConfigLoader != null) { - return _foreignFileCrawlingConfigLoader; - } - final List<FileCrawlingConfig> pulledList = myBhv() - .pulloutFileCrawlingConfig(_selectedList); - _foreignFileCrawlingConfigLoader = new LoaderOfFileCrawlingConfig() - .ready(pulledList, _selector); - return _foreignFileCrawlingConfigLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<FileAuthentication> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileConfigToLabelTypeMapping.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileConfigToLabelTypeMapping.java deleted file mode 100644 index d249702b6..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileConfigToLabelTypeMapping.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.FileConfigToLabelTypeMappingBhv; -import jp.sf.fess.db.exentity.FileConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.db.exentity.LabelType; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of FILE_CONFIG_TO_LABEL_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, FILE_CONFIG_ID, LABEL_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * FILE_CRAWLING_CONFIG, LABEL_TYPE - * - * [referrer table] - * - * - * [foreign property] - * fileCrawlingConfig, labelType - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfFileConfigToLabelTypeMapping { - - // =================================================================================== - // Attribute - // ========= - protected List<FileConfigToLabelTypeMapping> _selectedList; - - protected BehaviorSelector _selector; - - protected FileConfigToLabelTypeMappingBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfFileConfigToLabelTypeMapping ready( - final List<FileConfigToLabelTypeMapping> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected FileConfigToLabelTypeMappingBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(FileConfigToLabelTypeMappingBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfFileCrawlingConfig _foreignFileCrawlingConfigLoader; - - public LoaderOfFileCrawlingConfig pulloutFileCrawlingConfig() { - if (_foreignFileCrawlingConfigLoader != null) { - return _foreignFileCrawlingConfigLoader; - } - final List<FileCrawlingConfig> pulledList = myBhv() - .pulloutFileCrawlingConfig(_selectedList); - _foreignFileCrawlingConfigLoader = new LoaderOfFileCrawlingConfig() - .ready(pulledList, _selector); - return _foreignFileCrawlingConfigLoader; - } - - protected LoaderOfLabelType _foreignLabelTypeLoader; - - public LoaderOfLabelType pulloutLabelType() { - if (_foreignLabelTypeLoader != null) { - return _foreignLabelTypeLoader; - } - final List<LabelType> pulledList = myBhv().pulloutLabelType( - _selectedList); - _foreignLabelTypeLoader = new LoaderOfLabelType().ready(pulledList, - _selector); - return _foreignLabelTypeLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<FileConfigToLabelTypeMapping> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileConfigToRoleTypeMapping.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileConfigToRoleTypeMapping.java deleted file mode 100644 index 2ad375079..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileConfigToRoleTypeMapping.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.FileConfigToRoleTypeMappingBhv; -import jp.sf.fess.db.exentity.FileConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.db.exentity.RoleType; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of FILE_CONFIG_TO_ROLE_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, FILE_CONFIG_ID, ROLE_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * FILE_CRAWLING_CONFIG, ROLE_TYPE - * - * [referrer table] - * - * - * [foreign property] - * fileCrawlingConfig, roleType - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfFileConfigToRoleTypeMapping { - - // =================================================================================== - // Attribute - // ========= - protected List<FileConfigToRoleTypeMapping> _selectedList; - - protected BehaviorSelector _selector; - - protected FileConfigToRoleTypeMappingBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfFileConfigToRoleTypeMapping ready( - final List<FileConfigToRoleTypeMapping> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected FileConfigToRoleTypeMappingBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(FileConfigToRoleTypeMappingBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfFileCrawlingConfig _foreignFileCrawlingConfigLoader; - - public LoaderOfFileCrawlingConfig pulloutFileCrawlingConfig() { - if (_foreignFileCrawlingConfigLoader != null) { - return _foreignFileCrawlingConfigLoader; - } - final List<FileCrawlingConfig> pulledList = myBhv() - .pulloutFileCrawlingConfig(_selectedList); - _foreignFileCrawlingConfigLoader = new LoaderOfFileCrawlingConfig() - .ready(pulledList, _selector); - return _foreignFileCrawlingConfigLoader; - } - - protected LoaderOfRoleType _foreignRoleTypeLoader; - - public LoaderOfRoleType pulloutRoleType() { - if (_foreignRoleTypeLoader != null) { - return _foreignRoleTypeLoader; - } - final List<RoleType> pulledList = myBhv() - .pulloutRoleType(_selectedList); - _foreignRoleTypeLoader = new LoaderOfRoleType().ready(pulledList, - _selector); - return _foreignRoleTypeLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<FileConfigToRoleTypeMapping> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileCrawlingConfig.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileCrawlingConfig.java deleted file mode 100644 index a1810f7ab..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfFileCrawlingConfig.java +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.cbean.FileAuthenticationCB; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.exbhv.FileCrawlingConfigBhv; -import jp.sf.fess.db.exentity.FileAuthentication; -import jp.sf.fess.db.exentity.FileConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.FileConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; - -import org.seasar.dbflute.BehaviorSelector; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.NestedReferrerLoaderGateway; -import org.seasar.dbflute.bhv.ReferrerListHandler; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; - -/** - * The referrer loader of FILE_CRAWLING_CONFIG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, PATHS, INCLUDED_PATHS, EXCLUDED_PATHS, INCLUDED_DOC_PATHS, EXCLUDED_DOC_PATHS, CONFIG_PARAMETER, DEPTH, MAX_ACCESS_COUNT, NUM_OF_THREAD, INTERVAL_TIME, BOOST, AVAILABLE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * FILE_AUTHENTICATION, FILE_CONFIG_TO_LABEL_TYPE_MAPPING, FILE_CONFIG_TO_ROLE_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * fileAuthenticationList, fileConfigToLabelTypeMappingList, fileConfigToRoleTypeMappingList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfFileCrawlingConfig { - - // =================================================================================== - // Attribute - // ========= - protected List<FileCrawlingConfig> _selectedList; - - protected BehaviorSelector _selector; - - protected FileCrawlingConfigBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfFileCrawlingConfig ready( - final List<FileCrawlingConfig> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected FileCrawlingConfigBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(FileCrawlingConfigBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Load Referrer - // ============= - protected List<FileAuthentication> _referrerFileAuthenticationList; - - public NestedReferrerLoaderGateway<LoaderOfFileAuthentication> loadFileAuthenticationList( - final ConditionBeanSetupper<FileAuthenticationCB> setupper) { - myBhv().loadFileAuthenticationList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<FileAuthentication>() { - @Override - public void handle( - final List<FileAuthentication> referrerList) { - _referrerFileAuthenticationList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfFileAuthentication>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfFileAuthentication> handler) { - handler.handle(new LoaderOfFileAuthentication().ready( - _referrerFileAuthenticationList, _selector)); - } - }; - } - - protected List<FileConfigToLabelTypeMapping> _referrerFileConfigToLabelTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfFileConfigToLabelTypeMapping> loadFileConfigToLabelTypeMappingList( - final ConditionBeanSetupper<FileConfigToLabelTypeMappingCB> setupper) { - myBhv().loadFileConfigToLabelTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<FileConfigToLabelTypeMapping>() { - @Override - public void handle( - final List<FileConfigToLabelTypeMapping> referrerList) { - _referrerFileConfigToLabelTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfFileConfigToLabelTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfFileConfigToLabelTypeMapping> handler) { - handler.handle(new LoaderOfFileConfigToLabelTypeMapping() - .ready(_referrerFileConfigToLabelTypeMappingList, - _selector)); - } - }; - } - - protected List<FileConfigToRoleTypeMapping> _referrerFileConfigToRoleTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfFileConfigToRoleTypeMapping> loadFileConfigToRoleTypeMappingList( - final ConditionBeanSetupper<FileConfigToRoleTypeMappingCB> setupper) { - myBhv().loadFileConfigToRoleTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<FileConfigToRoleTypeMapping>() { - @Override - public void handle( - final List<FileConfigToRoleTypeMapping> referrerList) { - _referrerFileConfigToRoleTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfFileConfigToRoleTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfFileConfigToRoleTypeMapping> handler) { - handler.handle(new LoaderOfFileConfigToRoleTypeMapping().ready( - _referrerFileConfigToRoleTypeMappingList, _selector)); - } - }; - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<FileCrawlingConfig> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfJobLog.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfJobLog.java deleted file mode 100644 index c0dc6565d..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfJobLog.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.JobLogBhv; -import jp.sf.fess.db.exentity.JobLog; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of JOB_LOG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, JOB_NAME, JOB_STATUS, TARGET, SCRIPT_TYPE, SCRIPT_DATA, SCRIPT_RESULT, START_TIME, END_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfJobLog { - - // =================================================================================== - // Attribute - // ========= - protected List<JobLog> _selectedList; - - protected BehaviorSelector _selector; - - protected JobLogBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfJobLog ready(final List<JobLog> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected JobLogBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(JobLogBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<JobLog> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfKeyMatch.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfKeyMatch.java deleted file mode 100644 index 70dea14f5..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfKeyMatch.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.KeyMatchBhv; -import jp.sf.fess.db.exentity.KeyMatch; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of KEY_MATCH as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, TERM, QUERY, MAX_SIZE, BOOST, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfKeyMatch { - - // =================================================================================== - // Attribute - // ========= - protected List<KeyMatch> _selectedList; - - protected BehaviorSelector _selector; - - protected KeyMatchBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfKeyMatch ready(final List<KeyMatch> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected KeyMatchBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(KeyMatchBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<KeyMatch> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfLabelType.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfLabelType.java deleted file mode 100644 index ee9a11e90..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfLabelType.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.exbhv.LabelTypeBhv; -import jp.sf.fess.db.exentity.DataConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.FileConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping; -import jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping; - -import org.seasar.dbflute.BehaviorSelector; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.NestedReferrerLoaderGateway; -import org.seasar.dbflute.bhv.ReferrerListHandler; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; - -/** - * The referrer loader of LABEL_TYPE as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, VALUE, INCLUDED_PATHS, EXCLUDED_PATHS, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING, FILE_CONFIG_TO_LABEL_TYPE_MAPPING, LABEL_TYPE_TO_ROLE_TYPE_MAPPING, WEB_CONFIG_TO_LABEL_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * dataConfigToLabelTypeMappingList, fileConfigToLabelTypeMappingList, labelTypeToRoleTypeMappingList, webConfigToLabelTypeMappingList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfLabelType { - - // =================================================================================== - // Attribute - // ========= - protected List<LabelType> _selectedList; - - protected BehaviorSelector _selector; - - protected LabelTypeBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfLabelType ready(final List<LabelType> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected LabelTypeBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(LabelTypeBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Load Referrer - // ============= - protected List<DataConfigToLabelTypeMapping> _referrerDataConfigToLabelTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfDataConfigToLabelTypeMapping> loadDataConfigToLabelTypeMappingList( - final ConditionBeanSetupper<DataConfigToLabelTypeMappingCB> setupper) { - myBhv().loadDataConfigToLabelTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<DataConfigToLabelTypeMapping>() { - @Override - public void handle( - final List<DataConfigToLabelTypeMapping> referrerList) { - _referrerDataConfigToLabelTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfDataConfigToLabelTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfDataConfigToLabelTypeMapping> handler) { - handler.handle(new LoaderOfDataConfigToLabelTypeMapping() - .ready(_referrerDataConfigToLabelTypeMappingList, - _selector)); - } - }; - } - - protected List<FileConfigToLabelTypeMapping> _referrerFileConfigToLabelTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfFileConfigToLabelTypeMapping> loadFileConfigToLabelTypeMappingList( - final ConditionBeanSetupper<FileConfigToLabelTypeMappingCB> setupper) { - myBhv().loadFileConfigToLabelTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<FileConfigToLabelTypeMapping>() { - @Override - public void handle( - final List<FileConfigToLabelTypeMapping> referrerList) { - _referrerFileConfigToLabelTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfFileConfigToLabelTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfFileConfigToLabelTypeMapping> handler) { - handler.handle(new LoaderOfFileConfigToLabelTypeMapping() - .ready(_referrerFileConfigToLabelTypeMappingList, - _selector)); - } - }; - } - - protected List<LabelTypeToRoleTypeMapping> _referrerLabelTypeToRoleTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfLabelTypeToRoleTypeMapping> loadLabelTypeToRoleTypeMappingList( - final ConditionBeanSetupper<LabelTypeToRoleTypeMappingCB> setupper) { - myBhv().loadLabelTypeToRoleTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<LabelTypeToRoleTypeMapping>() { - @Override - public void handle( - final List<LabelTypeToRoleTypeMapping> referrerList) { - _referrerLabelTypeToRoleTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfLabelTypeToRoleTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfLabelTypeToRoleTypeMapping> handler) { - handler.handle(new LoaderOfLabelTypeToRoleTypeMapping().ready( - _referrerLabelTypeToRoleTypeMappingList, _selector)); - } - }; - } - - protected List<WebConfigToLabelTypeMapping> _referrerWebConfigToLabelTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfWebConfigToLabelTypeMapping> loadWebConfigToLabelTypeMappingList( - final ConditionBeanSetupper<WebConfigToLabelTypeMappingCB> setupper) { - myBhv().loadWebConfigToLabelTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<WebConfigToLabelTypeMapping>() { - @Override - public void handle( - final List<WebConfigToLabelTypeMapping> referrerList) { - _referrerWebConfigToLabelTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfWebConfigToLabelTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfWebConfigToLabelTypeMapping> handler) { - handler.handle(new LoaderOfWebConfigToLabelTypeMapping().ready( - _referrerWebConfigToLabelTypeMappingList, _selector)); - } - }; - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<LabelType> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfLabelTypeToRoleTypeMapping.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfLabelTypeToRoleTypeMapping.java deleted file mode 100644 index a789e937a..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfLabelTypeToRoleTypeMapping.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.LabelTypeToRoleTypeMappingBhv; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping; -import jp.sf.fess.db.exentity.RoleType; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of LABEL_TYPE_TO_ROLE_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, LABEL_TYPE_ID, ROLE_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * LABEL_TYPE, ROLE_TYPE - * - * [referrer table] - * - * - * [foreign property] - * labelType, roleType - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfLabelTypeToRoleTypeMapping { - - // =================================================================================== - // Attribute - // ========= - protected List<LabelTypeToRoleTypeMapping> _selectedList; - - protected BehaviorSelector _selector; - - protected LabelTypeToRoleTypeMappingBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfLabelTypeToRoleTypeMapping ready( - final List<LabelTypeToRoleTypeMapping> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected LabelTypeToRoleTypeMappingBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(LabelTypeToRoleTypeMappingBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfLabelType _foreignLabelTypeLoader; - - public LoaderOfLabelType pulloutLabelType() { - if (_foreignLabelTypeLoader != null) { - return _foreignLabelTypeLoader; - } - final List<LabelType> pulledList = myBhv().pulloutLabelType( - _selectedList); - _foreignLabelTypeLoader = new LoaderOfLabelType().ready(pulledList, - _selector); - return _foreignLabelTypeLoader; - } - - protected LoaderOfRoleType _foreignRoleTypeLoader; - - public LoaderOfRoleType pulloutRoleType() { - if (_foreignRoleTypeLoader != null) { - return _foreignRoleTypeLoader; - } - final List<RoleType> pulledList = myBhv() - .pulloutRoleType(_selectedList); - _foreignRoleTypeLoader = new LoaderOfRoleType().ready(pulledList, - _selector); - return _foreignRoleTypeLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<LabelTypeToRoleTypeMapping> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfOverlappingHost.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfOverlappingHost.java deleted file mode 100644 index 1dc32c6e8..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfOverlappingHost.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.OverlappingHostBhv; -import jp.sf.fess.db.exentity.OverlappingHost; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of OVERLAPPING_HOST as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, REGULAR_NAME, OVERLAPPING_NAME, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfOverlappingHost { - - // =================================================================================== - // Attribute - // ========= - protected List<OverlappingHost> _selectedList; - - protected BehaviorSelector _selector; - - protected OverlappingHostBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfOverlappingHost ready( - final List<OverlappingHost> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected OverlappingHostBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(OverlappingHostBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<OverlappingHost> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfPathMapping.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfPathMapping.java deleted file mode 100644 index 3b5ffb94d..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfPathMapping.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.PathMappingBhv; -import jp.sf.fess.db.exentity.PathMapping; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of PATH_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, REGEX, REPLACEMENT, PROCESS_TYPE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfPathMapping { - - // =================================================================================== - // Attribute - // ========= - protected List<PathMapping> _selectedList; - - protected BehaviorSelector _selector; - - protected PathMappingBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfPathMapping ready(final List<PathMapping> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected PathMappingBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(PathMappingBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<PathMapping> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfRequestHeader.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfRequestHeader.java deleted file mode 100644 index b77656320..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfRequestHeader.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.RequestHeaderBhv; -import jp.sf.fess.db.exentity.RequestHeader; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of REQUEST_HEADER as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, VALUE, WEB_CRAWLING_CONFIG_ID, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * WEB_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * webCrawlingConfig - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfRequestHeader { - - // =================================================================================== - // Attribute - // ========= - protected List<RequestHeader> _selectedList; - - protected BehaviorSelector _selector; - - protected RequestHeaderBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfRequestHeader ready(final List<RequestHeader> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected RequestHeaderBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(RequestHeaderBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfWebCrawlingConfig _foreignWebCrawlingConfigLoader; - - public LoaderOfWebCrawlingConfig pulloutWebCrawlingConfig() { - if (_foreignWebCrawlingConfigLoader != null) { - return _foreignWebCrawlingConfigLoader; - } - final List<WebCrawlingConfig> pulledList = myBhv() - .pulloutWebCrawlingConfig(_selectedList); - _foreignWebCrawlingConfigLoader = new LoaderOfWebCrawlingConfig() - .ready(pulledList, _selector); - return _foreignWebCrawlingConfigLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<RequestHeader> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfRoleType.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfRoleType.java deleted file mode 100644 index b1ba17a91..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfRoleType.java +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.exbhv.RoleTypeBhv; -import jp.sf.fess.db.exentity.DataConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.FileConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping; - -import org.seasar.dbflute.BehaviorSelector; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.NestedReferrerLoaderGateway; -import org.seasar.dbflute.bhv.ReferrerListHandler; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; - -/** - * The referrer loader of ROLE_TYPE as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, VALUE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING, FILE_CONFIG_TO_ROLE_TYPE_MAPPING, LABEL_TYPE_TO_ROLE_TYPE_MAPPING, WEB_CONFIG_TO_ROLE_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * dataConfigToRoleTypeMappingList, fileConfigToRoleTypeMappingList, labelTypeToRoleTypeMappingList, webConfigToRoleTypeMappingList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfRoleType { - - // =================================================================================== - // Attribute - // ========= - protected List<RoleType> _selectedList; - - protected BehaviorSelector _selector; - - protected RoleTypeBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfRoleType ready(final List<RoleType> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected RoleTypeBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(RoleTypeBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Load Referrer - // ============= - protected List<DataConfigToRoleTypeMapping> _referrerDataConfigToRoleTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfDataConfigToRoleTypeMapping> loadDataConfigToRoleTypeMappingList( - final ConditionBeanSetupper<DataConfigToRoleTypeMappingCB> setupper) { - myBhv().loadDataConfigToRoleTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<DataConfigToRoleTypeMapping>() { - @Override - public void handle( - final List<DataConfigToRoleTypeMapping> referrerList) { - _referrerDataConfigToRoleTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfDataConfigToRoleTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfDataConfigToRoleTypeMapping> handler) { - handler.handle(new LoaderOfDataConfigToRoleTypeMapping().ready( - _referrerDataConfigToRoleTypeMappingList, _selector)); - } - }; - } - - protected List<FileConfigToRoleTypeMapping> _referrerFileConfigToRoleTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfFileConfigToRoleTypeMapping> loadFileConfigToRoleTypeMappingList( - final ConditionBeanSetupper<FileConfigToRoleTypeMappingCB> setupper) { - myBhv().loadFileConfigToRoleTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<FileConfigToRoleTypeMapping>() { - @Override - public void handle( - final List<FileConfigToRoleTypeMapping> referrerList) { - _referrerFileConfigToRoleTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfFileConfigToRoleTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfFileConfigToRoleTypeMapping> handler) { - handler.handle(new LoaderOfFileConfigToRoleTypeMapping().ready( - _referrerFileConfigToRoleTypeMappingList, _selector)); - } - }; - } - - protected List<LabelTypeToRoleTypeMapping> _referrerLabelTypeToRoleTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfLabelTypeToRoleTypeMapping> loadLabelTypeToRoleTypeMappingList( - final ConditionBeanSetupper<LabelTypeToRoleTypeMappingCB> setupper) { - myBhv().loadLabelTypeToRoleTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<LabelTypeToRoleTypeMapping>() { - @Override - public void handle( - final List<LabelTypeToRoleTypeMapping> referrerList) { - _referrerLabelTypeToRoleTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfLabelTypeToRoleTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfLabelTypeToRoleTypeMapping> handler) { - handler.handle(new LoaderOfLabelTypeToRoleTypeMapping().ready( - _referrerLabelTypeToRoleTypeMappingList, _selector)); - } - }; - } - - protected List<WebConfigToRoleTypeMapping> _referrerWebConfigToRoleTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfWebConfigToRoleTypeMapping> loadWebConfigToRoleTypeMappingList( - final ConditionBeanSetupper<WebConfigToRoleTypeMappingCB> setupper) { - myBhv().loadWebConfigToRoleTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<WebConfigToRoleTypeMapping>() { - @Override - public void handle( - final List<WebConfigToRoleTypeMapping> referrerList) { - _referrerWebConfigToRoleTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfWebConfigToRoleTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfWebConfigToRoleTypeMapping> handler) { - handler.handle(new LoaderOfWebConfigToRoleTypeMapping().ready( - _referrerWebConfigToRoleTypeMappingList, _selector)); - } - }; - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<RoleType> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfScheduledJob.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfScheduledJob.java deleted file mode 100644 index 6a4d2d60f..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfScheduledJob.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.ScheduledJobBhv; -import jp.sf.fess.db.exentity.ScheduledJob; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of SCHEDULED_JOB as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, TARGET, CRON_EXPRESSION, SCRIPT_TYPE, SCRIPT_DATA, CRAWLER, JOB_LOGGING, AVAILABLE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfScheduledJob { - - // =================================================================================== - // Attribute - // ========= - protected List<ScheduledJob> _selectedList; - - protected BehaviorSelector _selector; - - protected ScheduledJobBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfScheduledJob ready(final List<ScheduledJob> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected ScheduledJobBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(ScheduledJobBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<ScheduledJob> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSearchFieldLog.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSearchFieldLog.java deleted file mode 100644 index 5a0839f84..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSearchFieldLog.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.SearchFieldLogBhv; -import jp.sf.fess.db.exentity.SearchFieldLog; -import jp.sf.fess.db.exentity.SearchLog; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of SEARCH_FIELD_LOG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, SEARCH_ID, NAME, VALUE - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * SEARCH_LOG - * - * [referrer table] - * - * - * [foreign property] - * searchLog - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfSearchFieldLog { - - // =================================================================================== - // Attribute - // ========= - protected List<SearchFieldLog> _selectedList; - - protected BehaviorSelector _selector; - - protected SearchFieldLogBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfSearchFieldLog ready( - final List<SearchFieldLog> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected SearchFieldLogBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(SearchFieldLogBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfSearchLog _foreignSearchLogLoader; - - public LoaderOfSearchLog pulloutSearchLog() { - if (_foreignSearchLogLoader != null) { - return _foreignSearchLogLoader; - } - final List<SearchLog> pulledList = myBhv().pulloutSearchLog( - _selectedList); - _foreignSearchLogLoader = new LoaderOfSearchLog().ready(pulledList, - _selector); - return _foreignSearchLogLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<SearchFieldLog> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSearchLog.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSearchLog.java deleted file mode 100644 index f7feecc43..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSearchLog.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.cbean.SearchFieldLogCB; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.ClickLog; -import jp.sf.fess.db.exentity.SearchFieldLog; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.db.exentity.UserInfo; - -import org.seasar.dbflute.BehaviorSelector; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.NestedReferrerLoaderGateway; -import org.seasar.dbflute.bhv.ReferrerListHandler; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; - -/** - * The referrer loader of SEARCH_LOG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, SEARCH_WORD, REQUESTED_TIME, RESPONSE_TIME, HIT_COUNT, QUERY_OFFSET, QUERY_PAGE_SIZE, USER_AGENT, REFERER, CLIENT_IP, USER_SESSION_ID, ACCESS_TYPE, USER_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * USER_INFO - * - * [referrer table] - * CLICK_LOG, SEARCH_FIELD_LOG - * - * [foreign property] - * userInfo - * - * [referrer property] - * clickLogList, searchFieldLogList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfSearchLog { - - // =================================================================================== - // Attribute - // ========= - protected List<SearchLog> _selectedList; - - protected BehaviorSelector _selector; - - protected SearchLogBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfSearchLog ready(final List<SearchLog> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected SearchLogBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(SearchLogBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Load Referrer - // ============= - protected List<ClickLog> _referrerClickLogList; - - public NestedReferrerLoaderGateway<LoaderOfClickLog> loadClickLogList( - final ConditionBeanSetupper<ClickLogCB> setupper) { - myBhv().loadClickLogList(_selectedList, setupper).withNestedReferrer( - new ReferrerListHandler<ClickLog>() { - @Override - public void handle(final List<ClickLog> referrerList) { - _referrerClickLogList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfClickLog>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfClickLog> handler) { - handler.handle(new LoaderOfClickLog().ready( - _referrerClickLogList, _selector)); - } - }; - } - - protected List<SearchFieldLog> _referrerSearchFieldLogList; - - public NestedReferrerLoaderGateway<LoaderOfSearchFieldLog> loadSearchFieldLogList( - final ConditionBeanSetupper<SearchFieldLogCB> setupper) { - myBhv().loadSearchFieldLogList(_selectedList, setupper) - .withNestedReferrer(new ReferrerListHandler<SearchFieldLog>() { - @Override - public void handle(final List<SearchFieldLog> referrerList) { - _referrerSearchFieldLogList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfSearchFieldLog>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfSearchFieldLog> handler) { - handler.handle(new LoaderOfSearchFieldLog().ready( - _referrerSearchFieldLogList, _selector)); - } - }; - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfUserInfo _foreignUserInfoLoader; - - public LoaderOfUserInfo pulloutUserInfo() { - if (_foreignUserInfoLoader != null) { - return _foreignUserInfoLoader; - } - final List<UserInfo> pulledList = myBhv() - .pulloutUserInfo(_selectedList); - _foreignUserInfoLoader = new LoaderOfUserInfo().ready(pulledList, - _selector); - return _foreignUserInfoLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<SearchLog> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSuggestBadWord.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSuggestBadWord.java deleted file mode 100644 index a89c71e62..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSuggestBadWord.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.SuggestBadWordBhv; -import jp.sf.fess.db.exentity.SuggestBadWord; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of SUGGEST_BAD_WORD as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, SUGGEST_WORD, TARGET_ROLE, TARGET_LABEL, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfSuggestBadWord { - - // =================================================================================== - // Attribute - // ========= - protected List<SuggestBadWord> _selectedList; - - protected BehaviorSelector _selector; - - protected SuggestBadWordBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfSuggestBadWord ready( - final List<SuggestBadWord> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected SuggestBadWordBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(SuggestBadWordBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<SuggestBadWord> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSuggestElevateWord.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSuggestElevateWord.java deleted file mode 100644 index 1ef22a0bf..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfSuggestElevateWord.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.SuggestElevateWordBhv; -import jp.sf.fess.db.exentity.SuggestElevateWord; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of SUGGEST_ELEVATE_WORD as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, SUGGEST_WORD, READING, TARGET_ROLE, TARGET_LABEL, BOOST, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfSuggestElevateWord { - - // =================================================================================== - // Attribute - // ========= - protected List<SuggestElevateWord> _selectedList; - - protected BehaviorSelector _selector; - - protected SuggestElevateWordBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfSuggestElevateWord ready( - final List<SuggestElevateWord> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected SuggestElevateWordBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(SuggestElevateWordBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<SuggestElevateWord> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfUserInfo.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfUserInfo.java deleted file mode 100644 index 8c3aa8b5c..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfUserInfo.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.cbean.FavoriteLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.exbhv.UserInfoBhv; -import jp.sf.fess.db.exentity.FavoriteLog; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.db.exentity.UserInfo; - -import org.seasar.dbflute.BehaviorSelector; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.NestedReferrerLoaderGateway; -import org.seasar.dbflute.bhv.ReferrerListHandler; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; - -/** - * The referrer loader of USER_INFO as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, CODE, CREATED_TIME, UPDATED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * FAVORITE_LOG, SEARCH_LOG - * - * [foreign property] - * - * - * [referrer property] - * favoriteLogList, searchLogList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfUserInfo { - - // =================================================================================== - // Attribute - // ========= - protected List<UserInfo> _selectedList; - - protected BehaviorSelector _selector; - - protected UserInfoBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfUserInfo ready(final List<UserInfo> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected UserInfoBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(UserInfoBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Load Referrer - // ============= - protected List<FavoriteLog> _referrerFavoriteLogList; - - public NestedReferrerLoaderGateway<LoaderOfFavoriteLog> loadFavoriteLogList( - final ConditionBeanSetupper<FavoriteLogCB> setupper) { - myBhv().loadFavoriteLogList(_selectedList, setupper) - .withNestedReferrer(new ReferrerListHandler<FavoriteLog>() { - @Override - public void handle(final List<FavoriteLog> referrerList) { - _referrerFavoriteLogList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfFavoriteLog>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfFavoriteLog> handler) { - handler.handle(new LoaderOfFavoriteLog().ready( - _referrerFavoriteLogList, _selector)); - } - }; - } - - protected List<SearchLog> _referrerSearchLogList; - - public NestedReferrerLoaderGateway<LoaderOfSearchLog> loadSearchLogList( - final ConditionBeanSetupper<SearchLogCB> setupper) { - myBhv().loadSearchLogList(_selectedList, setupper).withNestedReferrer( - new ReferrerListHandler<SearchLog>() { - @Override - public void handle(final List<SearchLog> referrerList) { - _referrerSearchLogList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfSearchLog>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfSearchLog> handler) { - handler.handle(new LoaderOfSearchLog().ready( - _referrerSearchLogList, _selector)); - } - }; - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<UserInfo> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebAuthentication.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebAuthentication.java deleted file mode 100644 index c66c9d79b..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebAuthentication.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.WebAuthenticationBhv; -import jp.sf.fess.db.exentity.WebAuthentication; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of WEB_AUTHENTICATION as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, HOSTNAME, PORT, AUTH_REALM, PROTOCOL_SCHEME, USERNAME, PASSWORD, PARAMETERS, WEB_CRAWLING_CONFIG_ID, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * WEB_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * webCrawlingConfig - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfWebAuthentication { - - // =================================================================================== - // Attribute - // ========= - protected List<WebAuthentication> _selectedList; - - protected BehaviorSelector _selector; - - protected WebAuthenticationBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfWebAuthentication ready( - final List<WebAuthentication> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected WebAuthenticationBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(WebAuthenticationBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfWebCrawlingConfig _foreignWebCrawlingConfigLoader; - - public LoaderOfWebCrawlingConfig pulloutWebCrawlingConfig() { - if (_foreignWebCrawlingConfigLoader != null) { - return _foreignWebCrawlingConfigLoader; - } - final List<WebCrawlingConfig> pulledList = myBhv() - .pulloutWebCrawlingConfig(_selectedList); - _foreignWebCrawlingConfigLoader = new LoaderOfWebCrawlingConfig() - .ready(pulledList, _selector); - return _foreignWebCrawlingConfigLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<WebAuthentication> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebConfigToLabelTypeMapping.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebConfigToLabelTypeMapping.java deleted file mode 100644 index 149c07920..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebConfigToLabelTypeMapping.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.WebConfigToLabelTypeMappingBhv; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of WEB_CONFIG_TO_LABEL_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, WEB_CONFIG_ID, LABEL_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * LABEL_TYPE, WEB_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * labelType, webCrawlingConfig - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfWebConfigToLabelTypeMapping { - - // =================================================================================== - // Attribute - // ========= - protected List<WebConfigToLabelTypeMapping> _selectedList; - - protected BehaviorSelector _selector; - - protected WebConfigToLabelTypeMappingBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfWebConfigToLabelTypeMapping ready( - final List<WebConfigToLabelTypeMapping> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected WebConfigToLabelTypeMappingBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(WebConfigToLabelTypeMappingBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfLabelType _foreignLabelTypeLoader; - - public LoaderOfLabelType pulloutLabelType() { - if (_foreignLabelTypeLoader != null) { - return _foreignLabelTypeLoader; - } - final List<LabelType> pulledList = myBhv().pulloutLabelType( - _selectedList); - _foreignLabelTypeLoader = new LoaderOfLabelType().ready(pulledList, - _selector); - return _foreignLabelTypeLoader; - } - - protected LoaderOfWebCrawlingConfig _foreignWebCrawlingConfigLoader; - - public LoaderOfWebCrawlingConfig pulloutWebCrawlingConfig() { - if (_foreignWebCrawlingConfigLoader != null) { - return _foreignWebCrawlingConfigLoader; - } - final List<WebCrawlingConfig> pulledList = myBhv() - .pulloutWebCrawlingConfig(_selectedList); - _foreignWebCrawlingConfigLoader = new LoaderOfWebCrawlingConfig() - .ready(pulledList, _selector); - return _foreignWebCrawlingConfigLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<WebConfigToLabelTypeMapping> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebConfigToRoleTypeMapping.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebConfigToRoleTypeMapping.java deleted file mode 100644 index 7901b07a2..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebConfigToRoleTypeMapping.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.exbhv.WebConfigToRoleTypeMappingBhv; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.BehaviorSelector; - -/** - * The referrer loader of WEB_CONFIG_TO_ROLE_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, WEB_CONFIG_ID, ROLE_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * ROLE_TYPE, WEB_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * roleType, webCrawlingConfig - * - * [referrer property] - * - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfWebConfigToRoleTypeMapping { - - // =================================================================================== - // Attribute - // ========= - protected List<WebConfigToRoleTypeMapping> _selectedList; - - protected BehaviorSelector _selector; - - protected WebConfigToRoleTypeMappingBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfWebConfigToRoleTypeMapping ready( - final List<WebConfigToRoleTypeMapping> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected WebConfigToRoleTypeMappingBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(WebConfigToRoleTypeMappingBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Pull out Foreign - // ================ - protected LoaderOfRoleType _foreignRoleTypeLoader; - - public LoaderOfRoleType pulloutRoleType() { - if (_foreignRoleTypeLoader != null) { - return _foreignRoleTypeLoader; - } - final List<RoleType> pulledList = myBhv() - .pulloutRoleType(_selectedList); - _foreignRoleTypeLoader = new LoaderOfRoleType().ready(pulledList, - _selector); - return _foreignRoleTypeLoader; - } - - protected LoaderOfWebCrawlingConfig _foreignWebCrawlingConfigLoader; - - public LoaderOfWebCrawlingConfig pulloutWebCrawlingConfig() { - if (_foreignWebCrawlingConfigLoader != null) { - return _foreignWebCrawlingConfigLoader; - } - final List<WebCrawlingConfig> pulledList = myBhv() - .pulloutWebCrawlingConfig(_selectedList); - _foreignWebCrawlingConfigLoader = new LoaderOfWebCrawlingConfig() - .ready(pulledList, _selector); - return _foreignWebCrawlingConfigLoader; - } - - // =================================================================================== - // Accessor - // ======== - public List<WebConfigToRoleTypeMapping> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebCrawlingConfig.java b/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebCrawlingConfig.java deleted file mode 100644 index c0e5f7787..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/loader/LoaderOfWebCrawlingConfig.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.loader; - -import java.util.List; - -import jp.sf.fess.db.cbean.RequestHeaderCB; -import jp.sf.fess.db.cbean.WebAuthenticationCB; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.exbhv.WebCrawlingConfigBhv; -import jp.sf.fess.db.exentity.RequestHeader; -import jp.sf.fess.db.exentity.WebAuthentication; -import jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.BehaviorSelector; -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.bhv.NestedReferrerLoaderGateway; -import org.seasar.dbflute.bhv.ReferrerListHandler; -import org.seasar.dbflute.bhv.ReferrerLoaderHandler; - -/** - * The referrer loader of WEB_CRAWLING_CONFIG as TABLE. <br /> - * <pre> - * [primary key] - * ID - * - * [column] - * ID, NAME, URLS, INCLUDED_URLS, EXCLUDED_URLS, INCLUDED_DOC_URLS, EXCLUDED_DOC_URLS, CONFIG_PARAMETER, DEPTH, MAX_ACCESS_COUNT, USER_AGENT, NUM_OF_THREAD, INTERVAL_TIME, BOOST, AVAILABLE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * REQUEST_HEADER, WEB_AUTHENTICATION, WEB_CONFIG_TO_LABEL_TYPE_MAPPING, WEB_CONFIG_TO_ROLE_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * requestHeaderList, webAuthenticationList, webConfigToLabelTypeMappingList, webConfigToRoleTypeMappingList - * </pre> - * @author DBFlute(AutoGenerator) - */ -public class LoaderOfWebCrawlingConfig { - - // =================================================================================== - // Attribute - // ========= - protected List<WebCrawlingConfig> _selectedList; - - protected BehaviorSelector _selector; - - protected WebCrawlingConfigBhv _myBhv; // lazy-loaded - - // =================================================================================== - // Ready for Loading - // ================= - public LoaderOfWebCrawlingConfig ready( - final List<WebCrawlingConfig> selectedList, - final BehaviorSelector selector) { - _selectedList = selectedList; - _selector = selector; - return this; - } - - protected WebCrawlingConfigBhv myBhv() { - if (_myBhv != null) { - return _myBhv; - } else { - _myBhv = _selector.select(WebCrawlingConfigBhv.class); - return _myBhv; - } - } - - // =================================================================================== - // Load Referrer - // ============= - protected List<RequestHeader> _referrerRequestHeaderList; - - public NestedReferrerLoaderGateway<LoaderOfRequestHeader> loadRequestHeaderList( - final ConditionBeanSetupper<RequestHeaderCB> setupper) { - myBhv().loadRequestHeaderList(_selectedList, setupper) - .withNestedReferrer(new ReferrerListHandler<RequestHeader>() { - @Override - public void handle(final List<RequestHeader> referrerList) { - _referrerRequestHeaderList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfRequestHeader>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfRequestHeader> handler) { - handler.handle(new LoaderOfRequestHeader().ready( - _referrerRequestHeaderList, _selector)); - } - }; - } - - protected List<WebAuthentication> _referrerWebAuthenticationList; - - public NestedReferrerLoaderGateway<LoaderOfWebAuthentication> loadWebAuthenticationList( - final ConditionBeanSetupper<WebAuthenticationCB> setupper) { - myBhv().loadWebAuthenticationList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<WebAuthentication>() { - @Override - public void handle( - final List<WebAuthentication> referrerList) { - _referrerWebAuthenticationList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfWebAuthentication>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfWebAuthentication> handler) { - handler.handle(new LoaderOfWebAuthentication().ready( - _referrerWebAuthenticationList, _selector)); - } - }; - } - - protected List<WebConfigToLabelTypeMapping> _referrerWebConfigToLabelTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfWebConfigToLabelTypeMapping> loadWebConfigToLabelTypeMappingList( - final ConditionBeanSetupper<WebConfigToLabelTypeMappingCB> setupper) { - myBhv().loadWebConfigToLabelTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<WebConfigToLabelTypeMapping>() { - @Override - public void handle( - final List<WebConfigToLabelTypeMapping> referrerList) { - _referrerWebConfigToLabelTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfWebConfigToLabelTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfWebConfigToLabelTypeMapping> handler) { - handler.handle(new LoaderOfWebConfigToLabelTypeMapping().ready( - _referrerWebConfigToLabelTypeMappingList, _selector)); - } - }; - } - - protected List<WebConfigToRoleTypeMapping> _referrerWebConfigToRoleTypeMappingList; - - public NestedReferrerLoaderGateway<LoaderOfWebConfigToRoleTypeMapping> loadWebConfigToRoleTypeMappingList( - final ConditionBeanSetupper<WebConfigToRoleTypeMappingCB> setupper) { - myBhv().loadWebConfigToRoleTypeMappingList(_selectedList, setupper) - .withNestedReferrer( - new ReferrerListHandler<WebConfigToRoleTypeMapping>() { - @Override - public void handle( - final List<WebConfigToRoleTypeMapping> referrerList) { - _referrerWebConfigToRoleTypeMappingList = referrerList; - } - }); - return new NestedReferrerLoaderGateway<LoaderOfWebConfigToRoleTypeMapping>() { - @Override - public void withNestedReferrer( - final ReferrerLoaderHandler<LoaderOfWebConfigToRoleTypeMapping> handler) { - handler.handle(new LoaderOfWebConfigToRoleTypeMapping().ready( - _referrerWebConfigToRoleTypeMappingList, _selector)); - } - }; - } - - // =================================================================================== - // Pull out Foreign - // ================ - // =================================================================================== - // Accessor - // ======== - public List<WebCrawlingConfig> getSelectedList() { - return _selectedList; - } - - public BehaviorSelector getSelector() { - return _selector; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsClickUrlRankingPmb.java b/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsClickUrlRankingPmb.java deleted file mode 100644 index ae9bb9954..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsClickUrlRankingPmb.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.pmbean; - -import java.util.ArrayList; -import java.util.Date; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exbhv.ClickLogBhv; -import jp.sf.fess.db.exentity.customize.ClickUrlRanking; - -import org.seasar.dbflute.cbean.SimplePagingBean; -import org.seasar.dbflute.jdbc.FetchBean; -import org.seasar.dbflute.jdbc.ParameterUtil; -import org.seasar.dbflute.jdbc.ParameterUtil.ShortCharHandlingMode; -import org.seasar.dbflute.outsidesql.typed.AutoPagingHandlingPmb; -import org.seasar.dbflute.outsidesql.typed.EntityHandlingPmb; -import org.seasar.dbflute.util.DfCollectionUtil; -import org.seasar.dbflute.util.DfTypeUtil; - -/** - * The base class for typed parameter-bean of ClickUrlRanking. <br /> - * This is related to "<span style="color: #AD4747">selectClickUrlRanking</span>" on ClickLogBhv. - * @author DBFlute(AutoGenerator) - */ -public class BsClickUrlRankingPmb extends SimplePagingBean implements - EntityHandlingPmb<ClickLogBhv, ClickUrlRanking>, - AutoPagingHandlingPmb<ClickLogBhv, ClickUrlRanking>, FetchBean { - - // =================================================================================== - // Attribute - // ========= - /** The parameter of fromRequestedTime. */ - protected java.sql.Timestamp _fromRequestedTime; - - /** The parameter of toRequestedTime. */ - protected java.sql.Timestamp _toRequestedTime; - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor for the typed parameter-bean of ClickUrlRanking. <br /> - * This is related to "<span style="color: #AD4747">selectClickUrlRanking</span>" on ClickLogBhv. - */ - public BsClickUrlRankingPmb() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - } - - // =================================================================================== - // Typed Implementation - // ==================== - /** - * {@inheritDoc} - */ - @Override - public String getOutsideSqlPath() { - return "selectClickUrlRanking"; - } - - /** - * Get the type of an entity for result. (implementation) - * @return The type instance of an entity, customize entity. (NotNull) - */ - @Override - public Class<ClickUrlRanking> getEntityType() { - return ClickUrlRanking.class; - } - - // =================================================================================== - // Assist Helper - // ============= - protected String filterStringParameter(final String value) { - if (isEmptyStringParameterAllowed()) { - return value; - } - return convertEmptyToNull(value); - } - - protected boolean isEmptyStringParameterAllowed() { - return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); - } - - protected String convertEmptyToNull(final String value) { - return ParameterUtil.convertEmptyToNull(value); - } - - protected String handleShortChar(final String propertyName, - final String value, final Integer size) { - final ShortCharHandlingMode mode = getShortCharHandlingMode( - propertyName, value, size); - return ParameterUtil.handleShortChar(propertyName, value, size, mode); - } - - protected ShortCharHandlingMode getShortCharHandlingMode( - final String propertyName, final String value, final Integer size) { - return ShortCharHandlingMode.NONE; - } - - @SuppressWarnings("unchecked") - protected <ELEMENT> ArrayList<ELEMENT> newArrayList( - final ELEMENT... elements) { // might be called by option handling - final Object obj = DfCollectionUtil.newArrayList(elements); - return (ArrayList<ELEMENT>) obj; // to avoid the warning between JDK6 and JDK7 - } - - @SuppressWarnings("unchecked") - protected <NUMBER extends Number> NUMBER toNumber(final Object obj, - final Class<NUMBER> type) { // might be called by option handling - return (NUMBER) DfTypeUtil.toNumber(obj, type); - } - - protected Boolean toBoolean(final Object obj) { - return DfTypeUtil.toBoolean(obj); - } - - protected Date toUtilDate(final Date date) { - return DfTypeUtil.toDate(date); // if sub class, re-create as pure date - } - - protected String formatUtilDate(final Date date) { - final String pattern = "yyyy-MM-dd"; - return DfTypeUtil.toString(date, pattern); - } - - protected String formatByteArray(final byte[] bytes) { - return "byte[" - + (bytes != null ? String.valueOf(bytes.length) : "null") + "]"; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * @return The display string of all parameters. (NotNull) - */ - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(); - sb.append(DfTypeUtil.toClassTitle(this)).append(":"); - sb.append(xbuildColumnString()); - return sb.toString(); - } - - protected String xbuildColumnString() { - final String dm = ", "; - final StringBuilder sb = new StringBuilder(); - sb.append(dm).append(_fromRequestedTime); - sb.append(dm).append(_toRequestedTime); - if (sb.length() > 0) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] fromRequestedTime <br /> - * @return The value of fromRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getFromRequestedTime() { - return _fromRequestedTime; - } - - /** - * [set] fromRequestedTime <br /> - * @param fromRequestedTime The value of fromRequestedTime. (NullAllowed) - */ - public void setFromRequestedTime(final java.sql.Timestamp fromRequestedTime) { - _fromRequestedTime = fromRequestedTime; - } - - /** - * [get] toRequestedTime <br /> - * @return The value of toRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getToRequestedTime() { - return _toRequestedTime; - } - - /** - * [set] toRequestedTime <br /> - * @param toRequestedTime The value of toRequestedTime. (NullAllowed) - */ - public void setToRequestedTime(final java.sql.Timestamp toRequestedTime) { - _toRequestedTime = toRequestedTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsClientIpRankingPmb.java b/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsClientIpRankingPmb.java deleted file mode 100644 index 4bb468ef6..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsClientIpRankingPmb.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.pmbean; - -import java.util.ArrayList; -import java.util.Date; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.customize.ClientIpRanking; - -import org.seasar.dbflute.cbean.SimplePagingBean; -import org.seasar.dbflute.jdbc.FetchBean; -import org.seasar.dbflute.jdbc.ParameterUtil; -import org.seasar.dbflute.jdbc.ParameterUtil.ShortCharHandlingMode; -import org.seasar.dbflute.outsidesql.typed.AutoPagingHandlingPmb; -import org.seasar.dbflute.outsidesql.typed.EntityHandlingPmb; -import org.seasar.dbflute.util.DfCollectionUtil; -import org.seasar.dbflute.util.DfTypeUtil; - -/** - * The base class for typed parameter-bean of ClientIpRanking. <br /> - * This is related to "<span style="color: #AD4747">selectClientIpRanking</span>" on SearchLogBhv. - * @author DBFlute(AutoGenerator) - */ -public class BsClientIpRankingPmb extends SimplePagingBean implements - EntityHandlingPmb<SearchLogBhv, ClientIpRanking>, - AutoPagingHandlingPmb<SearchLogBhv, ClientIpRanking>, FetchBean { - - // =================================================================================== - // Attribute - // ========= - /** The parameter of fromRequestedTime. */ - protected java.sql.Timestamp _fromRequestedTime; - - /** The parameter of toRequestedTime. */ - protected java.sql.Timestamp _toRequestedTime; - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor for the typed parameter-bean of ClientIpRanking. <br /> - * This is related to "<span style="color: #AD4747">selectClientIpRanking</span>" on SearchLogBhv. - */ - public BsClientIpRankingPmb() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - } - - // =================================================================================== - // Typed Implementation - // ==================== - /** - * {@inheritDoc} - */ - @Override - public String getOutsideSqlPath() { - return "selectClientIpRanking"; - } - - /** - * Get the type of an entity for result. (implementation) - * @return The type instance of an entity, customize entity. (NotNull) - */ - @Override - public Class<ClientIpRanking> getEntityType() { - return ClientIpRanking.class; - } - - // =================================================================================== - // Assist Helper - // ============= - protected String filterStringParameter(final String value) { - if (isEmptyStringParameterAllowed()) { - return value; - } - return convertEmptyToNull(value); - } - - protected boolean isEmptyStringParameterAllowed() { - return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); - } - - protected String convertEmptyToNull(final String value) { - return ParameterUtil.convertEmptyToNull(value); - } - - protected String handleShortChar(final String propertyName, - final String value, final Integer size) { - final ShortCharHandlingMode mode = getShortCharHandlingMode( - propertyName, value, size); - return ParameterUtil.handleShortChar(propertyName, value, size, mode); - } - - protected ShortCharHandlingMode getShortCharHandlingMode( - final String propertyName, final String value, final Integer size) { - return ShortCharHandlingMode.NONE; - } - - @SuppressWarnings("unchecked") - protected <ELEMENT> ArrayList<ELEMENT> newArrayList( - final ELEMENT... elements) { // might be called by option handling - final Object obj = DfCollectionUtil.newArrayList(elements); - return (ArrayList<ELEMENT>) obj; // to avoid the warning between JDK6 and JDK7 - } - - @SuppressWarnings("unchecked") - protected <NUMBER extends Number> NUMBER toNumber(final Object obj, - final Class<NUMBER> type) { // might be called by option handling - return (NUMBER) DfTypeUtil.toNumber(obj, type); - } - - protected Boolean toBoolean(final Object obj) { - return DfTypeUtil.toBoolean(obj); - } - - protected Date toUtilDate(final Date date) { - return DfTypeUtil.toDate(date); // if sub class, re-create as pure date - } - - protected String formatUtilDate(final Date date) { - final String pattern = "yyyy-MM-dd"; - return DfTypeUtil.toString(date, pattern); - } - - protected String formatByteArray(final byte[] bytes) { - return "byte[" - + (bytes != null ? String.valueOf(bytes.length) : "null") + "]"; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * @return The display string of all parameters. (NotNull) - */ - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(); - sb.append(DfTypeUtil.toClassTitle(this)).append(":"); - sb.append(xbuildColumnString()); - return sb.toString(); - } - - protected String xbuildColumnString() { - final String dm = ", "; - final StringBuilder sb = new StringBuilder(); - sb.append(dm).append(_fromRequestedTime); - sb.append(dm).append(_toRequestedTime); - if (sb.length() > 0) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] fromRequestedTime <br /> - * @return The value of fromRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getFromRequestedTime() { - return _fromRequestedTime; - } - - /** - * [set] fromRequestedTime <br /> - * @param fromRequestedTime The value of fromRequestedTime. (NullAllowed) - */ - public void setFromRequestedTime(final java.sql.Timestamp fromRequestedTime) { - _fromRequestedTime = fromRequestedTime; - } - - /** - * [get] toRequestedTime <br /> - * @return The value of toRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getToRequestedTime() { - return _toRequestedTime; - } - - /** - * [set] toRequestedTime <br /> - * @param toRequestedTime The value of toRequestedTime. (NullAllowed) - */ - public void setToRequestedTime(final java.sql.Timestamp toRequestedTime) { - _toRequestedTime = toRequestedTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsFavoriteUrlCountPmb.java b/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsFavoriteUrlCountPmb.java deleted file mode 100644 index ab245e1da..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsFavoriteUrlCountPmb.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.pmbean; - -import java.util.ArrayList; -import java.util.Date; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exbhv.FavoriteLogBhv; -import jp.sf.fess.db.exentity.customize.FavoriteUrlCount; - -import org.seasar.dbflute.cbean.SimplePagingBean; -import org.seasar.dbflute.jdbc.FetchBean; -import org.seasar.dbflute.jdbc.ParameterUtil; -import org.seasar.dbflute.jdbc.ParameterUtil.ShortCharHandlingMode; -import org.seasar.dbflute.outsidesql.typed.AutoPagingHandlingPmb; -import org.seasar.dbflute.outsidesql.typed.EntityHandlingPmb; -import org.seasar.dbflute.util.DfCollectionUtil; -import org.seasar.dbflute.util.DfTypeUtil; - -/** - * The base class for typed parameter-bean of FavoriteUrlCount. <br /> - * This is related to "<span style="color: #AD4747">selectFavoriteUrlCount</span>" on FavoriteLogBhv. - * @author DBFlute(AutoGenerator) - */ -public class BsFavoriteUrlCountPmb extends SimplePagingBean implements - EntityHandlingPmb<FavoriteLogBhv, FavoriteUrlCount>, - AutoPagingHandlingPmb<FavoriteLogBhv, FavoriteUrlCount>, FetchBean { - - // =================================================================================== - // Attribute - // ========= - /** The parameter of url. */ - protected String _url; - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor for the typed parameter-bean of FavoriteUrlCount. <br /> - * This is related to "<span style="color: #AD4747">selectFavoriteUrlCount</span>" on FavoriteLogBhv. - */ - public BsFavoriteUrlCountPmb() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - } - - // =================================================================================== - // Typed Implementation - // ==================== - /** - * {@inheritDoc} - */ - @Override - public String getOutsideSqlPath() { - return "selectFavoriteUrlCount"; - } - - /** - * Get the type of an entity for result. (implementation) - * @return The type instance of an entity, customize entity. (NotNull) - */ - @Override - public Class<FavoriteUrlCount> getEntityType() { - return FavoriteUrlCount.class; - } - - // =================================================================================== - // Assist Helper - // ============= - protected String filterStringParameter(final String value) { - if (isEmptyStringParameterAllowed()) { - return value; - } - return convertEmptyToNull(value); - } - - protected boolean isEmptyStringParameterAllowed() { - return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); - } - - protected String convertEmptyToNull(final String value) { - return ParameterUtil.convertEmptyToNull(value); - } - - protected String handleShortChar(final String propertyName, - final String value, final Integer size) { - final ShortCharHandlingMode mode = getShortCharHandlingMode( - propertyName, value, size); - return ParameterUtil.handleShortChar(propertyName, value, size, mode); - } - - protected ShortCharHandlingMode getShortCharHandlingMode( - final String propertyName, final String value, final Integer size) { - return ShortCharHandlingMode.NONE; - } - - @SuppressWarnings("unchecked") - protected <ELEMENT> ArrayList<ELEMENT> newArrayList( - final ELEMENT... elements) { // might be called by option handling - final Object obj = DfCollectionUtil.newArrayList(elements); - return (ArrayList<ELEMENT>) obj; // to avoid the warning between JDK6 and JDK7 - } - - @SuppressWarnings("unchecked") - protected <NUMBER extends Number> NUMBER toNumber(final Object obj, - final Class<NUMBER> type) { // might be called by option handling - return (NUMBER) DfTypeUtil.toNumber(obj, type); - } - - protected Boolean toBoolean(final Object obj) { - return DfTypeUtil.toBoolean(obj); - } - - protected Date toUtilDate(final Date date) { - return DfTypeUtil.toDate(date); // if sub class, re-create as pure date - } - - protected String formatUtilDate(final Date date) { - final String pattern = "yyyy-MM-dd"; - return DfTypeUtil.toString(date, pattern); - } - - protected String formatByteArray(final byte[] bytes) { - return "byte[" - + (bytes != null ? String.valueOf(bytes.length) : "null") + "]"; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * @return The display string of all parameters. (NotNull) - */ - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(); - sb.append(DfTypeUtil.toClassTitle(this)).append(":"); - sb.append(xbuildColumnString()); - return sb.toString(); - } - - protected String xbuildColumnString() { - final String dm = ", "; - final StringBuilder sb = new StringBuilder(); - sb.append(dm).append(_url); - if (sb.length() > 0) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] url <br /> - * @return The value of url. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public String getUrl() { - return filterStringParameter(_url); - } - - /** - * [set] url <br /> - * @param url The value of url. (NullAllowed) - */ - public void setUrl(final String url) { - _url = url; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsFavoriteUrlRankingPmb.java b/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsFavoriteUrlRankingPmb.java deleted file mode 100644 index 88b4c756b..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsFavoriteUrlRankingPmb.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.pmbean; - -import java.util.ArrayList; -import java.util.Date; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exbhv.FavoriteLogBhv; -import jp.sf.fess.db.exentity.customize.FavoriteUrlRanking; - -import org.seasar.dbflute.cbean.SimplePagingBean; -import org.seasar.dbflute.jdbc.FetchBean; -import org.seasar.dbflute.jdbc.ParameterUtil; -import org.seasar.dbflute.jdbc.ParameterUtil.ShortCharHandlingMode; -import org.seasar.dbflute.outsidesql.typed.AutoPagingHandlingPmb; -import org.seasar.dbflute.outsidesql.typed.EntityHandlingPmb; -import org.seasar.dbflute.util.DfCollectionUtil; -import org.seasar.dbflute.util.DfTypeUtil; - -/** - * The base class for typed parameter-bean of FavoriteUrlRanking. <br /> - * This is related to "<span style="color: #AD4747">selectFavoriteUrlRanking</span>" on FavoriteLogBhv. - * @author DBFlute(AutoGenerator) - */ -public class BsFavoriteUrlRankingPmb extends SimplePagingBean implements - EntityHandlingPmb<FavoriteLogBhv, FavoriteUrlRanking>, - AutoPagingHandlingPmb<FavoriteLogBhv, FavoriteUrlRanking>, FetchBean { - - // =================================================================================== - // Attribute - // ========= - /** The parameter of fromCreatedTime. */ - protected java.sql.Timestamp _fromCreatedTime; - - /** The parameter of toCreatedTime. */ - protected java.sql.Timestamp _toCreatedTime; - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor for the typed parameter-bean of FavoriteUrlRanking. <br /> - * This is related to "<span style="color: #AD4747">selectFavoriteUrlRanking</span>" on FavoriteLogBhv. - */ - public BsFavoriteUrlRankingPmb() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - } - - // =================================================================================== - // Typed Implementation - // ==================== - /** - * {@inheritDoc} - */ - @Override - public String getOutsideSqlPath() { - return "selectFavoriteUrlRanking"; - } - - /** - * Get the type of an entity for result. (implementation) - * @return The type instance of an entity, customize entity. (NotNull) - */ - @Override - public Class<FavoriteUrlRanking> getEntityType() { - return FavoriteUrlRanking.class; - } - - // =================================================================================== - // Assist Helper - // ============= - protected String filterStringParameter(final String value) { - if (isEmptyStringParameterAllowed()) { - return value; - } - return convertEmptyToNull(value); - } - - protected boolean isEmptyStringParameterAllowed() { - return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); - } - - protected String convertEmptyToNull(final String value) { - return ParameterUtil.convertEmptyToNull(value); - } - - protected String handleShortChar(final String propertyName, - final String value, final Integer size) { - final ShortCharHandlingMode mode = getShortCharHandlingMode( - propertyName, value, size); - return ParameterUtil.handleShortChar(propertyName, value, size, mode); - } - - protected ShortCharHandlingMode getShortCharHandlingMode( - final String propertyName, final String value, final Integer size) { - return ShortCharHandlingMode.NONE; - } - - @SuppressWarnings("unchecked") - protected <ELEMENT> ArrayList<ELEMENT> newArrayList( - final ELEMENT... elements) { // might be called by option handling - final Object obj = DfCollectionUtil.newArrayList(elements); - return (ArrayList<ELEMENT>) obj; // to avoid the warning between JDK6 and JDK7 - } - - @SuppressWarnings("unchecked") - protected <NUMBER extends Number> NUMBER toNumber(final Object obj, - final Class<NUMBER> type) { // might be called by option handling - return (NUMBER) DfTypeUtil.toNumber(obj, type); - } - - protected Boolean toBoolean(final Object obj) { - return DfTypeUtil.toBoolean(obj); - } - - protected Date toUtilDate(final Date date) { - return DfTypeUtil.toDate(date); // if sub class, re-create as pure date - } - - protected String formatUtilDate(final Date date) { - final String pattern = "yyyy-MM-dd"; - return DfTypeUtil.toString(date, pattern); - } - - protected String formatByteArray(final byte[] bytes) { - return "byte[" - + (bytes != null ? String.valueOf(bytes.length) : "null") + "]"; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * @return The display string of all parameters. (NotNull) - */ - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(); - sb.append(DfTypeUtil.toClassTitle(this)).append(":"); - sb.append(xbuildColumnString()); - return sb.toString(); - } - - protected String xbuildColumnString() { - final String dm = ", "; - final StringBuilder sb = new StringBuilder(); - sb.append(dm).append(_fromCreatedTime); - sb.append(dm).append(_toCreatedTime); - if (sb.length() > 0) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] fromCreatedTime <br /> - * @return The value of fromCreatedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getFromCreatedTime() { - return _fromCreatedTime; - } - - /** - * [set] fromCreatedTime <br /> - * @param fromCreatedTime The value of fromCreatedTime. (NullAllowed) - */ - public void setFromCreatedTime(final java.sql.Timestamp fromCreatedTime) { - _fromCreatedTime = fromCreatedTime; - } - - /** - * [get] toCreatedTime <br /> - * @return The value of toCreatedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getToCreatedTime() { - return _toCreatedTime; - } - - /** - * [set] toCreatedTime <br /> - * @param toCreatedTime The value of toCreatedTime. (NullAllowed) - */ - public void setToCreatedTime(final java.sql.Timestamp toCreatedTime) { - _toCreatedTime = toCreatedTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsGroupedFieldNamePmb.java b/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsGroupedFieldNamePmb.java deleted file mode 100644 index fef8fb258..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsGroupedFieldNamePmb.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.pmbean; - -import java.util.ArrayList; -import java.util.Date; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exbhv.SearchFieldLogBhv; -import jp.sf.fess.db.exentity.customize.GroupedFieldName; - -import org.seasar.dbflute.cbean.SimplePagingBean; -import org.seasar.dbflute.jdbc.FetchBean; -import org.seasar.dbflute.jdbc.ParameterUtil; -import org.seasar.dbflute.jdbc.ParameterUtil.ShortCharHandlingMode; -import org.seasar.dbflute.outsidesql.typed.AutoPagingHandlingPmb; -import org.seasar.dbflute.outsidesql.typed.EntityHandlingPmb; -import org.seasar.dbflute.util.DfCollectionUtil; -import org.seasar.dbflute.util.DfTypeUtil; - -/** - * The base class for typed parameter-bean of GroupedFieldName. <br /> - * This is related to "<span style="color: #AD4747">selectGroupedFieldName</span>" on SearchFieldLogBhv. - * @author DBFlute(AutoGenerator) - */ -public class BsGroupedFieldNamePmb extends SimplePagingBean implements - EntityHandlingPmb<SearchFieldLogBhv, GroupedFieldName>, - AutoPagingHandlingPmb<SearchFieldLogBhv, GroupedFieldName>, FetchBean { - - // =================================================================================== - // Attribute - // ========= - // =================================================================================== - // Constructor - // =========== - /** - * Constructor for the typed parameter-bean of GroupedFieldName. <br /> - * This is related to "<span style="color: #AD4747">selectGroupedFieldName</span>" on SearchFieldLogBhv. - */ - public BsGroupedFieldNamePmb() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - } - - // =================================================================================== - // Typed Implementation - // ==================== - /** - * {@inheritDoc} - */ - @Override - public String getOutsideSqlPath() { - return "selectGroupedFieldName"; - } - - /** - * Get the type of an entity for result. (implementation) - * @return The type instance of an entity, customize entity. (NotNull) - */ - @Override - public Class<GroupedFieldName> getEntityType() { - return GroupedFieldName.class; - } - - // =================================================================================== - // Assist Helper - // ============= - protected String filterStringParameter(final String value) { - if (isEmptyStringParameterAllowed()) { - return value; - } - return convertEmptyToNull(value); - } - - protected boolean isEmptyStringParameterAllowed() { - return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); - } - - protected String convertEmptyToNull(final String value) { - return ParameterUtil.convertEmptyToNull(value); - } - - protected String handleShortChar(final String propertyName, - final String value, final Integer size) { - final ShortCharHandlingMode mode = getShortCharHandlingMode( - propertyName, value, size); - return ParameterUtil.handleShortChar(propertyName, value, size, mode); - } - - protected ShortCharHandlingMode getShortCharHandlingMode( - final String propertyName, final String value, final Integer size) { - return ShortCharHandlingMode.NONE; - } - - @SuppressWarnings("unchecked") - protected <ELEMENT> ArrayList<ELEMENT> newArrayList( - final ELEMENT... elements) { // might be called by option handling - final Object obj = DfCollectionUtil.newArrayList(elements); - return (ArrayList<ELEMENT>) obj; // to avoid the warning between JDK6 and JDK7 - } - - @SuppressWarnings("unchecked") - protected <NUMBER extends Number> NUMBER toNumber(final Object obj, - final Class<NUMBER> type) { // might be called by option handling - return (NUMBER) DfTypeUtil.toNumber(obj, type); - } - - protected Boolean toBoolean(final Object obj) { - return DfTypeUtil.toBoolean(obj); - } - - protected Date toUtilDate(final Date date) { - return DfTypeUtil.toDate(date); // if sub class, re-create as pure date - } - - protected String formatUtilDate(final Date date) { - final String pattern = "yyyy-MM-dd"; - return DfTypeUtil.toString(date, pattern); - } - - protected String formatByteArray(final byte[] bytes) { - return "byte[" - + (bytes != null ? String.valueOf(bytes.length) : "null") + "]"; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * @return The display string of all parameters. (NotNull) - */ - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(); - sb.append(DfTypeUtil.toClassTitle(this)).append(":"); - sb.append(xbuildColumnString()); - return sb.toString(); - } - - protected String xbuildColumnString() { - final String dm = ", "; - final StringBuilder sb = new StringBuilder(); - if (sb.length() > 0) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsHotSearchWordPmb.java b/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsHotSearchWordPmb.java deleted file mode 100644 index 956243d6c..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsHotSearchWordPmb.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.pmbean; - -import java.util.ArrayList; -import java.util.Date; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.customize.HotSearchWord; - -import org.seasar.dbflute.cbean.SimplePagingBean; -import org.seasar.dbflute.jdbc.FetchBean; -import org.seasar.dbflute.jdbc.ParameterUtil; -import org.seasar.dbflute.jdbc.ParameterUtil.ShortCharHandlingMode; -import org.seasar.dbflute.outsidesql.typed.AutoPagingHandlingPmb; -import org.seasar.dbflute.outsidesql.typed.EntityHandlingPmb; -import org.seasar.dbflute.util.DfCollectionUtil; -import org.seasar.dbflute.util.DfTypeUtil; - -/** - * The base class for typed parameter-bean of HotSearchWord. <br /> - * This is related to "<span style="color: #AD4747">selectHotSearchWord</span>" on SearchLogBhv. - * @author DBFlute(AutoGenerator) - */ -public class BsHotSearchWordPmb extends SimplePagingBean implements - EntityHandlingPmb<SearchLogBhv, HotSearchWord>, - AutoPagingHandlingPmb<SearchLogBhv, HotSearchWord>, FetchBean { - - // =================================================================================== - // Attribute - // ========= - /** The parameter of fromRequestedTime. */ - protected java.sql.Timestamp _fromRequestedTime; - - /** The parameter of toRequestedTime. */ - protected java.sql.Timestamp _toRequestedTime; - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor for the typed parameter-bean of HotSearchWord. <br /> - * This is related to "<span style="color: #AD4747">selectHotSearchWord</span>" on SearchLogBhv. - */ - public BsHotSearchWordPmb() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - } - - // =================================================================================== - // Typed Implementation - // ==================== - /** - * {@inheritDoc} - */ - @Override - public String getOutsideSqlPath() { - return "selectHotSearchWord"; - } - - /** - * Get the type of an entity for result. (implementation) - * @return The type instance of an entity, customize entity. (NotNull) - */ - @Override - public Class<HotSearchWord> getEntityType() { - return HotSearchWord.class; - } - - // =================================================================================== - // Assist Helper - // ============= - protected String filterStringParameter(final String value) { - if (isEmptyStringParameterAllowed()) { - return value; - } - return convertEmptyToNull(value); - } - - protected boolean isEmptyStringParameterAllowed() { - return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); - } - - protected String convertEmptyToNull(final String value) { - return ParameterUtil.convertEmptyToNull(value); - } - - protected String handleShortChar(final String propertyName, - final String value, final Integer size) { - final ShortCharHandlingMode mode = getShortCharHandlingMode( - propertyName, value, size); - return ParameterUtil.handleShortChar(propertyName, value, size, mode); - } - - protected ShortCharHandlingMode getShortCharHandlingMode( - final String propertyName, final String value, final Integer size) { - return ShortCharHandlingMode.NONE; - } - - @SuppressWarnings("unchecked") - protected <ELEMENT> ArrayList<ELEMENT> newArrayList( - final ELEMENT... elements) { // might be called by option handling - final Object obj = DfCollectionUtil.newArrayList(elements); - return (ArrayList<ELEMENT>) obj; // to avoid the warning between JDK6 and JDK7 - } - - @SuppressWarnings("unchecked") - protected <NUMBER extends Number> NUMBER toNumber(final Object obj, - final Class<NUMBER> type) { // might be called by option handling - return (NUMBER) DfTypeUtil.toNumber(obj, type); - } - - protected Boolean toBoolean(final Object obj) { - return DfTypeUtil.toBoolean(obj); - } - - protected Date toUtilDate(final Date date) { - return DfTypeUtil.toDate(date); // if sub class, re-create as pure date - } - - protected String formatUtilDate(final Date date) { - final String pattern = "yyyy-MM-dd"; - return DfTypeUtil.toString(date, pattern); - } - - protected String formatByteArray(final byte[] bytes) { - return "byte[" - + (bytes != null ? String.valueOf(bytes.length) : "null") + "]"; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * @return The display string of all parameters. (NotNull) - */ - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(); - sb.append(DfTypeUtil.toClassTitle(this)).append(":"); - sb.append(xbuildColumnString()); - return sb.toString(); - } - - protected String xbuildColumnString() { - final String dm = ", "; - final StringBuilder sb = new StringBuilder(); - sb.append(dm).append(_fromRequestedTime); - sb.append(dm).append(_toRequestedTime); - if (sb.length() > 0) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] fromRequestedTime <br /> - * @return The value of fromRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getFromRequestedTime() { - return _fromRequestedTime; - } - - /** - * [set] fromRequestedTime <br /> - * @param fromRequestedTime The value of fromRequestedTime. (NullAllowed) - */ - public void setFromRequestedTime(final java.sql.Timestamp fromRequestedTime) { - _fromRequestedTime = fromRequestedTime; - } - - /** - * [get] toRequestedTime <br /> - * @return The value of toRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getToRequestedTime() { - return _toRequestedTime; - } - - /** - * [set] toRequestedTime <br /> - * @param toRequestedTime The value of toRequestedTime. (NullAllowed) - */ - public void setToRequestedTime(final java.sql.Timestamp toRequestedTime) { - _toRequestedTime = toRequestedTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsRefererRankingPmb.java b/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsRefererRankingPmb.java deleted file mode 100644 index 29705c4a1..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsRefererRankingPmb.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.pmbean; - -import java.util.ArrayList; -import java.util.Date; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.customize.RefererRanking; - -import org.seasar.dbflute.cbean.SimplePagingBean; -import org.seasar.dbflute.jdbc.FetchBean; -import org.seasar.dbflute.jdbc.ParameterUtil; -import org.seasar.dbflute.jdbc.ParameterUtil.ShortCharHandlingMode; -import org.seasar.dbflute.outsidesql.typed.AutoPagingHandlingPmb; -import org.seasar.dbflute.outsidesql.typed.EntityHandlingPmb; -import org.seasar.dbflute.util.DfCollectionUtil; -import org.seasar.dbflute.util.DfTypeUtil; - -/** - * The base class for typed parameter-bean of RefererRanking. <br /> - * This is related to "<span style="color: #AD4747">selectRefererRanking</span>" on SearchLogBhv. - * @author DBFlute(AutoGenerator) - */ -public class BsRefererRankingPmb extends SimplePagingBean implements - EntityHandlingPmb<SearchLogBhv, RefererRanking>, - AutoPagingHandlingPmb<SearchLogBhv, RefererRanking>, FetchBean { - - // =================================================================================== - // Attribute - // ========= - /** The parameter of fromRequestedTime. */ - protected java.sql.Timestamp _fromRequestedTime; - - /** The parameter of toRequestedTime. */ - protected java.sql.Timestamp _toRequestedTime; - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor for the typed parameter-bean of RefererRanking. <br /> - * This is related to "<span style="color: #AD4747">selectRefererRanking</span>" on SearchLogBhv. - */ - public BsRefererRankingPmb() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - } - - // =================================================================================== - // Typed Implementation - // ==================== - /** - * {@inheritDoc} - */ - @Override - public String getOutsideSqlPath() { - return "selectRefererRanking"; - } - - /** - * Get the type of an entity for result. (implementation) - * @return The type instance of an entity, customize entity. (NotNull) - */ - @Override - public Class<RefererRanking> getEntityType() { - return RefererRanking.class; - } - - // =================================================================================== - // Assist Helper - // ============= - protected String filterStringParameter(final String value) { - if (isEmptyStringParameterAllowed()) { - return value; - } - return convertEmptyToNull(value); - } - - protected boolean isEmptyStringParameterAllowed() { - return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); - } - - protected String convertEmptyToNull(final String value) { - return ParameterUtil.convertEmptyToNull(value); - } - - protected String handleShortChar(final String propertyName, - final String value, final Integer size) { - final ShortCharHandlingMode mode = getShortCharHandlingMode( - propertyName, value, size); - return ParameterUtil.handleShortChar(propertyName, value, size, mode); - } - - protected ShortCharHandlingMode getShortCharHandlingMode( - final String propertyName, final String value, final Integer size) { - return ShortCharHandlingMode.NONE; - } - - @SuppressWarnings("unchecked") - protected <ELEMENT> ArrayList<ELEMENT> newArrayList( - final ELEMENT... elements) { // might be called by option handling - final Object obj = DfCollectionUtil.newArrayList(elements); - return (ArrayList<ELEMENT>) obj; // to avoid the warning between JDK6 and JDK7 - } - - @SuppressWarnings("unchecked") - protected <NUMBER extends Number> NUMBER toNumber(final Object obj, - final Class<NUMBER> type) { // might be called by option handling - return (NUMBER) DfTypeUtil.toNumber(obj, type); - } - - protected Boolean toBoolean(final Object obj) { - return DfTypeUtil.toBoolean(obj); - } - - protected Date toUtilDate(final Date date) { - return DfTypeUtil.toDate(date); // if sub class, re-create as pure date - } - - protected String formatUtilDate(final Date date) { - final String pattern = "yyyy-MM-dd"; - return DfTypeUtil.toString(date, pattern); - } - - protected String formatByteArray(final byte[] bytes) { - return "byte[" - + (bytes != null ? String.valueOf(bytes.length) : "null") + "]"; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * @return The display string of all parameters. (NotNull) - */ - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(); - sb.append(DfTypeUtil.toClassTitle(this)).append(":"); - sb.append(xbuildColumnString()); - return sb.toString(); - } - - protected String xbuildColumnString() { - final String dm = ", "; - final StringBuilder sb = new StringBuilder(); - sb.append(dm).append(_fromRequestedTime); - sb.append(dm).append(_toRequestedTime); - if (sb.length() > 0) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] fromRequestedTime <br /> - * @return The value of fromRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getFromRequestedTime() { - return _fromRequestedTime; - } - - /** - * [set] fromRequestedTime <br /> - * @param fromRequestedTime The value of fromRequestedTime. (NullAllowed) - */ - public void setFromRequestedTime(final java.sql.Timestamp fromRequestedTime) { - _fromRequestedTime = fromRequestedTime; - } - - /** - * [get] toRequestedTime <br /> - * @return The value of toRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getToRequestedTime() { - return _toRequestedTime; - } - - /** - * [set] toRequestedTime <br /> - * @param toRequestedTime The value of toRequestedTime. (NullAllowed) - */ - public void setToRequestedTime(final java.sql.Timestamp toRequestedTime) { - _toRequestedTime = toRequestedTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSearchFieldRankingPmb.java b/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSearchFieldRankingPmb.java deleted file mode 100644 index c2918b2a7..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSearchFieldRankingPmb.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.pmbean; - -import java.util.ArrayList; -import java.util.Date; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.customize.SearchFieldRanking; - -import org.seasar.dbflute.cbean.SimplePagingBean; -import org.seasar.dbflute.jdbc.FetchBean; -import org.seasar.dbflute.jdbc.ParameterUtil; -import org.seasar.dbflute.jdbc.ParameterUtil.ShortCharHandlingMode; -import org.seasar.dbflute.outsidesql.typed.AutoPagingHandlingPmb; -import org.seasar.dbflute.outsidesql.typed.EntityHandlingPmb; -import org.seasar.dbflute.util.DfCollectionUtil; -import org.seasar.dbflute.util.DfTypeUtil; - -/** - * The base class for typed parameter-bean of SearchFieldRanking. <br /> - * This is related to "<span style="color: #AD4747">selectSearchFieldRanking</span>" on SearchLogBhv. - * @author DBFlute(AutoGenerator) - */ -public class BsSearchFieldRankingPmb extends SimplePagingBean implements - EntityHandlingPmb<SearchLogBhv, SearchFieldRanking>, - AutoPagingHandlingPmb<SearchLogBhv, SearchFieldRanking>, FetchBean { - - // =================================================================================== - // Attribute - // ========= - /** The parameter of searchFieldName. */ - protected String _searchFieldName; - - /** The parameter of fromRequestedTime. */ - protected java.sql.Timestamp _fromRequestedTime; - - /** The parameter of toRequestedTime. */ - protected java.sql.Timestamp _toRequestedTime; - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor for the typed parameter-bean of SearchFieldRanking. <br /> - * This is related to "<span style="color: #AD4747">selectSearchFieldRanking</span>" on SearchLogBhv. - */ - public BsSearchFieldRankingPmb() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - } - - // =================================================================================== - // Typed Implementation - // ==================== - /** - * {@inheritDoc} - */ - @Override - public String getOutsideSqlPath() { - return "selectSearchFieldRanking"; - } - - /** - * Get the type of an entity for result. (implementation) - * @return The type instance of an entity, customize entity. (NotNull) - */ - @Override - public Class<SearchFieldRanking> getEntityType() { - return SearchFieldRanking.class; - } - - // =================================================================================== - // Assist Helper - // ============= - protected String filterStringParameter(final String value) { - if (isEmptyStringParameterAllowed()) { - return value; - } - return convertEmptyToNull(value); - } - - protected boolean isEmptyStringParameterAllowed() { - return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); - } - - protected String convertEmptyToNull(final String value) { - return ParameterUtil.convertEmptyToNull(value); - } - - protected String handleShortChar(final String propertyName, - final String value, final Integer size) { - final ShortCharHandlingMode mode = getShortCharHandlingMode( - propertyName, value, size); - return ParameterUtil.handleShortChar(propertyName, value, size, mode); - } - - protected ShortCharHandlingMode getShortCharHandlingMode( - final String propertyName, final String value, final Integer size) { - return ShortCharHandlingMode.NONE; - } - - @SuppressWarnings("unchecked") - protected <ELEMENT> ArrayList<ELEMENT> newArrayList( - final ELEMENT... elements) { // might be called by option handling - final Object obj = DfCollectionUtil.newArrayList(elements); - return (ArrayList<ELEMENT>) obj; // to avoid the warning between JDK6 and JDK7 - } - - @SuppressWarnings("unchecked") - protected <NUMBER extends Number> NUMBER toNumber(final Object obj, - final Class<NUMBER> type) { // might be called by option handling - return (NUMBER) DfTypeUtil.toNumber(obj, type); - } - - protected Boolean toBoolean(final Object obj) { - return DfTypeUtil.toBoolean(obj); - } - - protected Date toUtilDate(final Date date) { - return DfTypeUtil.toDate(date); // if sub class, re-create as pure date - } - - protected String formatUtilDate(final Date date) { - final String pattern = "yyyy-MM-dd"; - return DfTypeUtil.toString(date, pattern); - } - - protected String formatByteArray(final byte[] bytes) { - return "byte[" - + (bytes != null ? String.valueOf(bytes.length) : "null") + "]"; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * @return The display string of all parameters. (NotNull) - */ - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(); - sb.append(DfTypeUtil.toClassTitle(this)).append(":"); - sb.append(xbuildColumnString()); - return sb.toString(); - } - - protected String xbuildColumnString() { - final String dm = ", "; - final StringBuilder sb = new StringBuilder(); - sb.append(dm).append(_searchFieldName); - sb.append(dm).append(_fromRequestedTime); - sb.append(dm).append(_toRequestedTime); - if (sb.length() > 0) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] searchFieldName <br /> - * @return The value of searchFieldName. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public String getSearchFieldName() { - return filterStringParameter(_searchFieldName); - } - - /** - * [set] searchFieldName <br /> - * @param searchFieldName The value of searchFieldName. (NullAllowed) - */ - public void setSearchFieldName(final String searchFieldName) { - _searchFieldName = searchFieldName; - } - - /** - * [get] fromRequestedTime <br /> - * @return The value of fromRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getFromRequestedTime() { - return _fromRequestedTime; - } - - /** - * [set] fromRequestedTime <br /> - * @param fromRequestedTime The value of fromRequestedTime. (NullAllowed) - */ - public void setFromRequestedTime(final java.sql.Timestamp fromRequestedTime) { - _fromRequestedTime = fromRequestedTime; - } - - /** - * [get] toRequestedTime <br /> - * @return The value of toRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getToRequestedTime() { - return _toRequestedTime; - } - - /** - * [set] toRequestedTime <br /> - * @param toRequestedTime The value of toRequestedTime. (NullAllowed) - */ - public void setToRequestedTime(final java.sql.Timestamp toRequestedTime) { - _toRequestedTime = toRequestedTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSearchQueryRankingPmb.java b/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSearchQueryRankingPmb.java deleted file mode 100644 index da88c429f..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSearchQueryRankingPmb.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.pmbean; - -import java.util.ArrayList; -import java.util.Date; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.customize.SearchQueryRanking; - -import org.seasar.dbflute.cbean.SimplePagingBean; -import org.seasar.dbflute.jdbc.FetchBean; -import org.seasar.dbflute.jdbc.ParameterUtil; -import org.seasar.dbflute.jdbc.ParameterUtil.ShortCharHandlingMode; -import org.seasar.dbflute.outsidesql.typed.AutoPagingHandlingPmb; -import org.seasar.dbflute.outsidesql.typed.EntityHandlingPmb; -import org.seasar.dbflute.util.DfCollectionUtil; -import org.seasar.dbflute.util.DfTypeUtil; - -/** - * The base class for typed parameter-bean of SearchQueryRanking. <br /> - * This is related to "<span style="color: #AD4747">selectSearchQueryRanking</span>" on SearchLogBhv. - * @author DBFlute(AutoGenerator) - */ -public class BsSearchQueryRankingPmb extends SimplePagingBean implements - EntityHandlingPmb<SearchLogBhv, SearchQueryRanking>, - AutoPagingHandlingPmb<SearchLogBhv, SearchQueryRanking>, FetchBean { - - // =================================================================================== - // Attribute - // ========= - /** The parameter of fromRequestedTime. */ - protected java.sql.Timestamp _fromRequestedTime; - - /** The parameter of toRequestedTime. */ - protected java.sql.Timestamp _toRequestedTime; - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor for the typed parameter-bean of SearchQueryRanking. <br /> - * This is related to "<span style="color: #AD4747">selectSearchQueryRanking</span>" on SearchLogBhv. - */ - public BsSearchQueryRankingPmb() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - } - - // =================================================================================== - // Typed Implementation - // ==================== - /** - * {@inheritDoc} - */ - @Override - public String getOutsideSqlPath() { - return "selectSearchQueryRanking"; - } - - /** - * Get the type of an entity for result. (implementation) - * @return The type instance of an entity, customize entity. (NotNull) - */ - @Override - public Class<SearchQueryRanking> getEntityType() { - return SearchQueryRanking.class; - } - - // =================================================================================== - // Assist Helper - // ============= - protected String filterStringParameter(final String value) { - if (isEmptyStringParameterAllowed()) { - return value; - } - return convertEmptyToNull(value); - } - - protected boolean isEmptyStringParameterAllowed() { - return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); - } - - protected String convertEmptyToNull(final String value) { - return ParameterUtil.convertEmptyToNull(value); - } - - protected String handleShortChar(final String propertyName, - final String value, final Integer size) { - final ShortCharHandlingMode mode = getShortCharHandlingMode( - propertyName, value, size); - return ParameterUtil.handleShortChar(propertyName, value, size, mode); - } - - protected ShortCharHandlingMode getShortCharHandlingMode( - final String propertyName, final String value, final Integer size) { - return ShortCharHandlingMode.NONE; - } - - @SuppressWarnings("unchecked") - protected <ELEMENT> ArrayList<ELEMENT> newArrayList( - final ELEMENT... elements) { // might be called by option handling - final Object obj = DfCollectionUtil.newArrayList(elements); - return (ArrayList<ELEMENT>) obj; // to avoid the warning between JDK6 and JDK7 - } - - @SuppressWarnings("unchecked") - protected <NUMBER extends Number> NUMBER toNumber(final Object obj, - final Class<NUMBER> type) { // might be called by option handling - return (NUMBER) DfTypeUtil.toNumber(obj, type); - } - - protected Boolean toBoolean(final Object obj) { - return DfTypeUtil.toBoolean(obj); - } - - protected Date toUtilDate(final Date date) { - return DfTypeUtil.toDate(date); // if sub class, re-create as pure date - } - - protected String formatUtilDate(final Date date) { - final String pattern = "yyyy-MM-dd"; - return DfTypeUtil.toString(date, pattern); - } - - protected String formatByteArray(final byte[] bytes) { - return "byte[" - + (bytes != null ? String.valueOf(bytes.length) : "null") + "]"; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * @return The display string of all parameters. (NotNull) - */ - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(); - sb.append(DfTypeUtil.toClassTitle(this)).append(":"); - sb.append(xbuildColumnString()); - return sb.toString(); - } - - protected String xbuildColumnString() { - final String dm = ", "; - final StringBuilder sb = new StringBuilder(); - sb.append(dm).append(_fromRequestedTime); - sb.append(dm).append(_toRequestedTime); - if (sb.length() > 0) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] fromRequestedTime <br /> - * @return The value of fromRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getFromRequestedTime() { - return _fromRequestedTime; - } - - /** - * [set] fromRequestedTime <br /> - * @param fromRequestedTime The value of fromRequestedTime. (NullAllowed) - */ - public void setFromRequestedTime(final java.sql.Timestamp fromRequestedTime) { - _fromRequestedTime = fromRequestedTime; - } - - /** - * [get] toRequestedTime <br /> - * @return The value of toRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getToRequestedTime() { - return _toRequestedTime; - } - - /** - * [set] toRequestedTime <br /> - * @param toRequestedTime The value of toRequestedTime. (NullAllowed) - */ - public void setToRequestedTime(final java.sql.Timestamp toRequestedTime) { - _toRequestedTime = toRequestedTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSearchWordRankingPmb.java b/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSearchWordRankingPmb.java deleted file mode 100644 index aba728d77..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSearchWordRankingPmb.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.pmbean; - -import java.util.ArrayList; -import java.util.Date; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.customize.SearchWordRanking; - -import org.seasar.dbflute.cbean.SimplePagingBean; -import org.seasar.dbflute.jdbc.FetchBean; -import org.seasar.dbflute.jdbc.ParameterUtil; -import org.seasar.dbflute.jdbc.ParameterUtil.ShortCharHandlingMode; -import org.seasar.dbflute.outsidesql.typed.AutoPagingHandlingPmb; -import org.seasar.dbflute.outsidesql.typed.EntityHandlingPmb; -import org.seasar.dbflute.util.DfCollectionUtil; -import org.seasar.dbflute.util.DfTypeUtil; - -/** - * The base class for typed parameter-bean of SearchWordRanking. <br /> - * This is related to "<span style="color: #AD4747">selectSearchWordRanking</span>" on SearchLogBhv. - * @author DBFlute(AutoGenerator) - */ -public class BsSearchWordRankingPmb extends SimplePagingBean implements - EntityHandlingPmb<SearchLogBhv, SearchWordRanking>, - AutoPagingHandlingPmb<SearchLogBhv, SearchWordRanking>, FetchBean { - - // =================================================================================== - // Attribute - // ========= - /** The parameter of fromRequestedTime. */ - protected java.sql.Timestamp _fromRequestedTime; - - /** The parameter of toRequestedTime. */ - protected java.sql.Timestamp _toRequestedTime; - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor for the typed parameter-bean of SearchWordRanking. <br /> - * This is related to "<span style="color: #AD4747">selectSearchWordRanking</span>" on SearchLogBhv. - */ - public BsSearchWordRankingPmb() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - } - - // =================================================================================== - // Typed Implementation - // ==================== - /** - * {@inheritDoc} - */ - @Override - public String getOutsideSqlPath() { - return "selectSearchWordRanking"; - } - - /** - * Get the type of an entity for result. (implementation) - * @return The type instance of an entity, customize entity. (NotNull) - */ - @Override - public Class<SearchWordRanking> getEntityType() { - return SearchWordRanking.class; - } - - // =================================================================================== - // Assist Helper - // ============= - protected String filterStringParameter(final String value) { - if (isEmptyStringParameterAllowed()) { - return value; - } - return convertEmptyToNull(value); - } - - protected boolean isEmptyStringParameterAllowed() { - return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); - } - - protected String convertEmptyToNull(final String value) { - return ParameterUtil.convertEmptyToNull(value); - } - - protected String handleShortChar(final String propertyName, - final String value, final Integer size) { - final ShortCharHandlingMode mode = getShortCharHandlingMode( - propertyName, value, size); - return ParameterUtil.handleShortChar(propertyName, value, size, mode); - } - - protected ShortCharHandlingMode getShortCharHandlingMode( - final String propertyName, final String value, final Integer size) { - return ShortCharHandlingMode.NONE; - } - - @SuppressWarnings("unchecked") - protected <ELEMENT> ArrayList<ELEMENT> newArrayList( - final ELEMENT... elements) { // might be called by option handling - final Object obj = DfCollectionUtil.newArrayList(elements); - return (ArrayList<ELEMENT>) obj; // to avoid the warning between JDK6 and JDK7 - } - - @SuppressWarnings("unchecked") - protected <NUMBER extends Number> NUMBER toNumber(final Object obj, - final Class<NUMBER> type) { // might be called by option handling - return (NUMBER) DfTypeUtil.toNumber(obj, type); - } - - protected Boolean toBoolean(final Object obj) { - return DfTypeUtil.toBoolean(obj); - } - - protected Date toUtilDate(final Date date) { - return DfTypeUtil.toDate(date); // if sub class, re-create as pure date - } - - protected String formatUtilDate(final Date date) { - final String pattern = "yyyy-MM-dd"; - return DfTypeUtil.toString(date, pattern); - } - - protected String formatByteArray(final byte[] bytes) { - return "byte[" - + (bytes != null ? String.valueOf(bytes.length) : "null") + "]"; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * @return The display string of all parameters. (NotNull) - */ - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(); - sb.append(DfTypeUtil.toClassTitle(this)).append(":"); - sb.append(xbuildColumnString()); - return sb.toString(); - } - - protected String xbuildColumnString() { - final String dm = ", "; - final StringBuilder sb = new StringBuilder(); - sb.append(dm).append(_fromRequestedTime); - sb.append(dm).append(_toRequestedTime); - if (sb.length() > 0) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] fromRequestedTime <br /> - * @return The value of fromRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getFromRequestedTime() { - return _fromRequestedTime; - } - - /** - * [set] fromRequestedTime <br /> - * @param fromRequestedTime The value of fromRequestedTime. (NullAllowed) - */ - public void setFromRequestedTime(final java.sql.Timestamp fromRequestedTime) { - _fromRequestedTime = fromRequestedTime; - } - - /** - * [get] toRequestedTime <br /> - * @return The value of toRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getToRequestedTime() { - return _toRequestedTime; - } - - /** - * [set] toRequestedTime <br /> - * @param toRequestedTime The value of toRequestedTime. (NullAllowed) - */ - public void setToRequestedTime(final java.sql.Timestamp toRequestedTime) { - _toRequestedTime = toRequestedTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSolrQueryRankingPmb.java b/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSolrQueryRankingPmb.java deleted file mode 100644 index 46dbc707f..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsSolrQueryRankingPmb.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.pmbean; - -import java.util.ArrayList; -import java.util.Date; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.customize.SolrQueryRanking; - -import org.seasar.dbflute.cbean.SimplePagingBean; -import org.seasar.dbflute.jdbc.FetchBean; -import org.seasar.dbflute.jdbc.ParameterUtil; -import org.seasar.dbflute.jdbc.ParameterUtil.ShortCharHandlingMode; -import org.seasar.dbflute.outsidesql.typed.AutoPagingHandlingPmb; -import org.seasar.dbflute.outsidesql.typed.EntityHandlingPmb; -import org.seasar.dbflute.util.DfCollectionUtil; -import org.seasar.dbflute.util.DfTypeUtil; - -/** - * The base class for typed parameter-bean of SolrQueryRanking. <br /> - * This is related to "<span style="color: #AD4747">selectSolrQueryRanking</span>" on SearchLogBhv. - * @author DBFlute(AutoGenerator) - */ -public class BsSolrQueryRankingPmb extends SimplePagingBean implements - EntityHandlingPmb<SearchLogBhv, SolrQueryRanking>, - AutoPagingHandlingPmb<SearchLogBhv, SolrQueryRanking>, FetchBean { - - // =================================================================================== - // Attribute - // ========= - /** The parameter of fromRequestedTime. */ - protected java.sql.Timestamp _fromRequestedTime; - - /** The parameter of toRequestedTime. */ - protected java.sql.Timestamp _toRequestedTime; - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor for the typed parameter-bean of SolrQueryRanking. <br /> - * This is related to "<span style="color: #AD4747">selectSolrQueryRanking</span>" on SearchLogBhv. - */ - public BsSolrQueryRankingPmb() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - } - - // =================================================================================== - // Typed Implementation - // ==================== - /** - * {@inheritDoc} - */ - @Override - public String getOutsideSqlPath() { - return "selectSolrQueryRanking"; - } - - /** - * Get the type of an entity for result. (implementation) - * @return The type instance of an entity, customize entity. (NotNull) - */ - @Override - public Class<SolrQueryRanking> getEntityType() { - return SolrQueryRanking.class; - } - - // =================================================================================== - // Assist Helper - // ============= - protected String filterStringParameter(final String value) { - if (isEmptyStringParameterAllowed()) { - return value; - } - return convertEmptyToNull(value); - } - - protected boolean isEmptyStringParameterAllowed() { - return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); - } - - protected String convertEmptyToNull(final String value) { - return ParameterUtil.convertEmptyToNull(value); - } - - protected String handleShortChar(final String propertyName, - final String value, final Integer size) { - final ShortCharHandlingMode mode = getShortCharHandlingMode( - propertyName, value, size); - return ParameterUtil.handleShortChar(propertyName, value, size, mode); - } - - protected ShortCharHandlingMode getShortCharHandlingMode( - final String propertyName, final String value, final Integer size) { - return ShortCharHandlingMode.NONE; - } - - @SuppressWarnings("unchecked") - protected <ELEMENT> ArrayList<ELEMENT> newArrayList( - final ELEMENT... elements) { // might be called by option handling - final Object obj = DfCollectionUtil.newArrayList(elements); - return (ArrayList<ELEMENT>) obj; // to avoid the warning between JDK6 and JDK7 - } - - @SuppressWarnings("unchecked") - protected <NUMBER extends Number> NUMBER toNumber(final Object obj, - final Class<NUMBER> type) { // might be called by option handling - return (NUMBER) DfTypeUtil.toNumber(obj, type); - } - - protected Boolean toBoolean(final Object obj) { - return DfTypeUtil.toBoolean(obj); - } - - protected Date toUtilDate(final Date date) { - return DfTypeUtil.toDate(date); // if sub class, re-create as pure date - } - - protected String formatUtilDate(final Date date) { - final String pattern = "yyyy-MM-dd"; - return DfTypeUtil.toString(date, pattern); - } - - protected String formatByteArray(final byte[] bytes) { - return "byte[" - + (bytes != null ? String.valueOf(bytes.length) : "null") + "]"; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * @return The display string of all parameters. (NotNull) - */ - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(); - sb.append(DfTypeUtil.toClassTitle(this)).append(":"); - sb.append(xbuildColumnString()); - return sb.toString(); - } - - protected String xbuildColumnString() { - final String dm = ", "; - final StringBuilder sb = new StringBuilder(); - sb.append(dm).append(_fromRequestedTime); - sb.append(dm).append(_toRequestedTime); - if (sb.length() > 0) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] fromRequestedTime <br /> - * @return The value of fromRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getFromRequestedTime() { - return _fromRequestedTime; - } - - /** - * [set] fromRequestedTime <br /> - * @param fromRequestedTime The value of fromRequestedTime. (NullAllowed) - */ - public void setFromRequestedTime(final java.sql.Timestamp fromRequestedTime) { - _fromRequestedTime = fromRequestedTime; - } - - /** - * [get] toRequestedTime <br /> - * @return The value of toRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getToRequestedTime() { - return _toRequestedTime; - } - - /** - * [set] toRequestedTime <br /> - * @param toRequestedTime The value of toRequestedTime. (NullAllowed) - */ - public void setToRequestedTime(final java.sql.Timestamp toRequestedTime) { - _toRequestedTime = toRequestedTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsUserAgentRankingPmb.java b/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsUserAgentRankingPmb.java deleted file mode 100644 index 2b4ce40d7..000000000 --- a/src/main/java/jp/sf/fess/db/bsbhv/pmbean/BsUserAgentRankingPmb.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2009-2015 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.bsbhv.pmbean; - -import java.util.ArrayList; -import java.util.Date; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.customize.UserAgentRanking; - -import org.seasar.dbflute.cbean.SimplePagingBean; -import org.seasar.dbflute.jdbc.FetchBean; -import org.seasar.dbflute.jdbc.ParameterUtil; -import org.seasar.dbflute.jdbc.ParameterUtil.ShortCharHandlingMode; -import org.seasar.dbflute.outsidesql.typed.AutoPagingHandlingPmb; -import org.seasar.dbflute.outsidesql.typed.EntityHandlingPmb; -import org.seasar.dbflute.util.DfCollectionUtil; -import org.seasar.dbflute.util.DfTypeUtil; - -/** - * The base class for typed parameter-bean of UserAgentRanking. <br /> - * This is related to "<span style="color: #AD4747">selectUserAgentRanking</span>" on SearchLogBhv. - * @author DBFlute(AutoGenerator) - */ -public class BsUserAgentRankingPmb extends SimplePagingBean implements - EntityHandlingPmb<SearchLogBhv, UserAgentRanking>, - AutoPagingHandlingPmb<SearchLogBhv, UserAgentRanking>, FetchBean { - - // =================================================================================== - // Attribute - // ========= - /** The parameter of fromRequestedTime. */ - protected java.sql.Timestamp _fromRequestedTime; - - /** The parameter of toRequestedTime. */ - protected java.sql.Timestamp _toRequestedTime; - - // =================================================================================== - // Constructor - // =========== - /** - * Constructor for the typed parameter-bean of UserAgentRanking. <br /> - * This is related to "<span style="color: #AD4747">selectUserAgentRanking</span>" on SearchLogBhv. - */ - public BsUserAgentRankingPmb() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - } - - // =================================================================================== - // Typed Implementation - // ==================== - /** - * {@inheritDoc} - */ - @Override - public String getOutsideSqlPath() { - return "selectUserAgentRanking"; - } - - /** - * Get the type of an entity for result. (implementation) - * @return The type instance of an entity, customize entity. (NotNull) - */ - @Override - public Class<UserAgentRanking> getEntityType() { - return UserAgentRanking.class; - } - - // =================================================================================== - // Assist Helper - // ============= - protected String filterStringParameter(final String value) { - if (isEmptyStringParameterAllowed()) { - return value; - } - return convertEmptyToNull(value); - } - - protected boolean isEmptyStringParameterAllowed() { - return DBFluteConfig.getInstance().isEmptyStringParameterAllowed(); - } - - protected String convertEmptyToNull(final String value) { - return ParameterUtil.convertEmptyToNull(value); - } - - protected String handleShortChar(final String propertyName, - final String value, final Integer size) { - final ShortCharHandlingMode mode = getShortCharHandlingMode( - propertyName, value, size); - return ParameterUtil.handleShortChar(propertyName, value, size, mode); - } - - protected ShortCharHandlingMode getShortCharHandlingMode( - final String propertyName, final String value, final Integer size) { - return ShortCharHandlingMode.NONE; - } - - @SuppressWarnings("unchecked") - protected <ELEMENT> ArrayList<ELEMENT> newArrayList( - final ELEMENT... elements) { // might be called by option handling - final Object obj = DfCollectionUtil.newArrayList(elements); - return (ArrayList<ELEMENT>) obj; // to avoid the warning between JDK6 and JDK7 - } - - @SuppressWarnings("unchecked") - protected <NUMBER extends Number> NUMBER toNumber(final Object obj, - final Class<NUMBER> type) { // might be called by option handling - return (NUMBER) DfTypeUtil.toNumber(obj, type); - } - - protected Boolean toBoolean(final Object obj) { - return DfTypeUtil.toBoolean(obj); - } - - protected Date toUtilDate(final Date date) { - return DfTypeUtil.toDate(date); // if sub class, re-create as pure date - } - - protected String formatUtilDate(final Date date) { - final String pattern = "yyyy-MM-dd"; - return DfTypeUtil.toString(date, pattern); - } - - protected String formatByteArray(final byte[] bytes) { - return "byte[" - + (bytes != null ? String.valueOf(bytes.length) : "null") + "]"; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * @return The display string of all parameters. (NotNull) - */ - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(); - sb.append(DfTypeUtil.toClassTitle(this)).append(":"); - sb.append(xbuildColumnString()); - return sb.toString(); - } - - protected String xbuildColumnString() { - final String dm = ", "; - final StringBuilder sb = new StringBuilder(); - sb.append(dm).append(_fromRequestedTime); - sb.append(dm).append(_toRequestedTime); - if (sb.length() > 0) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] fromRequestedTime <br /> - * @return The value of fromRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getFromRequestedTime() { - return _fromRequestedTime; - } - - /** - * [set] fromRequestedTime <br /> - * @param fromRequestedTime The value of fromRequestedTime. (NullAllowed) - */ - public void setFromRequestedTime(final java.sql.Timestamp fromRequestedTime) { - _fromRequestedTime = fromRequestedTime; - } - - /** - * [get] toRequestedTime <br /> - * @return The value of toRequestedTime. (NullAllowed, NotEmptyString(when String): if empty string, returns null) - */ - public java.sql.Timestamp getToRequestedTime() { - return _toRequestedTime; - } - - /** - * [set] toRequestedTime <br /> - * @param toRequestedTime The value of toRequestedTime. (NullAllowed) - */ - public void setToRequestedTime(final java.sql.Timestamp toRequestedTime) { - _toRequestedTime = toRequestedTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsBoostDocumentRule.java b/src/main/java/jp/sf/fess/db/bsentity/BsBoostDocumentRule.java deleted file mode 100644 index 09b46cb20..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsBoostDocumentRule.java +++ /dev/null @@ -1,580 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.BoostDocumentRule; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of BOOST_DOCUMENT_RULE as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, URL_EXPR, BOOST_EXPR, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String urlExpr = entity.getUrlExpr(); - * String boostExpr = entity.getBoostExpr(); - * Integer sortOrder = entity.getSortOrder(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setUrlExpr(urlExpr); - * entity.setBoostExpr(boostExpr); - * entity.setSortOrder(sortOrder); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsBoostDocumentRule implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** URL_EXPR: {NotNull, VARCHAR(4000)} */ - protected String _urlExpr; - - /** BOOST_EXPR: {NotNull, VARCHAR(4000)} */ - protected String _boostExpr; - - /** SORT_ORDER: {NotNull, INTEGER(10)} */ - protected Integer _sortOrder; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "BOOST_DOCUMENT_RULE"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "boostDocumentRule"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsBoostDocumentRule)) { - return false; - } - final BsBoostDocumentRule other = (BsBoostDocumentRule) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getUrlExpr()); - sb.append(dm).append(getBoostExpr()); - sb.append(dm).append(getSortOrder()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public BoostDocumentRule clone() { - try { - return (BoostDocumentRule) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] URL_EXPR: {NotNull, VARCHAR(4000)} <br /> - * @return The value of the column 'URL_EXPR'. (basically NotNull if selected: for the constraint) - */ - public String getUrlExpr() { - return _urlExpr; - } - - /** - * [set] URL_EXPR: {NotNull, VARCHAR(4000)} <br /> - * @param urlExpr The value of the column 'URL_EXPR'. (basically NotNull if update: for the constraint) - */ - public void setUrlExpr(final String urlExpr) { - __modifiedProperties.addPropertyName("urlExpr"); - _urlExpr = urlExpr; - } - - /** - * [get] BOOST_EXPR: {NotNull, VARCHAR(4000)} <br /> - * @return The value of the column 'BOOST_EXPR'. (basically NotNull if selected: for the constraint) - */ - public String getBoostExpr() { - return _boostExpr; - } - - /** - * [set] BOOST_EXPR: {NotNull, VARCHAR(4000)} <br /> - * @param boostExpr The value of the column 'BOOST_EXPR'. (basically NotNull if update: for the constraint) - */ - public void setBoostExpr(final String boostExpr) { - __modifiedProperties.addPropertyName("boostExpr"); - _boostExpr = boostExpr; - } - - /** - * [get] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'SORT_ORDER'. (basically NotNull if selected: for the constraint) - */ - public Integer getSortOrder() { - return _sortOrder; - } - - /** - * [set] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @param sortOrder The value of the column 'SORT_ORDER'. (basically NotNull if update: for the constraint) - */ - public void setSortOrder(final Integer sortOrder) { - __modifiedProperties.addPropertyName("sortOrder"); - _sortOrder = sortOrder; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsClickLog.java b/src/main/java/jp/sf/fess/db/bsentity/BsClickLog.java deleted file mode 100644 index 543c4914a..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsClickLog.java +++ /dev/null @@ -1,454 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.ClickLog; -import jp.sf.fess.db.exentity.SearchLog; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of CLICK_LOG as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, SEARCH_ID, URL, REQUESTED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * SEARCH_LOG - * - * [referrer table] - * - * - * [foreign property] - * searchLog - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * Long searchId = entity.getSearchId(); - * String url = entity.getUrl(); - * java.sql.Timestamp requestedTime = entity.getRequestedTime(); - * entity.setId(id); - * entity.setSearchId(searchId); - * entity.setUrl(url); - * entity.setRequestedTime(requestedTime); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsClickLog implements Entity, Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} */ - protected Long _searchId; - - /** URL: {IX, NotNull, VARCHAR(4000)} */ - protected String _url; - - /** REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _requestedTime; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "CLICK_LOG"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "clickLog"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** SEARCH_LOG by my SEARCH_ID, named 'searchLog'. */ - protected SearchLog _searchLog; - - /** - * [get] SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @return The entity of foreign property 'searchLog'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public SearchLog getSearchLog() { - return _searchLog; - } - - /** - * [set] SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @param searchLog The entity of foreign property 'searchLog'. (NullAllowed) - */ - public void setSearchLog(final SearchLog searchLog) { - _searchLog = searchLog; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsClickLog)) { - return false; - } - final BsClickLog other = (BsClickLog) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_searchLog != null) { - sb.append(li).append(xbRDS(_searchLog, "searchLog")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getSearchId()); - sb.append(dm).append(getUrl()); - sb.append(dm).append(getRequestedTime()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_searchLog != null) { - sb.append(cm).append("searchLog"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public ClickLog clone() { - try { - return (ClickLog) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} <br /> - * @return The value of the column 'SEARCH_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getSearchId() { - return _searchId; - } - - /** - * [set] SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} <br /> - * @param searchId The value of the column 'SEARCH_ID'. (basically NotNull if update: for the constraint) - */ - public void setSearchId(final Long searchId) { - __modifiedProperties.addPropertyName("searchId"); - _searchId = searchId; - } - - /** - * [get] URL: {IX, NotNull, VARCHAR(4000)} <br /> - * @return The value of the column 'URL'. (basically NotNull if selected: for the constraint) - */ - public String getUrl() { - return _url; - } - - /** - * [set] URL: {IX, NotNull, VARCHAR(4000)} <br /> - * @param url The value of the column 'URL'. (basically NotNull if update: for the constraint) - */ - public void setUrl(final String url) { - __modifiedProperties.addPropertyName("url"); - _url = url; - } - - /** - * [get] REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'REQUESTED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getRequestedTime() { - return _requestedTime; - } - - /** - * [set] REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param requestedTime The value of the column 'REQUESTED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setRequestedTime(final java.sql.Timestamp requestedTime) { - __modifiedProperties.addPropertyName("requestedTime"); - _requestedTime = requestedTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsCrawlingSession.java b/src/main/java/jp/sf/fess/db/bsentity/BsCrawlingSession.java deleted file mode 100644 index 6f5a9199c..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsCrawlingSession.java +++ /dev/null @@ -1,487 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.CrawlingSession; -import jp.sf.fess.db.exentity.CrawlingSessionInfo; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of CRAWLING_SESSION as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, SESSION_ID, NAME, EXPIRED_TIME, CREATED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * CRAWLING_SESSION_INFO - * - * [foreign property] - * - * - * [referrer property] - * crawlingSessionInfoList - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String sessionId = entity.getSessionId(); - * String name = entity.getName(); - * java.sql.Timestamp expiredTime = entity.getExpiredTime(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * entity.setId(id); - * entity.setSessionId(sessionId); - * entity.setName(name); - * entity.setExpiredTime(expiredTime); - * entity.setCreatedTime(createdTime); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsCrawlingSession implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** SESSION_ID: {NotNull, VARCHAR(20)} */ - protected String _sessionId; - - /** NAME: {IX+, VARCHAR(20)} */ - protected String _name; - - /** EXPIRED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _expiredTime; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "CRAWLING_SESSION"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "crawlingSession"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - /** CRAWLING_SESSION_INFO by CRAWLING_SESSION_ID, named 'crawlingSessionInfoList'. */ - protected List<CrawlingSessionInfo> _crawlingSessionInfoList; - - /** - * [get] CRAWLING_SESSION_INFO by CRAWLING_SESSION_ID, named 'crawlingSessionInfoList'. - * @return The entity list of referrer property 'crawlingSessionInfoList'. (NotNull: even if no loading, returns empty list) - */ - public List<CrawlingSessionInfo> getCrawlingSessionInfoList() { - if (_crawlingSessionInfoList == null) { - _crawlingSessionInfoList = newReferrerList(); - } - return _crawlingSessionInfoList; - } - - /** - * [set] CRAWLING_SESSION_INFO by CRAWLING_SESSION_ID, named 'crawlingSessionInfoList'. - * @param crawlingSessionInfoList The entity list of referrer property 'crawlingSessionInfoList'. (NullAllowed) - */ - public void setCrawlingSessionInfoList( - final List<CrawlingSessionInfo> crawlingSessionInfoList) { - _crawlingSessionInfoList = crawlingSessionInfoList; - } - - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsCrawlingSession)) { - return false; - } - final BsCrawlingSession other = (BsCrawlingSession) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_crawlingSessionInfoList != null) { - for (final Entity et : _crawlingSessionInfoList) { - if (et != null) { - sb.append(li).append(xbRDS(et, "crawlingSessionInfoList")); - } - } - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getSessionId()); - sb.append(dm).append(getName()); - sb.append(dm).append(getExpiredTime()); - sb.append(dm).append(getCreatedTime()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_crawlingSessionInfoList != null - && !_crawlingSessionInfoList.isEmpty()) { - sb.append(cm).append("crawlingSessionInfoList"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public CrawlingSession clone() { - try { - return (CrawlingSession) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] SESSION_ID: {NotNull, VARCHAR(20)} <br /> - * @return The value of the column 'SESSION_ID'. (basically NotNull if selected: for the constraint) - */ - public String getSessionId() { - return _sessionId; - } - - /** - * [set] SESSION_ID: {NotNull, VARCHAR(20)} <br /> - * @param sessionId The value of the column 'SESSION_ID'. (basically NotNull if update: for the constraint) - */ - public void setSessionId(final String sessionId) { - __modifiedProperties.addPropertyName("sessionId"); - _sessionId = sessionId; - } - - /** - * [get] NAME: {IX+, VARCHAR(20)} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {IX+, VARCHAR(20)} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] EXPIRED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'EXPIRED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getExpiredTime() { - return _expiredTime; - } - - /** - * [set] EXPIRED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param expiredTime The value of the column 'EXPIRED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setExpiredTime(final java.sql.Timestamp expiredTime) { - __modifiedProperties.addPropertyName("expiredTime"); - _expiredTime = expiredTime; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsCrawlingSessionInfo.java b/src/main/java/jp/sf/fess/db/bsentity/BsCrawlingSessionInfo.java deleted file mode 100644 index cbac5bcad..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsCrawlingSessionInfo.java +++ /dev/null @@ -1,478 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.CrawlingSession; -import jp.sf.fess.db.exentity.CrawlingSessionInfo; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of CRAWLING_SESSION_INFO as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, CRAWLING_SESSION_ID, KEY, VALUE, CREATED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * CRAWLING_SESSION - * - * [referrer table] - * - * - * [foreign property] - * crawlingSession - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * Long crawlingSessionId = entity.getCrawlingSessionId(); - * String key = entity.getKey(); - * String value = entity.getValue(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * entity.setId(id); - * entity.setCrawlingSessionId(crawlingSessionId); - * entity.setKey(key); - * entity.setValue(value); - * entity.setCreatedTime(createdTime); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsCrawlingSessionInfo implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} */ - protected Long _crawlingSessionId; - - /** KEY: {NotNull, VARCHAR(20)} */ - protected String _key; - - /** VALUE: {NotNull, VARCHAR(100)} */ - protected String _value; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "CRAWLING_SESSION_INFO"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "crawlingSessionInfo"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** CRAWLING_SESSION by my CRAWLING_SESSION_ID, named 'crawlingSession'. */ - protected CrawlingSession _crawlingSession; - - /** - * [get] CRAWLING_SESSION by my CRAWLING_SESSION_ID, named 'crawlingSession'. - * @return The entity of foreign property 'crawlingSession'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public CrawlingSession getCrawlingSession() { - return _crawlingSession; - } - - /** - * [set] CRAWLING_SESSION by my CRAWLING_SESSION_ID, named 'crawlingSession'. - * @param crawlingSession The entity of foreign property 'crawlingSession'. (NullAllowed) - */ - public void setCrawlingSession(final CrawlingSession crawlingSession) { - _crawlingSession = crawlingSession; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsCrawlingSessionInfo)) { - return false; - } - final BsCrawlingSessionInfo other = (BsCrawlingSessionInfo) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_crawlingSession != null) { - sb.append(li).append(xbRDS(_crawlingSession, "crawlingSession")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getCrawlingSessionId()); - sb.append(dm).append(getKey()); - sb.append(dm).append(getValue()); - sb.append(dm).append(getCreatedTime()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_crawlingSession != null) { - sb.append(cm).append("crawlingSession"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public CrawlingSessionInfo clone() { - try { - return (CrawlingSessionInfo) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} <br /> - * @return The value of the column 'CRAWLING_SESSION_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getCrawlingSessionId() { - return _crawlingSessionId; - } - - /** - * [set] CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} <br /> - * @param crawlingSessionId The value of the column 'CRAWLING_SESSION_ID'. (basically NotNull if update: for the constraint) - */ - public void setCrawlingSessionId(final Long crawlingSessionId) { - __modifiedProperties.addPropertyName("crawlingSessionId"); - _crawlingSessionId = crawlingSessionId; - } - - /** - * [get] KEY: {NotNull, VARCHAR(20)} <br /> - * @return The value of the column 'KEY'. (basically NotNull if selected: for the constraint) - */ - public String getKey() { - return _key; - } - - /** - * [set] KEY: {NotNull, VARCHAR(20)} <br /> - * @param key The value of the column 'KEY'. (basically NotNull if update: for the constraint) - */ - public void setKey(final String key) { - __modifiedProperties.addPropertyName("key"); - _key = key; - } - - /** - * [get] VALUE: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'VALUE'. (basically NotNull if selected: for the constraint) - */ - public String getValue() { - return _value; - } - - /** - * [set] VALUE: {NotNull, VARCHAR(100)} <br /> - * @param value The value of the column 'VALUE'. (basically NotNull if update: for the constraint) - */ - public void setValue(final String value) { - __modifiedProperties.addPropertyName("value"); - _value = value; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsDataConfigToLabelTypeMapping.java b/src/main/java/jp/sf/fess/db/bsentity/BsDataConfigToLabelTypeMapping.java deleted file mode 100644 index 74c4503ba..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsDataConfigToLabelTypeMapping.java +++ /dev/null @@ -1,460 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.DataConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.db.exentity.LabelType; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of DATA_CONFIG_TO_LABEL_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, DATA_CONFIG_ID, LABEL_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * DATA_CRAWLING_CONFIG, LABEL_TYPE - * - * [referrer table] - * - * - * [foreign property] - * dataCrawlingConfig, labelType - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * Long dataConfigId = entity.getDataConfigId(); - * Long labelTypeId = entity.getLabelTypeId(); - * entity.setId(id); - * entity.setDataConfigId(dataConfigId); - * entity.setLabelTypeId(labelTypeId); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsDataConfigToLabelTypeMapping implements Entity, - Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} */ - protected Long _dataConfigId; - - /** LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} */ - protected Long _labelTypeId; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "DATA_CONFIG_TO_LABEL_TYPE_MAPPING"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "dataConfigToLabelTypeMapping"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. */ - protected DataCrawlingConfig _dataCrawlingConfig; - - /** - * [get] DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @return The entity of foreign property 'dataCrawlingConfig'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public DataCrawlingConfig getDataCrawlingConfig() { - return _dataCrawlingConfig; - } - - /** - * [set] DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @param dataCrawlingConfig The entity of foreign property 'dataCrawlingConfig'. (NullAllowed) - */ - public void setDataCrawlingConfig( - final DataCrawlingConfig dataCrawlingConfig) { - _dataCrawlingConfig = dataCrawlingConfig; - } - - /** LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. */ - protected LabelType _labelType; - - /** - * [get] LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The entity of foreign property 'labelType'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public LabelType getLabelType() { - return _labelType; - } - - /** - * [set] LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @param labelType The entity of foreign property 'labelType'. (NullAllowed) - */ - public void setLabelType(final LabelType labelType) { - _labelType = labelType; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsDataConfigToLabelTypeMapping)) { - return false; - } - final BsDataConfigToLabelTypeMapping other = (BsDataConfigToLabelTypeMapping) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_dataCrawlingConfig != null) { - sb.append(li).append( - xbRDS(_dataCrawlingConfig, "dataCrawlingConfig")); - } - if (_labelType != null) { - sb.append(li).append(xbRDS(_labelType, "labelType")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getDataConfigId()); - sb.append(dm).append(getLabelTypeId()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_dataCrawlingConfig != null) { - sb.append(cm).append("dataCrawlingConfig"); - } - if (_labelType != null) { - sb.append(cm).append("labelType"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public DataConfigToLabelTypeMapping clone() { - try { - return (DataConfigToLabelTypeMapping) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} <br /> - * @return The value of the column 'DATA_CONFIG_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getDataConfigId() { - return _dataConfigId; - } - - /** - * [set] DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} <br /> - * @param dataConfigId The value of the column 'DATA_CONFIG_ID'. (basically NotNull if update: for the constraint) - */ - public void setDataConfigId(final Long dataConfigId) { - __modifiedProperties.addPropertyName("dataConfigId"); - _dataConfigId = dataConfigId; - } - - /** - * [get] LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} <br /> - * @return The value of the column 'LABEL_TYPE_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getLabelTypeId() { - return _labelTypeId; - } - - /** - * [set] LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} <br /> - * @param labelTypeId The value of the column 'LABEL_TYPE_ID'. (basically NotNull if update: for the constraint) - */ - public void setLabelTypeId(final Long labelTypeId) { - __modifiedProperties.addPropertyName("labelTypeId"); - _labelTypeId = labelTypeId; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsDataConfigToRoleTypeMapping.java b/src/main/java/jp/sf/fess/db/bsentity/BsDataConfigToRoleTypeMapping.java deleted file mode 100644 index f79b7c15d..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsDataConfigToRoleTypeMapping.java +++ /dev/null @@ -1,460 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.DataConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.db.exentity.RoleType; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of DATA_CONFIG_TO_ROLE_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, DATA_CONFIG_ID, ROLE_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * DATA_CRAWLING_CONFIG, ROLE_TYPE - * - * [referrer table] - * - * - * [foreign property] - * dataCrawlingConfig, roleType - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * Long dataConfigId = entity.getDataConfigId(); - * Long roleTypeId = entity.getRoleTypeId(); - * entity.setId(id); - * entity.setDataConfigId(dataConfigId); - * entity.setRoleTypeId(roleTypeId); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsDataConfigToRoleTypeMapping implements Entity, - Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} */ - protected Long _dataConfigId; - - /** ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} */ - protected Long _roleTypeId; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "DATA_CONFIG_TO_ROLE_TYPE_MAPPING"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "dataConfigToRoleTypeMapping"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. */ - protected DataCrawlingConfig _dataCrawlingConfig; - - /** - * [get] DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @return The entity of foreign property 'dataCrawlingConfig'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public DataCrawlingConfig getDataCrawlingConfig() { - return _dataCrawlingConfig; - } - - /** - * [set] DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @param dataCrawlingConfig The entity of foreign property 'dataCrawlingConfig'. (NullAllowed) - */ - public void setDataCrawlingConfig( - final DataCrawlingConfig dataCrawlingConfig) { - _dataCrawlingConfig = dataCrawlingConfig; - } - - /** ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. */ - protected RoleType _roleType; - - /** - * [get] ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The entity of foreign property 'roleType'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public RoleType getRoleType() { - return _roleType; - } - - /** - * [set] ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @param roleType The entity of foreign property 'roleType'. (NullAllowed) - */ - public void setRoleType(final RoleType roleType) { - _roleType = roleType; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsDataConfigToRoleTypeMapping)) { - return false; - } - final BsDataConfigToRoleTypeMapping other = (BsDataConfigToRoleTypeMapping) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_dataCrawlingConfig != null) { - sb.append(li).append( - xbRDS(_dataCrawlingConfig, "dataCrawlingConfig")); - } - if (_roleType != null) { - sb.append(li).append(xbRDS(_roleType, "roleType")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getDataConfigId()); - sb.append(dm).append(getRoleTypeId()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_dataCrawlingConfig != null) { - sb.append(cm).append("dataCrawlingConfig"); - } - if (_roleType != null) { - sb.append(cm).append("roleType"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public DataConfigToRoleTypeMapping clone() { - try { - return (DataConfigToRoleTypeMapping) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} <br /> - * @return The value of the column 'DATA_CONFIG_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getDataConfigId() { - return _dataConfigId; - } - - /** - * [set] DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} <br /> - * @param dataConfigId The value of the column 'DATA_CONFIG_ID'. (basically NotNull if update: for the constraint) - */ - public void setDataConfigId(final Long dataConfigId) { - __modifiedProperties.addPropertyName("dataConfigId"); - _dataConfigId = dataConfigId; - } - - /** - * [get] ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} <br /> - * @return The value of the column 'ROLE_TYPE_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getRoleTypeId() { - return _roleTypeId; - } - - /** - * [set] ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} <br /> - * @param roleTypeId The value of the column 'ROLE_TYPE_ID'. (basically NotNull if update: for the constraint) - */ - public void setRoleTypeId(final Long roleTypeId) { - __modifiedProperties.addPropertyName("roleTypeId"); - _roleTypeId = roleTypeId; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsDataCrawlingConfig.java b/src/main/java/jp/sf/fess/db/bsentity/BsDataCrawlingConfig.java deleted file mode 100644 index 12f468428..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsDataCrawlingConfig.java +++ /dev/null @@ -1,754 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.DataConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.DataConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of DATA_CRAWLING_CONFIG as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, NAME, HANDLER_NAME, HANDLER_PARAMETER, HANDLER_SCRIPT, BOOST, AVAILABLE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING, DATA_CONFIG_TO_ROLE_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * dataConfigToLabelTypeMappingList, dataConfigToRoleTypeMappingList - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String name = entity.getName(); - * String handlerName = entity.getHandlerName(); - * String handlerParameter = entity.getHandlerParameter(); - * String handlerScript = entity.getHandlerScript(); - * java.math.BigDecimal boost = entity.getBoost(); - * String available = entity.getAvailable(); - * Integer sortOrder = entity.getSortOrder(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setName(name); - * entity.setHandlerName(handlerName); - * entity.setHandlerParameter(handlerParameter); - * entity.setHandlerScript(handlerScript); - * entity.setBoost(boost); - * entity.setAvailable(available); - * entity.setSortOrder(sortOrder); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsDataCrawlingConfig implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** NAME: {NotNull, VARCHAR(200)} */ - protected String _name; - - /** HANDLER_NAME: {NotNull, VARCHAR(200)} */ - protected String _handlerName; - - /** HANDLER_PARAMETER: {VARCHAR(4000)} */ - protected String _handlerParameter; - - /** HANDLER_SCRIPT: {VARCHAR(4000)} */ - protected String _handlerScript; - - /** BOOST: {NotNull, DOUBLE(17)} */ - protected java.math.BigDecimal _boost; - - /** AVAILABLE: {NotNull, VARCHAR(1)} */ - protected String _available; - - /** SORT_ORDER: {NotNull, INTEGER(10)} */ - protected Integer _sortOrder; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "DATA_CRAWLING_CONFIG"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "dataCrawlingConfig"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - /** DATA_CONFIG_TO_LABEL_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToLabelTypeMappingList'. */ - protected List<DataConfigToLabelTypeMapping> _dataConfigToLabelTypeMappingList; - - /** - * [get] DATA_CONFIG_TO_LABEL_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToLabelTypeMappingList'. - * @return The entity list of referrer property 'dataConfigToLabelTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<DataConfigToLabelTypeMapping> getDataConfigToLabelTypeMappingList() { - if (_dataConfigToLabelTypeMappingList == null) { - _dataConfigToLabelTypeMappingList = newReferrerList(); - } - return _dataConfigToLabelTypeMappingList; - } - - /** - * [set] DATA_CONFIG_TO_LABEL_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToLabelTypeMappingList'. - * @param dataConfigToLabelTypeMappingList The entity list of referrer property 'dataConfigToLabelTypeMappingList'. (NullAllowed) - */ - public void setDataConfigToLabelTypeMappingList( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList) { - _dataConfigToLabelTypeMappingList = dataConfigToLabelTypeMappingList; - } - - /** DATA_CONFIG_TO_ROLE_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToRoleTypeMappingList'. */ - protected List<DataConfigToRoleTypeMapping> _dataConfigToRoleTypeMappingList; - - /** - * [get] DATA_CONFIG_TO_ROLE_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToRoleTypeMappingList'. - * @return The entity list of referrer property 'dataConfigToRoleTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<DataConfigToRoleTypeMapping> getDataConfigToRoleTypeMappingList() { - if (_dataConfigToRoleTypeMappingList == null) { - _dataConfigToRoleTypeMappingList = newReferrerList(); - } - return _dataConfigToRoleTypeMappingList; - } - - /** - * [set] DATA_CONFIG_TO_ROLE_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToRoleTypeMappingList'. - * @param dataConfigToRoleTypeMappingList The entity list of referrer property 'dataConfigToRoleTypeMappingList'. (NullAllowed) - */ - public void setDataConfigToRoleTypeMappingList( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList) { - _dataConfigToRoleTypeMappingList = dataConfigToRoleTypeMappingList; - } - - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsDataCrawlingConfig)) { - return false; - } - final BsDataCrawlingConfig other = (BsDataCrawlingConfig) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_dataConfigToLabelTypeMappingList != null) { - for (final Entity et : _dataConfigToLabelTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "dataConfigToLabelTypeMappingList")); - } - } - } - if (_dataConfigToRoleTypeMappingList != null) { - for (final Entity et : _dataConfigToRoleTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "dataConfigToRoleTypeMappingList")); - } - } - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getName()); - sb.append(dm).append(getHandlerName()); - sb.append(dm).append(getHandlerParameter()); - sb.append(dm).append(getHandlerScript()); - sb.append(dm).append(getBoost()); - sb.append(dm).append(getAvailable()); - sb.append(dm).append(getSortOrder()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_dataConfigToLabelTypeMappingList != null - && !_dataConfigToLabelTypeMappingList.isEmpty()) { - sb.append(cm).append("dataConfigToLabelTypeMappingList"); - } - if (_dataConfigToRoleTypeMappingList != null - && !_dataConfigToRoleTypeMappingList.isEmpty()) { - sb.append(cm).append("dataConfigToRoleTypeMappingList"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public DataCrawlingConfig clone() { - try { - return (DataCrawlingConfig) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] NAME: {NotNull, VARCHAR(200)} <br /> - * @return The value of the column 'NAME'. (basically NotNull if selected: for the constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {NotNull, VARCHAR(200)} <br /> - * @param name The value of the column 'NAME'. (basically NotNull if update: for the constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] HANDLER_NAME: {NotNull, VARCHAR(200)} <br /> - * @return The value of the column 'HANDLER_NAME'. (basically NotNull if selected: for the constraint) - */ - public String getHandlerName() { - return _handlerName; - } - - /** - * [set] HANDLER_NAME: {NotNull, VARCHAR(200)} <br /> - * @param handlerName The value of the column 'HANDLER_NAME'. (basically NotNull if update: for the constraint) - */ - public void setHandlerName(final String handlerName) { - __modifiedProperties.addPropertyName("handlerName"); - _handlerName = handlerName; - } - - /** - * [get] HANDLER_PARAMETER: {VARCHAR(4000)} <br /> - * @return The value of the column 'HANDLER_PARAMETER'. (NullAllowed even if selected: for no constraint) - */ - public String getHandlerParameter() { - return _handlerParameter; - } - - /** - * [set] HANDLER_PARAMETER: {VARCHAR(4000)} <br /> - * @param handlerParameter The value of the column 'HANDLER_PARAMETER'. (NullAllowed: null update allowed for no constraint) - */ - public void setHandlerParameter(final String handlerParameter) { - __modifiedProperties.addPropertyName("handlerParameter"); - _handlerParameter = handlerParameter; - } - - /** - * [get] HANDLER_SCRIPT: {VARCHAR(4000)} <br /> - * @return The value of the column 'HANDLER_SCRIPT'. (NullAllowed even if selected: for no constraint) - */ - public String getHandlerScript() { - return _handlerScript; - } - - /** - * [set] HANDLER_SCRIPT: {VARCHAR(4000)} <br /> - * @param handlerScript The value of the column 'HANDLER_SCRIPT'. (NullAllowed: null update allowed for no constraint) - */ - public void setHandlerScript(final String handlerScript) { - __modifiedProperties.addPropertyName("handlerScript"); - _handlerScript = handlerScript; - } - - /** - * [get] BOOST: {NotNull, DOUBLE(17)} <br /> - * @return The value of the column 'BOOST'. (basically NotNull if selected: for the constraint) - */ - public java.math.BigDecimal getBoost() { - return _boost; - } - - /** - * [set] BOOST: {NotNull, DOUBLE(17)} <br /> - * @param boost The value of the column 'BOOST'. (basically NotNull if update: for the constraint) - */ - public void setBoost(final java.math.BigDecimal boost) { - __modifiedProperties.addPropertyName("boost"); - _boost = boost; - } - - /** - * [get] AVAILABLE: {NotNull, VARCHAR(1)} <br /> - * @return The value of the column 'AVAILABLE'. (basically NotNull if selected: for the constraint) - */ - public String getAvailable() { - return _available; - } - - /** - * [set] AVAILABLE: {NotNull, VARCHAR(1)} <br /> - * @param available The value of the column 'AVAILABLE'. (basically NotNull if update: for the constraint) - */ - public void setAvailable(final String available) { - __modifiedProperties.addPropertyName("available"); - _available = available; - } - - /** - * [get] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'SORT_ORDER'. (basically NotNull if selected: for the constraint) - */ - public Integer getSortOrder() { - return _sortOrder; - } - - /** - * [set] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @param sortOrder The value of the column 'SORT_ORDER'. (basically NotNull if update: for the constraint) - */ - public void setSortOrder(final Integer sortOrder) { - __modifiedProperties.addPropertyName("sortOrder"); - _sortOrder = sortOrder; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsFailureUrl.java b/src/main/java/jp/sf/fess/db/bsentity/BsFailureUrl.java deleted file mode 100644 index 2ec1d9d64..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsFailureUrl.java +++ /dev/null @@ -1,510 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.FailureUrl; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of FAILURE_URL as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, URL, THREAD_NAME, ERROR_NAME, ERROR_LOG, ERROR_COUNT, LAST_ACCESS_TIME, CONFIG_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String url = entity.getUrl(); - * String threadName = entity.getThreadName(); - * String errorName = entity.getErrorName(); - * String errorLog = entity.getErrorLog(); - * Integer errorCount = entity.getErrorCount(); - * java.sql.Timestamp lastAccessTime = entity.getLastAccessTime(); - * String configId = entity.getConfigId(); - * entity.setId(id); - * entity.setUrl(url); - * entity.setThreadName(threadName); - * entity.setErrorName(errorName); - * entity.setErrorLog(errorLog); - * entity.setErrorCount(errorCount); - * entity.setLastAccessTime(lastAccessTime); - * entity.setConfigId(configId); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFailureUrl implements Entity, Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** URL: {IX+, NotNull, VARCHAR(4000)} */ - protected String _url; - - /** THREAD_NAME: {NotNull, VARCHAR(30)} */ - protected String _threadName; - - /** ERROR_NAME: {VARCHAR(255)} */ - protected String _errorName; - - /** ERROR_LOG: {VARCHAR(4000)} */ - protected String _errorLog; - - /** ERROR_COUNT: {NotNull, INTEGER(10)} */ - protected Integer _errorCount; - - /** LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _lastAccessTime; - - /** CONFIG_ID: {IX, VARCHAR(100)} */ - protected String _configId; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "FAILURE_URL"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "failureUrl"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsFailureUrl)) { - return false; - } - final BsFailureUrl other = (BsFailureUrl) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getUrl()); - sb.append(dm).append(getThreadName()); - sb.append(dm).append(getErrorName()); - sb.append(dm).append(getErrorLog()); - sb.append(dm).append(getErrorCount()); - sb.append(dm).append(getLastAccessTime()); - sb.append(dm).append(getConfigId()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public FailureUrl clone() { - try { - return (FailureUrl) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] URL: {IX+, NotNull, VARCHAR(4000)} <br /> - * @return The value of the column 'URL'. (basically NotNull if selected: for the constraint) - */ - public String getUrl() { - return _url; - } - - /** - * [set] URL: {IX+, NotNull, VARCHAR(4000)} <br /> - * @param url The value of the column 'URL'. (basically NotNull if update: for the constraint) - */ - public void setUrl(final String url) { - __modifiedProperties.addPropertyName("url"); - _url = url; - } - - /** - * [get] THREAD_NAME: {NotNull, VARCHAR(30)} <br /> - * @return The value of the column 'THREAD_NAME'. (basically NotNull if selected: for the constraint) - */ - public String getThreadName() { - return _threadName; - } - - /** - * [set] THREAD_NAME: {NotNull, VARCHAR(30)} <br /> - * @param threadName The value of the column 'THREAD_NAME'. (basically NotNull if update: for the constraint) - */ - public void setThreadName(final String threadName) { - __modifiedProperties.addPropertyName("threadName"); - _threadName = threadName; - } - - /** - * [get] ERROR_NAME: {VARCHAR(255)} <br /> - * @return The value of the column 'ERROR_NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getErrorName() { - return _errorName; - } - - /** - * [set] ERROR_NAME: {VARCHAR(255)} <br /> - * @param errorName The value of the column 'ERROR_NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setErrorName(final String errorName) { - __modifiedProperties.addPropertyName("errorName"); - _errorName = errorName; - } - - /** - * [get] ERROR_LOG: {VARCHAR(4000)} <br /> - * @return The value of the column 'ERROR_LOG'. (NullAllowed even if selected: for no constraint) - */ - public String getErrorLog() { - return _errorLog; - } - - /** - * [set] ERROR_LOG: {VARCHAR(4000)} <br /> - * @param errorLog The value of the column 'ERROR_LOG'. (NullAllowed: null update allowed for no constraint) - */ - public void setErrorLog(final String errorLog) { - __modifiedProperties.addPropertyName("errorLog"); - _errorLog = errorLog; - } - - /** - * [get] ERROR_COUNT: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'ERROR_COUNT'. (basically NotNull if selected: for the constraint) - */ - public Integer getErrorCount() { - return _errorCount; - } - - /** - * [set] ERROR_COUNT: {NotNull, INTEGER(10)} <br /> - * @param errorCount The value of the column 'ERROR_COUNT'. (basically NotNull if update: for the constraint) - */ - public void setErrorCount(final Integer errorCount) { - __modifiedProperties.addPropertyName("errorCount"); - _errorCount = errorCount; - } - - /** - * [get] LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'LAST_ACCESS_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getLastAccessTime() { - return _lastAccessTime; - } - - /** - * [set] LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param lastAccessTime The value of the column 'LAST_ACCESS_TIME'. (basically NotNull if update: for the constraint) - */ - public void setLastAccessTime(final java.sql.Timestamp lastAccessTime) { - __modifiedProperties.addPropertyName("lastAccessTime"); - _lastAccessTime = lastAccessTime; - } - - /** - * [get] CONFIG_ID: {IX, VARCHAR(100)} <br /> - * @return The value of the column 'CONFIG_ID'. (NullAllowed even if selected: for no constraint) - */ - public String getConfigId() { - return _configId; - } - - /** - * [set] CONFIG_ID: {IX, VARCHAR(100)} <br /> - * @param configId The value of the column 'CONFIG_ID'. (NullAllowed: null update allowed for no constraint) - */ - public void setConfigId(final String configId) { - __modifiedProperties.addPropertyName("configId"); - _configId = configId; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsFavoriteLog.java b/src/main/java/jp/sf/fess/db/bsentity/BsFavoriteLog.java deleted file mode 100644 index 1ef7a087d..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsFavoriteLog.java +++ /dev/null @@ -1,468 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.FavoriteLog; -import jp.sf.fess.db.exentity.UserInfo; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of FAVORITE_LOG as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, USER_ID, URL, CREATED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * USER_INFO - * - * [referrer table] - * - * - * [foreign property] - * userInfo - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * Long userId = entity.getUserId(); - * String url = entity.getUrl(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * entity.setId(id); - * entity.setUserId(userId); - * entity.setUrl(url); - * entity.setCreatedTime(createdTime); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFavoriteLog implements Entity, Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} */ - protected Long _userId; - - /** URL: {+UQ, NotNull, VARCHAR(4000)} */ - protected String _url; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "FAVORITE_LOG"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "favoriteLog"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * To be unique by the unique column. <br /> - * You can update the entity by the key when entity update (NOT batch update). - * @param userId : UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO. (NotNull) - * @param url : +UQ, NotNull, VARCHAR(4000). (NotNull) - */ - public void uniqueBy(final Long userId, final String url) { - __uniqueDrivenProperties.clear(); - __uniqueDrivenProperties.addPropertyName("userId"); - __uniqueDrivenProperties.addPropertyName("url"); - setUserId(userId); - setUrl(url); - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** USER_INFO by my USER_ID, named 'userInfo'. */ - protected UserInfo _userInfo; - - /** - * [get] USER_INFO by my USER_ID, named 'userInfo'. - * @return The entity of foreign property 'userInfo'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public UserInfo getUserInfo() { - return _userInfo; - } - - /** - * [set] USER_INFO by my USER_ID, named 'userInfo'. - * @param userInfo The entity of foreign property 'userInfo'. (NullAllowed) - */ - public void setUserInfo(final UserInfo userInfo) { - _userInfo = userInfo; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsFavoriteLog)) { - return false; - } - final BsFavoriteLog other = (BsFavoriteLog) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_userInfo != null) { - sb.append(li).append(xbRDS(_userInfo, "userInfo")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getUserId()); - sb.append(dm).append(getUrl()); - sb.append(dm).append(getCreatedTime()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_userInfo != null) { - sb.append(cm).append("userInfo"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public FavoriteLog clone() { - try { - return (FavoriteLog) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} <br /> - * @return The value of the column 'USER_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getUserId() { - return _userId; - } - - /** - * [set] USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} <br /> - * @param userId The value of the column 'USER_ID'. (basically NotNull if update: for the constraint) - */ - public void setUserId(final Long userId) { - __modifiedProperties.addPropertyName("userId"); - _userId = userId; - } - - /** - * [get] URL: {+UQ, NotNull, VARCHAR(4000)} <br /> - * @return The value of the column 'URL'. (basically NotNull if selected: for the constraint) - */ - public String getUrl() { - return _url; - } - - /** - * [set] URL: {+UQ, NotNull, VARCHAR(4000)} <br /> - * @param url The value of the column 'URL'. (basically NotNull if update: for the constraint) - */ - public void setUrl(final String url) { - __modifiedProperties.addPropertyName("url"); - _url = url; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsFileAuthentication.java b/src/main/java/jp/sf/fess/db/bsentity/BsFileAuthentication.java deleted file mode 100644 index 8f8a2167f..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsFileAuthentication.java +++ /dev/null @@ -1,710 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.FileAuthentication; -import jp.sf.fess.db.exentity.FileCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of FILE_AUTHENTICATION as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, HOSTNAME, PORT, PROTOCOL_SCHEME, USERNAME, PASSWORD, PARAMETERS, FILE_CRAWLING_CONFIG_ID, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * FILE_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * fileCrawlingConfig - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String hostname = entity.getHostname(); - * Integer port = entity.getPort(); - * String protocolScheme = entity.getProtocolScheme(); - * String username = entity.getUsername(); - * String password = entity.getPassword(); - * String parameters = entity.getParameters(); - * Long fileCrawlingConfigId = entity.getFileCrawlingConfigId(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setHostname(hostname); - * entity.setPort(port); - * entity.setProtocolScheme(protocolScheme); - * entity.setUsername(username); - * entity.setPassword(password); - * entity.setParameters(parameters); - * entity.setFileCrawlingConfigId(fileCrawlingConfigId); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFileAuthentication implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** HOSTNAME: {VARCHAR(255)} */ - protected String _hostname; - - /** PORT: {NotNull, INTEGER(10)} */ - protected Integer _port; - - /** PROTOCOL_SCHEME: {VARCHAR(10)} */ - protected String _protocolScheme; - - /** USERNAME: {NotNull, VARCHAR(100)} */ - protected String _username; - - /** PASSWORD: {VARCHAR(100)} */ - protected String _password; - - /** PARAMETERS: {VARCHAR(1000)} */ - protected String _parameters; - - /** FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} */ - protected Long _fileCrawlingConfigId; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "FILE_AUTHENTICATION"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "fileAuthentication"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** FILE_CRAWLING_CONFIG by my FILE_CRAWLING_CONFIG_ID, named 'fileCrawlingConfig'. */ - protected FileCrawlingConfig _fileCrawlingConfig; - - /** - * [get] FILE_CRAWLING_CONFIG by my FILE_CRAWLING_CONFIG_ID, named 'fileCrawlingConfig'. - * @return The entity of foreign property 'fileCrawlingConfig'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public FileCrawlingConfig getFileCrawlingConfig() { - return _fileCrawlingConfig; - } - - /** - * [set] FILE_CRAWLING_CONFIG by my FILE_CRAWLING_CONFIG_ID, named 'fileCrawlingConfig'. - * @param fileCrawlingConfig The entity of foreign property 'fileCrawlingConfig'. (NullAllowed) - */ - public void setFileCrawlingConfig( - final FileCrawlingConfig fileCrawlingConfig) { - _fileCrawlingConfig = fileCrawlingConfig; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsFileAuthentication)) { - return false; - } - final BsFileAuthentication other = (BsFileAuthentication) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_fileCrawlingConfig != null) { - sb.append(li).append( - xbRDS(_fileCrawlingConfig, "fileCrawlingConfig")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getHostname()); - sb.append(dm).append(getPort()); - sb.append(dm).append(getProtocolScheme()); - sb.append(dm).append(getUsername()); - sb.append(dm).append(getPassword()); - sb.append(dm).append(getParameters()); - sb.append(dm).append(getFileCrawlingConfigId()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_fileCrawlingConfig != null) { - sb.append(cm).append("fileCrawlingConfig"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public FileAuthentication clone() { - try { - return (FileAuthentication) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] HOSTNAME: {VARCHAR(255)} <br /> - * @return The value of the column 'HOSTNAME'. (NullAllowed even if selected: for no constraint) - */ - public String getHostname() { - return _hostname; - } - - /** - * [set] HOSTNAME: {VARCHAR(255)} <br /> - * @param hostname The value of the column 'HOSTNAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setHostname(final String hostname) { - __modifiedProperties.addPropertyName("hostname"); - _hostname = hostname; - } - - /** - * [get] PORT: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'PORT'. (basically NotNull if selected: for the constraint) - */ - public Integer getPort() { - return _port; - } - - /** - * [set] PORT: {NotNull, INTEGER(10)} <br /> - * @param port The value of the column 'PORT'. (basically NotNull if update: for the constraint) - */ - public void setPort(final Integer port) { - __modifiedProperties.addPropertyName("port"); - _port = port; - } - - /** - * [get] PROTOCOL_SCHEME: {VARCHAR(10)} <br /> - * @return The value of the column 'PROTOCOL_SCHEME'. (NullAllowed even if selected: for no constraint) - */ - public String getProtocolScheme() { - return _protocolScheme; - } - - /** - * [set] PROTOCOL_SCHEME: {VARCHAR(10)} <br /> - * @param protocolScheme The value of the column 'PROTOCOL_SCHEME'. (NullAllowed: null update allowed for no constraint) - */ - public void setProtocolScheme(final String protocolScheme) { - __modifiedProperties.addPropertyName("protocolScheme"); - _protocolScheme = protocolScheme; - } - - /** - * [get] USERNAME: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'USERNAME'. (basically NotNull if selected: for the constraint) - */ - public String getUsername() { - return _username; - } - - /** - * [set] USERNAME: {NotNull, VARCHAR(100)} <br /> - * @param username The value of the column 'USERNAME'. (basically NotNull if update: for the constraint) - */ - public void setUsername(final String username) { - __modifiedProperties.addPropertyName("username"); - _username = username; - } - - /** - * [get] PASSWORD: {VARCHAR(100)} <br /> - * @return The value of the column 'PASSWORD'. (NullAllowed even if selected: for no constraint) - */ - public String getPassword() { - return _password; - } - - /** - * [set] PASSWORD: {VARCHAR(100)} <br /> - * @param password The value of the column 'PASSWORD'. (NullAllowed: null update allowed for no constraint) - */ - public void setPassword(final String password) { - __modifiedProperties.addPropertyName("password"); - _password = password; - } - - /** - * [get] PARAMETERS: {VARCHAR(1000)} <br /> - * @return The value of the column 'PARAMETERS'. (NullAllowed even if selected: for no constraint) - */ - public String getParameters() { - return _parameters; - } - - /** - * [set] PARAMETERS: {VARCHAR(1000)} <br /> - * @param parameters The value of the column 'PARAMETERS'. (NullAllowed: null update allowed for no constraint) - */ - public void setParameters(final String parameters) { - __modifiedProperties.addPropertyName("parameters"); - _parameters = parameters; - } - - /** - * [get] FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} <br /> - * @return The value of the column 'FILE_CRAWLING_CONFIG_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getFileCrawlingConfigId() { - return _fileCrawlingConfigId; - } - - /** - * [set] FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} <br /> - * @param fileCrawlingConfigId The value of the column 'FILE_CRAWLING_CONFIG_ID'. (basically NotNull if update: for the constraint) - */ - public void setFileCrawlingConfigId(final Long fileCrawlingConfigId) { - __modifiedProperties.addPropertyName("fileCrawlingConfigId"); - _fileCrawlingConfigId = fileCrawlingConfigId; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsFileConfigToLabelTypeMapping.java b/src/main/java/jp/sf/fess/db/bsentity/BsFileConfigToLabelTypeMapping.java deleted file mode 100644 index 5c116753c..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsFileConfigToLabelTypeMapping.java +++ /dev/null @@ -1,460 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.FileConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.db.exentity.LabelType; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of FILE_CONFIG_TO_LABEL_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, FILE_CONFIG_ID, LABEL_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * FILE_CRAWLING_CONFIG, LABEL_TYPE - * - * [referrer table] - * - * - * [foreign property] - * fileCrawlingConfig, labelType - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * Long fileConfigId = entity.getFileConfigId(); - * Long labelTypeId = entity.getLabelTypeId(); - * entity.setId(id); - * entity.setFileConfigId(fileConfigId); - * entity.setLabelTypeId(labelTypeId); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFileConfigToLabelTypeMapping implements Entity, - Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} */ - protected Long _fileConfigId; - - /** LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} */ - protected Long _labelTypeId; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "FILE_CONFIG_TO_LABEL_TYPE_MAPPING"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "fileConfigToLabelTypeMapping"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. */ - protected FileCrawlingConfig _fileCrawlingConfig; - - /** - * [get] FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @return The entity of foreign property 'fileCrawlingConfig'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public FileCrawlingConfig getFileCrawlingConfig() { - return _fileCrawlingConfig; - } - - /** - * [set] FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @param fileCrawlingConfig The entity of foreign property 'fileCrawlingConfig'. (NullAllowed) - */ - public void setFileCrawlingConfig( - final FileCrawlingConfig fileCrawlingConfig) { - _fileCrawlingConfig = fileCrawlingConfig; - } - - /** LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. */ - protected LabelType _labelType; - - /** - * [get] LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The entity of foreign property 'labelType'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public LabelType getLabelType() { - return _labelType; - } - - /** - * [set] LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @param labelType The entity of foreign property 'labelType'. (NullAllowed) - */ - public void setLabelType(final LabelType labelType) { - _labelType = labelType; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsFileConfigToLabelTypeMapping)) { - return false; - } - final BsFileConfigToLabelTypeMapping other = (BsFileConfigToLabelTypeMapping) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_fileCrawlingConfig != null) { - sb.append(li).append( - xbRDS(_fileCrawlingConfig, "fileCrawlingConfig")); - } - if (_labelType != null) { - sb.append(li).append(xbRDS(_labelType, "labelType")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getFileConfigId()); - sb.append(dm).append(getLabelTypeId()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_fileCrawlingConfig != null) { - sb.append(cm).append("fileCrawlingConfig"); - } - if (_labelType != null) { - sb.append(cm).append("labelType"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public FileConfigToLabelTypeMapping clone() { - try { - return (FileConfigToLabelTypeMapping) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} <br /> - * @return The value of the column 'FILE_CONFIG_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getFileConfigId() { - return _fileConfigId; - } - - /** - * [set] FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} <br /> - * @param fileConfigId The value of the column 'FILE_CONFIG_ID'. (basically NotNull if update: for the constraint) - */ - public void setFileConfigId(final Long fileConfigId) { - __modifiedProperties.addPropertyName("fileConfigId"); - _fileConfigId = fileConfigId; - } - - /** - * [get] LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} <br /> - * @return The value of the column 'LABEL_TYPE_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getLabelTypeId() { - return _labelTypeId; - } - - /** - * [set] LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} <br /> - * @param labelTypeId The value of the column 'LABEL_TYPE_ID'. (basically NotNull if update: for the constraint) - */ - public void setLabelTypeId(final Long labelTypeId) { - __modifiedProperties.addPropertyName("labelTypeId"); - _labelTypeId = labelTypeId; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsFileConfigToRoleTypeMapping.java b/src/main/java/jp/sf/fess/db/bsentity/BsFileConfigToRoleTypeMapping.java deleted file mode 100644 index d2db22898..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsFileConfigToRoleTypeMapping.java +++ /dev/null @@ -1,460 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.FileConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.db.exentity.RoleType; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of FILE_CONFIG_TO_ROLE_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, FILE_CONFIG_ID, ROLE_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * FILE_CRAWLING_CONFIG, ROLE_TYPE - * - * [referrer table] - * - * - * [foreign property] - * fileCrawlingConfig, roleType - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * Long fileConfigId = entity.getFileConfigId(); - * Long roleTypeId = entity.getRoleTypeId(); - * entity.setId(id); - * entity.setFileConfigId(fileConfigId); - * entity.setRoleTypeId(roleTypeId); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFileConfigToRoleTypeMapping implements Entity, - Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} */ - protected Long _fileConfigId; - - /** ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} */ - protected Long _roleTypeId; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "FILE_CONFIG_TO_ROLE_TYPE_MAPPING"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "fileConfigToRoleTypeMapping"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. */ - protected FileCrawlingConfig _fileCrawlingConfig; - - /** - * [get] FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @return The entity of foreign property 'fileCrawlingConfig'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public FileCrawlingConfig getFileCrawlingConfig() { - return _fileCrawlingConfig; - } - - /** - * [set] FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @param fileCrawlingConfig The entity of foreign property 'fileCrawlingConfig'. (NullAllowed) - */ - public void setFileCrawlingConfig( - final FileCrawlingConfig fileCrawlingConfig) { - _fileCrawlingConfig = fileCrawlingConfig; - } - - /** ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. */ - protected RoleType _roleType; - - /** - * [get] ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The entity of foreign property 'roleType'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public RoleType getRoleType() { - return _roleType; - } - - /** - * [set] ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @param roleType The entity of foreign property 'roleType'. (NullAllowed) - */ - public void setRoleType(final RoleType roleType) { - _roleType = roleType; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsFileConfigToRoleTypeMapping)) { - return false; - } - final BsFileConfigToRoleTypeMapping other = (BsFileConfigToRoleTypeMapping) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_fileCrawlingConfig != null) { - sb.append(li).append( - xbRDS(_fileCrawlingConfig, "fileCrawlingConfig")); - } - if (_roleType != null) { - sb.append(li).append(xbRDS(_roleType, "roleType")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getFileConfigId()); - sb.append(dm).append(getRoleTypeId()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_fileCrawlingConfig != null) { - sb.append(cm).append("fileCrawlingConfig"); - } - if (_roleType != null) { - sb.append(cm).append("roleType"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public FileConfigToRoleTypeMapping clone() { - try { - return (FileConfigToRoleTypeMapping) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} <br /> - * @return The value of the column 'FILE_CONFIG_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getFileConfigId() { - return _fileConfigId; - } - - /** - * [set] FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} <br /> - * @param fileConfigId The value of the column 'FILE_CONFIG_ID'. (basically NotNull if update: for the constraint) - */ - public void setFileConfigId(final Long fileConfigId) { - __modifiedProperties.addPropertyName("fileConfigId"); - _fileConfigId = fileConfigId; - } - - /** - * [get] ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} <br /> - * @return The value of the column 'ROLE_TYPE_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getRoleTypeId() { - return _roleTypeId; - } - - /** - * [set] ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} <br /> - * @param roleTypeId The value of the column 'ROLE_TYPE_ID'. (basically NotNull if update: for the constraint) - */ - public void setRoleTypeId(final Long roleTypeId) { - __modifiedProperties.addPropertyName("roleTypeId"); - _roleTypeId = roleTypeId; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsFileCrawlingConfig.java b/src/main/java/jp/sf/fess/db/bsentity/BsFileCrawlingConfig.java deleted file mode 100644 index c8b07faa8..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsFileCrawlingConfig.java +++ /dev/null @@ -1,950 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.FileAuthentication; -import jp.sf.fess.db.exentity.FileConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.FileConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of FILE_CRAWLING_CONFIG as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, NAME, PATHS, INCLUDED_PATHS, EXCLUDED_PATHS, INCLUDED_DOC_PATHS, EXCLUDED_DOC_PATHS, CONFIG_PARAMETER, DEPTH, MAX_ACCESS_COUNT, NUM_OF_THREAD, INTERVAL_TIME, BOOST, AVAILABLE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * FILE_AUTHENTICATION, FILE_CONFIG_TO_LABEL_TYPE_MAPPING, FILE_CONFIG_TO_ROLE_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * fileAuthenticationList, fileConfigToLabelTypeMappingList, fileConfigToRoleTypeMappingList - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String name = entity.getName(); - * String paths = entity.getPaths(); - * String includedPaths = entity.getIncludedPaths(); - * String excludedPaths = entity.getExcludedPaths(); - * String includedDocPaths = entity.getIncludedDocPaths(); - * String excludedDocPaths = entity.getExcludedDocPaths(); - * String configParameter = entity.getConfigParameter(); - * Integer depth = entity.getDepth(); - * Long maxAccessCount = entity.getMaxAccessCount(); - * Integer numOfThread = entity.getNumOfThread(); - * Integer intervalTime = entity.getIntervalTime(); - * java.math.BigDecimal boost = entity.getBoost(); - * String available = entity.getAvailable(); - * Integer sortOrder = entity.getSortOrder(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setName(name); - * entity.setPaths(paths); - * entity.setIncludedPaths(includedPaths); - * entity.setExcludedPaths(excludedPaths); - * entity.setIncludedDocPaths(includedDocPaths); - * entity.setExcludedDocPaths(excludedDocPaths); - * entity.setConfigParameter(configParameter); - * entity.setDepth(depth); - * entity.setMaxAccessCount(maxAccessCount); - * entity.setNumOfThread(numOfThread); - * entity.setIntervalTime(intervalTime); - * entity.setBoost(boost); - * entity.setAvailable(available); - * entity.setSortOrder(sortOrder); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFileCrawlingConfig implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** NAME: {NotNull, VARCHAR(200)} */ - protected String _name; - - /** PATHS: {NotNull, VARCHAR(4000)} */ - protected String _paths; - - /** INCLUDED_PATHS: {VARCHAR(4000)} */ - protected String _includedPaths; - - /** EXCLUDED_PATHS: {VARCHAR(4000)} */ - protected String _excludedPaths; - - /** INCLUDED_DOC_PATHS: {VARCHAR(4000)} */ - protected String _includedDocPaths; - - /** EXCLUDED_DOC_PATHS: {VARCHAR(4000)} */ - protected String _excludedDocPaths; - - /** CONFIG_PARAMETER: {VARCHAR(4000)} */ - protected String _configParameter; - - /** DEPTH: {INTEGER(10)} */ - protected Integer _depth; - - /** MAX_ACCESS_COUNT: {BIGINT(19)} */ - protected Long _maxAccessCount; - - /** NUM_OF_THREAD: {NotNull, INTEGER(10)} */ - protected Integer _numOfThread; - - /** INTERVAL_TIME: {NotNull, INTEGER(10)} */ - protected Integer _intervalTime; - - /** BOOST: {NotNull, DOUBLE(17)} */ - protected java.math.BigDecimal _boost; - - /** AVAILABLE: {NotNull, VARCHAR(1)} */ - protected String _available; - - /** SORT_ORDER: {NotNull, INTEGER(10)} */ - protected Integer _sortOrder; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "FILE_CRAWLING_CONFIG"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "fileCrawlingConfig"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - /** FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationList'. */ - protected List<FileAuthentication> _fileAuthenticationList; - - /** - * [get] FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationList'. - * @return The entity list of referrer property 'fileAuthenticationList'. (NotNull: even if no loading, returns empty list) - */ - public List<FileAuthentication> getFileAuthenticationList() { - if (_fileAuthenticationList == null) { - _fileAuthenticationList = newReferrerList(); - } - return _fileAuthenticationList; - } - - /** - * [set] FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationList'. - * @param fileAuthenticationList The entity list of referrer property 'fileAuthenticationList'. (NullAllowed) - */ - public void setFileAuthenticationList( - final List<FileAuthentication> fileAuthenticationList) { - _fileAuthenticationList = fileAuthenticationList; - } - - /** FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingList'. */ - protected List<FileConfigToLabelTypeMapping> _fileConfigToLabelTypeMappingList; - - /** - * [get] FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingList'. - * @return The entity list of referrer property 'fileConfigToLabelTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<FileConfigToLabelTypeMapping> getFileConfigToLabelTypeMappingList() { - if (_fileConfigToLabelTypeMappingList == null) { - _fileConfigToLabelTypeMappingList = newReferrerList(); - } - return _fileConfigToLabelTypeMappingList; - } - - /** - * [set] FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingList'. - * @param fileConfigToLabelTypeMappingList The entity list of referrer property 'fileConfigToLabelTypeMappingList'. (NullAllowed) - */ - public void setFileConfigToLabelTypeMappingList( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList) { - _fileConfigToLabelTypeMappingList = fileConfigToLabelTypeMappingList; - } - - /** FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingList'. */ - protected List<FileConfigToRoleTypeMapping> _fileConfigToRoleTypeMappingList; - - /** - * [get] FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingList'. - * @return The entity list of referrer property 'fileConfigToRoleTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<FileConfigToRoleTypeMapping> getFileConfigToRoleTypeMappingList() { - if (_fileConfigToRoleTypeMappingList == null) { - _fileConfigToRoleTypeMappingList = newReferrerList(); - } - return _fileConfigToRoleTypeMappingList; - } - - /** - * [set] FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingList'. - * @param fileConfigToRoleTypeMappingList The entity list of referrer property 'fileConfigToRoleTypeMappingList'. (NullAllowed) - */ - public void setFileConfigToRoleTypeMappingList( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList) { - _fileConfigToRoleTypeMappingList = fileConfigToRoleTypeMappingList; - } - - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsFileCrawlingConfig)) { - return false; - } - final BsFileCrawlingConfig other = (BsFileCrawlingConfig) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_fileAuthenticationList != null) { - for (final Entity et : _fileAuthenticationList) { - if (et != null) { - sb.append(li).append(xbRDS(et, "fileAuthenticationList")); - } - } - } - if (_fileConfigToLabelTypeMappingList != null) { - for (final Entity et : _fileConfigToLabelTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "fileConfigToLabelTypeMappingList")); - } - } - } - if (_fileConfigToRoleTypeMappingList != null) { - for (final Entity et : _fileConfigToRoleTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "fileConfigToRoleTypeMappingList")); - } - } - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getName()); - sb.append(dm).append(getPaths()); - sb.append(dm).append(getIncludedPaths()); - sb.append(dm).append(getExcludedPaths()); - sb.append(dm).append(getIncludedDocPaths()); - sb.append(dm).append(getExcludedDocPaths()); - sb.append(dm).append(getConfigParameter()); - sb.append(dm).append(getDepth()); - sb.append(dm).append(getMaxAccessCount()); - sb.append(dm).append(getNumOfThread()); - sb.append(dm).append(getIntervalTime()); - sb.append(dm).append(getBoost()); - sb.append(dm).append(getAvailable()); - sb.append(dm).append(getSortOrder()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_fileAuthenticationList != null - && !_fileAuthenticationList.isEmpty()) { - sb.append(cm).append("fileAuthenticationList"); - } - if (_fileConfigToLabelTypeMappingList != null - && !_fileConfigToLabelTypeMappingList.isEmpty()) { - sb.append(cm).append("fileConfigToLabelTypeMappingList"); - } - if (_fileConfigToRoleTypeMappingList != null - && !_fileConfigToRoleTypeMappingList.isEmpty()) { - sb.append(cm).append("fileConfigToRoleTypeMappingList"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public FileCrawlingConfig clone() { - try { - return (FileCrawlingConfig) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] NAME: {NotNull, VARCHAR(200)} <br /> - * @return The value of the column 'NAME'. (basically NotNull if selected: for the constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {NotNull, VARCHAR(200)} <br /> - * @param name The value of the column 'NAME'. (basically NotNull if update: for the constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] PATHS: {NotNull, VARCHAR(4000)} <br /> - * @return The value of the column 'PATHS'. (basically NotNull if selected: for the constraint) - */ - public String getPaths() { - return _paths; - } - - /** - * [set] PATHS: {NotNull, VARCHAR(4000)} <br /> - * @param paths The value of the column 'PATHS'. (basically NotNull if update: for the constraint) - */ - public void setPaths(final String paths) { - __modifiedProperties.addPropertyName("paths"); - _paths = paths; - } - - /** - * [get] INCLUDED_PATHS: {VARCHAR(4000)} <br /> - * @return The value of the column 'INCLUDED_PATHS'. (NullAllowed even if selected: for no constraint) - */ - public String getIncludedPaths() { - return _includedPaths; - } - - /** - * [set] INCLUDED_PATHS: {VARCHAR(4000)} <br /> - * @param includedPaths The value of the column 'INCLUDED_PATHS'. (NullAllowed: null update allowed for no constraint) - */ - public void setIncludedPaths(final String includedPaths) { - __modifiedProperties.addPropertyName("includedPaths"); - _includedPaths = includedPaths; - } - - /** - * [get] EXCLUDED_PATHS: {VARCHAR(4000)} <br /> - * @return The value of the column 'EXCLUDED_PATHS'. (NullAllowed even if selected: for no constraint) - */ - public String getExcludedPaths() { - return _excludedPaths; - } - - /** - * [set] EXCLUDED_PATHS: {VARCHAR(4000)} <br /> - * @param excludedPaths The value of the column 'EXCLUDED_PATHS'. (NullAllowed: null update allowed for no constraint) - */ - public void setExcludedPaths(final String excludedPaths) { - __modifiedProperties.addPropertyName("excludedPaths"); - _excludedPaths = excludedPaths; - } - - /** - * [get] INCLUDED_DOC_PATHS: {VARCHAR(4000)} <br /> - * @return The value of the column 'INCLUDED_DOC_PATHS'. (NullAllowed even if selected: for no constraint) - */ - public String getIncludedDocPaths() { - return _includedDocPaths; - } - - /** - * [set] INCLUDED_DOC_PATHS: {VARCHAR(4000)} <br /> - * @param includedDocPaths The value of the column 'INCLUDED_DOC_PATHS'. (NullAllowed: null update allowed for no constraint) - */ - public void setIncludedDocPaths(final String includedDocPaths) { - __modifiedProperties.addPropertyName("includedDocPaths"); - _includedDocPaths = includedDocPaths; - } - - /** - * [get] EXCLUDED_DOC_PATHS: {VARCHAR(4000)} <br /> - * @return The value of the column 'EXCLUDED_DOC_PATHS'. (NullAllowed even if selected: for no constraint) - */ - public String getExcludedDocPaths() { - return _excludedDocPaths; - } - - /** - * [set] EXCLUDED_DOC_PATHS: {VARCHAR(4000)} <br /> - * @param excludedDocPaths The value of the column 'EXCLUDED_DOC_PATHS'. (NullAllowed: null update allowed for no constraint) - */ - public void setExcludedDocPaths(final String excludedDocPaths) { - __modifiedProperties.addPropertyName("excludedDocPaths"); - _excludedDocPaths = excludedDocPaths; - } - - /** - * [get] CONFIG_PARAMETER: {VARCHAR(4000)} <br /> - * @return The value of the column 'CONFIG_PARAMETER'. (NullAllowed even if selected: for no constraint) - */ - public String getConfigParameter() { - return _configParameter; - } - - /** - * [set] CONFIG_PARAMETER: {VARCHAR(4000)} <br /> - * @param configParameter The value of the column 'CONFIG_PARAMETER'. (NullAllowed: null update allowed for no constraint) - */ - public void setConfigParameter(final String configParameter) { - __modifiedProperties.addPropertyName("configParameter"); - _configParameter = configParameter; - } - - /** - * [get] DEPTH: {INTEGER(10)} <br /> - * @return The value of the column 'DEPTH'. (NullAllowed even if selected: for no constraint) - */ - public Integer getDepth() { - return _depth; - } - - /** - * [set] DEPTH: {INTEGER(10)} <br /> - * @param depth The value of the column 'DEPTH'. (NullAllowed: null update allowed for no constraint) - */ - public void setDepth(final Integer depth) { - __modifiedProperties.addPropertyName("depth"); - _depth = depth; - } - - /** - * [get] MAX_ACCESS_COUNT: {BIGINT(19)} <br /> - * @return The value of the column 'MAX_ACCESS_COUNT'. (NullAllowed even if selected: for no constraint) - */ - public Long getMaxAccessCount() { - return _maxAccessCount; - } - - /** - * [set] MAX_ACCESS_COUNT: {BIGINT(19)} <br /> - * @param maxAccessCount The value of the column 'MAX_ACCESS_COUNT'. (NullAllowed: null update allowed for no constraint) - */ - public void setMaxAccessCount(final Long maxAccessCount) { - __modifiedProperties.addPropertyName("maxAccessCount"); - _maxAccessCount = maxAccessCount; - } - - /** - * [get] NUM_OF_THREAD: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'NUM_OF_THREAD'. (basically NotNull if selected: for the constraint) - */ - public Integer getNumOfThread() { - return _numOfThread; - } - - /** - * [set] NUM_OF_THREAD: {NotNull, INTEGER(10)} <br /> - * @param numOfThread The value of the column 'NUM_OF_THREAD'. (basically NotNull if update: for the constraint) - */ - public void setNumOfThread(final Integer numOfThread) { - __modifiedProperties.addPropertyName("numOfThread"); - _numOfThread = numOfThread; - } - - /** - * [get] INTERVAL_TIME: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'INTERVAL_TIME'. (basically NotNull if selected: for the constraint) - */ - public Integer getIntervalTime() { - return _intervalTime; - } - - /** - * [set] INTERVAL_TIME: {NotNull, INTEGER(10)} <br /> - * @param intervalTime The value of the column 'INTERVAL_TIME'. (basically NotNull if update: for the constraint) - */ - public void setIntervalTime(final Integer intervalTime) { - __modifiedProperties.addPropertyName("intervalTime"); - _intervalTime = intervalTime; - } - - /** - * [get] BOOST: {NotNull, DOUBLE(17)} <br /> - * @return The value of the column 'BOOST'. (basically NotNull if selected: for the constraint) - */ - public java.math.BigDecimal getBoost() { - return _boost; - } - - /** - * [set] BOOST: {NotNull, DOUBLE(17)} <br /> - * @param boost The value of the column 'BOOST'. (basically NotNull if update: for the constraint) - */ - public void setBoost(final java.math.BigDecimal boost) { - __modifiedProperties.addPropertyName("boost"); - _boost = boost; - } - - /** - * [get] AVAILABLE: {NotNull, VARCHAR(1)} <br /> - * @return The value of the column 'AVAILABLE'. (basically NotNull if selected: for the constraint) - */ - public String getAvailable() { - return _available; - } - - /** - * [set] AVAILABLE: {NotNull, VARCHAR(1)} <br /> - * @param available The value of the column 'AVAILABLE'. (basically NotNull if update: for the constraint) - */ - public void setAvailable(final String available) { - __modifiedProperties.addPropertyName("available"); - _available = available; - } - - /** - * [get] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'SORT_ORDER'. (basically NotNull if selected: for the constraint) - */ - public Integer getSortOrder() { - return _sortOrder; - } - - /** - * [set] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @param sortOrder The value of the column 'SORT_ORDER'. (basically NotNull if update: for the constraint) - */ - public void setSortOrder(final Integer sortOrder) { - __modifiedProperties.addPropertyName("sortOrder"); - _sortOrder = sortOrder; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsJobLog.java b/src/main/java/jp/sf/fess/db/bsentity/BsJobLog.java deleted file mode 100644 index daf57bbe3..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsJobLog.java +++ /dev/null @@ -1,533 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.JobLog; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of JOB_LOG as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, JOB_NAME, JOB_STATUS, TARGET, SCRIPT_TYPE, SCRIPT_DATA, SCRIPT_RESULT, START_TIME, END_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String jobName = entity.getJobName(); - * String jobStatus = entity.getJobStatus(); - * String target = entity.getTarget(); - * String scriptType = entity.getScriptType(); - * String scriptData = entity.getScriptData(); - * String scriptResult = entity.getScriptResult(); - * java.sql.Timestamp startTime = entity.getStartTime(); - * java.sql.Timestamp endTime = entity.getEndTime(); - * entity.setId(id); - * entity.setJobName(jobName); - * entity.setJobStatus(jobStatus); - * entity.setTarget(target); - * entity.setScriptType(scriptType); - * entity.setScriptData(scriptData); - * entity.setScriptResult(scriptResult); - * entity.setStartTime(startTime); - * entity.setEndTime(endTime); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsJobLog implements Entity, Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** JOB_NAME: {NotNull, VARCHAR(100)} */ - protected String _jobName; - - /** JOB_STATUS: {NotNull, VARCHAR(10)} */ - protected String _jobStatus; - - /** TARGET: {NotNull, VARCHAR(100)} */ - protected String _target; - - /** SCRIPT_TYPE: {NotNull, VARCHAR(100)} */ - protected String _scriptType; - - /** SCRIPT_DATA: {VARCHAR(4000)} */ - protected String _scriptData; - - /** SCRIPT_RESULT: {VARCHAR(4000)} */ - protected String _scriptResult; - - /** START_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _startTime; - - /** END_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _endTime; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "JOB_LOG"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "jobLog"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsJobLog)) { - return false; - } - final BsJobLog other = (BsJobLog) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getJobName()); - sb.append(dm).append(getJobStatus()); - sb.append(dm).append(getTarget()); - sb.append(dm).append(getScriptType()); - sb.append(dm).append(getScriptData()); - sb.append(dm).append(getScriptResult()); - sb.append(dm).append(getStartTime()); - sb.append(dm).append(getEndTime()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public JobLog clone() { - try { - return (JobLog) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] JOB_NAME: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'JOB_NAME'. (basically NotNull if selected: for the constraint) - */ - public String getJobName() { - return _jobName; - } - - /** - * [set] JOB_NAME: {NotNull, VARCHAR(100)} <br /> - * @param jobName The value of the column 'JOB_NAME'. (basically NotNull if update: for the constraint) - */ - public void setJobName(final String jobName) { - __modifiedProperties.addPropertyName("jobName"); - _jobName = jobName; - } - - /** - * [get] JOB_STATUS: {NotNull, VARCHAR(10)} <br /> - * @return The value of the column 'JOB_STATUS'. (basically NotNull if selected: for the constraint) - */ - public String getJobStatus() { - return _jobStatus; - } - - /** - * [set] JOB_STATUS: {NotNull, VARCHAR(10)} <br /> - * @param jobStatus The value of the column 'JOB_STATUS'. (basically NotNull if update: for the constraint) - */ - public void setJobStatus(final String jobStatus) { - __modifiedProperties.addPropertyName("jobStatus"); - _jobStatus = jobStatus; - } - - /** - * [get] TARGET: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'TARGET'. (basically NotNull if selected: for the constraint) - */ - public String getTarget() { - return _target; - } - - /** - * [set] TARGET: {NotNull, VARCHAR(100)} <br /> - * @param target The value of the column 'TARGET'. (basically NotNull if update: for the constraint) - */ - public void setTarget(final String target) { - __modifiedProperties.addPropertyName("target"); - _target = target; - } - - /** - * [get] SCRIPT_TYPE: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'SCRIPT_TYPE'. (basically NotNull if selected: for the constraint) - */ - public String getScriptType() { - return _scriptType; - } - - /** - * [set] SCRIPT_TYPE: {NotNull, VARCHAR(100)} <br /> - * @param scriptType The value of the column 'SCRIPT_TYPE'. (basically NotNull if update: for the constraint) - */ - public void setScriptType(final String scriptType) { - __modifiedProperties.addPropertyName("scriptType"); - _scriptType = scriptType; - } - - /** - * [get] SCRIPT_DATA: {VARCHAR(4000)} <br /> - * @return The value of the column 'SCRIPT_DATA'. (NullAllowed even if selected: for no constraint) - */ - public String getScriptData() { - return _scriptData; - } - - /** - * [set] SCRIPT_DATA: {VARCHAR(4000)} <br /> - * @param scriptData The value of the column 'SCRIPT_DATA'. (NullAllowed: null update allowed for no constraint) - */ - public void setScriptData(final String scriptData) { - __modifiedProperties.addPropertyName("scriptData"); - _scriptData = scriptData; - } - - /** - * [get] SCRIPT_RESULT: {VARCHAR(4000)} <br /> - * @return The value of the column 'SCRIPT_RESULT'. (NullAllowed even if selected: for no constraint) - */ - public String getScriptResult() { - return _scriptResult; - } - - /** - * [set] SCRIPT_RESULT: {VARCHAR(4000)} <br /> - * @param scriptResult The value of the column 'SCRIPT_RESULT'. (NullAllowed: null update allowed for no constraint) - */ - public void setScriptResult(final String scriptResult) { - __modifiedProperties.addPropertyName("scriptResult"); - _scriptResult = scriptResult; - } - - /** - * [get] START_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'START_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getStartTime() { - return _startTime; - } - - /** - * [set] START_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param startTime The value of the column 'START_TIME'. (basically NotNull if update: for the constraint) - */ - public void setStartTime(final java.sql.Timestamp startTime) { - __modifiedProperties.addPropertyName("startTime"); - _startTime = startTime; - } - - /** - * [get] END_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'END_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getEndTime() { - return _endTime; - } - - /** - * [set] END_TIME: {TIMESTAMP(23, 10)} <br /> - * @param endTime The value of the column 'END_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setEndTime(final java.sql.Timestamp endTime) { - __modifiedProperties.addPropertyName("endTime"); - _endTime = endTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsKeyMatch.java b/src/main/java/jp/sf/fess/db/bsentity/BsKeyMatch.java deleted file mode 100644 index 2fc7192a3..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsKeyMatch.java +++ /dev/null @@ -1,602 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.KeyMatch; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of KEY_MATCH as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, TERM, QUERY, MAX_SIZE, BOOST, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String term = entity.getTerm(); - * String query = entity.getQuery(); - * Integer maxSize = entity.getMaxSize(); - * java.math.BigDecimal boost = entity.getBoost(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setTerm(term); - * entity.setQuery(query); - * entity.setMaxSize(maxSize); - * entity.setBoost(boost); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsKeyMatch implements Entity, Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** TERM: {NotNull, VARCHAR(200)} */ - protected String _term; - - /** QUERY: {NotNull, VARCHAR(4000)} */ - protected String _query; - - /** MAX_SIZE: {NotNull, INTEGER(10)} */ - protected Integer _maxSize; - - /** BOOST: {NotNull, DOUBLE(17)} */ - protected java.math.BigDecimal _boost; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "KEY_MATCH"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "keyMatch"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsKeyMatch)) { - return false; - } - final BsKeyMatch other = (BsKeyMatch) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getTerm()); - sb.append(dm).append(getQuery()); - sb.append(dm).append(getMaxSize()); - sb.append(dm).append(getBoost()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public KeyMatch clone() { - try { - return (KeyMatch) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] TERM: {NotNull, VARCHAR(200)} <br /> - * @return The value of the column 'TERM'. (basically NotNull if selected: for the constraint) - */ - public String getTerm() { - return _term; - } - - /** - * [set] TERM: {NotNull, VARCHAR(200)} <br /> - * @param term The value of the column 'TERM'. (basically NotNull if update: for the constraint) - */ - public void setTerm(final String term) { - __modifiedProperties.addPropertyName("term"); - _term = term; - } - - /** - * [get] QUERY: {NotNull, VARCHAR(4000)} <br /> - * @return The value of the column 'QUERY'. (basically NotNull if selected: for the constraint) - */ - public String getQuery() { - return _query; - } - - /** - * [set] QUERY: {NotNull, VARCHAR(4000)} <br /> - * @param query The value of the column 'QUERY'. (basically NotNull if update: for the constraint) - */ - public void setQuery(final String query) { - __modifiedProperties.addPropertyName("query"); - _query = query; - } - - /** - * [get] MAX_SIZE: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'MAX_SIZE'. (basically NotNull if selected: for the constraint) - */ - public Integer getMaxSize() { - return _maxSize; - } - - /** - * [set] MAX_SIZE: {NotNull, INTEGER(10)} <br /> - * @param maxSize The value of the column 'MAX_SIZE'. (basically NotNull if update: for the constraint) - */ - public void setMaxSize(final Integer maxSize) { - __modifiedProperties.addPropertyName("maxSize"); - _maxSize = maxSize; - } - - /** - * [get] BOOST: {NotNull, DOUBLE(17)} <br /> - * @return The value of the column 'BOOST'. (basically NotNull if selected: for the constraint) - */ - public java.math.BigDecimal getBoost() { - return _boost; - } - - /** - * [set] BOOST: {NotNull, DOUBLE(17)} <br /> - * @param boost The value of the column 'BOOST'. (basically NotNull if update: for the constraint) - */ - public void setBoost(final java.math.BigDecimal boost) { - __modifiedProperties.addPropertyName("boost"); - _boost = boost; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsLabelType.java b/src/main/java/jp/sf/fess/db/bsentity/BsLabelType.java deleted file mode 100644 index f048adc14..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsLabelType.java +++ /dev/null @@ -1,779 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.DataConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.FileConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping; -import jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of LABEL_TYPE as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, NAME, VALUE, INCLUDED_PATHS, EXCLUDED_PATHS, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING, FILE_CONFIG_TO_LABEL_TYPE_MAPPING, LABEL_TYPE_TO_ROLE_TYPE_MAPPING, WEB_CONFIG_TO_LABEL_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * dataConfigToLabelTypeMappingList, fileConfigToLabelTypeMappingList, labelTypeToRoleTypeMappingList, webConfigToLabelTypeMappingList - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String name = entity.getName(); - * String value = entity.getValue(); - * String includedPaths = entity.getIncludedPaths(); - * String excludedPaths = entity.getExcludedPaths(); - * Integer sortOrder = entity.getSortOrder(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setName(name); - * entity.setValue(value); - * entity.setIncludedPaths(includedPaths); - * entity.setExcludedPaths(excludedPaths); - * entity.setSortOrder(sortOrder); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsLabelType implements Entity, Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** NAME: {NotNull, VARCHAR(100)} */ - protected String _name; - - /** VALUE: {NotNull, VARCHAR(20)} */ - protected String _value; - - /** INCLUDED_PATHS: {VARCHAR(4000)} */ - protected String _includedPaths; - - /** EXCLUDED_PATHS: {VARCHAR(4000)} */ - protected String _excludedPaths; - - /** SORT_ORDER: {NotNull, INTEGER(10)} */ - protected Integer _sortOrder; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "LABEL_TYPE"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "labelType"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - /** DATA_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'dataConfigToLabelTypeMappingList'. */ - protected List<DataConfigToLabelTypeMapping> _dataConfigToLabelTypeMappingList; - - /** - * [get] DATA_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'dataConfigToLabelTypeMappingList'. - * @return The entity list of referrer property 'dataConfigToLabelTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<DataConfigToLabelTypeMapping> getDataConfigToLabelTypeMappingList() { - if (_dataConfigToLabelTypeMappingList == null) { - _dataConfigToLabelTypeMappingList = newReferrerList(); - } - return _dataConfigToLabelTypeMappingList; - } - - /** - * [set] DATA_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'dataConfigToLabelTypeMappingList'. - * @param dataConfigToLabelTypeMappingList The entity list of referrer property 'dataConfigToLabelTypeMappingList'. (NullAllowed) - */ - public void setDataConfigToLabelTypeMappingList( - final List<DataConfigToLabelTypeMapping> dataConfigToLabelTypeMappingList) { - _dataConfigToLabelTypeMappingList = dataConfigToLabelTypeMappingList; - } - - /** FILE_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'fileConfigToLabelTypeMappingList'. */ - protected List<FileConfigToLabelTypeMapping> _fileConfigToLabelTypeMappingList; - - /** - * [get] FILE_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'fileConfigToLabelTypeMappingList'. - * @return The entity list of referrer property 'fileConfigToLabelTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<FileConfigToLabelTypeMapping> getFileConfigToLabelTypeMappingList() { - if (_fileConfigToLabelTypeMappingList == null) { - _fileConfigToLabelTypeMappingList = newReferrerList(); - } - return _fileConfigToLabelTypeMappingList; - } - - /** - * [set] FILE_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'fileConfigToLabelTypeMappingList'. - * @param fileConfigToLabelTypeMappingList The entity list of referrer property 'fileConfigToLabelTypeMappingList'. (NullAllowed) - */ - public void setFileConfigToLabelTypeMappingList( - final List<FileConfigToLabelTypeMapping> fileConfigToLabelTypeMappingList) { - _fileConfigToLabelTypeMappingList = fileConfigToLabelTypeMappingList; - } - - /** LABEL_TYPE_TO_ROLE_TYPE_MAPPING by LABEL_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. */ - protected List<LabelTypeToRoleTypeMapping> _labelTypeToRoleTypeMappingList; - - /** - * [get] LABEL_TYPE_TO_ROLE_TYPE_MAPPING by LABEL_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. - * @return The entity list of referrer property 'labelTypeToRoleTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<LabelTypeToRoleTypeMapping> getLabelTypeToRoleTypeMappingList() { - if (_labelTypeToRoleTypeMappingList == null) { - _labelTypeToRoleTypeMappingList = newReferrerList(); - } - return _labelTypeToRoleTypeMappingList; - } - - /** - * [set] LABEL_TYPE_TO_ROLE_TYPE_MAPPING by LABEL_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. - * @param labelTypeToRoleTypeMappingList The entity list of referrer property 'labelTypeToRoleTypeMappingList'. (NullAllowed) - */ - public void setLabelTypeToRoleTypeMappingList( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList) { - _labelTypeToRoleTypeMappingList = labelTypeToRoleTypeMappingList; - } - - /** WEB_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'webConfigToLabelTypeMappingList'. */ - protected List<WebConfigToLabelTypeMapping> _webConfigToLabelTypeMappingList; - - /** - * [get] WEB_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'webConfigToLabelTypeMappingList'. - * @return The entity list of referrer property 'webConfigToLabelTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<WebConfigToLabelTypeMapping> getWebConfigToLabelTypeMappingList() { - if (_webConfigToLabelTypeMappingList == null) { - _webConfigToLabelTypeMappingList = newReferrerList(); - } - return _webConfigToLabelTypeMappingList; - } - - /** - * [set] WEB_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'webConfigToLabelTypeMappingList'. - * @param webConfigToLabelTypeMappingList The entity list of referrer property 'webConfigToLabelTypeMappingList'. (NullAllowed) - */ - public void setWebConfigToLabelTypeMappingList( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList) { - _webConfigToLabelTypeMappingList = webConfigToLabelTypeMappingList; - } - - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsLabelType)) { - return false; - } - final BsLabelType other = (BsLabelType) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_dataConfigToLabelTypeMappingList != null) { - for (final Entity et : _dataConfigToLabelTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "dataConfigToLabelTypeMappingList")); - } - } - } - if (_fileConfigToLabelTypeMappingList != null) { - for (final Entity et : _fileConfigToLabelTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "fileConfigToLabelTypeMappingList")); - } - } - } - if (_labelTypeToRoleTypeMappingList != null) { - for (final Entity et : _labelTypeToRoleTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "labelTypeToRoleTypeMappingList")); - } - } - } - if (_webConfigToLabelTypeMappingList != null) { - for (final Entity et : _webConfigToLabelTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "webConfigToLabelTypeMappingList")); - } - } - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getName()); - sb.append(dm).append(getValue()); - sb.append(dm).append(getIncludedPaths()); - sb.append(dm).append(getExcludedPaths()); - sb.append(dm).append(getSortOrder()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_dataConfigToLabelTypeMappingList != null - && !_dataConfigToLabelTypeMappingList.isEmpty()) { - sb.append(cm).append("dataConfigToLabelTypeMappingList"); - } - if (_fileConfigToLabelTypeMappingList != null - && !_fileConfigToLabelTypeMappingList.isEmpty()) { - sb.append(cm).append("fileConfigToLabelTypeMappingList"); - } - if (_labelTypeToRoleTypeMappingList != null - && !_labelTypeToRoleTypeMappingList.isEmpty()) { - sb.append(cm).append("labelTypeToRoleTypeMappingList"); - } - if (_webConfigToLabelTypeMappingList != null - && !_webConfigToLabelTypeMappingList.isEmpty()) { - sb.append(cm).append("webConfigToLabelTypeMappingList"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public LabelType clone() { - try { - return (LabelType) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] NAME: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'NAME'. (basically NotNull if selected: for the constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {NotNull, VARCHAR(100)} <br /> - * @param name The value of the column 'NAME'. (basically NotNull if update: for the constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] VALUE: {NotNull, VARCHAR(20)} <br /> - * @return The value of the column 'VALUE'. (basically NotNull if selected: for the constraint) - */ - public String getValue() { - return _value; - } - - /** - * [set] VALUE: {NotNull, VARCHAR(20)} <br /> - * @param value The value of the column 'VALUE'. (basically NotNull if update: for the constraint) - */ - public void setValue(final String value) { - __modifiedProperties.addPropertyName("value"); - _value = value; - } - - /** - * [get] INCLUDED_PATHS: {VARCHAR(4000)} <br /> - * @return The value of the column 'INCLUDED_PATHS'. (NullAllowed even if selected: for no constraint) - */ - public String getIncludedPaths() { - return _includedPaths; - } - - /** - * [set] INCLUDED_PATHS: {VARCHAR(4000)} <br /> - * @param includedPaths The value of the column 'INCLUDED_PATHS'. (NullAllowed: null update allowed for no constraint) - */ - public void setIncludedPaths(final String includedPaths) { - __modifiedProperties.addPropertyName("includedPaths"); - _includedPaths = includedPaths; - } - - /** - * [get] EXCLUDED_PATHS: {VARCHAR(4000)} <br /> - * @return The value of the column 'EXCLUDED_PATHS'. (NullAllowed even if selected: for no constraint) - */ - public String getExcludedPaths() { - return _excludedPaths; - } - - /** - * [set] EXCLUDED_PATHS: {VARCHAR(4000)} <br /> - * @param excludedPaths The value of the column 'EXCLUDED_PATHS'. (NullAllowed: null update allowed for no constraint) - */ - public void setExcludedPaths(final String excludedPaths) { - __modifiedProperties.addPropertyName("excludedPaths"); - _excludedPaths = excludedPaths; - } - - /** - * [get] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'SORT_ORDER'. (basically NotNull if selected: for the constraint) - */ - public Integer getSortOrder() { - return _sortOrder; - } - - /** - * [set] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @param sortOrder The value of the column 'SORT_ORDER'. (basically NotNull if update: for the constraint) - */ - public void setSortOrder(final Integer sortOrder) { - __modifiedProperties.addPropertyName("sortOrder"); - _sortOrder = sortOrder; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsLabelTypeToRoleTypeMapping.java b/src/main/java/jp/sf/fess/db/bsentity/BsLabelTypeToRoleTypeMapping.java deleted file mode 100644 index 5e58ac24b..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsLabelTypeToRoleTypeMapping.java +++ /dev/null @@ -1,458 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping; -import jp.sf.fess.db.exentity.RoleType; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of LABEL_TYPE_TO_ROLE_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, LABEL_TYPE_ID, ROLE_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * LABEL_TYPE, ROLE_TYPE - * - * [referrer table] - * - * - * [foreign property] - * labelType, roleType - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * Long labelTypeId = entity.getLabelTypeId(); - * Long roleTypeId = entity.getRoleTypeId(); - * entity.setId(id); - * entity.setLabelTypeId(labelTypeId); - * entity.setRoleTypeId(roleTypeId); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsLabelTypeToRoleTypeMapping implements Entity, - Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} */ - protected Long _labelTypeId; - - /** ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} */ - protected Long _roleTypeId; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "LABEL_TYPE_TO_ROLE_TYPE_MAPPING"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "labelTypeToRoleTypeMapping"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. */ - protected LabelType _labelType; - - /** - * [get] LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The entity of foreign property 'labelType'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public LabelType getLabelType() { - return _labelType; - } - - /** - * [set] LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @param labelType The entity of foreign property 'labelType'. (NullAllowed) - */ - public void setLabelType(final LabelType labelType) { - _labelType = labelType; - } - - /** ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. */ - protected RoleType _roleType; - - /** - * [get] ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The entity of foreign property 'roleType'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public RoleType getRoleType() { - return _roleType; - } - - /** - * [set] ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @param roleType The entity of foreign property 'roleType'. (NullAllowed) - */ - public void setRoleType(final RoleType roleType) { - _roleType = roleType; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsLabelTypeToRoleTypeMapping)) { - return false; - } - final BsLabelTypeToRoleTypeMapping other = (BsLabelTypeToRoleTypeMapping) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_labelType != null) { - sb.append(li).append(xbRDS(_labelType, "labelType")); - } - if (_roleType != null) { - sb.append(li).append(xbRDS(_roleType, "roleType")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getLabelTypeId()); - sb.append(dm).append(getRoleTypeId()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_labelType != null) { - sb.append(cm).append("labelType"); - } - if (_roleType != null) { - sb.append(cm).append("roleType"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public LabelTypeToRoleTypeMapping clone() { - try { - return (LabelTypeToRoleTypeMapping) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} <br /> - * @return The value of the column 'LABEL_TYPE_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getLabelTypeId() { - return _labelTypeId; - } - - /** - * [set] LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} <br /> - * @param labelTypeId The value of the column 'LABEL_TYPE_ID'. (basically NotNull if update: for the constraint) - */ - public void setLabelTypeId(final Long labelTypeId) { - __modifiedProperties.addPropertyName("labelTypeId"); - _labelTypeId = labelTypeId; - } - - /** - * [get] ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} <br /> - * @return The value of the column 'ROLE_TYPE_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getRoleTypeId() { - return _roleTypeId; - } - - /** - * [set] ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} <br /> - * @param roleTypeId The value of the column 'ROLE_TYPE_ID'. (basically NotNull if update: for the constraint) - */ - public void setRoleTypeId(final Long roleTypeId) { - __modifiedProperties.addPropertyName("roleTypeId"); - _roleTypeId = roleTypeId; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsOverlappingHost.java b/src/main/java/jp/sf/fess/db/bsentity/BsOverlappingHost.java deleted file mode 100644 index 601da6a14..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsOverlappingHost.java +++ /dev/null @@ -1,580 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.OverlappingHost; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of OVERLAPPING_HOST as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, REGULAR_NAME, OVERLAPPING_NAME, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String regularName = entity.getRegularName(); - * String overlappingName = entity.getOverlappingName(); - * Integer sortOrder = entity.getSortOrder(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setRegularName(regularName); - * entity.setOverlappingName(overlappingName); - * entity.setSortOrder(sortOrder); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsOverlappingHost implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} */ - protected String _regularName; - - /** OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} */ - protected String _overlappingName; - - /** SORT_ORDER: {NotNull, INTEGER(10)} */ - protected Integer _sortOrder; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "OVERLAPPING_HOST"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "overlappingHost"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsOverlappingHost)) { - return false; - } - final BsOverlappingHost other = (BsOverlappingHost) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getRegularName()); - sb.append(dm).append(getOverlappingName()); - sb.append(dm).append(getSortOrder()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public OverlappingHost clone() { - try { - return (OverlappingHost) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} <br /> - * @return The value of the column 'REGULAR_NAME'. (basically NotNull if selected: for the constraint) - */ - public String getRegularName() { - return _regularName; - } - - /** - * [set] REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} <br /> - * @param regularName The value of the column 'REGULAR_NAME'. (basically NotNull if update: for the constraint) - */ - public void setRegularName(final String regularName) { - __modifiedProperties.addPropertyName("regularName"); - _regularName = regularName; - } - - /** - * [get] OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} <br /> - * @return The value of the column 'OVERLAPPING_NAME'. (basically NotNull if selected: for the constraint) - */ - public String getOverlappingName() { - return _overlappingName; - } - - /** - * [set] OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} <br /> - * @param overlappingName The value of the column 'OVERLAPPING_NAME'. (basically NotNull if update: for the constraint) - */ - public void setOverlappingName(final String overlappingName) { - __modifiedProperties.addPropertyName("overlappingName"); - _overlappingName = overlappingName; - } - - /** - * [get] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'SORT_ORDER'. (basically NotNull if selected: for the constraint) - */ - public Integer getSortOrder() { - return _sortOrder; - } - - /** - * [set] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @param sortOrder The value of the column 'SORT_ORDER'. (basically NotNull if update: for the constraint) - */ - public void setSortOrder(final Integer sortOrder) { - __modifiedProperties.addPropertyName("sortOrder"); - _sortOrder = sortOrder; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsPathMapping.java b/src/main/java/jp/sf/fess/db/bsentity/BsPathMapping.java deleted file mode 100644 index 628306a22..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsPathMapping.java +++ /dev/null @@ -1,702 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.CDef; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.PathMapping; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of PATH_MAPPING as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, REGEX, REPLACEMENT, PROCESS_TYPE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String regex = entity.getRegex(); - * String replacement = entity.getReplacement(); - * String processType = entity.getProcessType(); - * Integer sortOrder = entity.getSortOrder(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setRegex(regex); - * entity.setReplacement(replacement); - * entity.setProcessType(processType); - * entity.setSortOrder(sortOrder); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsPathMapping implements Entity, Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** REGEX: {NotNull, VARCHAR(1000)} */ - protected String _regex; - - /** REPLACEMENT: {NotNull, VARCHAR(1000)} */ - protected String _replacement; - - /** PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} */ - protected String _processType; - - /** SORT_ORDER: {NotNull, INTEGER(10)} */ - protected Integer _sortOrder; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "PATH_MAPPING"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "pathMapping"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Classification Property - // ======================= - /** - * Get the value of processType as the classification of ProcessType. <br /> - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} <br /> - * Processing Type - * <p>It's treated as case insensitive and if the code value is null, it returns null.</p> - * @return The instance of classification definition (as ENUM type). (NullAllowed: when the column value is null) - */ - public CDef.ProcessType getProcessTypeAsProcessType() { - return CDef.ProcessType.codeOf(getProcessType()); - } - - /** - * Set the value of processType as the classification of ProcessType. <br /> - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} <br /> - * Processing Type - * @param cdef The instance of classification definition (as ENUM type). (NullAllowed: if null, null value is set to the column) - */ - public void setProcessTypeAsProcessType(final CDef.ProcessType cdef) { - setProcessType(cdef != null ? cdef.code() : null); - } - - // =================================================================================== - // Classification Setting - // ====================== - /** - * Set the value of processType as Crawling (C). <br /> - * Crawling: Process When Crawling - */ - public void setProcessType_Crawling() { - setProcessTypeAsProcessType(CDef.ProcessType.Crawling); - } - - /** - * Set the value of processType as Displaying (D). <br /> - * Displaying: Process When Displaying - */ - public void setProcessType_Displaying() { - setProcessTypeAsProcessType(CDef.ProcessType.Displaying); - } - - /** - * Set the value of processType as Both (B). <br /> - * Both: Process When Crawling/Displaying - */ - public void setProcessType_Both() { - setProcessTypeAsProcessType(CDef.ProcessType.Both); - } - - // =================================================================================== - // Classification Determination - // ============================ - /** - * Is the value of processType Crawling? <br /> - * Crawling: Process When Crawling - * <p>It's treated as case insensitive and if the code value is null, it returns false.</p> - * @return The determination, true or false. - */ - public boolean isProcessTypeCrawling() { - final CDef.ProcessType cdef = getProcessTypeAsProcessType(); - return cdef != null ? cdef.equals(CDef.ProcessType.Crawling) : false; - } - - /** - * Is the value of processType Displaying? <br /> - * Displaying: Process When Displaying - * <p>It's treated as case insensitive and if the code value is null, it returns false.</p> - * @return The determination, true or false. - */ - public boolean isProcessTypeDisplaying() { - final CDef.ProcessType cdef = getProcessTypeAsProcessType(); - return cdef != null ? cdef.equals(CDef.ProcessType.Displaying) : false; - } - - /** - * Is the value of processType Both? <br /> - * Both: Process When Crawling/Displaying - * <p>It's treated as case insensitive and if the code value is null, it returns false.</p> - * @return The determination, true or false. - */ - public boolean isProcessTypeBoth() { - final CDef.ProcessType cdef = getProcessTypeAsProcessType(); - return cdef != null ? cdef.equals(CDef.ProcessType.Both) : false; - } - - // =================================================================================== - // Classification Name/Alias - // ========================= - /** - * Get the value of the column 'processType' as classification name. - * @return The string of classification name. (NullAllowed: when the column value is null) - */ - public String getProcessTypeName() { - final CDef.ProcessType cdef = getProcessTypeAsProcessType(); - return cdef != null ? cdef.name() : null; - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsPathMapping)) { - return false; - } - final BsPathMapping other = (BsPathMapping) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getRegex()); - sb.append(dm).append(getReplacement()); - sb.append(dm).append(getProcessType()); - sb.append(dm).append(getSortOrder()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public PathMapping clone() { - try { - return (PathMapping) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] REGEX: {NotNull, VARCHAR(1000)} <br /> - * @return The value of the column 'REGEX'. (basically NotNull if selected: for the constraint) - */ - public String getRegex() { - return _regex; - } - - /** - * [set] REGEX: {NotNull, VARCHAR(1000)} <br /> - * @param regex The value of the column 'REGEX'. (basically NotNull if update: for the constraint) - */ - public void setRegex(final String regex) { - __modifiedProperties.addPropertyName("regex"); - _regex = regex; - } - - /** - * [get] REPLACEMENT: {NotNull, VARCHAR(1000)} <br /> - * @return The value of the column 'REPLACEMENT'. (basically NotNull if selected: for the constraint) - */ - public String getReplacement() { - return _replacement; - } - - /** - * [set] REPLACEMENT: {NotNull, VARCHAR(1000)} <br /> - * @param replacement The value of the column 'REPLACEMENT'. (basically NotNull if update: for the constraint) - */ - public void setReplacement(final String replacement) { - __modifiedProperties.addPropertyName("replacement"); - _replacement = replacement; - } - - /** - * [get] PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} <br /> - * @return The value of the column 'PROCESS_TYPE'. (basically NotNull if selected: for the constraint) - */ - public String getProcessType() { - return _processType; - } - - /** - * [set] PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} <br /> - * @param processType The value of the column 'PROCESS_TYPE'. (basically NotNull if update: for the constraint) - */ - public void setProcessType(final String processType) { - __modifiedProperties.addPropertyName("processType"); - _processType = processType; - } - - /** - * [get] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'SORT_ORDER'. (basically NotNull if selected: for the constraint) - */ - public Integer getSortOrder() { - return _sortOrder; - } - - /** - * [set] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @param sortOrder The value of the column 'SORT_ORDER'. (basically NotNull if update: for the constraint) - */ - public void setSortOrder(final Integer sortOrder) { - __modifiedProperties.addPropertyName("sortOrder"); - _sortOrder = sortOrder; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsRequestHeader.java b/src/main/java/jp/sf/fess/db/bsentity/BsRequestHeader.java deleted file mode 100644 index d01878055..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsRequestHeader.java +++ /dev/null @@ -1,617 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.RequestHeader; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of REQUEST_HEADER as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, NAME, VALUE, WEB_CRAWLING_CONFIG_ID, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * WEB_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * webCrawlingConfig - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String name = entity.getName(); - * String value = entity.getValue(); - * Long webCrawlingConfigId = entity.getWebCrawlingConfigId(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setName(name); - * entity.setValue(value); - * entity.setWebCrawlingConfigId(webCrawlingConfigId); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsRequestHeader implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** NAME: {NotNull, VARCHAR(100)} */ - protected String _name; - - /** VALUE: {NotNull, VARCHAR(1000)} */ - protected String _value; - - /** WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} */ - protected Long _webCrawlingConfigId; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "REQUEST_HEADER"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "requestHeader"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. */ - protected WebCrawlingConfig _webCrawlingConfig; - - /** - * [get] WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @return The entity of foreign property 'webCrawlingConfig'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public WebCrawlingConfig getWebCrawlingConfig() { - return _webCrawlingConfig; - } - - /** - * [set] WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @param webCrawlingConfig The entity of foreign property 'webCrawlingConfig'. (NullAllowed) - */ - public void setWebCrawlingConfig(final WebCrawlingConfig webCrawlingConfig) { - _webCrawlingConfig = webCrawlingConfig; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsRequestHeader)) { - return false; - } - final BsRequestHeader other = (BsRequestHeader) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_webCrawlingConfig != null) { - sb.append(li) - .append(xbRDS(_webCrawlingConfig, "webCrawlingConfig")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getName()); - sb.append(dm).append(getValue()); - sb.append(dm).append(getWebCrawlingConfigId()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_webCrawlingConfig != null) { - sb.append(cm).append("webCrawlingConfig"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public RequestHeader clone() { - try { - return (RequestHeader) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] NAME: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'NAME'. (basically NotNull if selected: for the constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {NotNull, VARCHAR(100)} <br /> - * @param name The value of the column 'NAME'. (basically NotNull if update: for the constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] VALUE: {NotNull, VARCHAR(1000)} <br /> - * @return The value of the column 'VALUE'. (basically NotNull if selected: for the constraint) - */ - public String getValue() { - return _value; - } - - /** - * [set] VALUE: {NotNull, VARCHAR(1000)} <br /> - * @param value The value of the column 'VALUE'. (basically NotNull if update: for the constraint) - */ - public void setValue(final String value) { - __modifiedProperties.addPropertyName("value"); - _value = value; - } - - /** - * [get] WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} <br /> - * @return The value of the column 'WEB_CRAWLING_CONFIG_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getWebCrawlingConfigId() { - return _webCrawlingConfigId; - } - - /** - * [set] WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} <br /> - * @param webCrawlingConfigId The value of the column 'WEB_CRAWLING_CONFIG_ID'. (basically NotNull if update: for the constraint) - */ - public void setWebCrawlingConfigId(final Long webCrawlingConfigId) { - __modifiedProperties.addPropertyName("webCrawlingConfigId"); - _webCrawlingConfigId = webCrawlingConfigId; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsRoleType.java b/src/main/java/jp/sf/fess/db/bsentity/BsRoleType.java deleted file mode 100644 index 12540436c..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsRoleType.java +++ /dev/null @@ -1,733 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.DataConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.FileConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of ROLE_TYPE as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, NAME, VALUE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING, FILE_CONFIG_TO_ROLE_TYPE_MAPPING, LABEL_TYPE_TO_ROLE_TYPE_MAPPING, WEB_CONFIG_TO_ROLE_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * dataConfigToRoleTypeMappingList, fileConfigToRoleTypeMappingList, labelTypeToRoleTypeMappingList, webConfigToRoleTypeMappingList - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String name = entity.getName(); - * String value = entity.getValue(); - * Integer sortOrder = entity.getSortOrder(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setName(name); - * entity.setValue(value); - * entity.setSortOrder(sortOrder); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsRoleType implements Entity, Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** NAME: {NotNull, VARCHAR(100)} */ - protected String _name; - - /** VALUE: {NotNull, VARCHAR(20)} */ - protected String _value; - - /** SORT_ORDER: {NotNull, INTEGER(10)} */ - protected Integer _sortOrder; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "ROLE_TYPE"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "roleType"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - /** DATA_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'dataConfigToRoleTypeMappingList'. */ - protected List<DataConfigToRoleTypeMapping> _dataConfigToRoleTypeMappingList; - - /** - * [get] DATA_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'dataConfigToRoleTypeMappingList'. - * @return The entity list of referrer property 'dataConfigToRoleTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<DataConfigToRoleTypeMapping> getDataConfigToRoleTypeMappingList() { - if (_dataConfigToRoleTypeMappingList == null) { - _dataConfigToRoleTypeMappingList = newReferrerList(); - } - return _dataConfigToRoleTypeMappingList; - } - - /** - * [set] DATA_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'dataConfigToRoleTypeMappingList'. - * @param dataConfigToRoleTypeMappingList The entity list of referrer property 'dataConfigToRoleTypeMappingList'. (NullAllowed) - */ - public void setDataConfigToRoleTypeMappingList( - final List<DataConfigToRoleTypeMapping> dataConfigToRoleTypeMappingList) { - _dataConfigToRoleTypeMappingList = dataConfigToRoleTypeMappingList; - } - - /** FILE_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'fileConfigToRoleTypeMappingList'. */ - protected List<FileConfigToRoleTypeMapping> _fileConfigToRoleTypeMappingList; - - /** - * [get] FILE_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'fileConfigToRoleTypeMappingList'. - * @return The entity list of referrer property 'fileConfigToRoleTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<FileConfigToRoleTypeMapping> getFileConfigToRoleTypeMappingList() { - if (_fileConfigToRoleTypeMappingList == null) { - _fileConfigToRoleTypeMappingList = newReferrerList(); - } - return _fileConfigToRoleTypeMappingList; - } - - /** - * [set] FILE_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'fileConfigToRoleTypeMappingList'. - * @param fileConfigToRoleTypeMappingList The entity list of referrer property 'fileConfigToRoleTypeMappingList'. (NullAllowed) - */ - public void setFileConfigToRoleTypeMappingList( - final List<FileConfigToRoleTypeMapping> fileConfigToRoleTypeMappingList) { - _fileConfigToRoleTypeMappingList = fileConfigToRoleTypeMappingList; - } - - /** LABEL_TYPE_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. */ - protected List<LabelTypeToRoleTypeMapping> _labelTypeToRoleTypeMappingList; - - /** - * [get] LABEL_TYPE_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. - * @return The entity list of referrer property 'labelTypeToRoleTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<LabelTypeToRoleTypeMapping> getLabelTypeToRoleTypeMappingList() { - if (_labelTypeToRoleTypeMappingList == null) { - _labelTypeToRoleTypeMappingList = newReferrerList(); - } - return _labelTypeToRoleTypeMappingList; - } - - /** - * [set] LABEL_TYPE_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. - * @param labelTypeToRoleTypeMappingList The entity list of referrer property 'labelTypeToRoleTypeMappingList'. (NullAllowed) - */ - public void setLabelTypeToRoleTypeMappingList( - final List<LabelTypeToRoleTypeMapping> labelTypeToRoleTypeMappingList) { - _labelTypeToRoleTypeMappingList = labelTypeToRoleTypeMappingList; - } - - /** WEB_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'webConfigToRoleTypeMappingList'. */ - protected List<WebConfigToRoleTypeMapping> _webConfigToRoleTypeMappingList; - - /** - * [get] WEB_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'webConfigToRoleTypeMappingList'. - * @return The entity list of referrer property 'webConfigToRoleTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<WebConfigToRoleTypeMapping> getWebConfigToRoleTypeMappingList() { - if (_webConfigToRoleTypeMappingList == null) { - _webConfigToRoleTypeMappingList = newReferrerList(); - } - return _webConfigToRoleTypeMappingList; - } - - /** - * [set] WEB_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'webConfigToRoleTypeMappingList'. - * @param webConfigToRoleTypeMappingList The entity list of referrer property 'webConfigToRoleTypeMappingList'. (NullAllowed) - */ - public void setWebConfigToRoleTypeMappingList( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList) { - _webConfigToRoleTypeMappingList = webConfigToRoleTypeMappingList; - } - - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsRoleType)) { - return false; - } - final BsRoleType other = (BsRoleType) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_dataConfigToRoleTypeMappingList != null) { - for (final Entity et : _dataConfigToRoleTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "dataConfigToRoleTypeMappingList")); - } - } - } - if (_fileConfigToRoleTypeMappingList != null) { - for (final Entity et : _fileConfigToRoleTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "fileConfigToRoleTypeMappingList")); - } - } - } - if (_labelTypeToRoleTypeMappingList != null) { - for (final Entity et : _labelTypeToRoleTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "labelTypeToRoleTypeMappingList")); - } - } - } - if (_webConfigToRoleTypeMappingList != null) { - for (final Entity et : _webConfigToRoleTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "webConfigToRoleTypeMappingList")); - } - } - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getName()); - sb.append(dm).append(getValue()); - sb.append(dm).append(getSortOrder()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_dataConfigToRoleTypeMappingList != null - && !_dataConfigToRoleTypeMappingList.isEmpty()) { - sb.append(cm).append("dataConfigToRoleTypeMappingList"); - } - if (_fileConfigToRoleTypeMappingList != null - && !_fileConfigToRoleTypeMappingList.isEmpty()) { - sb.append(cm).append("fileConfigToRoleTypeMappingList"); - } - if (_labelTypeToRoleTypeMappingList != null - && !_labelTypeToRoleTypeMappingList.isEmpty()) { - sb.append(cm).append("labelTypeToRoleTypeMappingList"); - } - if (_webConfigToRoleTypeMappingList != null - && !_webConfigToRoleTypeMappingList.isEmpty()) { - sb.append(cm).append("webConfigToRoleTypeMappingList"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public RoleType clone() { - try { - return (RoleType) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] NAME: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'NAME'. (basically NotNull if selected: for the constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {NotNull, VARCHAR(100)} <br /> - * @param name The value of the column 'NAME'. (basically NotNull if update: for the constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] VALUE: {NotNull, VARCHAR(20)} <br /> - * @return The value of the column 'VALUE'. (basically NotNull if selected: for the constraint) - */ - public String getValue() { - return _value; - } - - /** - * [set] VALUE: {NotNull, VARCHAR(20)} <br /> - * @param value The value of the column 'VALUE'. (basically NotNull if update: for the constraint) - */ - public void setValue(final String value) { - __modifiedProperties.addPropertyName("value"); - _value = value; - } - - /** - * [get] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'SORT_ORDER'. (basically NotNull if selected: for the constraint) - */ - public Integer getSortOrder() { - return _sortOrder; - } - - /** - * [set] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @param sortOrder The value of the column 'SORT_ORDER'. (basically NotNull if update: for the constraint) - */ - public void setSortOrder(final Integer sortOrder) { - __modifiedProperties.addPropertyName("sortOrder"); - _sortOrder = sortOrder; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsScheduledJob.java b/src/main/java/jp/sf/fess/db/bsentity/BsScheduledJob.java deleted file mode 100644 index 5d1902c5f..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsScheduledJob.java +++ /dev/null @@ -1,717 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.ScheduledJob; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of SCHEDULED_JOB as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, NAME, TARGET, CRON_EXPRESSION, SCRIPT_TYPE, SCRIPT_DATA, CRAWLER, JOB_LOGGING, AVAILABLE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String name = entity.getName(); - * String target = entity.getTarget(); - * String cronExpression = entity.getCronExpression(); - * String scriptType = entity.getScriptType(); - * String scriptData = entity.getScriptData(); - * String crawler = entity.getCrawler(); - * String jobLogging = entity.getJobLogging(); - * String available = entity.getAvailable(); - * Integer sortOrder = entity.getSortOrder(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setName(name); - * entity.setTarget(target); - * entity.setCronExpression(cronExpression); - * entity.setScriptType(scriptType); - * entity.setScriptData(scriptData); - * entity.setCrawler(crawler); - * entity.setJobLogging(jobLogging); - * entity.setAvailable(available); - * entity.setSortOrder(sortOrder); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsScheduledJob implements Entity, Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** NAME: {NotNull, VARCHAR(100)} */ - protected String _name; - - /** TARGET: {NotNull, VARCHAR(100)} */ - protected String _target; - - /** CRON_EXPRESSION: {NotNull, VARCHAR(100)} */ - protected String _cronExpression; - - /** SCRIPT_TYPE: {NotNull, VARCHAR(100)} */ - protected String _scriptType; - - /** SCRIPT_DATA: {VARCHAR(4000)} */ - protected String _scriptData; - - /** CRAWLER: {NotNull, VARCHAR(1)} */ - protected String _crawler; - - /** JOB_LOGGING: {NotNull, VARCHAR(1)} */ - protected String _jobLogging; - - /** AVAILABLE: {NotNull, VARCHAR(1)} */ - protected String _available; - - /** SORT_ORDER: {NotNull, INTEGER(10)} */ - protected Integer _sortOrder; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "SCHEDULED_JOB"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "scheduledJob"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsScheduledJob)) { - return false; - } - final BsScheduledJob other = (BsScheduledJob) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getName()); - sb.append(dm).append(getTarget()); - sb.append(dm).append(getCronExpression()); - sb.append(dm).append(getScriptType()); - sb.append(dm).append(getScriptData()); - sb.append(dm).append(getCrawler()); - sb.append(dm).append(getJobLogging()); - sb.append(dm).append(getAvailable()); - sb.append(dm).append(getSortOrder()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public ScheduledJob clone() { - try { - return (ScheduledJob) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] NAME: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'NAME'. (basically NotNull if selected: for the constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {NotNull, VARCHAR(100)} <br /> - * @param name The value of the column 'NAME'. (basically NotNull if update: for the constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] TARGET: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'TARGET'. (basically NotNull if selected: for the constraint) - */ - public String getTarget() { - return _target; - } - - /** - * [set] TARGET: {NotNull, VARCHAR(100)} <br /> - * @param target The value of the column 'TARGET'. (basically NotNull if update: for the constraint) - */ - public void setTarget(final String target) { - __modifiedProperties.addPropertyName("target"); - _target = target; - } - - /** - * [get] CRON_EXPRESSION: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'CRON_EXPRESSION'. (basically NotNull if selected: for the constraint) - */ - public String getCronExpression() { - return _cronExpression; - } - - /** - * [set] CRON_EXPRESSION: {NotNull, VARCHAR(100)} <br /> - * @param cronExpression The value of the column 'CRON_EXPRESSION'. (basically NotNull if update: for the constraint) - */ - public void setCronExpression(final String cronExpression) { - __modifiedProperties.addPropertyName("cronExpression"); - _cronExpression = cronExpression; - } - - /** - * [get] SCRIPT_TYPE: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'SCRIPT_TYPE'. (basically NotNull if selected: for the constraint) - */ - public String getScriptType() { - return _scriptType; - } - - /** - * [set] SCRIPT_TYPE: {NotNull, VARCHAR(100)} <br /> - * @param scriptType The value of the column 'SCRIPT_TYPE'. (basically NotNull if update: for the constraint) - */ - public void setScriptType(final String scriptType) { - __modifiedProperties.addPropertyName("scriptType"); - _scriptType = scriptType; - } - - /** - * [get] SCRIPT_DATA: {VARCHAR(4000)} <br /> - * @return The value of the column 'SCRIPT_DATA'. (NullAllowed even if selected: for no constraint) - */ - public String getScriptData() { - return _scriptData; - } - - /** - * [set] SCRIPT_DATA: {VARCHAR(4000)} <br /> - * @param scriptData The value of the column 'SCRIPT_DATA'. (NullAllowed: null update allowed for no constraint) - */ - public void setScriptData(final String scriptData) { - __modifiedProperties.addPropertyName("scriptData"); - _scriptData = scriptData; - } - - /** - * [get] CRAWLER: {NotNull, VARCHAR(1)} <br /> - * @return The value of the column 'CRAWLER'. (basically NotNull if selected: for the constraint) - */ - public String getCrawler() { - return _crawler; - } - - /** - * [set] CRAWLER: {NotNull, VARCHAR(1)} <br /> - * @param crawler The value of the column 'CRAWLER'. (basically NotNull if update: for the constraint) - */ - public void setCrawler(final String crawler) { - __modifiedProperties.addPropertyName("crawler"); - _crawler = crawler; - } - - /** - * [get] JOB_LOGGING: {NotNull, VARCHAR(1)} <br /> - * @return The value of the column 'JOB_LOGGING'. (basically NotNull if selected: for the constraint) - */ - public String getJobLogging() { - return _jobLogging; - } - - /** - * [set] JOB_LOGGING: {NotNull, VARCHAR(1)} <br /> - * @param jobLogging The value of the column 'JOB_LOGGING'. (basically NotNull if update: for the constraint) - */ - public void setJobLogging(final String jobLogging) { - __modifiedProperties.addPropertyName("jobLogging"); - _jobLogging = jobLogging; - } - - /** - * [get] AVAILABLE: {NotNull, VARCHAR(1)} <br /> - * @return The value of the column 'AVAILABLE'. (basically NotNull if selected: for the constraint) - */ - public String getAvailable() { - return _available; - } - - /** - * [set] AVAILABLE: {NotNull, VARCHAR(1)} <br /> - * @param available The value of the column 'AVAILABLE'. (basically NotNull if update: for the constraint) - */ - public void setAvailable(final String available) { - __modifiedProperties.addPropertyName("available"); - _available = available; - } - - /** - * [get] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'SORT_ORDER'. (basically NotNull if selected: for the constraint) - */ - public Integer getSortOrder() { - return _sortOrder; - } - - /** - * [set] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @param sortOrder The value of the column 'SORT_ORDER'. (basically NotNull if update: for the constraint) - */ - public void setSortOrder(final Integer sortOrder) { - __modifiedProperties.addPropertyName("sortOrder"); - _sortOrder = sortOrder; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsSearchFieldLog.java b/src/main/java/jp/sf/fess/db/bsentity/BsSearchFieldLog.java deleted file mode 100644 index de2fde8cc..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsSearchFieldLog.java +++ /dev/null @@ -1,455 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.SearchFieldLog; -import jp.sf.fess.db.exentity.SearchLog; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of SEARCH_FIELD_LOG as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, SEARCH_ID, NAME, VALUE - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * SEARCH_LOG - * - * [referrer table] - * - * - * [foreign property] - * searchLog - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * Long searchId = entity.getSearchId(); - * String name = entity.getName(); - * String value = entity.getValue(); - * entity.setId(id); - * entity.setSearchId(searchId); - * entity.setName(name); - * entity.setValue(value); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsSearchFieldLog implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} */ - protected Long _searchId; - - /** NAME: {IX, NotNull, VARCHAR(255)} */ - protected String _name; - - /** VALUE: {NotNull, VARCHAR(1000)} */ - protected String _value; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "SEARCH_FIELD_LOG"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "searchFieldLog"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** SEARCH_LOG by my SEARCH_ID, named 'searchLog'. */ - protected SearchLog _searchLog; - - /** - * [get] SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @return The entity of foreign property 'searchLog'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public SearchLog getSearchLog() { - return _searchLog; - } - - /** - * [set] SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @param searchLog The entity of foreign property 'searchLog'. (NullAllowed) - */ - public void setSearchLog(final SearchLog searchLog) { - _searchLog = searchLog; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsSearchFieldLog)) { - return false; - } - final BsSearchFieldLog other = (BsSearchFieldLog) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_searchLog != null) { - sb.append(li).append(xbRDS(_searchLog, "searchLog")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getSearchId()); - sb.append(dm).append(getName()); - sb.append(dm).append(getValue()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_searchLog != null) { - sb.append(cm).append("searchLog"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public SearchFieldLog clone() { - try { - return (SearchFieldLog) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} <br /> - * @return The value of the column 'SEARCH_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getSearchId() { - return _searchId; - } - - /** - * [set] SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} <br /> - * @param searchId The value of the column 'SEARCH_ID'. (basically NotNull if update: for the constraint) - */ - public void setSearchId(final Long searchId) { - __modifiedProperties.addPropertyName("searchId"); - _searchId = searchId; - } - - /** - * [get] NAME: {IX, NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'NAME'. (basically NotNull if selected: for the constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {IX, NotNull, VARCHAR(255)} <br /> - * @param name The value of the column 'NAME'. (basically NotNull if update: for the constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] VALUE: {NotNull, VARCHAR(1000)} <br /> - * @return The value of the column 'VALUE'. (basically NotNull if selected: for the constraint) - */ - public String getValue() { - return _value; - } - - /** - * [set] VALUE: {NotNull, VARCHAR(1000)} <br /> - * @param value The value of the column 'VALUE'. (basically NotNull if update: for the constraint) - */ - public void setValue(final String value) { - __modifiedProperties.addPropertyName("value"); - _value = value; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsSearchLog.java b/src/main/java/jp/sf/fess/db/bsentity/BsSearchLog.java deleted file mode 100644 index 8f57e9de9..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsSearchLog.java +++ /dev/null @@ -1,847 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.CDef; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.ClickLog; -import jp.sf.fess.db.exentity.SearchFieldLog; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.db.exentity.UserInfo; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of SEARCH_LOG as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, SEARCH_WORD, REQUESTED_TIME, RESPONSE_TIME, HIT_COUNT, QUERY_OFFSET, QUERY_PAGE_SIZE, USER_AGENT, REFERER, CLIENT_IP, USER_SESSION_ID, ACCESS_TYPE, USER_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * USER_INFO - * - * [referrer table] - * CLICK_LOG, SEARCH_FIELD_LOG - * - * [foreign property] - * userInfo - * - * [referrer property] - * clickLogList, searchFieldLogList - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String searchWord = entity.getSearchWord(); - * java.sql.Timestamp requestedTime = entity.getRequestedTime(); - * Integer responseTime = entity.getResponseTime(); - * Long hitCount = entity.getHitCount(); - * Integer queryOffset = entity.getQueryOffset(); - * Integer queryPageSize = entity.getQueryPageSize(); - * String userAgent = entity.getUserAgent(); - * String referer = entity.getReferer(); - * String clientIp = entity.getClientIp(); - * String userSessionId = entity.getUserSessionId(); - * String accessType = entity.getAccessType(); - * Long userId = entity.getUserId(); - * entity.setId(id); - * entity.setSearchWord(searchWord); - * entity.setRequestedTime(requestedTime); - * entity.setResponseTime(responseTime); - * entity.setHitCount(hitCount); - * entity.setQueryOffset(queryOffset); - * entity.setQueryPageSize(queryPageSize); - * entity.setUserAgent(userAgent); - * entity.setReferer(referer); - * entity.setClientIp(clientIp); - * entity.setUserSessionId(userSessionId); - * entity.setAccessType(accessType); - * entity.setUserId(userId); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsSearchLog implements Entity, Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** SEARCH_WORD: {IX, VARCHAR(1000)} */ - protected String _searchWord; - - /** REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _requestedTime; - - /** RESPONSE_TIME: {IX, NotNull, INTEGER(10)} */ - protected Integer _responseTime; - - /** HIT_COUNT: {IX, NotNull, BIGINT(19)} */ - protected Long _hitCount; - - /** QUERY_OFFSET: {NotNull, INTEGER(10)} */ - protected Integer _queryOffset; - - /** QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} */ - protected Integer _queryPageSize; - - /** USER_AGENT: {VARCHAR(255)} */ - protected String _userAgent; - - /** REFERER: {VARCHAR(1000)} */ - protected String _referer; - - /** CLIENT_IP: {VARCHAR(50)} */ - protected String _clientIp; - - /** USER_SESSION_ID: {VARCHAR(100)} */ - protected String _userSessionId; - - /** ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} */ - protected String _accessType; - - /** USER_ID: {IX, BIGINT(19), FK to USER_INFO} */ - protected Long _userId; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "SEARCH_LOG"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "searchLog"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Classification Property - // ======================= - /** - * Get the value of accessType as the classification of AccessType. <br /> - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} <br /> - * Access Type - * <p>It's treated as case insensitive and if the code value is null, it returns null.</p> - * @return The instance of classification definition (as ENUM type). (NullAllowed: when the column value is null) - */ - public CDef.AccessType getAccessTypeAsAccessType() { - return CDef.AccessType.codeOf(getAccessType()); - } - - /** - * Set the value of accessType as the classification of AccessType. <br /> - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} <br /> - * Access Type - * @param cdef The instance of classification definition (as ENUM type). (NullAllowed: if null, null value is set to the column) - */ - public void setAccessTypeAsAccessType(final CDef.AccessType cdef) { - setAccessType(cdef != null ? cdef.code() : null); - } - - // =================================================================================== - // Classification Setting - // ====================== - /** - * Set the value of accessType as Web (W). <br /> - * Web: Web - */ - public void setAccessType_Web() { - setAccessTypeAsAccessType(CDef.AccessType.Web); - } - - /** - * Set the value of accessType as Xml (X). <br /> - * Xml: Xml - */ - public void setAccessType_Xml() { - setAccessTypeAsAccessType(CDef.AccessType.Xml); - } - - /** - * Set the value of accessType as Json (J). <br /> - * Json: Json - */ - public void setAccessType_Json() { - setAccessTypeAsAccessType(CDef.AccessType.Json); - } - - /** - * Set the value of accessType as Others (O). <br /> - * Others: Others - */ - public void setAccessType_Others() { - setAccessTypeAsAccessType(CDef.AccessType.Others); - } - - // =================================================================================== - // Classification Determination - // ============================ - /** - * Is the value of accessType Web? <br /> - * Web: Web - * <p>It's treated as case insensitive and if the code value is null, it returns false.</p> - * @return The determination, true or false. - */ - public boolean isAccessTypeWeb() { - final CDef.AccessType cdef = getAccessTypeAsAccessType(); - return cdef != null ? cdef.equals(CDef.AccessType.Web) : false; - } - - /** - * Is the value of accessType Xml? <br /> - * Xml: Xml - * <p>It's treated as case insensitive and if the code value is null, it returns false.</p> - * @return The determination, true or false. - */ - public boolean isAccessTypeXml() { - final CDef.AccessType cdef = getAccessTypeAsAccessType(); - return cdef != null ? cdef.equals(CDef.AccessType.Xml) : false; - } - - /** - * Is the value of accessType Json? <br /> - * Json: Json - * <p>It's treated as case insensitive and if the code value is null, it returns false.</p> - * @return The determination, true or false. - */ - public boolean isAccessTypeJson() { - final CDef.AccessType cdef = getAccessTypeAsAccessType(); - return cdef != null ? cdef.equals(CDef.AccessType.Json) : false; - } - - /** - * Is the value of accessType Others? <br /> - * Others: Others - * <p>It's treated as case insensitive and if the code value is null, it returns false.</p> - * @return The determination, true or false. - */ - public boolean isAccessTypeOthers() { - final CDef.AccessType cdef = getAccessTypeAsAccessType(); - return cdef != null ? cdef.equals(CDef.AccessType.Others) : false; - } - - // =================================================================================== - // Classification Name/Alias - // ========================= - /** - * Get the value of the column 'accessType' as classification name. - * @return The string of classification name. (NullAllowed: when the column value is null) - */ - public String getAccessTypeName() { - final CDef.AccessType cdef = getAccessTypeAsAccessType(); - return cdef != null ? cdef.name() : null; - } - - // =================================================================================== - // Foreign Property - // ================ - /** USER_INFO by my USER_ID, named 'userInfo'. */ - protected UserInfo _userInfo; - - /** - * [get] USER_INFO by my USER_ID, named 'userInfo'. - * @return The entity of foreign property 'userInfo'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public UserInfo getUserInfo() { - return _userInfo; - } - - /** - * [set] USER_INFO by my USER_ID, named 'userInfo'. - * @param userInfo The entity of foreign property 'userInfo'. (NullAllowed) - */ - public void setUserInfo(final UserInfo userInfo) { - _userInfo = userInfo; - } - - // =================================================================================== - // Referrer Property - // ================= - /** CLICK_LOG by SEARCH_ID, named 'clickLogList'. */ - protected List<ClickLog> _clickLogList; - - /** - * [get] CLICK_LOG by SEARCH_ID, named 'clickLogList'. - * @return The entity list of referrer property 'clickLogList'. (NotNull: even if no loading, returns empty list) - */ - public List<ClickLog> getClickLogList() { - if (_clickLogList == null) { - _clickLogList = newReferrerList(); - } - return _clickLogList; - } - - /** - * [set] CLICK_LOG by SEARCH_ID, named 'clickLogList'. - * @param clickLogList The entity list of referrer property 'clickLogList'. (NullAllowed) - */ - public void setClickLogList(final List<ClickLog> clickLogList) { - _clickLogList = clickLogList; - } - - /** SEARCH_FIELD_LOG by SEARCH_ID, named 'searchFieldLogList'. */ - protected List<SearchFieldLog> _searchFieldLogList; - - /** - * [get] SEARCH_FIELD_LOG by SEARCH_ID, named 'searchFieldLogList'. - * @return The entity list of referrer property 'searchFieldLogList'. (NotNull: even if no loading, returns empty list) - */ - public List<SearchFieldLog> getSearchFieldLogList() { - if (_searchFieldLogList == null) { - _searchFieldLogList = newReferrerList(); - } - return _searchFieldLogList; - } - - /** - * [set] SEARCH_FIELD_LOG by SEARCH_ID, named 'searchFieldLogList'. - * @param searchFieldLogList The entity list of referrer property 'searchFieldLogList'. (NullAllowed) - */ - public void setSearchFieldLogList( - final List<SearchFieldLog> searchFieldLogList) { - _searchFieldLogList = searchFieldLogList; - } - - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsSearchLog)) { - return false; - } - final BsSearchLog other = (BsSearchLog) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_userInfo != null) { - sb.append(li).append(xbRDS(_userInfo, "userInfo")); - } - if (_clickLogList != null) { - for (final Entity et : _clickLogList) { - if (et != null) { - sb.append(li).append(xbRDS(et, "clickLogList")); - } - } - } - if (_searchFieldLogList != null) { - for (final Entity et : _searchFieldLogList) { - if (et != null) { - sb.append(li).append(xbRDS(et, "searchFieldLogList")); - } - } - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getSearchWord()); - sb.append(dm).append(getRequestedTime()); - sb.append(dm).append(getResponseTime()); - sb.append(dm).append(getHitCount()); - sb.append(dm).append(getQueryOffset()); - sb.append(dm).append(getQueryPageSize()); - sb.append(dm).append(getUserAgent()); - sb.append(dm).append(getReferer()); - sb.append(dm).append(getClientIp()); - sb.append(dm).append(getUserSessionId()); - sb.append(dm).append(getAccessType()); - sb.append(dm).append(getUserId()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_userInfo != null) { - sb.append(cm).append("userInfo"); - } - if (_clickLogList != null && !_clickLogList.isEmpty()) { - sb.append(cm).append("clickLogList"); - } - if (_searchFieldLogList != null && !_searchFieldLogList.isEmpty()) { - sb.append(cm).append("searchFieldLogList"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public SearchLog clone() { - try { - return (SearchLog) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] SEARCH_WORD: {IX, VARCHAR(1000)} <br /> - * @return The value of the column 'SEARCH_WORD'. (NullAllowed even if selected: for no constraint) - */ - public String getSearchWord() { - return _searchWord; - } - - /** - * [set] SEARCH_WORD: {IX, VARCHAR(1000)} <br /> - * @param searchWord The value of the column 'SEARCH_WORD'. (NullAllowed: null update allowed for no constraint) - */ - public void setSearchWord(final String searchWord) { - __modifiedProperties.addPropertyName("searchWord"); - _searchWord = searchWord; - } - - /** - * [get] REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'REQUESTED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getRequestedTime() { - return _requestedTime; - } - - /** - * [set] REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} <br /> - * @param requestedTime The value of the column 'REQUESTED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setRequestedTime(final java.sql.Timestamp requestedTime) { - __modifiedProperties.addPropertyName("requestedTime"); - _requestedTime = requestedTime; - } - - /** - * [get] RESPONSE_TIME: {IX, NotNull, INTEGER(10)} <br /> - * @return The value of the column 'RESPONSE_TIME'. (basically NotNull if selected: for the constraint) - */ - public Integer getResponseTime() { - return _responseTime; - } - - /** - * [set] RESPONSE_TIME: {IX, NotNull, INTEGER(10)} <br /> - * @param responseTime The value of the column 'RESPONSE_TIME'. (basically NotNull if update: for the constraint) - */ - public void setResponseTime(final Integer responseTime) { - __modifiedProperties.addPropertyName("responseTime"); - _responseTime = responseTime; - } - - /** - * [get] HIT_COUNT: {IX, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'HIT_COUNT'. (basically NotNull if selected: for the constraint) - */ - public Long getHitCount() { - return _hitCount; - } - - /** - * [set] HIT_COUNT: {IX, NotNull, BIGINT(19)} <br /> - * @param hitCount The value of the column 'HIT_COUNT'. (basically NotNull if update: for the constraint) - */ - public void setHitCount(final Long hitCount) { - __modifiedProperties.addPropertyName("hitCount"); - _hitCount = hitCount; - } - - /** - * [get] QUERY_OFFSET: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'QUERY_OFFSET'. (basically NotNull if selected: for the constraint) - */ - public Integer getQueryOffset() { - return _queryOffset; - } - - /** - * [set] QUERY_OFFSET: {NotNull, INTEGER(10)} <br /> - * @param queryOffset The value of the column 'QUERY_OFFSET'. (basically NotNull if update: for the constraint) - */ - public void setQueryOffset(final Integer queryOffset) { - __modifiedProperties.addPropertyName("queryOffset"); - _queryOffset = queryOffset; - } - - /** - * [get] QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'QUERY_PAGE_SIZE'. (basically NotNull if selected: for the constraint) - */ - public Integer getQueryPageSize() { - return _queryPageSize; - } - - /** - * [set] QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} <br /> - * @param queryPageSize The value of the column 'QUERY_PAGE_SIZE'. (basically NotNull if update: for the constraint) - */ - public void setQueryPageSize(final Integer queryPageSize) { - __modifiedProperties.addPropertyName("queryPageSize"); - _queryPageSize = queryPageSize; - } - - /** - * [get] USER_AGENT: {VARCHAR(255)} <br /> - * @return The value of the column 'USER_AGENT'. (NullAllowed even if selected: for no constraint) - */ - public String getUserAgent() { - return _userAgent; - } - - /** - * [set] USER_AGENT: {VARCHAR(255)} <br /> - * @param userAgent The value of the column 'USER_AGENT'. (NullAllowed: null update allowed for no constraint) - */ - public void setUserAgent(final String userAgent) { - __modifiedProperties.addPropertyName("userAgent"); - _userAgent = userAgent; - } - - /** - * [get] REFERER: {VARCHAR(1000)} <br /> - * @return The value of the column 'REFERER'. (NullAllowed even if selected: for no constraint) - */ - public String getReferer() { - return _referer; - } - - /** - * [set] REFERER: {VARCHAR(1000)} <br /> - * @param referer The value of the column 'REFERER'. (NullAllowed: null update allowed for no constraint) - */ - public void setReferer(final String referer) { - __modifiedProperties.addPropertyName("referer"); - _referer = referer; - } - - /** - * [get] CLIENT_IP: {VARCHAR(50)} <br /> - * @return The value of the column 'CLIENT_IP'. (NullAllowed even if selected: for no constraint) - */ - public String getClientIp() { - return _clientIp; - } - - /** - * [set] CLIENT_IP: {VARCHAR(50)} <br /> - * @param clientIp The value of the column 'CLIENT_IP'. (NullAllowed: null update allowed for no constraint) - */ - public void setClientIp(final String clientIp) { - __modifiedProperties.addPropertyName("clientIp"); - _clientIp = clientIp; - } - - /** - * [get] USER_SESSION_ID: {VARCHAR(100)} <br /> - * @return The value of the column 'USER_SESSION_ID'. (NullAllowed even if selected: for no constraint) - */ - public String getUserSessionId() { - return _userSessionId; - } - - /** - * [set] USER_SESSION_ID: {VARCHAR(100)} <br /> - * @param userSessionId The value of the column 'USER_SESSION_ID'. (NullAllowed: null update allowed for no constraint) - */ - public void setUserSessionId(final String userSessionId) { - __modifiedProperties.addPropertyName("userSessionId"); - _userSessionId = userSessionId; - } - - /** - * [get] ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} <br /> - * @return The value of the column 'ACCESS_TYPE'. (basically NotNull if selected: for the constraint) - */ - public String getAccessType() { - return _accessType; - } - - /** - * [set] ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} <br /> - * @param accessType The value of the column 'ACCESS_TYPE'. (basically NotNull if update: for the constraint) - */ - public void setAccessType(final String accessType) { - __modifiedProperties.addPropertyName("accessType"); - _accessType = accessType; - } - - /** - * [get] USER_ID: {IX, BIGINT(19), FK to USER_INFO} <br /> - * @return The value of the column 'USER_ID'. (NullAllowed even if selected: for no constraint) - */ - public Long getUserId() { - return _userId; - } - - /** - * [set] USER_ID: {IX, BIGINT(19), FK to USER_INFO} <br /> - * @param userId The value of the column 'USER_ID'. (NullAllowed: null update allowed for no constraint) - */ - public void setUserId(final Long userId) { - __modifiedProperties.addPropertyName("userId"); - _userId = userId; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsSuggestBadWord.java b/src/main/java/jp/sf/fess/db/bsentity/BsSuggestBadWord.java deleted file mode 100644 index fb9d54af1..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsSuggestBadWord.java +++ /dev/null @@ -1,580 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.SuggestBadWord; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of SUGGEST_BAD_WORD as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, SUGGEST_WORD, TARGET_ROLE, TARGET_LABEL, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String suggestWord = entity.getSuggestWord(); - * String targetRole = entity.getTargetRole(); - * String targetLabel = entity.getTargetLabel(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setSuggestWord(suggestWord); - * entity.setTargetRole(targetRole); - * entity.setTargetLabel(targetLabel); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsSuggestBadWord implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** SUGGEST_WORD: {NotNull, VARCHAR(255)} */ - protected String _suggestWord; - - /** TARGET_ROLE: {VARCHAR(255)} */ - protected String _targetRole; - - /** TARGET_LABEL: {VARCHAR(255)} */ - protected String _targetLabel; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "SUGGEST_BAD_WORD"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "suggestBadWord"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsSuggestBadWord)) { - return false; - } - final BsSuggestBadWord other = (BsSuggestBadWord) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getSuggestWord()); - sb.append(dm).append(getTargetRole()); - sb.append(dm).append(getTargetLabel()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public SuggestBadWord clone() { - try { - return (SuggestBadWord) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] SUGGEST_WORD: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'SUGGEST_WORD'. (basically NotNull if selected: for the constraint) - */ - public String getSuggestWord() { - return _suggestWord; - } - - /** - * [set] SUGGEST_WORD: {NotNull, VARCHAR(255)} <br /> - * @param suggestWord The value of the column 'SUGGEST_WORD'. (basically NotNull if update: for the constraint) - */ - public void setSuggestWord(final String suggestWord) { - __modifiedProperties.addPropertyName("suggestWord"); - _suggestWord = suggestWord; - } - - /** - * [get] TARGET_ROLE: {VARCHAR(255)} <br /> - * @return The value of the column 'TARGET_ROLE'. (NullAllowed even if selected: for no constraint) - */ - public String getTargetRole() { - return _targetRole; - } - - /** - * [set] TARGET_ROLE: {VARCHAR(255)} <br /> - * @param targetRole The value of the column 'TARGET_ROLE'. (NullAllowed: null update allowed for no constraint) - */ - public void setTargetRole(final String targetRole) { - __modifiedProperties.addPropertyName("targetRole"); - _targetRole = targetRole; - } - - /** - * [get] TARGET_LABEL: {VARCHAR(255)} <br /> - * @return The value of the column 'TARGET_LABEL'. (NullAllowed even if selected: for no constraint) - */ - public String getTargetLabel() { - return _targetLabel; - } - - /** - * [set] TARGET_LABEL: {VARCHAR(255)} <br /> - * @param targetLabel The value of the column 'TARGET_LABEL'. (NullAllowed: null update allowed for no constraint) - */ - public void setTargetLabel(final String targetLabel) { - __modifiedProperties.addPropertyName("targetLabel"); - _targetLabel = targetLabel; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsSuggestElevateWord.java b/src/main/java/jp/sf/fess/db/bsentity/BsSuggestElevateWord.java deleted file mode 100644 index ce972f006..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsSuggestElevateWord.java +++ /dev/null @@ -1,626 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.SuggestElevateWord; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of SUGGEST_ELEVATE_WORD as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, SUGGEST_WORD, READING, TARGET_ROLE, TARGET_LABEL, BOOST, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String suggestWord = entity.getSuggestWord(); - * String reading = entity.getReading(); - * String targetRole = entity.getTargetRole(); - * String targetLabel = entity.getTargetLabel(); - * java.math.BigDecimal boost = entity.getBoost(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setSuggestWord(suggestWord); - * entity.setReading(reading); - * entity.setTargetRole(targetRole); - * entity.setTargetLabel(targetLabel); - * entity.setBoost(boost); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsSuggestElevateWord implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** SUGGEST_WORD: {NotNull, VARCHAR(255)} */ - protected String _suggestWord; - - /** READING: {VARCHAR(255)} */ - protected String _reading; - - /** TARGET_ROLE: {VARCHAR(255)} */ - protected String _targetRole; - - /** TARGET_LABEL: {VARCHAR(255)} */ - protected String _targetLabel; - - /** BOOST: {NotNull, DOUBLE(17)} */ - protected java.math.BigDecimal _boost; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "SUGGEST_ELEVATE_WORD"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "suggestElevateWord"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsSuggestElevateWord)) { - return false; - } - final BsSuggestElevateWord other = (BsSuggestElevateWord) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getSuggestWord()); - sb.append(dm).append(getReading()); - sb.append(dm).append(getTargetRole()); - sb.append(dm).append(getTargetLabel()); - sb.append(dm).append(getBoost()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public SuggestElevateWord clone() { - try { - return (SuggestElevateWord) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] SUGGEST_WORD: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'SUGGEST_WORD'. (basically NotNull if selected: for the constraint) - */ - public String getSuggestWord() { - return _suggestWord; - } - - /** - * [set] SUGGEST_WORD: {NotNull, VARCHAR(255)} <br /> - * @param suggestWord The value of the column 'SUGGEST_WORD'. (basically NotNull if update: for the constraint) - */ - public void setSuggestWord(final String suggestWord) { - __modifiedProperties.addPropertyName("suggestWord"); - _suggestWord = suggestWord; - } - - /** - * [get] READING: {VARCHAR(255)} <br /> - * @return The value of the column 'READING'. (NullAllowed even if selected: for no constraint) - */ - public String getReading() { - return _reading; - } - - /** - * [set] READING: {VARCHAR(255)} <br /> - * @param reading The value of the column 'READING'. (NullAllowed: null update allowed for no constraint) - */ - public void setReading(final String reading) { - __modifiedProperties.addPropertyName("reading"); - _reading = reading; - } - - /** - * [get] TARGET_ROLE: {VARCHAR(255)} <br /> - * @return The value of the column 'TARGET_ROLE'. (NullAllowed even if selected: for no constraint) - */ - public String getTargetRole() { - return _targetRole; - } - - /** - * [set] TARGET_ROLE: {VARCHAR(255)} <br /> - * @param targetRole The value of the column 'TARGET_ROLE'. (NullAllowed: null update allowed for no constraint) - */ - public void setTargetRole(final String targetRole) { - __modifiedProperties.addPropertyName("targetRole"); - _targetRole = targetRole; - } - - /** - * [get] TARGET_LABEL: {VARCHAR(255)} <br /> - * @return The value of the column 'TARGET_LABEL'. (NullAllowed even if selected: for no constraint) - */ - public String getTargetLabel() { - return _targetLabel; - } - - /** - * [set] TARGET_LABEL: {VARCHAR(255)} <br /> - * @param targetLabel The value of the column 'TARGET_LABEL'. (NullAllowed: null update allowed for no constraint) - */ - public void setTargetLabel(final String targetLabel) { - __modifiedProperties.addPropertyName("targetLabel"); - _targetLabel = targetLabel; - } - - /** - * [get] BOOST: {NotNull, DOUBLE(17)} <br /> - * @return The value of the column 'BOOST'. (basically NotNull if selected: for the constraint) - */ - public java.math.BigDecimal getBoost() { - return _boost; - } - - /** - * [set] BOOST: {NotNull, DOUBLE(17)} <br /> - * @param boost The value of the column 'BOOST'. (basically NotNull if update: for the constraint) - */ - public void setBoost(final java.math.BigDecimal boost) { - __modifiedProperties.addPropertyName("boost"); - _boost = boost; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsUserInfo.java b/src/main/java/jp/sf/fess/db/bsentity/BsUserInfo.java deleted file mode 100644 index f2863949c..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsUserInfo.java +++ /dev/null @@ -1,494 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.FavoriteLog; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.db.exentity.UserInfo; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of USER_INFO as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, CODE, CREATED_TIME, UPDATED_TIME - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * FAVORITE_LOG, SEARCH_LOG - * - * [foreign property] - * - * - * [referrer property] - * favoriteLogList, searchLogList - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String code = entity.getCode(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * entity.setId(id); - * entity.setCode(code); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedTime(updatedTime); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsUserInfo implements Entity, Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** CODE: {NotNull, VARCHAR(1000)} */ - protected String _code; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "USER_INFO"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "userInfo"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - /** FAVORITE_LOG by USER_ID, named 'favoriteLogList'. */ - protected List<FavoriteLog> _favoriteLogList; - - /** - * [get] FAVORITE_LOG by USER_ID, named 'favoriteLogList'. - * @return The entity list of referrer property 'favoriteLogList'. (NotNull: even if no loading, returns empty list) - */ - public List<FavoriteLog> getFavoriteLogList() { - if (_favoriteLogList == null) { - _favoriteLogList = newReferrerList(); - } - return _favoriteLogList; - } - - /** - * [set] FAVORITE_LOG by USER_ID, named 'favoriteLogList'. - * @param favoriteLogList The entity list of referrer property 'favoriteLogList'. (NullAllowed) - */ - public void setFavoriteLogList(final List<FavoriteLog> favoriteLogList) { - _favoriteLogList = favoriteLogList; - } - - /** SEARCH_LOG by USER_ID, named 'searchLogList'. */ - protected List<SearchLog> _searchLogList; - - /** - * [get] SEARCH_LOG by USER_ID, named 'searchLogList'. - * @return The entity list of referrer property 'searchLogList'. (NotNull: even if no loading, returns empty list) - */ - public List<SearchLog> getSearchLogList() { - if (_searchLogList == null) { - _searchLogList = newReferrerList(); - } - return _searchLogList; - } - - /** - * [set] SEARCH_LOG by USER_ID, named 'searchLogList'. - * @param searchLogList The entity list of referrer property 'searchLogList'. (NullAllowed) - */ - public void setSearchLogList(final List<SearchLog> searchLogList) { - _searchLogList = searchLogList; - } - - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsUserInfo)) { - return false; - } - final BsUserInfo other = (BsUserInfo) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_favoriteLogList != null) { - for (final Entity et : _favoriteLogList) { - if (et != null) { - sb.append(li).append(xbRDS(et, "favoriteLogList")); - } - } - } - if (_searchLogList != null) { - for (final Entity et : _searchLogList) { - if (et != null) { - sb.append(li).append(xbRDS(et, "searchLogList")); - } - } - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getCode()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedTime()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_favoriteLogList != null && !_favoriteLogList.isEmpty()) { - sb.append(cm).append("favoriteLogList"); - } - if (_searchLogList != null && !_searchLogList.isEmpty()) { - sb.append(cm).append("searchLogList"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public UserInfo clone() { - try { - return (UserInfo) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] CODE: {NotNull, VARCHAR(1000)} <br /> - * @return The value of the column 'CODE'. (basically NotNull if selected: for the constraint) - */ - public String getCode() { - return _code; - } - - /** - * [set] CODE: {NotNull, VARCHAR(1000)} <br /> - * @param code The value of the column 'CODE'. (basically NotNull if update: for the constraint) - */ - public void setCode(final String code) { - __modifiedProperties.addPropertyName("code"); - _code = code; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsWebAuthentication.java b/src/main/java/jp/sf/fess/db/bsentity/BsWebAuthentication.java deleted file mode 100644 index 256caeac1..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsWebAuthentication.java +++ /dev/null @@ -1,732 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.WebAuthentication; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of WEB_AUTHENTICATION as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, HOSTNAME, PORT, AUTH_REALM, PROTOCOL_SCHEME, USERNAME, PASSWORD, PARAMETERS, WEB_CRAWLING_CONFIG_ID, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * WEB_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * webCrawlingConfig - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String hostname = entity.getHostname(); - * Integer port = entity.getPort(); - * String authRealm = entity.getAuthRealm(); - * String protocolScheme = entity.getProtocolScheme(); - * String username = entity.getUsername(); - * String password = entity.getPassword(); - * String parameters = entity.getParameters(); - * Long webCrawlingConfigId = entity.getWebCrawlingConfigId(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setHostname(hostname); - * entity.setPort(port); - * entity.setAuthRealm(authRealm); - * entity.setProtocolScheme(protocolScheme); - * entity.setUsername(username); - * entity.setPassword(password); - * entity.setParameters(parameters); - * entity.setWebCrawlingConfigId(webCrawlingConfigId); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsWebAuthentication implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** HOSTNAME: {VARCHAR(100)} */ - protected String _hostname; - - /** PORT: {NotNull, INTEGER(10)} */ - protected Integer _port; - - /** AUTH_REALM: {VARCHAR(100)} */ - protected String _authRealm; - - /** PROTOCOL_SCHEME: {VARCHAR(10)} */ - protected String _protocolScheme; - - /** USERNAME: {NotNull, VARCHAR(100)} */ - protected String _username; - - /** PASSWORD: {VARCHAR(100)} */ - protected String _password; - - /** PARAMETERS: {VARCHAR(1000)} */ - protected String _parameters; - - /** WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} */ - protected Long _webCrawlingConfigId; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "WEB_AUTHENTICATION"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "webAuthentication"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. */ - protected WebCrawlingConfig _webCrawlingConfig; - - /** - * [get] WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @return The entity of foreign property 'webCrawlingConfig'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public WebCrawlingConfig getWebCrawlingConfig() { - return _webCrawlingConfig; - } - - /** - * [set] WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @param webCrawlingConfig The entity of foreign property 'webCrawlingConfig'. (NullAllowed) - */ - public void setWebCrawlingConfig(final WebCrawlingConfig webCrawlingConfig) { - _webCrawlingConfig = webCrawlingConfig; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsWebAuthentication)) { - return false; - } - final BsWebAuthentication other = (BsWebAuthentication) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_webCrawlingConfig != null) { - sb.append(li) - .append(xbRDS(_webCrawlingConfig, "webCrawlingConfig")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getHostname()); - sb.append(dm).append(getPort()); - sb.append(dm).append(getAuthRealm()); - sb.append(dm).append(getProtocolScheme()); - sb.append(dm).append(getUsername()); - sb.append(dm).append(getPassword()); - sb.append(dm).append(getParameters()); - sb.append(dm).append(getWebCrawlingConfigId()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_webCrawlingConfig != null) { - sb.append(cm).append("webCrawlingConfig"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public WebAuthentication clone() { - try { - return (WebAuthentication) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] HOSTNAME: {VARCHAR(100)} <br /> - * @return The value of the column 'HOSTNAME'. (NullAllowed even if selected: for no constraint) - */ - public String getHostname() { - return _hostname; - } - - /** - * [set] HOSTNAME: {VARCHAR(100)} <br /> - * @param hostname The value of the column 'HOSTNAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setHostname(final String hostname) { - __modifiedProperties.addPropertyName("hostname"); - _hostname = hostname; - } - - /** - * [get] PORT: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'PORT'. (basically NotNull if selected: for the constraint) - */ - public Integer getPort() { - return _port; - } - - /** - * [set] PORT: {NotNull, INTEGER(10)} <br /> - * @param port The value of the column 'PORT'. (basically NotNull if update: for the constraint) - */ - public void setPort(final Integer port) { - __modifiedProperties.addPropertyName("port"); - _port = port; - } - - /** - * [get] AUTH_REALM: {VARCHAR(100)} <br /> - * @return The value of the column 'AUTH_REALM'. (NullAllowed even if selected: for no constraint) - */ - public String getAuthRealm() { - return _authRealm; - } - - /** - * [set] AUTH_REALM: {VARCHAR(100)} <br /> - * @param authRealm The value of the column 'AUTH_REALM'. (NullAllowed: null update allowed for no constraint) - */ - public void setAuthRealm(final String authRealm) { - __modifiedProperties.addPropertyName("authRealm"); - _authRealm = authRealm; - } - - /** - * [get] PROTOCOL_SCHEME: {VARCHAR(10)} <br /> - * @return The value of the column 'PROTOCOL_SCHEME'. (NullAllowed even if selected: for no constraint) - */ - public String getProtocolScheme() { - return _protocolScheme; - } - - /** - * [set] PROTOCOL_SCHEME: {VARCHAR(10)} <br /> - * @param protocolScheme The value of the column 'PROTOCOL_SCHEME'. (NullAllowed: null update allowed for no constraint) - */ - public void setProtocolScheme(final String protocolScheme) { - __modifiedProperties.addPropertyName("protocolScheme"); - _protocolScheme = protocolScheme; - } - - /** - * [get] USERNAME: {NotNull, VARCHAR(100)} <br /> - * @return The value of the column 'USERNAME'. (basically NotNull if selected: for the constraint) - */ - public String getUsername() { - return _username; - } - - /** - * [set] USERNAME: {NotNull, VARCHAR(100)} <br /> - * @param username The value of the column 'USERNAME'. (basically NotNull if update: for the constraint) - */ - public void setUsername(final String username) { - __modifiedProperties.addPropertyName("username"); - _username = username; - } - - /** - * [get] PASSWORD: {VARCHAR(100)} <br /> - * @return The value of the column 'PASSWORD'. (NullAllowed even if selected: for no constraint) - */ - public String getPassword() { - return _password; - } - - /** - * [set] PASSWORD: {VARCHAR(100)} <br /> - * @param password The value of the column 'PASSWORD'. (NullAllowed: null update allowed for no constraint) - */ - public void setPassword(final String password) { - __modifiedProperties.addPropertyName("password"); - _password = password; - } - - /** - * [get] PARAMETERS: {VARCHAR(1000)} <br /> - * @return The value of the column 'PARAMETERS'. (NullAllowed even if selected: for no constraint) - */ - public String getParameters() { - return _parameters; - } - - /** - * [set] PARAMETERS: {VARCHAR(1000)} <br /> - * @param parameters The value of the column 'PARAMETERS'. (NullAllowed: null update allowed for no constraint) - */ - public void setParameters(final String parameters) { - __modifiedProperties.addPropertyName("parameters"); - _parameters = parameters; - } - - /** - * [get] WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} <br /> - * @return The value of the column 'WEB_CRAWLING_CONFIG_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getWebCrawlingConfigId() { - return _webCrawlingConfigId; - } - - /** - * [set] WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} <br /> - * @param webCrawlingConfigId The value of the column 'WEB_CRAWLING_CONFIG_ID'. (basically NotNull if update: for the constraint) - */ - public void setWebCrawlingConfigId(final Long webCrawlingConfigId) { - __modifiedProperties.addPropertyName("webCrawlingConfigId"); - _webCrawlingConfigId = webCrawlingConfigId; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsWebConfigToLabelTypeMapping.java b/src/main/java/jp/sf/fess/db/bsentity/BsWebConfigToLabelTypeMapping.java deleted file mode 100644 index 3b8487d17..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsWebConfigToLabelTypeMapping.java +++ /dev/null @@ -1,459 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of WEB_CONFIG_TO_LABEL_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, WEB_CONFIG_ID, LABEL_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * LABEL_TYPE, WEB_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * labelType, webCrawlingConfig - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * Long webConfigId = entity.getWebConfigId(); - * Long labelTypeId = entity.getLabelTypeId(); - * entity.setId(id); - * entity.setWebConfigId(webConfigId); - * entity.setLabelTypeId(labelTypeId); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsWebConfigToLabelTypeMapping implements Entity, - Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} */ - protected Long _webConfigId; - - /** LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} */ - protected Long _labelTypeId; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "WEB_CONFIG_TO_LABEL_TYPE_MAPPING"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "webConfigToLabelTypeMapping"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. */ - protected LabelType _labelType; - - /** - * [get] LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The entity of foreign property 'labelType'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public LabelType getLabelType() { - return _labelType; - } - - /** - * [set] LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @param labelType The entity of foreign property 'labelType'. (NullAllowed) - */ - public void setLabelType(final LabelType labelType) { - _labelType = labelType; - } - - /** WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. */ - protected WebCrawlingConfig _webCrawlingConfig; - - /** - * [get] WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @return The entity of foreign property 'webCrawlingConfig'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public WebCrawlingConfig getWebCrawlingConfig() { - return _webCrawlingConfig; - } - - /** - * [set] WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @param webCrawlingConfig The entity of foreign property 'webCrawlingConfig'. (NullAllowed) - */ - public void setWebCrawlingConfig(final WebCrawlingConfig webCrawlingConfig) { - _webCrawlingConfig = webCrawlingConfig; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsWebConfigToLabelTypeMapping)) { - return false; - } - final BsWebConfigToLabelTypeMapping other = (BsWebConfigToLabelTypeMapping) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_labelType != null) { - sb.append(li).append(xbRDS(_labelType, "labelType")); - } - if (_webCrawlingConfig != null) { - sb.append(li) - .append(xbRDS(_webCrawlingConfig, "webCrawlingConfig")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getWebConfigId()); - sb.append(dm).append(getLabelTypeId()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_labelType != null) { - sb.append(cm).append("labelType"); - } - if (_webCrawlingConfig != null) { - sb.append(cm).append("webCrawlingConfig"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public WebConfigToLabelTypeMapping clone() { - try { - return (WebConfigToLabelTypeMapping) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} <br /> - * @return The value of the column 'WEB_CONFIG_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getWebConfigId() { - return _webConfigId; - } - - /** - * [set] WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} <br /> - * @param webConfigId The value of the column 'WEB_CONFIG_ID'. (basically NotNull if update: for the constraint) - */ - public void setWebConfigId(final Long webConfigId) { - __modifiedProperties.addPropertyName("webConfigId"); - _webConfigId = webConfigId; - } - - /** - * [get] LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} <br /> - * @return The value of the column 'LABEL_TYPE_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getLabelTypeId() { - return _labelTypeId; - } - - /** - * [set] LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} <br /> - * @param labelTypeId The value of the column 'LABEL_TYPE_ID'. (basically NotNull if update: for the constraint) - */ - public void setLabelTypeId(final Long labelTypeId) { - __modifiedProperties.addPropertyName("labelTypeId"); - _labelTypeId = labelTypeId; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsWebConfigToRoleTypeMapping.java b/src/main/java/jp/sf/fess/db/bsentity/BsWebConfigToRoleTypeMapping.java deleted file mode 100644 index 85189bb77..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsWebConfigToRoleTypeMapping.java +++ /dev/null @@ -1,459 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of WEB_CONFIG_TO_ROLE_TYPE_MAPPING as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, WEB_CONFIG_ID, ROLE_TYPE_ID - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * - * - * [foreign table] - * ROLE_TYPE, WEB_CRAWLING_CONFIG - * - * [referrer table] - * - * - * [foreign property] - * roleType, webCrawlingConfig - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * Long webConfigId = entity.getWebConfigId(); - * Long roleTypeId = entity.getRoleTypeId(); - * entity.setId(id); - * entity.setWebConfigId(webConfigId); - * entity.setRoleTypeId(roleTypeId); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsWebConfigToRoleTypeMapping implements Entity, - Serializable, Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} */ - protected Long _webConfigId; - - /** ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} */ - protected Long _roleTypeId; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "WEB_CONFIG_TO_ROLE_TYPE_MAPPING"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "webConfigToRoleTypeMapping"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - /** ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. */ - protected RoleType _roleType; - - /** - * [get] ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The entity of foreign property 'roleType'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public RoleType getRoleType() { - return _roleType; - } - - /** - * [set] ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @param roleType The entity of foreign property 'roleType'. (NullAllowed) - */ - public void setRoleType(final RoleType roleType) { - _roleType = roleType; - } - - /** WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. */ - protected WebCrawlingConfig _webCrawlingConfig; - - /** - * [get] WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @return The entity of foreign property 'webCrawlingConfig'. (NullAllowed: when e.g. null FK column, no setupSelect) - */ - public WebCrawlingConfig getWebCrawlingConfig() { - return _webCrawlingConfig; - } - - /** - * [set] WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @param webCrawlingConfig The entity of foreign property 'webCrawlingConfig'. (NullAllowed) - */ - public void setWebCrawlingConfig(final WebCrawlingConfig webCrawlingConfig) { - _webCrawlingConfig = webCrawlingConfig; - } - - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsWebConfigToRoleTypeMapping)) { - return false; - } - final BsWebConfigToRoleTypeMapping other = (BsWebConfigToRoleTypeMapping) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_roleType != null) { - sb.append(li).append(xbRDS(_roleType, "roleType")); - } - if (_webCrawlingConfig != null) { - sb.append(li) - .append(xbRDS(_webCrawlingConfig, "webCrawlingConfig")); - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getWebConfigId()); - sb.append(dm).append(getRoleTypeId()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_roleType != null) { - sb.append(cm).append("roleType"); - } - if (_webCrawlingConfig != null) { - sb.append(cm).append("webCrawlingConfig"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public WebConfigToRoleTypeMapping clone() { - try { - return (WebConfigToRoleTypeMapping) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} <br /> - * @return The value of the column 'WEB_CONFIG_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getWebConfigId() { - return _webConfigId; - } - - /** - * [set] WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} <br /> - * @param webConfigId The value of the column 'WEB_CONFIG_ID'. (basically NotNull if update: for the constraint) - */ - public void setWebConfigId(final Long webConfigId) { - __modifiedProperties.addPropertyName("webConfigId"); - _webConfigId = webConfigId; - } - - /** - * [get] ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} <br /> - * @return The value of the column 'ROLE_TYPE_ID'. (basically NotNull if selected: for the constraint) - */ - public Long getRoleTypeId() { - return _roleTypeId; - } - - /** - * [set] ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} <br /> - * @param roleTypeId The value of the column 'ROLE_TYPE_ID'. (basically NotNull if update: for the constraint) - */ - public void setRoleTypeId(final Long roleTypeId) { - __modifiedProperties.addPropertyName("roleTypeId"); - _roleTypeId = roleTypeId; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/BsWebCrawlingConfig.java b/src/main/java/jp/sf/fess/db/bsentity/BsWebCrawlingConfig.java deleted file mode 100644 index 5d715f141..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/BsWebCrawlingConfig.java +++ /dev/null @@ -1,1005 +0,0 @@ -/* - * Copyright 2009-2015 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; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.exentity.RequestHeader; -import jp.sf.fess.db.exentity.WebAuthentication; -import jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of WEB_CRAWLING_CONFIG as TABLE. <br /> - * <pre> - * [primary-key] - * ID - * - * [column] - * ID, NAME, URLS, INCLUDED_URLS, EXCLUDED_URLS, INCLUDED_DOC_URLS, EXCLUDED_DOC_URLS, CONFIG_PARAMETER, DEPTH, MAX_ACCESS_COUNT, USER_AGENT, NUM_OF_THREAD, INTERVAL_TIME, BOOST, AVAILABLE, SORT_ORDER, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, DELETED_BY, DELETED_TIME, VERSION_NO - * - * [sequence] - * - * - * [identity] - * ID - * - * [version-no] - * VERSION_NO - * - * [foreign table] - * - * - * [referrer table] - * REQUEST_HEADER, WEB_AUTHENTICATION, WEB_CONFIG_TO_LABEL_TYPE_MAPPING, WEB_CONFIG_TO_ROLE_TYPE_MAPPING - * - * [foreign property] - * - * - * [referrer property] - * requestHeaderList, webAuthenticationList, webConfigToLabelTypeMappingList, webConfigToRoleTypeMappingList - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * Long id = entity.getId(); - * String name = entity.getName(); - * String urls = entity.getUrls(); - * String includedUrls = entity.getIncludedUrls(); - * String excludedUrls = entity.getExcludedUrls(); - * String includedDocUrls = entity.getIncludedDocUrls(); - * String excludedDocUrls = entity.getExcludedDocUrls(); - * String configParameter = entity.getConfigParameter(); - * Integer depth = entity.getDepth(); - * Long maxAccessCount = entity.getMaxAccessCount(); - * String userAgent = entity.getUserAgent(); - * Integer numOfThread = entity.getNumOfThread(); - * Integer intervalTime = entity.getIntervalTime(); - * java.math.BigDecimal boost = entity.getBoost(); - * String available = entity.getAvailable(); - * Integer sortOrder = entity.getSortOrder(); - * String createdBy = entity.getCreatedBy(); - * java.sql.Timestamp createdTime = entity.getCreatedTime(); - * String updatedBy = entity.getUpdatedBy(); - * java.sql.Timestamp updatedTime = entity.getUpdatedTime(); - * String deletedBy = entity.getDeletedBy(); - * java.sql.Timestamp deletedTime = entity.getDeletedTime(); - * Integer versionNo = entity.getVersionNo(); - * entity.setId(id); - * entity.setName(name); - * entity.setUrls(urls); - * entity.setIncludedUrls(includedUrls); - * entity.setExcludedUrls(excludedUrls); - * entity.setIncludedDocUrls(includedDocUrls); - * entity.setExcludedDocUrls(excludedDocUrls); - * entity.setConfigParameter(configParameter); - * entity.setDepth(depth); - * entity.setMaxAccessCount(maxAccessCount); - * entity.setUserAgent(userAgent); - * entity.setNumOfThread(numOfThread); - * entity.setIntervalTime(intervalTime); - * entity.setBoost(boost); - * entity.setAvailable(available); - * entity.setSortOrder(sortOrder); - * entity.setCreatedBy(createdBy); - * entity.setCreatedTime(createdTime); - * entity.setUpdatedBy(updatedBy); - * entity.setUpdatedTime(updatedTime); - * entity.setDeletedBy(deletedBy); - * entity.setDeletedTime(deletedTime); - * entity.setVersionNo(versionNo); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsWebCrawlingConfig implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** ID: {PK, ID, NotNull, BIGINT(19)} */ - protected Long _id; - - /** NAME: {NotNull, VARCHAR(200)} */ - protected String _name; - - /** URLS: {NotNull, VARCHAR(4000)} */ - protected String _urls; - - /** INCLUDED_URLS: {VARCHAR(4000)} */ - protected String _includedUrls; - - /** EXCLUDED_URLS: {VARCHAR(4000)} */ - protected String _excludedUrls; - - /** INCLUDED_DOC_URLS: {VARCHAR(4000)} */ - protected String _includedDocUrls; - - /** EXCLUDED_DOC_URLS: {VARCHAR(4000)} */ - protected String _excludedDocUrls; - - /** CONFIG_PARAMETER: {VARCHAR(4000)} */ - protected String _configParameter; - - /** DEPTH: {INTEGER(10)} */ - protected Integer _depth; - - /** MAX_ACCESS_COUNT: {BIGINT(19)} */ - protected Long _maxAccessCount; - - /** USER_AGENT: {NotNull, VARCHAR(200)} */ - protected String _userAgent; - - /** NUM_OF_THREAD: {NotNull, INTEGER(10)} */ - protected Integer _numOfThread; - - /** INTERVAL_TIME: {NotNull, INTEGER(10)} */ - protected Integer _intervalTime; - - /** BOOST: {NotNull, DOUBLE(17)} */ - protected java.math.BigDecimal _boost; - - /** AVAILABLE: {NotNull, VARCHAR(1)} */ - protected String _available; - - /** SORT_ORDER: {NotNull, INTEGER(10)} */ - protected Integer _sortOrder; - - /** CREATED_BY: {NotNull, VARCHAR(255)} */ - protected String _createdBy; - - /** CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _createdTime; - - /** UPDATED_BY: {VARCHAR(255)} */ - protected String _updatedBy; - - /** UPDATED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _updatedTime; - - /** DELETED_BY: {VARCHAR(255)} */ - protected String _deletedBy; - - /** DELETED_TIME: {TIMESTAMP(23, 10)} */ - protected java.sql.Timestamp _deletedTime; - - /** VERSION_NO: {NotNull, INTEGER(10)} */ - protected Integer _versionNo; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "WEB_CRAWLING_CONFIG"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "webCrawlingConfig"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return DBMetaInstanceHandler.findDBMeta(getTableDbName()); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - if (getId() == null) { - return false; - } - return true; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - /** REQUEST_HEADER by WEB_CRAWLING_CONFIG_ID, named 'requestHeaderList'. */ - protected List<RequestHeader> _requestHeaderList; - - /** - * [get] REQUEST_HEADER by WEB_CRAWLING_CONFIG_ID, named 'requestHeaderList'. - * @return The entity list of referrer property 'requestHeaderList'. (NotNull: even if no loading, returns empty list) - */ - public List<RequestHeader> getRequestHeaderList() { - if (_requestHeaderList == null) { - _requestHeaderList = newReferrerList(); - } - return _requestHeaderList; - } - - /** - * [set] REQUEST_HEADER by WEB_CRAWLING_CONFIG_ID, named 'requestHeaderList'. - * @param requestHeaderList The entity list of referrer property 'requestHeaderList'. (NullAllowed) - */ - public void setRequestHeaderList(final List<RequestHeader> requestHeaderList) { - _requestHeaderList = requestHeaderList; - } - - /** WEB_AUTHENTICATION by WEB_CRAWLING_CONFIG_ID, named 'webAuthenticationList'. */ - protected List<WebAuthentication> _webAuthenticationList; - - /** - * [get] WEB_AUTHENTICATION by WEB_CRAWLING_CONFIG_ID, named 'webAuthenticationList'. - * @return The entity list of referrer property 'webAuthenticationList'. (NotNull: even if no loading, returns empty list) - */ - public List<WebAuthentication> getWebAuthenticationList() { - if (_webAuthenticationList == null) { - _webAuthenticationList = newReferrerList(); - } - return _webAuthenticationList; - } - - /** - * [set] WEB_AUTHENTICATION by WEB_CRAWLING_CONFIG_ID, named 'webAuthenticationList'. - * @param webAuthenticationList The entity list of referrer property 'webAuthenticationList'. (NullAllowed) - */ - public void setWebAuthenticationList( - final List<WebAuthentication> webAuthenticationList) { - _webAuthenticationList = webAuthenticationList; - } - - /** WEB_CONFIG_TO_LABEL_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToLabelTypeMappingList'. */ - protected List<WebConfigToLabelTypeMapping> _webConfigToLabelTypeMappingList; - - /** - * [get] WEB_CONFIG_TO_LABEL_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToLabelTypeMappingList'. - * @return The entity list of referrer property 'webConfigToLabelTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<WebConfigToLabelTypeMapping> getWebConfigToLabelTypeMappingList() { - if (_webConfigToLabelTypeMappingList == null) { - _webConfigToLabelTypeMappingList = newReferrerList(); - } - return _webConfigToLabelTypeMappingList; - } - - /** - * [set] WEB_CONFIG_TO_LABEL_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToLabelTypeMappingList'. - * @param webConfigToLabelTypeMappingList The entity list of referrer property 'webConfigToLabelTypeMappingList'. (NullAllowed) - */ - public void setWebConfigToLabelTypeMappingList( - final List<WebConfigToLabelTypeMapping> webConfigToLabelTypeMappingList) { - _webConfigToLabelTypeMappingList = webConfigToLabelTypeMappingList; - } - - /** WEB_CONFIG_TO_ROLE_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToRoleTypeMappingList'. */ - protected List<WebConfigToRoleTypeMapping> _webConfigToRoleTypeMappingList; - - /** - * [get] WEB_CONFIG_TO_ROLE_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToRoleTypeMappingList'. - * @return The entity list of referrer property 'webConfigToRoleTypeMappingList'. (NotNull: even if no loading, returns empty list) - */ - public List<WebConfigToRoleTypeMapping> getWebConfigToRoleTypeMappingList() { - if (_webConfigToRoleTypeMappingList == null) { - _webConfigToRoleTypeMappingList = newReferrerList(); - } - return _webConfigToRoleTypeMappingList; - } - - /** - * [set] WEB_CONFIG_TO_ROLE_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToRoleTypeMappingList'. - * @param webConfigToRoleTypeMappingList The entity list of referrer property 'webConfigToRoleTypeMappingList'. (NullAllowed) - */ - public void setWebConfigToRoleTypeMappingList( - final List<WebConfigToRoleTypeMapping> webConfigToRoleTypeMappingList) { - _webConfigToRoleTypeMappingList = webConfigToRoleTypeMappingList; - } - - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsWebCrawlingConfig)) { - return false; - } - final BsWebCrawlingConfig other = (BsWebCrawlingConfig) obj; - if (!xSV(getId(), other.getId())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getId()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - final String li = "\n "; - if (_requestHeaderList != null) { - for (final Entity et : _requestHeaderList) { - if (et != null) { - sb.append(li).append(xbRDS(et, "requestHeaderList")); - } - } - } - if (_webAuthenticationList != null) { - for (final Entity et : _webAuthenticationList) { - if (et != null) { - sb.append(li).append(xbRDS(et, "webAuthenticationList")); - } - } - } - if (_webConfigToLabelTypeMappingList != null) { - for (final Entity et : _webConfigToLabelTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "webConfigToLabelTypeMappingList")); - } - } - } - if (_webConfigToRoleTypeMappingList != null) { - for (final Entity et : _webConfigToRoleTypeMappingList) { - if (et != null) { - sb.append(li).append( - xbRDS(et, "webConfigToRoleTypeMappingList")); - } - } - } - return sb.toString(); - } - - protected String xbRDS(final Entity et, final String name) { // buildRelationDisplayString() - return et.buildDisplayString(name, true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getId()); - sb.append(dm).append(getName()); - sb.append(dm).append(getUrls()); - sb.append(dm).append(getIncludedUrls()); - sb.append(dm).append(getExcludedUrls()); - sb.append(dm).append(getIncludedDocUrls()); - sb.append(dm).append(getExcludedDocUrls()); - sb.append(dm).append(getConfigParameter()); - sb.append(dm).append(getDepth()); - sb.append(dm).append(getMaxAccessCount()); - sb.append(dm).append(getUserAgent()); - sb.append(dm).append(getNumOfThread()); - sb.append(dm).append(getIntervalTime()); - sb.append(dm).append(getBoost()); - sb.append(dm).append(getAvailable()); - sb.append(dm).append(getSortOrder()); - sb.append(dm).append(getCreatedBy()); - sb.append(dm).append(getCreatedTime()); - sb.append(dm).append(getUpdatedBy()); - sb.append(dm).append(getUpdatedTime()); - sb.append(dm).append(getDeletedBy()); - sb.append(dm).append(getDeletedTime()); - sb.append(dm).append(getVersionNo()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - final StringBuilder sb = new StringBuilder(); - final String cm = ","; - if (_requestHeaderList != null && !_requestHeaderList.isEmpty()) { - sb.append(cm).append("requestHeaderList"); - } - if (_webAuthenticationList != null && !_webAuthenticationList.isEmpty()) { - sb.append(cm).append("webAuthenticationList"); - } - if (_webConfigToLabelTypeMappingList != null - && !_webConfigToLabelTypeMappingList.isEmpty()) { - sb.append(cm).append("webConfigToLabelTypeMappingList"); - } - if (_webConfigToRoleTypeMappingList != null - && !_webConfigToRoleTypeMappingList.isEmpty()) { - sb.append(cm).append("webConfigToRoleTypeMappingList"); - } - if (sb.length() > cm.length()) { - sb.delete(0, cm.length()).insert(0, "(").append(")"); - } - return sb.toString(); - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public WebCrawlingConfig clone() { - try { - return (WebCrawlingConfig) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @return The value of the column 'ID'. (basically NotNull if selected: for the constraint) - */ - public Long getId() { - return _id; - } - - /** - * [set] ID: {PK, ID, NotNull, BIGINT(19)} <br /> - * @param id The value of the column 'ID'. (basically NotNull if update: for the constraint) - */ - public void setId(final Long id) { - __modifiedProperties.addPropertyName("id"); - _id = id; - } - - /** - * [get] NAME: {NotNull, VARCHAR(200)} <br /> - * @return The value of the column 'NAME'. (basically NotNull if selected: for the constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {NotNull, VARCHAR(200)} <br /> - * @param name The value of the column 'NAME'. (basically NotNull if update: for the constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] URLS: {NotNull, VARCHAR(4000)} <br /> - * @return The value of the column 'URLS'. (basically NotNull if selected: for the constraint) - */ - public String getUrls() { - return _urls; - } - - /** - * [set] URLS: {NotNull, VARCHAR(4000)} <br /> - * @param urls The value of the column 'URLS'. (basically NotNull if update: for the constraint) - */ - public void setUrls(final String urls) { - __modifiedProperties.addPropertyName("urls"); - _urls = urls; - } - - /** - * [get] INCLUDED_URLS: {VARCHAR(4000)} <br /> - * @return The value of the column 'INCLUDED_URLS'. (NullAllowed even if selected: for no constraint) - */ - public String getIncludedUrls() { - return _includedUrls; - } - - /** - * [set] INCLUDED_URLS: {VARCHAR(4000)} <br /> - * @param includedUrls The value of the column 'INCLUDED_URLS'. (NullAllowed: null update allowed for no constraint) - */ - public void setIncludedUrls(final String includedUrls) { - __modifiedProperties.addPropertyName("includedUrls"); - _includedUrls = includedUrls; - } - - /** - * [get] EXCLUDED_URLS: {VARCHAR(4000)} <br /> - * @return The value of the column 'EXCLUDED_URLS'. (NullAllowed even if selected: for no constraint) - */ - public String getExcludedUrls() { - return _excludedUrls; - } - - /** - * [set] EXCLUDED_URLS: {VARCHAR(4000)} <br /> - * @param excludedUrls The value of the column 'EXCLUDED_URLS'. (NullAllowed: null update allowed for no constraint) - */ - public void setExcludedUrls(final String excludedUrls) { - __modifiedProperties.addPropertyName("excludedUrls"); - _excludedUrls = excludedUrls; - } - - /** - * [get] INCLUDED_DOC_URLS: {VARCHAR(4000)} <br /> - * @return The value of the column 'INCLUDED_DOC_URLS'. (NullAllowed even if selected: for no constraint) - */ - public String getIncludedDocUrls() { - return _includedDocUrls; - } - - /** - * [set] INCLUDED_DOC_URLS: {VARCHAR(4000)} <br /> - * @param includedDocUrls The value of the column 'INCLUDED_DOC_URLS'. (NullAllowed: null update allowed for no constraint) - */ - public void setIncludedDocUrls(final String includedDocUrls) { - __modifiedProperties.addPropertyName("includedDocUrls"); - _includedDocUrls = includedDocUrls; - } - - /** - * [get] EXCLUDED_DOC_URLS: {VARCHAR(4000)} <br /> - * @return The value of the column 'EXCLUDED_DOC_URLS'. (NullAllowed even if selected: for no constraint) - */ - public String getExcludedDocUrls() { - return _excludedDocUrls; - } - - /** - * [set] EXCLUDED_DOC_URLS: {VARCHAR(4000)} <br /> - * @param excludedDocUrls The value of the column 'EXCLUDED_DOC_URLS'. (NullAllowed: null update allowed for no constraint) - */ - public void setExcludedDocUrls(final String excludedDocUrls) { - __modifiedProperties.addPropertyName("excludedDocUrls"); - _excludedDocUrls = excludedDocUrls; - } - - /** - * [get] CONFIG_PARAMETER: {VARCHAR(4000)} <br /> - * @return The value of the column 'CONFIG_PARAMETER'. (NullAllowed even if selected: for no constraint) - */ - public String getConfigParameter() { - return _configParameter; - } - - /** - * [set] CONFIG_PARAMETER: {VARCHAR(4000)} <br /> - * @param configParameter The value of the column 'CONFIG_PARAMETER'. (NullAllowed: null update allowed for no constraint) - */ - public void setConfigParameter(final String configParameter) { - __modifiedProperties.addPropertyName("configParameter"); - _configParameter = configParameter; - } - - /** - * [get] DEPTH: {INTEGER(10)} <br /> - * @return The value of the column 'DEPTH'. (NullAllowed even if selected: for no constraint) - */ - public Integer getDepth() { - return _depth; - } - - /** - * [set] DEPTH: {INTEGER(10)} <br /> - * @param depth The value of the column 'DEPTH'. (NullAllowed: null update allowed for no constraint) - */ - public void setDepth(final Integer depth) { - __modifiedProperties.addPropertyName("depth"); - _depth = depth; - } - - /** - * [get] MAX_ACCESS_COUNT: {BIGINT(19)} <br /> - * @return The value of the column 'MAX_ACCESS_COUNT'. (NullAllowed even if selected: for no constraint) - */ - public Long getMaxAccessCount() { - return _maxAccessCount; - } - - /** - * [set] MAX_ACCESS_COUNT: {BIGINT(19)} <br /> - * @param maxAccessCount The value of the column 'MAX_ACCESS_COUNT'. (NullAllowed: null update allowed for no constraint) - */ - public void setMaxAccessCount(final Long maxAccessCount) { - __modifiedProperties.addPropertyName("maxAccessCount"); - _maxAccessCount = maxAccessCount; - } - - /** - * [get] USER_AGENT: {NotNull, VARCHAR(200)} <br /> - * @return The value of the column 'USER_AGENT'. (basically NotNull if selected: for the constraint) - */ - public String getUserAgent() { - return _userAgent; - } - - /** - * [set] USER_AGENT: {NotNull, VARCHAR(200)} <br /> - * @param userAgent The value of the column 'USER_AGENT'. (basically NotNull if update: for the constraint) - */ - public void setUserAgent(final String userAgent) { - __modifiedProperties.addPropertyName("userAgent"); - _userAgent = userAgent; - } - - /** - * [get] NUM_OF_THREAD: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'NUM_OF_THREAD'. (basically NotNull if selected: for the constraint) - */ - public Integer getNumOfThread() { - return _numOfThread; - } - - /** - * [set] NUM_OF_THREAD: {NotNull, INTEGER(10)} <br /> - * @param numOfThread The value of the column 'NUM_OF_THREAD'. (basically NotNull if update: for the constraint) - */ - public void setNumOfThread(final Integer numOfThread) { - __modifiedProperties.addPropertyName("numOfThread"); - _numOfThread = numOfThread; - } - - /** - * [get] INTERVAL_TIME: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'INTERVAL_TIME'. (basically NotNull if selected: for the constraint) - */ - public Integer getIntervalTime() { - return _intervalTime; - } - - /** - * [set] INTERVAL_TIME: {NotNull, INTEGER(10)} <br /> - * @param intervalTime The value of the column 'INTERVAL_TIME'. (basically NotNull if update: for the constraint) - */ - public void setIntervalTime(final Integer intervalTime) { - __modifiedProperties.addPropertyName("intervalTime"); - _intervalTime = intervalTime; - } - - /** - * [get] BOOST: {NotNull, DOUBLE(17)} <br /> - * @return The value of the column 'BOOST'. (basically NotNull if selected: for the constraint) - */ - public java.math.BigDecimal getBoost() { - return _boost; - } - - /** - * [set] BOOST: {NotNull, DOUBLE(17)} <br /> - * @param boost The value of the column 'BOOST'. (basically NotNull if update: for the constraint) - */ - public void setBoost(final java.math.BigDecimal boost) { - __modifiedProperties.addPropertyName("boost"); - _boost = boost; - } - - /** - * [get] AVAILABLE: {NotNull, VARCHAR(1)} <br /> - * @return The value of the column 'AVAILABLE'. (basically NotNull if selected: for the constraint) - */ - public String getAvailable() { - return _available; - } - - /** - * [set] AVAILABLE: {NotNull, VARCHAR(1)} <br /> - * @param available The value of the column 'AVAILABLE'. (basically NotNull if update: for the constraint) - */ - public void setAvailable(final String available) { - __modifiedProperties.addPropertyName("available"); - _available = available; - } - - /** - * [get] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'SORT_ORDER'. (basically NotNull if selected: for the constraint) - */ - public Integer getSortOrder() { - return _sortOrder; - } - - /** - * [set] SORT_ORDER: {NotNull, INTEGER(10)} <br /> - * @param sortOrder The value of the column 'SORT_ORDER'. (basically NotNull if update: for the constraint) - */ - public void setSortOrder(final Integer sortOrder) { - __modifiedProperties.addPropertyName("sortOrder"); - _sortOrder = sortOrder; - } - - /** - * [get] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @return The value of the column 'CREATED_BY'. (basically NotNull if selected: for the constraint) - */ - public String getCreatedBy() { - return _createdBy; - } - - /** - * [set] CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * @param createdBy The value of the column 'CREATED_BY'. (basically NotNull if update: for the constraint) - */ - public void setCreatedBy(final String createdBy) { - __modifiedProperties.addPropertyName("createdBy"); - _createdBy = createdBy; - } - - /** - * [get] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'CREATED_TIME'. (basically NotNull if selected: for the constraint) - */ - public java.sql.Timestamp getCreatedTime() { - return _createdTime; - } - - /** - * [set] CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} <br /> - * @param createdTime The value of the column 'CREATED_TIME'. (basically NotNull if update: for the constraint) - */ - public void setCreatedTime(final java.sql.Timestamp createdTime) { - __modifiedProperties.addPropertyName("createdTime"); - _createdTime = createdTime; - } - - /** - * [get] UPDATED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'UPDATED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getUpdatedBy() { - return _updatedBy; - } - - /** - * [set] UPDATED_BY: {VARCHAR(255)} <br /> - * @param updatedBy The value of the column 'UPDATED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedBy(final String updatedBy) { - __modifiedProperties.addPropertyName("updatedBy"); - _updatedBy = updatedBy; - } - - /** - * [get] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'UPDATED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getUpdatedTime() { - return _updatedTime; - } - - /** - * [set] UPDATED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param updatedTime The value of the column 'UPDATED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setUpdatedTime(final java.sql.Timestamp updatedTime) { - __modifiedProperties.addPropertyName("updatedTime"); - _updatedTime = updatedTime; - } - - /** - * [get] DELETED_BY: {VARCHAR(255)} <br /> - * @return The value of the column 'DELETED_BY'. (NullAllowed even if selected: for no constraint) - */ - public String getDeletedBy() { - return _deletedBy; - } - - /** - * [set] DELETED_BY: {VARCHAR(255)} <br /> - * @param deletedBy The value of the column 'DELETED_BY'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedBy(final String deletedBy) { - __modifiedProperties.addPropertyName("deletedBy"); - _deletedBy = deletedBy; - } - - /** - * [get] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @return The value of the column 'DELETED_TIME'. (NullAllowed even if selected: for no constraint) - */ - public java.sql.Timestamp getDeletedTime() { - return _deletedTime; - } - - /** - * [set] DELETED_TIME: {TIMESTAMP(23, 10)} <br /> - * @param deletedTime The value of the column 'DELETED_TIME'. (NullAllowed: null update allowed for no constraint) - */ - public void setDeletedTime(final java.sql.Timestamp deletedTime) { - __modifiedProperties.addPropertyName("deletedTime"); - _deletedTime = deletedTime; - } - - /** - * [get] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @return The value of the column 'VERSION_NO'. (basically NotNull if selected: for the constraint) - */ - public Integer getVersionNo() { - return _versionNo; - } - - /** - * [set] VERSION_NO: {NotNull, INTEGER(10)} <br /> - * @param versionNo The value of the column 'VERSION_NO'. (basically NotNull if update: for the constraint) - */ - public void setVersionNo(final Integer versionNo) { - __modifiedProperties.addPropertyName("versionNo"); - _versionNo = versionNo; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/BsClickUrlRanking.java b/src/main/java/jp/sf/fess/db/bsentity/customize/BsClickUrlRanking.java deleted file mode 100644 index 6a18b4884..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/BsClickUrlRanking.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright 2009-2015 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.customize; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.exentity.customize.ClickUrlRanking; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of ClickUrlRanking. <br /> - * <pre> - * [primary-key] - * - * - * [column] - * NAME, CNT - * - * [sequence] - * - * - * [identity] - * - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * String name = entity.getName(); - * Long cnt = entity.getCnt(); - * entity.setName(name); - * entity.setCnt(cnt); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsClickUrlRanking implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** NAME: {VARCHAR(4000), refers to CLICK_LOG.URL} */ - protected String _name; - - /** CNT: {BIGINT(19)} */ - protected Long _cnt; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "ClickUrlRanking"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "clickUrlRanking"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return jp.sf.fess.db.bsentity.customize.dbmeta.ClickUrlRankingDbm - .getInstance(); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsClickUrlRanking)) { - return false; - } - final BsClickUrlRanking other = (BsClickUrlRanking) obj; - if (!xSV(getName(), other.getName())) { - return false; - } - if (!xSV(getCnt(), other.getCnt())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getName()); - hs = xCH(hs, getCnt()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getName()); - sb.append(dm).append(getCnt()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public ClickUrlRanking clone() { - try { - return (ClickUrlRanking) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] NAME: {VARCHAR(4000), refers to CLICK_LOG.URL} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {VARCHAR(4000), refers to CLICK_LOG.URL} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] CNT: {BIGINT(19)} <br /> - * @return The value of the column 'CNT'. (NullAllowed even if selected: for no constraint) - */ - public Long getCnt() { - return _cnt; - } - - /** - * [set] CNT: {BIGINT(19)} <br /> - * @param cnt The value of the column 'CNT'. (NullAllowed: null update allowed for no constraint) - */ - public void setCnt(final Long cnt) { - __modifiedProperties.addPropertyName("cnt"); - _cnt = cnt; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/BsClientIpRanking.java b/src/main/java/jp/sf/fess/db/bsentity/customize/BsClientIpRanking.java deleted file mode 100644 index adf96ab36..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/BsClientIpRanking.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright 2009-2015 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.customize; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.exentity.customize.ClientIpRanking; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of ClientIpRanking. <br /> - * <pre> - * [primary-key] - * - * - * [column] - * NAME, CNT - * - * [sequence] - * - * - * [identity] - * - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * String name = entity.getName(); - * Long cnt = entity.getCnt(); - * entity.setName(name); - * entity.setCnt(cnt); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsClientIpRanking implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** NAME: {VARCHAR(50), refers to SEARCH_LOG.CLIENT_IP} */ - protected String _name; - - /** CNT: {BIGINT(19)} */ - protected Long _cnt; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "ClientIpRanking"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "clientIpRanking"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return jp.sf.fess.db.bsentity.customize.dbmeta.ClientIpRankingDbm - .getInstance(); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsClientIpRanking)) { - return false; - } - final BsClientIpRanking other = (BsClientIpRanking) obj; - if (!xSV(getName(), other.getName())) { - return false; - } - if (!xSV(getCnt(), other.getCnt())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getName()); - hs = xCH(hs, getCnt()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getName()); - sb.append(dm).append(getCnt()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public ClientIpRanking clone() { - try { - return (ClientIpRanking) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] NAME: {VARCHAR(50), refers to SEARCH_LOG.CLIENT_IP} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {VARCHAR(50), refers to SEARCH_LOG.CLIENT_IP} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] CNT: {BIGINT(19)} <br /> - * @return The value of the column 'CNT'. (NullAllowed even if selected: for no constraint) - */ - public Long getCnt() { - return _cnt; - } - - /** - * [set] CNT: {BIGINT(19)} <br /> - * @param cnt The value of the column 'CNT'. (NullAllowed: null update allowed for no constraint) - */ - public void setCnt(final Long cnt) { - __modifiedProperties.addPropertyName("cnt"); - _cnt = cnt; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/BsFavoriteUrlCount.java b/src/main/java/jp/sf/fess/db/bsentity/customize/BsFavoriteUrlCount.java deleted file mode 100644 index 6eb30d750..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/BsFavoriteUrlCount.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright 2009-2015 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.customize; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.exentity.customize.FavoriteUrlCount; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of FavoriteUrlCount. <br /> - * <pre> - * [primary-key] - * - * - * [column] - * NAME, CNT - * - * [sequence] - * - * - * [identity] - * - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * String name = entity.getName(); - * Long cnt = entity.getCnt(); - * entity.setName(name); - * entity.setCnt(cnt); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFavoriteUrlCount implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** NAME: {VARCHAR(4000), refers to FAVORITE_LOG.URL} */ - protected String _name; - - /** CNT: {BIGINT(19)} */ - protected Long _cnt; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "FavoriteUrlCount"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "favoriteUrlCount"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return jp.sf.fess.db.bsentity.customize.dbmeta.FavoriteUrlCountDbm - .getInstance(); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsFavoriteUrlCount)) { - return false; - } - final BsFavoriteUrlCount other = (BsFavoriteUrlCount) obj; - if (!xSV(getName(), other.getName())) { - return false; - } - if (!xSV(getCnt(), other.getCnt())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getName()); - hs = xCH(hs, getCnt()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getName()); - sb.append(dm).append(getCnt()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public FavoriteUrlCount clone() { - try { - return (FavoriteUrlCount) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] NAME: {VARCHAR(4000), refers to FAVORITE_LOG.URL} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {VARCHAR(4000), refers to FAVORITE_LOG.URL} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] CNT: {BIGINT(19)} <br /> - * @return The value of the column 'CNT'. (NullAllowed even if selected: for no constraint) - */ - public Long getCnt() { - return _cnt; - } - - /** - * [set] CNT: {BIGINT(19)} <br /> - * @param cnt The value of the column 'CNT'. (NullAllowed: null update allowed for no constraint) - */ - public void setCnt(final Long cnt) { - __modifiedProperties.addPropertyName("cnt"); - _cnt = cnt; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/BsFavoriteUrlRanking.java b/src/main/java/jp/sf/fess/db/bsentity/customize/BsFavoriteUrlRanking.java deleted file mode 100644 index 96fc842f3..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/BsFavoriteUrlRanking.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright 2009-2015 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.customize; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.exentity.customize.FavoriteUrlRanking; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of FavoriteUrlRanking. <br /> - * <pre> - * [primary-key] - * - * - * [column] - * NAME, CNT - * - * [sequence] - * - * - * [identity] - * - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * String name = entity.getName(); - * Long cnt = entity.getCnt(); - * entity.setName(name); - * entity.setCnt(cnt); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsFavoriteUrlRanking implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** NAME: {VARCHAR(4000), refers to FAVORITE_LOG.URL} */ - protected String _name; - - /** CNT: {BIGINT(19)} */ - protected Long _cnt; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "FavoriteUrlRanking"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "favoriteUrlRanking"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return jp.sf.fess.db.bsentity.customize.dbmeta.FavoriteUrlRankingDbm - .getInstance(); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsFavoriteUrlRanking)) { - return false; - } - final BsFavoriteUrlRanking other = (BsFavoriteUrlRanking) obj; - if (!xSV(getName(), other.getName())) { - return false; - } - if (!xSV(getCnt(), other.getCnt())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getName()); - hs = xCH(hs, getCnt()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getName()); - sb.append(dm).append(getCnt()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public FavoriteUrlRanking clone() { - try { - return (FavoriteUrlRanking) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] NAME: {VARCHAR(4000), refers to FAVORITE_LOG.URL} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {VARCHAR(4000), refers to FAVORITE_LOG.URL} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] CNT: {BIGINT(19)} <br /> - * @return The value of the column 'CNT'. (NullAllowed even if selected: for no constraint) - */ - public Long getCnt() { - return _cnt; - } - - /** - * [set] CNT: {BIGINT(19)} <br /> - * @param cnt The value of the column 'CNT'. (NullAllowed: null update allowed for no constraint) - */ - public void setCnt(final Long cnt) { - __modifiedProperties.addPropertyName("cnt"); - _cnt = cnt; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/BsGroupedFieldName.java b/src/main/java/jp/sf/fess/db/bsentity/customize/BsGroupedFieldName.java deleted file mode 100644 index cde1cd6b5..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/BsGroupedFieldName.java +++ /dev/null @@ -1,347 +0,0 @@ -/* - * Copyright 2009-2015 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.customize; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.exentity.customize.GroupedFieldName; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of GroupedFieldName. <br /> - * <pre> - * [primary-key] - * - * - * [column] - * NAME - * - * [sequence] - * - * - * [identity] - * - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * String name = entity.getName(); - * entity.setName(name); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsGroupedFieldName implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** NAME: {VARCHAR(255), refers to SEARCH_FIELD_LOG.NAME} */ - protected String _name; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "GroupedFieldName"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "groupedFieldName"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return jp.sf.fess.db.bsentity.customize.dbmeta.GroupedFieldNameDbm - .getInstance(); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsGroupedFieldName)) { - return false; - } - final BsGroupedFieldName other = (BsGroupedFieldName) obj; - if (!xSV(getName(), other.getName())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getName()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getName()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public GroupedFieldName clone() { - try { - return (GroupedFieldName) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] NAME: {VARCHAR(255), refers to SEARCH_FIELD_LOG.NAME} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {VARCHAR(255), refers to SEARCH_FIELD_LOG.NAME} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/BsHotSearchWord.java b/src/main/java/jp/sf/fess/db/bsentity/customize/BsHotSearchWord.java deleted file mode 100644 index 2f6e8125a..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/BsHotSearchWord.java +++ /dev/null @@ -1,347 +0,0 @@ -/* - * Copyright 2009-2015 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.customize; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.exentity.customize.HotSearchWord; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of HotSearchWord. <br /> - * <pre> - * [primary-key] - * - * - * [column] - * NAME - * - * [sequence] - * - * - * [identity] - * - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * String name = entity.getName(); - * entity.setName(name); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsHotSearchWord implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** NAME: {VARCHAR(1000), refers to SEARCH_LOG.SEARCH_WORD} */ - protected String _name; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "HotSearchWord"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "hotSearchWord"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return jp.sf.fess.db.bsentity.customize.dbmeta.HotSearchWordDbm - .getInstance(); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsHotSearchWord)) { - return false; - } - final BsHotSearchWord other = (BsHotSearchWord) obj; - if (!xSV(getName(), other.getName())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getName()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getName()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public HotSearchWord clone() { - try { - return (HotSearchWord) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] NAME: {VARCHAR(1000), refers to SEARCH_LOG.SEARCH_WORD} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {VARCHAR(1000), refers to SEARCH_LOG.SEARCH_WORD} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/BsRefererRanking.java b/src/main/java/jp/sf/fess/db/bsentity/customize/BsRefererRanking.java deleted file mode 100644 index 96efcbed1..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/BsRefererRanking.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright 2009-2015 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.customize; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.exentity.customize.RefererRanking; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of RefererRanking. <br /> - * <pre> - * [primary-key] - * - * - * [column] - * NAME, CNT - * - * [sequence] - * - * - * [identity] - * - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * String name = entity.getName(); - * Long cnt = entity.getCnt(); - * entity.setName(name); - * entity.setCnt(cnt); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsRefererRanking implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** NAME: {VARCHAR(1000), refers to SEARCH_LOG.REFERER} */ - protected String _name; - - /** CNT: {BIGINT(19)} */ - protected Long _cnt; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "RefererRanking"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "refererRanking"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return jp.sf.fess.db.bsentity.customize.dbmeta.RefererRankingDbm - .getInstance(); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsRefererRanking)) { - return false; - } - final BsRefererRanking other = (BsRefererRanking) obj; - if (!xSV(getName(), other.getName())) { - return false; - } - if (!xSV(getCnt(), other.getCnt())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getName()); - hs = xCH(hs, getCnt()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getName()); - sb.append(dm).append(getCnt()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public RefererRanking clone() { - try { - return (RefererRanking) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] NAME: {VARCHAR(1000), refers to SEARCH_LOG.REFERER} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {VARCHAR(1000), refers to SEARCH_LOG.REFERER} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] CNT: {BIGINT(19)} <br /> - * @return The value of the column 'CNT'. (NullAllowed even if selected: for no constraint) - */ - public Long getCnt() { - return _cnt; - } - - /** - * [set] CNT: {BIGINT(19)} <br /> - * @param cnt The value of the column 'CNT'. (NullAllowed: null update allowed for no constraint) - */ - public void setCnt(final Long cnt) { - __modifiedProperties.addPropertyName("cnt"); - _cnt = cnt; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/BsSearchFieldRanking.java b/src/main/java/jp/sf/fess/db/bsentity/customize/BsSearchFieldRanking.java deleted file mode 100644 index d59ac309a..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/BsSearchFieldRanking.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright 2009-2015 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.customize; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.exentity.customize.SearchFieldRanking; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of SearchFieldRanking. <br /> - * <pre> - * [primary-key] - * - * - * [column] - * NAME, CNT - * - * [sequence] - * - * - * [identity] - * - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * String name = entity.getName(); - * Long cnt = entity.getCnt(); - * entity.setName(name); - * entity.setCnt(cnt); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsSearchFieldRanking implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** NAME: {VARCHAR(1000), refers to SEARCH_FIELD_LOG.VALUE} */ - protected String _name; - - /** CNT: {BIGINT(19)} */ - protected Long _cnt; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "SearchFieldRanking"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "searchFieldRanking"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return jp.sf.fess.db.bsentity.customize.dbmeta.SearchFieldRankingDbm - .getInstance(); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsSearchFieldRanking)) { - return false; - } - final BsSearchFieldRanking other = (BsSearchFieldRanking) obj; - if (!xSV(getName(), other.getName())) { - return false; - } - if (!xSV(getCnt(), other.getCnt())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getName()); - hs = xCH(hs, getCnt()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getName()); - sb.append(dm).append(getCnt()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public SearchFieldRanking clone() { - try { - return (SearchFieldRanking) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] NAME: {VARCHAR(1000), refers to SEARCH_FIELD_LOG.VALUE} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {VARCHAR(1000), refers to SEARCH_FIELD_LOG.VALUE} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] CNT: {BIGINT(19)} <br /> - * @return The value of the column 'CNT'. (NullAllowed even if selected: for no constraint) - */ - public Long getCnt() { - return _cnt; - } - - /** - * [set] CNT: {BIGINT(19)} <br /> - * @param cnt The value of the column 'CNT'. (NullAllowed: null update allowed for no constraint) - */ - public void setCnt(final Long cnt) { - __modifiedProperties.addPropertyName("cnt"); - _cnt = cnt; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/BsSearchQueryRanking.java b/src/main/java/jp/sf/fess/db/bsentity/customize/BsSearchQueryRanking.java deleted file mode 100644 index c9ddcb2fd..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/BsSearchQueryRanking.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright 2009-2015 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.customize; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.exentity.customize.SearchQueryRanking; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of SearchQueryRanking. <br /> - * <pre> - * [primary-key] - * - * - * [column] - * NAME, CNT - * - * [sequence] - * - * - * [identity] - * - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * String name = entity.getName(); - * Long cnt = entity.getCnt(); - * entity.setName(name); - * entity.setCnt(cnt); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsSearchQueryRanking implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** NAME: {VARCHAR(1000), refers to SEARCH_FIELD_LOG.VALUE} */ - protected String _name; - - /** CNT: {BIGINT(19)} */ - protected Long _cnt; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "SearchQueryRanking"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "searchQueryRanking"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return jp.sf.fess.db.bsentity.customize.dbmeta.SearchQueryRankingDbm - .getInstance(); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsSearchQueryRanking)) { - return false; - } - final BsSearchQueryRanking other = (BsSearchQueryRanking) obj; - if (!xSV(getName(), other.getName())) { - return false; - } - if (!xSV(getCnt(), other.getCnt())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getName()); - hs = xCH(hs, getCnt()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getName()); - sb.append(dm).append(getCnt()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public SearchQueryRanking clone() { - try { - return (SearchQueryRanking) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] NAME: {VARCHAR(1000), refers to SEARCH_FIELD_LOG.VALUE} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {VARCHAR(1000), refers to SEARCH_FIELD_LOG.VALUE} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] CNT: {BIGINT(19)} <br /> - * @return The value of the column 'CNT'. (NullAllowed even if selected: for no constraint) - */ - public Long getCnt() { - return _cnt; - } - - /** - * [set] CNT: {BIGINT(19)} <br /> - * @param cnt The value of the column 'CNT'. (NullAllowed: null update allowed for no constraint) - */ - public void setCnt(final Long cnt) { - __modifiedProperties.addPropertyName("cnt"); - _cnt = cnt; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/BsSearchWordRanking.java b/src/main/java/jp/sf/fess/db/bsentity/customize/BsSearchWordRanking.java deleted file mode 100644 index e346c387b..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/BsSearchWordRanking.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright 2009-2015 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.customize; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.exentity.customize.SearchWordRanking; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of SearchWordRanking. <br /> - * <pre> - * [primary-key] - * - * - * [column] - * NAME, CNT - * - * [sequence] - * - * - * [identity] - * - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * String name = entity.getName(); - * Long cnt = entity.getCnt(); - * entity.setName(name); - * entity.setCnt(cnt); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsSearchWordRanking implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** NAME: {VARCHAR(1000), refers to SEARCH_LOG.SEARCH_WORD} */ - protected String _name; - - /** CNT: {BIGINT(19)} */ - protected Long _cnt; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "SearchWordRanking"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "searchWordRanking"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return jp.sf.fess.db.bsentity.customize.dbmeta.SearchWordRankingDbm - .getInstance(); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsSearchWordRanking)) { - return false; - } - final BsSearchWordRanking other = (BsSearchWordRanking) obj; - if (!xSV(getName(), other.getName())) { - return false; - } - if (!xSV(getCnt(), other.getCnt())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getName()); - hs = xCH(hs, getCnt()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getName()); - sb.append(dm).append(getCnt()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public SearchWordRanking clone() { - try { - return (SearchWordRanking) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] NAME: {VARCHAR(1000), refers to SEARCH_LOG.SEARCH_WORD} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {VARCHAR(1000), refers to SEARCH_LOG.SEARCH_WORD} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] CNT: {BIGINT(19)} <br /> - * @return The value of the column 'CNT'. (NullAllowed even if selected: for no constraint) - */ - public Long getCnt() { - return _cnt; - } - - /** - * [set] CNT: {BIGINT(19)} <br /> - * @param cnt The value of the column 'CNT'. (NullAllowed: null update allowed for no constraint) - */ - public void setCnt(final Long cnt) { - __modifiedProperties.addPropertyName("cnt"); - _cnt = cnt; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/BsSolrQueryRanking.java b/src/main/java/jp/sf/fess/db/bsentity/customize/BsSolrQueryRanking.java deleted file mode 100644 index 587dfa501..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/BsSolrQueryRanking.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright 2009-2015 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.customize; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.exentity.customize.SolrQueryRanking; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of SolrQueryRanking. <br /> - * <pre> - * [primary-key] - * - * - * [column] - * NAME, CNT - * - * [sequence] - * - * - * [identity] - * - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * String name = entity.getName(); - * Long cnt = entity.getCnt(); - * entity.setName(name); - * entity.setCnt(cnt); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsSolrQueryRanking implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** NAME: {VARCHAR(1000), refers to SEARCH_FIELD_LOG.VALUE} */ - protected String _name; - - /** CNT: {BIGINT(19)} */ - protected Long _cnt; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "SolrQueryRanking"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "solrQueryRanking"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return jp.sf.fess.db.bsentity.customize.dbmeta.SolrQueryRankingDbm - .getInstance(); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsSolrQueryRanking)) { - return false; - } - final BsSolrQueryRanking other = (BsSolrQueryRanking) obj; - if (!xSV(getName(), other.getName())) { - return false; - } - if (!xSV(getCnt(), other.getCnt())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getName()); - hs = xCH(hs, getCnt()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getName()); - sb.append(dm).append(getCnt()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public SolrQueryRanking clone() { - try { - return (SolrQueryRanking) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] NAME: {VARCHAR(1000), refers to SEARCH_FIELD_LOG.VALUE} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {VARCHAR(1000), refers to SEARCH_FIELD_LOG.VALUE} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] CNT: {BIGINT(19)} <br /> - * @return The value of the column 'CNT'. (NullAllowed even if selected: for no constraint) - */ - public Long getCnt() { - return _cnt; - } - - /** - * [set] CNT: {BIGINT(19)} <br /> - * @param cnt The value of the column 'CNT'. (NullAllowed: null update allowed for no constraint) - */ - public void setCnt(final Long cnt) { - __modifiedProperties.addPropertyName("cnt"); - _cnt = cnt; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/BsUserAgentRanking.java b/src/main/java/jp/sf/fess/db/bsentity/customize/BsUserAgentRanking.java deleted file mode 100644 index c103250bb..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/BsUserAgentRanking.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright 2009-2015 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.customize; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -import jp.sf.fess.db.exentity.customize.UserAgentRanking; - -import org.seasar.dbflute.Entity; -import org.seasar.dbflute.dbmeta.DBMeta; - -/** - * The entity of UserAgentRanking. <br /> - * <pre> - * [primary-key] - * - * - * [column] - * NAME, CNT - * - * [sequence] - * - * - * [identity] - * - * - * [version-no] - * - * - * [foreign table] - * - * - * [referrer table] - * - * - * [foreign property] - * - * - * [referrer property] - * - * - * [get/set template] - * /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - * String name = entity.getName(); - * Long cnt = entity.getCnt(); - * entity.setName(name); - * entity.setCnt(cnt); - * = = = = = = = = = =/ - * </pre> - * @author DBFlute(AutoGenerator) - */ -public abstract class BsUserAgentRanking implements Entity, Serializable, - Cloneable { - - // =================================================================================== - // Definition - // ========== - /** Serial version UID. (Default) */ - private static final long serialVersionUID = 1L; - - // =================================================================================== - // Attribute - // ========= - // ----------------------------------------------------- - // Column - // ------ - /** NAME: {VARCHAR(255), refers to SEARCH_LOG.USER_AGENT} */ - protected String _name; - - /** CNT: {BIGINT(19)} */ - protected Long _cnt; - - // ----------------------------------------------------- - // Internal - // -------- - /** The unique-driven properties for this entity. (NotNull) */ - protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties(); - - /** The modified properties for this entity. (NotNull) */ - protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties(); - - /** Is the entity created by DBFlute select process? */ - protected boolean __createdBySelect; - - // =================================================================================== - // Table Name - // ========== - /** - * {@inheritDoc} - */ - @Override - public String getTableDbName() { - return "UserAgentRanking"; - } - - /** - * {@inheritDoc} - */ - @Override - public String getTablePropertyName() { // according to Java Beans rule - return "userAgentRanking"; - } - - // =================================================================================== - // DBMeta - // ====== - /** - * {@inheritDoc} - */ - @Override - public DBMeta getDBMeta() { - return jp.sf.fess.db.bsentity.customize.dbmeta.UserAgentRankingDbm - .getInstance(); - } - - // =================================================================================== - // Primary Key - // =========== - /** - * {@inheritDoc} - */ - @Override - public boolean hasPrimaryKeyValue() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public Set<String> myuniqueDrivenProperties() { - return __uniqueDrivenProperties.getPropertyNames(); - } - - protected EntityUniqueDrivenProperties newUniqueDrivenProperties() { - return new EntityUniqueDrivenProperties(); - } - - // =================================================================================== - // Foreign Property - // ================ - // =================================================================================== - // Referrer Property - // ================= - protected <ELEMENT> List<ELEMENT> newReferrerList() { - return new ArrayList<ELEMENT>(); - } - - // =================================================================================== - // Modified Properties - // =================== - /** - * {@inheritDoc} - */ - @Override - public Set<String> modifiedProperties() { - return __modifiedProperties.getPropertyNames(); - } - - /** - * {@inheritDoc} - */ - @Override - public void clearModifiedInfo() { - __modifiedProperties.clear(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean hasModification() { - return !__modifiedProperties.isEmpty(); - } - - protected EntityModifiedProperties newModifiedProperties() { - return new EntityModifiedProperties(); - } - - // =================================================================================== - // Birthplace Mark - // =============== - /** - * {@inheritDoc} - */ - @Override - public void markAsSelect() { - __createdBySelect = true; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean createdBySelect() { - return __createdBySelect; - } - - // =================================================================================== - // Basic Override - // ============== - /** - * Determine the object is equal with this. <br /> - * If primary-keys or columns of the other are same as this one, returns true. - * @param obj The object as other entity. (NullAllowed: if null, returns false fixedly) - * @return Comparing result. - */ - @Override - public boolean equals(final Object obj) { - if (obj == null || !(obj instanceof BsUserAgentRanking)) { - return false; - } - final BsUserAgentRanking other = (BsUserAgentRanking) obj; - if (!xSV(getName(), other.getName())) { - return false; - } - if (!xSV(getCnt(), other.getCnt())) { - return false; - } - return true; - } - - protected boolean xSV(final Object v1, final Object v2) { - return FunCustodial.isSameValue(v1, v2); - } - - /** - * Calculate the hash-code from primary-keys or columns. - * @return The hash-code from primary-key or columns. - */ - @Override - public int hashCode() { - int hs = 17; - hs = xCH(hs, getTableDbName()); - hs = xCH(hs, getName()); - hs = xCH(hs, getCnt()); - return hs; - } - - protected int xCH(final int hs, final Object vl) { - return FunCustodial.calculateHashcode(hs, vl); - } - - /** - * {@inheritDoc} - */ - @Override - public int instanceHash() { - return super.hashCode(); - } - - /** - * Convert to display string of entity's data. (no relation data) - * @return The display string of all columns and relation existences. (NotNull) - */ - @Override - public String toString() { - return buildDisplayString(FunCustodial.toClassTitle(this), true, true); - } - - /** - * {@inheritDoc} - */ - @Override - public String toStringWithRelation() { - final StringBuilder sb = new StringBuilder(); - sb.append(toString()); - return sb.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public String buildDisplayString(final String name, final boolean column, - final boolean relation) { - final StringBuilder sb = new StringBuilder(); - if (name != null) { - sb.append(name).append(column || relation ? ":" : ""); - } - if (column) { - sb.append(buildColumnString()); - } - if (relation) { - sb.append(buildRelationString()); - } - sb.append("@").append(Integer.toHexString(hashCode())); - return sb.toString(); - } - - protected String buildColumnString() { - final StringBuilder sb = new StringBuilder(); - final String dm = ", "; - sb.append(dm).append(getName()); - sb.append(dm).append(getCnt()); - if (sb.length() > dm.length()) { - sb.delete(0, dm.length()); - } - sb.insert(0, "{").append("}"); - return sb.toString(); - } - - protected String buildRelationString() { - return ""; - } - - /** - * Clone entity instance using super.clone(). (shallow copy) - * @return The cloned instance of this entity. (NotNull) - */ - @Override - public UserAgentRanking clone() { - try { - return (UserAgentRanking) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new IllegalStateException("Failed to clone the entity: " - + toString(), e); - } - } - - // =================================================================================== - // Accessor - // ======== - /** - * [get] NAME: {VARCHAR(255), refers to SEARCH_LOG.USER_AGENT} <br /> - * @return The value of the column 'NAME'. (NullAllowed even if selected: for no constraint) - */ - public String getName() { - return _name; - } - - /** - * [set] NAME: {VARCHAR(255), refers to SEARCH_LOG.USER_AGENT} <br /> - * @param name The value of the column 'NAME'. (NullAllowed: null update allowed for no constraint) - */ - public void setName(final String name) { - __modifiedProperties.addPropertyName("name"); - _name = name; - } - - /** - * [get] CNT: {BIGINT(19)} <br /> - * @return The value of the column 'CNT'. (NullAllowed even if selected: for no constraint) - */ - public Long getCnt() { - return _cnt; - } - - /** - * [set] CNT: {BIGINT(19)} <br /> - * @param cnt The value of the column 'CNT'. (NullAllowed: null update allowed for no constraint) - */ - public void setCnt(final Long cnt) { - __modifiedProperties.addPropertyName("cnt"); - _cnt = cnt; - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/ClickUrlRankingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/ClickUrlRankingDbm.java deleted file mode 100644 index d3796446a..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/ClickUrlRankingDbm.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright 2009-2015 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.customize.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.customize.ClickUrlRanking; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of ClickUrlRanking. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class ClickUrlRankingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final ClickUrlRankingDbm _instance = new ClickUrlRankingDbm(); - - private ClickUrlRankingDbm() { - } - - public static ClickUrlRankingDbm 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 EpgName(), "name"); - setupEpg(_epgMap, new EpgCnt(), "cnt"); - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ClickUrlRanking) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ClickUrlRanking) et).setName((String) vl); - } - } - - public static class EpgCnt implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ClickUrlRanking) et).getCnt(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ClickUrlRanking) et).setCnt(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "ClickUrlRanking"; - - protected final String _tablePropertyName = "clickUrlRanking"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "ClickUrlRanking", _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 _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 4000, - 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnCnt = cci("CNT", "CNT", null, null, - Long.class, "cnt", null, false, false, false, "BIGINT", 19, 0, - null, false, null, null, null, null, null); - - /** - * NAME: {VARCHAR(4000), refers to CLICK_LOG.URL} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * CNT: {BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCnt() { - return _columnCnt; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnName()); - ls.add(columnCnt()); - return ls; - } - - { - initializeInformationResource(); - } - - // =================================================================================== - // Unique Info - // =========== - // ----------------------------------------------------- - // Primary Element - // --------------- - @Override - protected UniqueInfo cpui() { - throw new UnsupportedOperationException( - "The table does not have primary key: " + getTableDbName()); - } - - @Override - public boolean hasPrimaryKey() { - return false; - } - - @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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.customize.ClickUrlRanking"; - } - - @Override - public String getConditionBeanTypeName() { - return null; - } - - @Override - public String getBehaviorTypeName() { - return null; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<ClickUrlRanking> getEntityType() { - return ClickUrlRanking.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public ClickUrlRanking newEntity() { - return new ClickUrlRanking(); - } - - public ClickUrlRanking newMyEntity() { - return new ClickUrlRanking(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((ClickUrlRanking) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((ClickUrlRanking) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/ClientIpRankingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/ClientIpRankingDbm.java deleted file mode 100644 index a082661e4..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/ClientIpRankingDbm.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright 2009-2015 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.customize.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.customize.ClientIpRanking; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of ClientIpRanking. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class ClientIpRankingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final ClientIpRankingDbm _instance = new ClientIpRankingDbm(); - - private ClientIpRankingDbm() { - } - - public static ClientIpRankingDbm 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 EpgName(), "name"); - setupEpg(_epgMap, new EpgCnt(), "cnt"); - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ClientIpRanking) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ClientIpRanking) et).setName((String) vl); - } - } - - public static class EpgCnt implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ClientIpRanking) et).getCnt(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ClientIpRanking) et).setCnt(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "ClientIpRanking"; - - protected final String _tablePropertyName = "clientIpRanking"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "ClientIpRanking", _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 _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 50, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnCnt = cci("CNT", "CNT", null, null, - Long.class, "cnt", null, false, false, false, "BIGINT", 19, 0, - null, false, null, null, null, null, null); - - /** - * NAME: {VARCHAR(50), refers to SEARCH_LOG.CLIENT_IP} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * CNT: {BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCnt() { - return _columnCnt; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnName()); - ls.add(columnCnt()); - return ls; - } - - { - initializeInformationResource(); - } - - // =================================================================================== - // Unique Info - // =========== - // ----------------------------------------------------- - // Primary Element - // --------------- - @Override - protected UniqueInfo cpui() { - throw new UnsupportedOperationException( - "The table does not have primary key: " + getTableDbName()); - } - - @Override - public boolean hasPrimaryKey() { - return false; - } - - @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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.customize.ClientIpRanking"; - } - - @Override - public String getConditionBeanTypeName() { - return null; - } - - @Override - public String getBehaviorTypeName() { - return null; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<ClientIpRanking> getEntityType() { - return ClientIpRanking.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public ClientIpRanking newEntity() { - return new ClientIpRanking(); - } - - public ClientIpRanking newMyEntity() { - return new ClientIpRanking(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((ClientIpRanking) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((ClientIpRanking) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/FavoriteUrlCountDbm.java b/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/FavoriteUrlCountDbm.java deleted file mode 100644 index a98136bd3..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/FavoriteUrlCountDbm.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright 2009-2015 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.customize.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.customize.FavoriteUrlCount; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of FavoriteUrlCount. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class FavoriteUrlCountDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final FavoriteUrlCountDbm _instance = new FavoriteUrlCountDbm(); - - private FavoriteUrlCountDbm() { - } - - public static FavoriteUrlCountDbm 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 EpgName(), "name"); - setupEpg(_epgMap, new EpgCnt(), "cnt"); - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FavoriteUrlCount) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FavoriteUrlCount) et).setName((String) vl); - } - } - - public static class EpgCnt implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FavoriteUrlCount) et).getCnt(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FavoriteUrlCount) et).setCnt(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "FavoriteUrlCount"; - - protected final String _tablePropertyName = "favoriteUrlCount"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "FavoriteUrlCount", _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 _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 4000, - 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnCnt = cci("CNT", "CNT", null, null, - Long.class, "cnt", null, false, false, false, "BIGINT", 19, 0, - null, false, null, null, null, null, null); - - /** - * NAME: {VARCHAR(4000), refers to FAVORITE_LOG.URL} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * CNT: {BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCnt() { - return _columnCnt; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnName()); - ls.add(columnCnt()); - return ls; - } - - { - initializeInformationResource(); - } - - // =================================================================================== - // Unique Info - // =========== - // ----------------------------------------------------- - // Primary Element - // --------------- - @Override - protected UniqueInfo cpui() { - throw new UnsupportedOperationException( - "The table does not have primary key: " + getTableDbName()); - } - - @Override - public boolean hasPrimaryKey() { - return false; - } - - @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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.customize.FavoriteUrlCount"; - } - - @Override - public String getConditionBeanTypeName() { - return null; - } - - @Override - public String getBehaviorTypeName() { - return null; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<FavoriteUrlCount> getEntityType() { - return FavoriteUrlCount.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public FavoriteUrlCount newEntity() { - return new FavoriteUrlCount(); - } - - public FavoriteUrlCount newMyEntity() { - return new FavoriteUrlCount(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((FavoriteUrlCount) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((FavoriteUrlCount) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/FavoriteUrlRankingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/FavoriteUrlRankingDbm.java deleted file mode 100644 index d76a10e2d..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/FavoriteUrlRankingDbm.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright 2009-2015 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.customize.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.customize.FavoriteUrlRanking; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of FavoriteUrlRanking. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class FavoriteUrlRankingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final FavoriteUrlRankingDbm _instance = new FavoriteUrlRankingDbm(); - - private FavoriteUrlRankingDbm() { - } - - public static FavoriteUrlRankingDbm 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 EpgName(), "name"); - setupEpg(_epgMap, new EpgCnt(), "cnt"); - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FavoriteUrlRanking) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FavoriteUrlRanking) et).setName((String) vl); - } - } - - public static class EpgCnt implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FavoriteUrlRanking) et).getCnt(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FavoriteUrlRanking) et).setCnt(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "FavoriteUrlRanking"; - - protected final String _tablePropertyName = "favoriteUrlRanking"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "FavoriteUrlRanking", _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 _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 4000, - 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnCnt = cci("CNT", "CNT", null, null, - Long.class, "cnt", null, false, false, false, "BIGINT", 19, 0, - null, false, null, null, null, null, null); - - /** - * NAME: {VARCHAR(4000), refers to FAVORITE_LOG.URL} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * CNT: {BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCnt() { - return _columnCnt; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnName()); - ls.add(columnCnt()); - return ls; - } - - { - initializeInformationResource(); - } - - // =================================================================================== - // Unique Info - // =========== - // ----------------------------------------------------- - // Primary Element - // --------------- - @Override - protected UniqueInfo cpui() { - throw new UnsupportedOperationException( - "The table does not have primary key: " + getTableDbName()); - } - - @Override - public boolean hasPrimaryKey() { - return false; - } - - @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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.customize.FavoriteUrlRanking"; - } - - @Override - public String getConditionBeanTypeName() { - return null; - } - - @Override - public String getBehaviorTypeName() { - return null; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<FavoriteUrlRanking> getEntityType() { - return FavoriteUrlRanking.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public FavoriteUrlRanking newEntity() { - return new FavoriteUrlRanking(); - } - - public FavoriteUrlRanking newMyEntity() { - return new FavoriteUrlRanking(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((FavoriteUrlRanking) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((FavoriteUrlRanking) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/GroupedFieldNameDbm.java b/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/GroupedFieldNameDbm.java deleted file mode 100644 index 55c77f9fa..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/GroupedFieldNameDbm.java +++ /dev/null @@ -1,244 +0,0 @@ -/* - * Copyright 2009-2015 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.customize.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.customize.GroupedFieldName; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of GroupedFieldName. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class GroupedFieldNameDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final GroupedFieldNameDbm _instance = new GroupedFieldNameDbm(); - - private GroupedFieldNameDbm() { - } - - public static GroupedFieldNameDbm 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 EpgName(), "name"); - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((GroupedFieldName) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((GroupedFieldName) et).setName((String) vl); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "GroupedFieldName"; - - protected final String _tablePropertyName = "groupedFieldName"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "GroupedFieldName", _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 _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 255, 0, - null, false, null, null, null, null, null); - - /** - * NAME: {VARCHAR(255), refers to SEARCH_FIELD_LOG.NAME} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnName()); - return ls; - } - - { - initializeInformationResource(); - } - - // =================================================================================== - // Unique Info - // =========== - // ----------------------------------------------------- - // Primary Element - // --------------- - @Override - protected UniqueInfo cpui() { - throw new UnsupportedOperationException( - "The table does not have primary key: " + getTableDbName()); - } - - @Override - public boolean hasPrimaryKey() { - return false; - } - - @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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.customize.GroupedFieldName"; - } - - @Override - public String getConditionBeanTypeName() { - return null; - } - - @Override - public String getBehaviorTypeName() { - return null; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<GroupedFieldName> getEntityType() { - return GroupedFieldName.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public GroupedFieldName newEntity() { - return new GroupedFieldName(); - } - - public GroupedFieldName newMyEntity() { - return new GroupedFieldName(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((GroupedFieldName) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((GroupedFieldName) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/HotSearchWordDbm.java b/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/HotSearchWordDbm.java deleted file mode 100644 index ab1f518d8..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/HotSearchWordDbm.java +++ /dev/null @@ -1,244 +0,0 @@ -/* - * Copyright 2009-2015 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.customize.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.customize.HotSearchWord; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of HotSearchWord. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class HotSearchWordDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final HotSearchWordDbm _instance = new HotSearchWordDbm(); - - private HotSearchWordDbm() { - } - - public static HotSearchWordDbm 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 EpgName(), "name"); - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((HotSearchWord) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((HotSearchWord) et).setName((String) vl); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "HotSearchWord"; - - protected final String _tablePropertyName = "hotSearchWord"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "HotSearchWord", _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 _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 1000, - 0, null, false, null, null, null, null, null); - - /** - * NAME: {VARCHAR(1000), refers to SEARCH_LOG.SEARCH_WORD} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnName()); - return ls; - } - - { - initializeInformationResource(); - } - - // =================================================================================== - // Unique Info - // =========== - // ----------------------------------------------------- - // Primary Element - // --------------- - @Override - protected UniqueInfo cpui() { - throw new UnsupportedOperationException( - "The table does not have primary key: " + getTableDbName()); - } - - @Override - public boolean hasPrimaryKey() { - return false; - } - - @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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.customize.HotSearchWord"; - } - - @Override - public String getConditionBeanTypeName() { - return null; - } - - @Override - public String getBehaviorTypeName() { - return null; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<HotSearchWord> getEntityType() { - return HotSearchWord.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public HotSearchWord newEntity() { - return new HotSearchWord(); - } - - public HotSearchWord newMyEntity() { - return new HotSearchWord(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((HotSearchWord) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((HotSearchWord) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/RefererRankingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/RefererRankingDbm.java deleted file mode 100644 index bbe0ad705..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/RefererRankingDbm.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright 2009-2015 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.customize.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.customize.RefererRanking; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of RefererRanking. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class RefererRankingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final RefererRankingDbm _instance = new RefererRankingDbm(); - - private RefererRankingDbm() { - } - - public static RefererRankingDbm 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 EpgName(), "name"); - setupEpg(_epgMap, new EpgCnt(), "cnt"); - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RefererRanking) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RefererRanking) et).setName((String) vl); - } - } - - public static class EpgCnt implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RefererRanking) et).getCnt(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RefererRanking) et).setCnt(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "RefererRanking"; - - protected final String _tablePropertyName = "refererRanking"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "RefererRanking", _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 _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 1000, - 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnCnt = cci("CNT", "CNT", null, null, - Long.class, "cnt", null, false, false, false, "BIGINT", 19, 0, - null, false, null, null, null, null, null); - - /** - * NAME: {VARCHAR(1000), refers to SEARCH_LOG.REFERER} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * CNT: {BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCnt() { - return _columnCnt; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnName()); - ls.add(columnCnt()); - return ls; - } - - { - initializeInformationResource(); - } - - // =================================================================================== - // Unique Info - // =========== - // ----------------------------------------------------- - // Primary Element - // --------------- - @Override - protected UniqueInfo cpui() { - throw new UnsupportedOperationException( - "The table does not have primary key: " + getTableDbName()); - } - - @Override - public boolean hasPrimaryKey() { - return false; - } - - @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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.customize.RefererRanking"; - } - - @Override - public String getConditionBeanTypeName() { - return null; - } - - @Override - public String getBehaviorTypeName() { - return null; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<RefererRanking> getEntityType() { - return RefererRanking.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public RefererRanking newEntity() { - return new RefererRanking(); - } - - public RefererRanking newMyEntity() { - return new RefererRanking(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((RefererRanking) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((RefererRanking) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SearchFieldRankingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SearchFieldRankingDbm.java deleted file mode 100644 index 8a3413531..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SearchFieldRankingDbm.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright 2009-2015 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.customize.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.customize.SearchFieldRanking; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of SearchFieldRanking. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class SearchFieldRankingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final SearchFieldRankingDbm _instance = new SearchFieldRankingDbm(); - - private SearchFieldRankingDbm() { - } - - public static SearchFieldRankingDbm 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 EpgName(), "name"); - setupEpg(_epgMap, new EpgCnt(), "cnt"); - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchFieldRanking) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchFieldRanking) et).setName((String) vl); - } - } - - public static class EpgCnt implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchFieldRanking) et).getCnt(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchFieldRanking) et).setCnt(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "SearchFieldRanking"; - - protected final String _tablePropertyName = "searchFieldRanking"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "SearchFieldRanking", _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 _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 1000, - 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnCnt = cci("CNT", "CNT", null, null, - Long.class, "cnt", null, false, false, false, "BIGINT", 19, 0, - null, false, null, null, null, null, null); - - /** - * NAME: {VARCHAR(1000), refers to SEARCH_FIELD_LOG.VALUE} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * CNT: {BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCnt() { - return _columnCnt; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnName()); - ls.add(columnCnt()); - return ls; - } - - { - initializeInformationResource(); - } - - // =================================================================================== - // Unique Info - // =========== - // ----------------------------------------------------- - // Primary Element - // --------------- - @Override - protected UniqueInfo cpui() { - throw new UnsupportedOperationException( - "The table does not have primary key: " + getTableDbName()); - } - - @Override - public boolean hasPrimaryKey() { - return false; - } - - @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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.customize.SearchFieldRanking"; - } - - @Override - public String getConditionBeanTypeName() { - return null; - } - - @Override - public String getBehaviorTypeName() { - return null; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<SearchFieldRanking> getEntityType() { - return SearchFieldRanking.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public SearchFieldRanking newEntity() { - return new SearchFieldRanking(); - } - - public SearchFieldRanking newMyEntity() { - return new SearchFieldRanking(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((SearchFieldRanking) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((SearchFieldRanking) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SearchQueryRankingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SearchQueryRankingDbm.java deleted file mode 100644 index 3d96abf9c..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SearchQueryRankingDbm.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright 2009-2015 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.customize.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.customize.SearchQueryRanking; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of SearchQueryRanking. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class SearchQueryRankingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final SearchQueryRankingDbm _instance = new SearchQueryRankingDbm(); - - private SearchQueryRankingDbm() { - } - - public static SearchQueryRankingDbm 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 EpgName(), "name"); - setupEpg(_epgMap, new EpgCnt(), "cnt"); - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchQueryRanking) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchQueryRanking) et).setName((String) vl); - } - } - - public static class EpgCnt implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchQueryRanking) et).getCnt(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchQueryRanking) et).setCnt(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "SearchQueryRanking"; - - protected final String _tablePropertyName = "searchQueryRanking"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "SearchQueryRanking", _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 _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 1000, - 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnCnt = cci("CNT", "CNT", null, null, - Long.class, "cnt", null, false, false, false, "BIGINT", 19, 0, - null, false, null, null, null, null, null); - - /** - * NAME: {VARCHAR(1000), refers to SEARCH_FIELD_LOG.VALUE} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * CNT: {BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCnt() { - return _columnCnt; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnName()); - ls.add(columnCnt()); - return ls; - } - - { - initializeInformationResource(); - } - - // =================================================================================== - // Unique Info - // =========== - // ----------------------------------------------------- - // Primary Element - // --------------- - @Override - protected UniqueInfo cpui() { - throw new UnsupportedOperationException( - "The table does not have primary key: " + getTableDbName()); - } - - @Override - public boolean hasPrimaryKey() { - return false; - } - - @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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.customize.SearchQueryRanking"; - } - - @Override - public String getConditionBeanTypeName() { - return null; - } - - @Override - public String getBehaviorTypeName() { - return null; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<SearchQueryRanking> getEntityType() { - return SearchQueryRanking.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public SearchQueryRanking newEntity() { - return new SearchQueryRanking(); - } - - public SearchQueryRanking newMyEntity() { - return new SearchQueryRanking(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((SearchQueryRanking) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((SearchQueryRanking) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SearchWordRankingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SearchWordRankingDbm.java deleted file mode 100644 index 9f2249d8f..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SearchWordRankingDbm.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright 2009-2015 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.customize.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.customize.SearchWordRanking; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of SearchWordRanking. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class SearchWordRankingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final SearchWordRankingDbm _instance = new SearchWordRankingDbm(); - - private SearchWordRankingDbm() { - } - - public static SearchWordRankingDbm 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 EpgName(), "name"); - setupEpg(_epgMap, new EpgCnt(), "cnt"); - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchWordRanking) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchWordRanking) et).setName((String) vl); - } - } - - public static class EpgCnt implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchWordRanking) et).getCnt(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchWordRanking) et).setCnt(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "SearchWordRanking"; - - protected final String _tablePropertyName = "searchWordRanking"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "SearchWordRanking", _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 _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 1000, - 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnCnt = cci("CNT", "CNT", null, null, - Long.class, "cnt", null, false, false, false, "BIGINT", 19, 0, - null, false, null, null, null, null, null); - - /** - * NAME: {VARCHAR(1000), refers to SEARCH_LOG.SEARCH_WORD} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * CNT: {BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCnt() { - return _columnCnt; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnName()); - ls.add(columnCnt()); - return ls; - } - - { - initializeInformationResource(); - } - - // =================================================================================== - // Unique Info - // =========== - // ----------------------------------------------------- - // Primary Element - // --------------- - @Override - protected UniqueInfo cpui() { - throw new UnsupportedOperationException( - "The table does not have primary key: " + getTableDbName()); - } - - @Override - public boolean hasPrimaryKey() { - return false; - } - - @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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.customize.SearchWordRanking"; - } - - @Override - public String getConditionBeanTypeName() { - return null; - } - - @Override - public String getBehaviorTypeName() { - return null; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<SearchWordRanking> getEntityType() { - return SearchWordRanking.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public SearchWordRanking newEntity() { - return new SearchWordRanking(); - } - - public SearchWordRanking newMyEntity() { - return new SearchWordRanking(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((SearchWordRanking) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((SearchWordRanking) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SolrQueryRankingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SolrQueryRankingDbm.java deleted file mode 100644 index 8e920cd55..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/SolrQueryRankingDbm.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright 2009-2015 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.customize.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.customize.SolrQueryRanking; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of SolrQueryRanking. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class SolrQueryRankingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final SolrQueryRankingDbm _instance = new SolrQueryRankingDbm(); - - private SolrQueryRankingDbm() { - } - - public static SolrQueryRankingDbm 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 EpgName(), "name"); - setupEpg(_epgMap, new EpgCnt(), "cnt"); - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SolrQueryRanking) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SolrQueryRanking) et).setName((String) vl); - } - } - - public static class EpgCnt implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SolrQueryRanking) et).getCnt(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SolrQueryRanking) et).setCnt(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "SolrQueryRanking"; - - protected final String _tablePropertyName = "solrQueryRanking"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "SolrQueryRanking", _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 _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 1000, - 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnCnt = cci("CNT", "CNT", null, null, - Long.class, "cnt", null, false, false, false, "BIGINT", 19, 0, - null, false, null, null, null, null, null); - - /** - * NAME: {VARCHAR(1000), refers to SEARCH_FIELD_LOG.VALUE} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * CNT: {BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCnt() { - return _columnCnt; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnName()); - ls.add(columnCnt()); - return ls; - } - - { - initializeInformationResource(); - } - - // =================================================================================== - // Unique Info - // =========== - // ----------------------------------------------------- - // Primary Element - // --------------- - @Override - protected UniqueInfo cpui() { - throw new UnsupportedOperationException( - "The table does not have primary key: " + getTableDbName()); - } - - @Override - public boolean hasPrimaryKey() { - return false; - } - - @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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.customize.SolrQueryRanking"; - } - - @Override - public String getConditionBeanTypeName() { - return null; - } - - @Override - public String getBehaviorTypeName() { - return null; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<SolrQueryRanking> getEntityType() { - return SolrQueryRanking.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public SolrQueryRanking newEntity() { - return new SolrQueryRanking(); - } - - public SolrQueryRanking newMyEntity() { - return new SolrQueryRanking(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((SolrQueryRanking) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((SolrQueryRanking) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/UserAgentRankingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/UserAgentRankingDbm.java deleted file mode 100644 index a63887bb6..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/customize/dbmeta/UserAgentRankingDbm.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright 2009-2015 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.customize.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.customize.UserAgentRanking; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of UserAgentRanking. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class UserAgentRankingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final UserAgentRankingDbm _instance = new UserAgentRankingDbm(); - - private UserAgentRankingDbm() { - } - - public static UserAgentRankingDbm 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 EpgName(), "name"); - setupEpg(_epgMap, new EpgCnt(), "cnt"); - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((UserAgentRanking) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((UserAgentRanking) et).setName((String) vl); - } - } - - public static class EpgCnt implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((UserAgentRanking) et).getCnt(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((UserAgentRanking) et).setCnt(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "UserAgentRanking"; - - protected final String _tablePropertyName = "userAgentRanking"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "UserAgentRanking", _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 _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 255, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnCnt = cci("CNT", "CNT", null, null, - Long.class, "cnt", null, false, false, false, "BIGINT", 19, 0, - null, false, null, null, null, null, null); - - /** - * NAME: {VARCHAR(255), refers to SEARCH_LOG.USER_AGENT} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * CNT: {BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCnt() { - return _columnCnt; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnName()); - ls.add(columnCnt()); - return ls; - } - - { - initializeInformationResource(); - } - - // =================================================================================== - // Unique Info - // =========== - // ----------------------------------------------------- - // Primary Element - // --------------- - @Override - protected UniqueInfo cpui() { - throw new UnsupportedOperationException( - "The table does not have primary key: " + getTableDbName()); - } - - @Override - public boolean hasPrimaryKey() { - return false; - } - - @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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.customize.UserAgentRanking"; - } - - @Override - public String getConditionBeanTypeName() { - return null; - } - - @Override - public String getBehaviorTypeName() { - return null; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<UserAgentRanking> getEntityType() { - return UserAgentRanking.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public UserAgentRanking newEntity() { - return new UserAgentRanking(); - } - - public UserAgentRanking newMyEntity() { - return new UserAgentRanking(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((UserAgentRanking) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((UserAgentRanking) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/BoostDocumentRuleDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/BoostDocumentRuleDbm.java deleted file mode 100644 index 398ed3b58..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/BoostDocumentRuleDbm.java +++ /dev/null @@ -1,539 +0,0 @@ -/* - * Copyright 2009-2015 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.BoostDocumentRule; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of BOOST_DOCUMENT_RULE. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class BoostDocumentRuleDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final BoostDocumentRuleDbm _instance = new BoostDocumentRuleDbm(); - - private BoostDocumentRuleDbm() { - } - - public static BoostDocumentRuleDbm 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 EpgUrlExpr(), "urlExpr"); - setupEpg(_epgMap, new EpgBoostExpr(), "boostExpr"); - 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 ((BoostDocumentRule) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((BoostDocumentRule) et).setId(ctl(vl)); - } - } - - public static class EpgUrlExpr implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((BoostDocumentRule) et).getUrlExpr(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((BoostDocumentRule) et).setUrlExpr((String) vl); - } - } - - public static class EpgBoostExpr implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((BoostDocumentRule) et).getBoostExpr(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((BoostDocumentRule) et).setBoostExpr((String) vl); - } - } - - public static class EpgSortOrder implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((BoostDocumentRule) et).getSortOrder(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((BoostDocumentRule) et).setSortOrder(cti(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((BoostDocumentRule) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((BoostDocumentRule) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((BoostDocumentRule) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((BoostDocumentRule) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((BoostDocumentRule) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((BoostDocumentRule) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((BoostDocumentRule) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((BoostDocumentRule) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((BoostDocumentRule) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((BoostDocumentRule) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((BoostDocumentRule) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((BoostDocumentRule) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((BoostDocumentRule) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((BoostDocumentRule) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "BOOST_DOCUMENT_RULE"; - - protected final String _tablePropertyName = "boostDocumentRule"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "BOOST_DOCUMENT_RULE", _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_03250CCA_C571_467F_BACC_1E7336564197", - false, null, null, null, null, null); - - protected final ColumnInfo _columnUrlExpr = cci("URL_EXPR", "URL_EXPR", - null, null, String.class, "urlExpr", null, false, false, true, - "VARCHAR", 4000, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnBoostExpr = cci("BOOST_EXPR", - "BOOST_EXPR", null, null, String.class, "boostExpr", null, false, - false, true, "VARCHAR", 4000, 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; - } - - /** - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUrlExpr() { - return _columnUrlExpr; - } - - /** - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnBoostExpr() { - return _columnBoostExpr; - } - - /** - * 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(columnUrlExpr()); - ls.add(columnBoostExpr()); - 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 - // ----------------- - - // =================================================================================== - // 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.BoostDocumentRule"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.BoostDocumentRuleCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.BoostDocumentRuleBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<BoostDocumentRule> getEntityType() { - return BoostDocumentRule.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public BoostDocumentRule newEntity() { - return new BoostDocumentRule(); - } - - public BoostDocumentRule newMyEntity() { - return new BoostDocumentRule(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((BoostDocumentRule) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((BoostDocumentRule) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/ClickLogDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/ClickLogDbm.java deleted file mode 100644 index 89d786f33..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/ClickLogDbm.java +++ /dev/null @@ -1,377 +0,0 @@ -/* - * Copyright 2009-2015 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.ClickLog; -import jp.sf.fess.db.exentity.SearchLog; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of CLICK_LOG. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class ClickLogDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final ClickLogDbm _instance = new ClickLogDbm(); - - private ClickLogDbm() { - } - - public static ClickLogDbm 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 EpgSearchId(), "searchId"); - setupEpg(_epgMap, new EpgUrl(), "url"); - setupEpg(_epgMap, new EpgRequestedTime(), "requestedTime"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ClickLog) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ClickLog) et).setId(ctl(vl)); - } - } - - public static class EpgSearchId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ClickLog) et).getSearchId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ClickLog) et).setSearchId(ctl(vl)); - } - } - - public static class EpgUrl implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ClickLog) et).getUrl(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ClickLog) et).setUrl((String) vl); - } - } - - public static class EpgRequestedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ClickLog) et).getRequestedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ClickLog) et).setRequestedTime((java.sql.Timestamp) vl); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgSearchLog(), "searchLog"); - } - - public class EfpgSearchLog implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ClickLog) et).getSearchLog(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ClickLog) et).setSearchLog((SearchLog) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "CLICK_LOG"; - - protected final String _tablePropertyName = "clickLog"; - - protected final TableSqlName _tableSqlName = new TableSqlName("CLICK_LOG", - _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_AE95CA21_D229_4F94_BB27_1C5304BCCAE7", - false, null, null, null, null, null); - - protected final ColumnInfo _columnSearchId = cci("SEARCH_ID", "SEARCH_ID", - null, null, Long.class, "searchId", null, false, false, true, - "BIGINT", 19, 0, null, false, null, null, "searchLog", null, null); - - protected final ColumnInfo _columnUrl = cci("URL", "URL", null, null, - String.class, "url", null, false, false, true, "VARCHAR", 4000, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnRequestedTime = cci("REQUESTED_TIME", - "REQUESTED_TIME", null, null, java.sql.Timestamp.class, - "requestedTime", null, false, false, true, "TIMESTAMP", 23, 10, - null, false, null, null, null, null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnSearchId() { - return _columnSearchId; - } - - /** - * URL: {IX, NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUrl() { - return _columnUrl; - } - - /** - * REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnRequestedTime() { - return _columnRequestedTime; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnSearchId()); - ls.add(columnUrl()); - ls.add(columnRequestedTime()); - 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 - // ---------------- - /** - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignSearchLog() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnSearchId(), SearchLogDbm.getInstance().columnId()); - return cfi("CONSTRAINT_310", "searchLog", this, - SearchLogDbm.getInstance(), mp, 0, null, false, false, false, - false, null, null, false, "clickLogList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.ClickLog"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.ClickLogCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.ClickLogBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<ClickLog> getEntityType() { - return ClickLog.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public ClickLog newEntity() { - return new ClickLog(); - } - - public ClickLog newMyEntity() { - return new ClickLog(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((ClickLog) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((ClickLog) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/CrawlingSessionDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/CrawlingSessionDbm.java deleted file mode 100644 index 88daddf56..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/CrawlingSessionDbm.java +++ /dev/null @@ -1,379 +0,0 @@ -/* - * Copyright 2009-2015 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.CrawlingSession; - -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 CRAWLING_SESSION. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class CrawlingSessionDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final CrawlingSessionDbm _instance = new CrawlingSessionDbm(); - - private CrawlingSessionDbm() { - } - - public static CrawlingSessionDbm 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 EpgSessionId(), "sessionId"); - setupEpg(_epgMap, new EpgName(), "name"); - setupEpg(_epgMap, new EpgExpiredTime(), "expiredTime"); - setupEpg(_epgMap, new EpgCreatedTime(), "createdTime"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((CrawlingSession) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((CrawlingSession) et).setId(ctl(vl)); - } - } - - public static class EpgSessionId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((CrawlingSession) et).getSessionId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((CrawlingSession) et).setSessionId((String) vl); - } - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((CrawlingSession) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((CrawlingSession) et).setName((String) vl); - } - } - - public static class EpgExpiredTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((CrawlingSession) et).getExpiredTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((CrawlingSession) et).setExpiredTime((java.sql.Timestamp) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((CrawlingSession) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((CrawlingSession) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "CRAWLING_SESSION"; - - protected final String _tablePropertyName = "crawlingSession"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "CRAWLING_SESSION", _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_418E8D15_C49A_4774_8DED_C81C870868B8", - false, null, null, null, "crawlingSessionInfoList", null); - - protected final ColumnInfo _columnSessionId = cci("SESSION_ID", - "SESSION_ID", null, null, String.class, "sessionId", null, false, - false, true, "VARCHAR", 20, 0, null, false, null, null, null, null, - null); - - protected final ColumnInfo _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, false, "VARCHAR", 20, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnExpiredTime = cci("EXPIRED_TIME", - "EXPIRED_TIME", null, null, java.sql.Timestamp.class, - "expiredTime", null, false, false, false, "TIMESTAMP", 23, 10, - 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); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * SESSION_ID: {NotNull, VARCHAR(20)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnSessionId() { - return _columnSessionId; - } - - /** - * NAME: {IX+, VARCHAR(20)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnExpiredTime() { - return _columnExpiredTime; - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCreatedTime() { - return _columnCreatedTime; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnSessionId()); - ls.add(columnName()); - ls.add(columnExpiredTime()); - ls.add(columnCreatedTime()); - 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 - // ----------------- - /** - * CRAWLING_SESSION_INFO by CRAWLING_SESSION_ID, named 'crawlingSessionInfoList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerCrawlingSessionInfoList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - CrawlingSessionInfoDbm.getInstance().columnCrawlingSessionId()); - return cri("CONSTRAINT_B3A", "crawlingSessionInfoList", this, - CrawlingSessionInfoDbm.getInstance(), mp, false, - "crawlingSession"); - } - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.CrawlingSession"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.CrawlingSessionCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.CrawlingSessionBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<CrawlingSession> getEntityType() { - return CrawlingSession.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public CrawlingSession newEntity() { - return new CrawlingSession(); - } - - public CrawlingSession newMyEntity() { - return new CrawlingSession(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((CrawlingSession) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((CrawlingSession) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/CrawlingSessionInfoDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/CrawlingSessionInfoDbm.java deleted file mode 100644 index 7114cba2f..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/CrawlingSessionInfoDbm.java +++ /dev/null @@ -1,406 +0,0 @@ -/* - * Copyright 2009-2015 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.CrawlingSession; -import jp.sf.fess.db.exentity.CrawlingSessionInfo; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of CRAWLING_SESSION_INFO. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class CrawlingSessionInfoDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final CrawlingSessionInfoDbm _instance = new CrawlingSessionInfoDbm(); - - private CrawlingSessionInfoDbm() { - } - - public static CrawlingSessionInfoDbm 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 EpgCrawlingSessionId(), "crawlingSessionId"); - setupEpg(_epgMap, new EpgKey(), "key"); - setupEpg(_epgMap, new EpgValue(), "value"); - setupEpg(_epgMap, new EpgCreatedTime(), "createdTime"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((CrawlingSessionInfo) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((CrawlingSessionInfo) et).setId(ctl(vl)); - } - } - - public static class EpgCrawlingSessionId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((CrawlingSessionInfo) et).getCrawlingSessionId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((CrawlingSessionInfo) et).setCrawlingSessionId(ctl(vl)); - } - } - - public static class EpgKey implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((CrawlingSessionInfo) et).getKey(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((CrawlingSessionInfo) et).setKey((String) vl); - } - } - - public static class EpgValue implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((CrawlingSessionInfo) et).getValue(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((CrawlingSessionInfo) et).setValue((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((CrawlingSessionInfo) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((CrawlingSessionInfo) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgCrawlingSession(), "crawlingSession"); - } - - public class EfpgCrawlingSession implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((CrawlingSessionInfo) et).getCrawlingSession(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((CrawlingSessionInfo) et).setCrawlingSession((CrawlingSession) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "CRAWLING_SESSION_INFO"; - - protected final String _tablePropertyName = "crawlingSessionInfo"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "CRAWLING_SESSION_INFO", _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_29DD8876_FC93_4DBC_99ED_A5DB7B4192B6", - false, null, null, null, null, null); - - protected final ColumnInfo _columnCrawlingSessionId = cci( - "CRAWLING_SESSION_ID", "CRAWLING_SESSION_ID", null, null, - Long.class, "crawlingSessionId", null, false, false, true, - "BIGINT", 19, 0, null, false, null, null, "crawlingSession", null, - null); - - protected final ColumnInfo _columnKey = cci("KEY", "KEY", null, null, - String.class, "key", null, false, false, true, "VARCHAR", 20, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnValue = cci("VALUE", "VALUE", null, null, - String.class, "value", null, false, false, true, "VARCHAR", 100, 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); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCrawlingSessionId() { - return _columnCrawlingSessionId; - } - - /** - * KEY: {NotNull, VARCHAR(20)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnKey() { - return _columnKey; - } - - /** - * VALUE: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnValue() { - return _columnValue; - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCreatedTime() { - return _columnCreatedTime; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnCrawlingSessionId()); - ls.add(columnKey()); - ls.add(columnValue()); - ls.add(columnCreatedTime()); - 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 - // ---------------- - /** - * CRAWLING_SESSION by my CRAWLING_SESSION_ID, named 'crawlingSession'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignCrawlingSession() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnCrawlingSessionId(), CrawlingSessionDbm.getInstance() - .columnId()); - return cfi("CONSTRAINT_B3A", "crawlingSession", this, - CrawlingSessionDbm.getInstance(), mp, 0, null, false, false, - false, false, null, null, false, "crawlingSessionInfoList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.CrawlingSessionInfo"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.CrawlingSessionInfoCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.CrawlingSessionInfoBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<CrawlingSessionInfo> getEntityType() { - return CrawlingSessionInfo.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public CrawlingSessionInfo newEntity() { - return new CrawlingSessionInfo(); - } - - public CrawlingSessionInfo newMyEntity() { - return new CrawlingSessionInfo(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((CrawlingSessionInfo) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((CrawlingSessionInfo) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/DataConfigToLabelTypeMappingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/DataConfigToLabelTypeMappingDbm.java deleted file mode 100644 index a6bf4abf0..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/DataConfigToLabelTypeMappingDbm.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Copyright 2009-2015 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.DataConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.db.exentity.LabelType; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of DATA_CONFIG_TO_LABEL_TYPE_MAPPING. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class DataConfigToLabelTypeMappingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final DataConfigToLabelTypeMappingDbm _instance = new DataConfigToLabelTypeMappingDbm(); - - private DataConfigToLabelTypeMappingDbm() { - } - - public static DataConfigToLabelTypeMappingDbm 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 EpgDataConfigId(), "dataConfigId"); - setupEpg(_epgMap, new EpgLabelTypeId(), "labelTypeId"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataConfigToLabelTypeMapping) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataConfigToLabelTypeMapping) et).setId(ctl(vl)); - } - } - - public static class EpgDataConfigId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataConfigToLabelTypeMapping) et).getDataConfigId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataConfigToLabelTypeMapping) et).setDataConfigId(ctl(vl)); - } - } - - public static class EpgLabelTypeId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataConfigToLabelTypeMapping) et).getLabelTypeId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataConfigToLabelTypeMapping) et).setLabelTypeId(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgDataCrawlingConfig(), "dataCrawlingConfig"); - setupEfpg(_efpgMap, new EfpgLabelType(), "labelType"); - } - - public class EfpgDataCrawlingConfig implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataConfigToLabelTypeMapping) et).getDataCrawlingConfig(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataConfigToLabelTypeMapping) et) - .setDataCrawlingConfig((DataCrawlingConfig) vl); - } - } - - public class EfpgLabelType implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataConfigToLabelTypeMapping) et).getLabelType(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataConfigToLabelTypeMapping) et).setLabelType((LabelType) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "DATA_CONFIG_TO_LABEL_TYPE_MAPPING"; - - protected final String _tablePropertyName = "dataConfigToLabelTypeMapping"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "DATA_CONFIG_TO_LABEL_TYPE_MAPPING", _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_1F48F9B6_F3A1_4D33_9BE2_433B5D6C3018", - false, null, null, null, null, null); - - protected final ColumnInfo _columnDataConfigId = cci("DATA_CONFIG_ID", - "DATA_CONFIG_ID", null, null, Long.class, "dataConfigId", null, - false, false, true, "BIGINT", 19, 0, null, false, null, null, - "dataCrawlingConfig", null, null); - - protected final ColumnInfo _columnLabelTypeId = cci("LABEL_TYPE_ID", - "LABEL_TYPE_ID", null, null, Long.class, "labelTypeId", null, - false, false, true, "BIGINT", 19, 0, null, false, null, null, - "labelType", null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnDataConfigId() { - return _columnDataConfigId; - } - - /** - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnLabelTypeId() { - return _columnLabelTypeId; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnDataConfigId()); - ls.add(columnLabelTypeId()); - 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 - // ---------------- - /** - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignDataCrawlingConfig() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnDataConfigId(), DataCrawlingConfigDbm.getInstance() - .columnId()); - return cfi("CONSTRAINT_5CE", "dataCrawlingConfig", this, - DataCrawlingConfigDbm.getInstance(), mp, 0, null, false, false, - false, false, null, null, false, - "dataConfigToLabelTypeMappingList"); - } - - /** - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignLabelType() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnLabelTypeId(), LabelTypeDbm.getInstance().columnId()); - return cfi("CONSTRAINT_5CE1", "labelType", this, - LabelTypeDbm.getInstance(), mp, 1, null, false, false, false, - false, null, null, false, "dataConfigToLabelTypeMappingList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.DataConfigToLabelTypeMapping"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.DataConfigToLabelTypeMappingBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<DataConfigToLabelTypeMapping> getEntityType() { - return DataConfigToLabelTypeMapping.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public DataConfigToLabelTypeMapping newEntity() { - return new DataConfigToLabelTypeMapping(); - } - - public DataConfigToLabelTypeMapping newMyEntity() { - return new DataConfigToLabelTypeMapping(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((DataConfigToLabelTypeMapping) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((DataConfigToLabelTypeMapping) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/DataConfigToRoleTypeMappingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/DataConfigToRoleTypeMappingDbm.java deleted file mode 100644 index 4b1bb06db..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/DataConfigToRoleTypeMappingDbm.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Copyright 2009-2015 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.DataConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.db.exentity.RoleType; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of DATA_CONFIG_TO_ROLE_TYPE_MAPPING. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class DataConfigToRoleTypeMappingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final DataConfigToRoleTypeMappingDbm _instance = new DataConfigToRoleTypeMappingDbm(); - - private DataConfigToRoleTypeMappingDbm() { - } - - public static DataConfigToRoleTypeMappingDbm 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 EpgDataConfigId(), "dataConfigId"); - setupEpg(_epgMap, new EpgRoleTypeId(), "roleTypeId"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataConfigToRoleTypeMapping) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataConfigToRoleTypeMapping) et).setId(ctl(vl)); - } - } - - public static class EpgDataConfigId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataConfigToRoleTypeMapping) et).getDataConfigId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataConfigToRoleTypeMapping) et).setDataConfigId(ctl(vl)); - } - } - - public static class EpgRoleTypeId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataConfigToRoleTypeMapping) et).getRoleTypeId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataConfigToRoleTypeMapping) et).setRoleTypeId(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgDataCrawlingConfig(), "dataCrawlingConfig"); - setupEfpg(_efpgMap, new EfpgRoleType(), "roleType"); - } - - public class EfpgDataCrawlingConfig implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataConfigToRoleTypeMapping) et).getDataCrawlingConfig(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataConfigToRoleTypeMapping) et) - .setDataCrawlingConfig((DataCrawlingConfig) vl); - } - } - - public class EfpgRoleType implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataConfigToRoleTypeMapping) et).getRoleType(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataConfigToRoleTypeMapping) et).setRoleType((RoleType) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "DATA_CONFIG_TO_ROLE_TYPE_MAPPING"; - - protected final String _tablePropertyName = "dataConfigToRoleTypeMapping"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "DATA_CONFIG_TO_ROLE_TYPE_MAPPING", _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_300FB2ED_6799_4994_A551_59917B5AC058", - false, null, null, null, null, null); - - protected final ColumnInfo _columnDataConfigId = cci("DATA_CONFIG_ID", - "DATA_CONFIG_ID", null, null, Long.class, "dataConfigId", null, - false, false, true, "BIGINT", 19, 0, null, false, null, null, - "dataCrawlingConfig", null, null); - - protected final ColumnInfo _columnRoleTypeId = cci("ROLE_TYPE_ID", - "ROLE_TYPE_ID", null, null, Long.class, "roleTypeId", null, false, - false, true, "BIGINT", 19, 0, null, false, null, null, "roleType", - null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnDataConfigId() { - return _columnDataConfigId; - } - - /** - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnRoleTypeId() { - return _columnRoleTypeId; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnDataConfigId()); - ls.add(columnRoleTypeId()); - 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 - // ---------------- - /** - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignDataCrawlingConfig() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnDataConfigId(), DataCrawlingConfigDbm.getInstance() - .columnId()); - return cfi("CONSTRAINT_E3", "dataCrawlingConfig", this, - DataCrawlingConfigDbm.getInstance(), mp, 0, null, false, false, - false, false, null, null, false, - "dataConfigToRoleTypeMappingList"); - } - - /** - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignRoleType() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnRoleTypeId(), RoleTypeDbm.getInstance().columnId()); - return cfi("CONSTRAINT_E31", "roleType", this, - RoleTypeDbm.getInstance(), mp, 1, null, false, false, false, - false, null, null, false, "dataConfigToRoleTypeMappingList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.DataConfigToRoleTypeMapping"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.DataConfigToRoleTypeMappingBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<DataConfigToRoleTypeMapping> getEntityType() { - return DataConfigToRoleTypeMapping.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public DataConfigToRoleTypeMapping newEntity() { - return new DataConfigToRoleTypeMapping(); - } - - public DataConfigToRoleTypeMapping newMyEntity() { - return new DataConfigToRoleTypeMapping(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((DataConfigToRoleTypeMapping) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((DataConfigToRoleTypeMapping) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/DataCrawlingConfigDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/DataCrawlingConfigDbm.java deleted file mode 100644 index 03c30be9e..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/DataCrawlingConfigDbm.java +++ /dev/null @@ -1,673 +0,0 @@ -/* - * Copyright 2009-2015 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.DataCrawlingConfig; - -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 DATA_CRAWLING_CONFIG. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class DataCrawlingConfigDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final DataCrawlingConfigDbm _instance = new DataCrawlingConfigDbm(); - - private DataCrawlingConfigDbm() { - } - - public static DataCrawlingConfigDbm 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 EpgHandlerName(), "handlerName"); - setupEpg(_epgMap, new EpgHandlerParameter(), "handlerParameter"); - setupEpg(_epgMap, new EpgHandlerScript(), "handlerScript"); - 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 ((DataCrawlingConfig) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setId(ctl(vl)); - } - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setName((String) vl); - } - } - - public static class EpgHandlerName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getHandlerName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setHandlerName((String) vl); - } - } - - public static class EpgHandlerParameter implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getHandlerParameter(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setHandlerParameter((String) vl); - } - } - - public static class EpgHandlerScript implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getHandlerScript(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setHandlerScript((String) vl); - } - } - - public static class EpgBoost implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getBoost(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setBoost(ctb(vl)); - } - } - - public static class EpgAvailable implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getAvailable(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setAvailable((String) vl); - } - } - - public static class EpgSortOrder implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getSortOrder(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setSortOrder(cti(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((DataCrawlingConfig) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((DataCrawlingConfig) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "DATA_CRAWLING_CONFIG"; - - protected final String _tablePropertyName = "dataCrawlingConfig"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "DATA_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_5851DAB8_EEE1_40A9_AD4C_63E3783E9984", - false, null, null, null, - "dataConfigToLabelTypeMappingList,dataConfigToRoleTypeMappingList", - 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 _columnHandlerName = cci("HANDLER_NAME", - "HANDLER_NAME", null, null, String.class, "handlerName", null, - false, false, true, "VARCHAR", 200, 0, null, false, null, null, - null, null, null); - - protected final ColumnInfo _columnHandlerParameter = cci( - "HANDLER_PARAMETER", "HANDLER_PARAMETER", null, null, String.class, - "handlerParameter", null, false, false, false, "VARCHAR", 4000, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnHandlerScript = cci("HANDLER_SCRIPT", - "HANDLER_SCRIPT", null, null, String.class, "handlerScript", null, - false, false, false, "VARCHAR", 4000, 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; - } - - /** - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnHandlerName() { - return _columnHandlerName; - } - - /** - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnHandlerParameter() { - return _columnHandlerParameter; - } - - /** - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnHandlerScript() { - return _columnHandlerScript; - } - - /** - * 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(columnHandlerName()); - ls.add(columnHandlerParameter()); - ls.add(columnHandlerScript()); - 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 - // ----------------- - /** - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToLabelTypeMappingList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerDataConfigToLabelTypeMappingList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - DataConfigToLabelTypeMappingDbm.getInstance() - .columnDataConfigId()); - return cri("CONSTRAINT_5CE", "dataConfigToLabelTypeMappingList", this, - DataConfigToLabelTypeMappingDbm.getInstance(), mp, false, - "dataCrawlingConfig"); - } - - /** - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToRoleTypeMappingList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerDataConfigToRoleTypeMappingList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - DataConfigToRoleTypeMappingDbm.getInstance() - .columnDataConfigId()); - return cri("CONSTRAINT_E3", "dataConfigToRoleTypeMappingList", this, - DataConfigToRoleTypeMappingDbm.getInstance(), mp, false, - "dataCrawlingConfig"); - } - - // =================================================================================== - // 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.DataCrawlingConfig"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.DataCrawlingConfigCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.DataCrawlingConfigBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<DataCrawlingConfig> getEntityType() { - return DataCrawlingConfig.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public DataCrawlingConfig newEntity() { - return new DataCrawlingConfig(); - } - - public DataCrawlingConfig newMyEntity() { - return new DataCrawlingConfig(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((DataCrawlingConfig) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((DataCrawlingConfig) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FailureUrlDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FailureUrlDbm.java deleted file mode 100644 index 6312e8bf8..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FailureUrlDbm.java +++ /dev/null @@ -1,446 +0,0 @@ -/* - * Copyright 2009-2015 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.FailureUrl; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of FAILURE_URL. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class FailureUrlDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final FailureUrlDbm _instance = new FailureUrlDbm(); - - private FailureUrlDbm() { - } - - public static FailureUrlDbm 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 EpgUrl(), "url"); - setupEpg(_epgMap, new EpgThreadName(), "threadName"); - setupEpg(_epgMap, new EpgErrorName(), "errorName"); - setupEpg(_epgMap, new EpgErrorLog(), "errorLog"); - setupEpg(_epgMap, new EpgErrorCount(), "errorCount"); - setupEpg(_epgMap, new EpgLastAccessTime(), "lastAccessTime"); - setupEpg(_epgMap, new EpgConfigId(), "configId"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FailureUrl) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FailureUrl) et).setId(ctl(vl)); - } - } - - public static class EpgUrl implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FailureUrl) et).getUrl(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FailureUrl) et).setUrl((String) vl); - } - } - - public static class EpgThreadName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FailureUrl) et).getThreadName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FailureUrl) et).setThreadName((String) vl); - } - } - - public static class EpgErrorName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FailureUrl) et).getErrorName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FailureUrl) et).setErrorName((String) vl); - } - } - - public static class EpgErrorLog implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FailureUrl) et).getErrorLog(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FailureUrl) et).setErrorLog((String) vl); - } - } - - public static class EpgErrorCount implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FailureUrl) et).getErrorCount(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FailureUrl) et).setErrorCount(cti(vl)); - } - } - - public static class EpgLastAccessTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FailureUrl) et).getLastAccessTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FailureUrl) et).setLastAccessTime((java.sql.Timestamp) vl); - } - } - - public static class EpgConfigId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FailureUrl) et).getConfigId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FailureUrl) et).setConfigId((String) vl); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "FAILURE_URL"; - - protected final String _tablePropertyName = "failureUrl"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "FAILURE_URL", _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_275DAA65_E8B1_48D7_AC90_CAC87877E583", - false, null, null, null, null, null); - - protected final ColumnInfo _columnUrl = cci("URL", "URL", null, null, - String.class, "url", null, false, false, true, "VARCHAR", 4000, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnThreadName = cci("THREAD_NAME", - "THREAD_NAME", null, null, String.class, "threadName", null, false, - false, true, "VARCHAR", 30, 0, null, false, null, null, null, null, - null); - - protected final ColumnInfo _columnErrorName = cci("ERROR_NAME", - "ERROR_NAME", null, null, String.class, "errorName", null, false, - false, false, "VARCHAR", 255, 0, null, false, null, null, null, - null, null); - - protected final ColumnInfo _columnErrorLog = cci("ERROR_LOG", "ERROR_LOG", - null, null, String.class, "errorLog", null, false, false, false, - "VARCHAR", 4000, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnErrorCount = cci("ERROR_COUNT", - "ERROR_COUNT", null, null, Integer.class, "errorCount", null, - false, false, true, "INTEGER", 10, 0, null, false, null, null, - null, null, null); - - protected final ColumnInfo _columnLastAccessTime = cci("LAST_ACCESS_TIME", - "LAST_ACCESS_TIME", null, null, java.sql.Timestamp.class, - "lastAccessTime", null, false, false, true, "TIMESTAMP", 23, 10, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnConfigId = cci("CONFIG_ID", "CONFIG_ID", - null, null, String.class, "configId", null, false, false, false, - "VARCHAR", 100, 0, null, false, null, null, null, null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * URL: {IX+, NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUrl() { - return _columnUrl; - } - - /** - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnThreadName() { - return _columnThreadName; - } - - /** - * ERROR_NAME: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnErrorName() { - return _columnErrorName; - } - - /** - * ERROR_LOG: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnErrorLog() { - return _columnErrorLog; - } - - /** - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnErrorCount() { - return _columnErrorCount; - } - - /** - * LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnLastAccessTime() { - return _columnLastAccessTime; - } - - /** - * CONFIG_ID: {IX, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnConfigId() { - return _columnConfigId; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnUrl()); - ls.add(columnThreadName()); - ls.add(columnErrorName()); - ls.add(columnErrorLog()); - ls.add(columnErrorCount()); - ls.add(columnLastAccessTime()); - ls.add(columnConfigId()); - 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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.FailureUrl"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.FailureUrlCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.FailureUrlBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<FailureUrl> getEntityType() { - return FailureUrl.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public FailureUrl newEntity() { - return new FailureUrl(); - } - - public FailureUrl newMyEntity() { - return new FailureUrl(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((FailureUrl) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((FailureUrl) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FavoriteLogDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FavoriteLogDbm.java deleted file mode 100644 index ba932e92d..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FavoriteLogDbm.java +++ /dev/null @@ -1,377 +0,0 @@ -/* - * Copyright 2009-2015 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.FavoriteLog; -import jp.sf.fess.db.exentity.UserInfo; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of FAVORITE_LOG. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class FavoriteLogDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final FavoriteLogDbm _instance = new FavoriteLogDbm(); - - private FavoriteLogDbm() { - } - - public static FavoriteLogDbm 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 EpgUserId(), "userId"); - setupEpg(_epgMap, new EpgUrl(), "url"); - setupEpg(_epgMap, new EpgCreatedTime(), "createdTime"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FavoriteLog) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FavoriteLog) et).setId(ctl(vl)); - } - } - - public static class EpgUserId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FavoriteLog) et).getUserId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FavoriteLog) et).setUserId(ctl(vl)); - } - } - - public static class EpgUrl implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FavoriteLog) et).getUrl(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FavoriteLog) et).setUrl((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FavoriteLog) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FavoriteLog) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgUserInfo(), "userInfo"); - } - - public class EfpgUserInfo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FavoriteLog) et).getUserInfo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FavoriteLog) et).setUserInfo((UserInfo) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "FAVORITE_LOG"; - - protected final String _tablePropertyName = "favoriteLog"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "FAVORITE_LOG", _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_1C39C16E_1BD4_4B10_8B71_2339D929A3CB", - false, null, null, null, null, null); - - protected final ColumnInfo _columnUserId = cci("USER_ID", "USER_ID", null, - null, Long.class, "userId", null, false, false, true, "BIGINT", 19, - 0, null, false, null, null, "userInfo", null, null); - - protected final ColumnInfo _columnUrl = cci("URL", "URL", null, null, - String.class, "url", null, false, false, true, "VARCHAR", 4000, 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); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUserId() { - return _columnUserId; - } - - /** - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUrl() { - return _columnUrl; - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCreatedTime() { - return _columnCreatedTime; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnUserId()); - ls.add(columnUrl()); - ls.add(columnCreatedTime()); - 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 - // ---------------- - /** - * USER_INFO by my USER_ID, named 'userInfo'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignUserInfo() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnUserId(), - UserInfoDbm.getInstance().columnId()); - return cfi("CONSTRAINT_A98", "userInfo", this, - UserInfoDbm.getInstance(), mp, 0, null, false, false, false, - false, null, null, false, "favoriteLogList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.FavoriteLog"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.FavoriteLogCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.FavoriteLogBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<FavoriteLog> getEntityType() { - return FavoriteLog.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public FavoriteLog newEntity() { - return new FavoriteLog(); - } - - public FavoriteLog newMyEntity() { - return new FavoriteLog(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((FavoriteLog) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((FavoriteLog) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileAuthenticationDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileAuthenticationDbm.java deleted file mode 100644 index b7f7c5ea4..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileAuthenticationDbm.java +++ /dev/null @@ -1,685 +0,0 @@ -/* - * Copyright 2009-2015 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.FileAuthentication; -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of FILE_AUTHENTICATION. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class FileAuthenticationDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final FileAuthenticationDbm _instance = new FileAuthenticationDbm(); - - private FileAuthenticationDbm() { - } - - public static FileAuthenticationDbm 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 EpgHostname(), "hostname"); - setupEpg(_epgMap, new EpgPort(), "port"); - setupEpg(_epgMap, new EpgProtocolScheme(), "protocolScheme"); - setupEpg(_epgMap, new EpgUsername(), "username"); - setupEpg(_epgMap, new EpgPassword(), "password"); - setupEpg(_epgMap, new EpgParameters(), "parameters"); - setupEpg(_epgMap, new EpgFileCrawlingConfigId(), "fileCrawlingConfigId"); - 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 ((FileAuthentication) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setId(ctl(vl)); - } - } - - public static class EpgHostname implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getHostname(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setHostname((String) vl); - } - } - - public static class EpgPort implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getPort(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setPort(cti(vl)); - } - } - - public static class EpgProtocolScheme implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getProtocolScheme(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setProtocolScheme((String) vl); - } - } - - public static class EpgUsername implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getUsername(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setUsername((String) vl); - } - } - - public static class EpgPassword implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getPassword(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setPassword((String) vl); - } - } - - public static class EpgParameters implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getParameters(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setParameters((String) vl); - } - } - - public static class EpgFileCrawlingConfigId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getFileCrawlingConfigId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setFileCrawlingConfigId(ctl(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgFileCrawlingConfig(), "fileCrawlingConfig"); - } - - public class EfpgFileCrawlingConfig implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileAuthentication) et).getFileCrawlingConfig(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileAuthentication) et) - .setFileCrawlingConfig((FileCrawlingConfig) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "FILE_AUTHENTICATION"; - - protected final String _tablePropertyName = "fileAuthentication"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "FILE_AUTHENTICATION", _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_57E14B65_6683_4409_9BC0_4CCB7DFFB677", - false, null, null, null, null, null); - - protected final ColumnInfo _columnHostname = cci("HOSTNAME", "HOSTNAME", - null, null, String.class, "hostname", null, false, false, false, - "VARCHAR", 255, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnPort = cci("PORT", "PORT", null, null, - Integer.class, "port", null, false, false, true, "INTEGER", 10, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnProtocolScheme = cci("PROTOCOL_SCHEME", - "PROTOCOL_SCHEME", null, null, String.class, "protocolScheme", - null, false, false, false, "VARCHAR", 10, 0, null, false, null, - null, null, null, null); - - protected final ColumnInfo _columnUsername = cci("USERNAME", "USERNAME", - null, null, String.class, "username", null, false, false, true, - "VARCHAR", 100, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnPassword = cci("PASSWORD", "PASSWORD", - null, null, String.class, "password", null, false, false, false, - "VARCHAR", 100, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnParameters = cci("PARAMETERS", - "PARAMETERS", null, null, String.class, "parameters", null, false, - false, false, "VARCHAR", 1000, 0, null, false, null, null, null, - null, null); - - protected final ColumnInfo _columnFileCrawlingConfigId = cci( - "FILE_CRAWLING_CONFIG_ID", "FILE_CRAWLING_CONFIG_ID", null, null, - Long.class, "fileCrawlingConfigId", null, false, false, true, - "BIGINT", 19, 0, null, false, null, null, "fileCrawlingConfig", - 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; - } - - /** - * HOSTNAME: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnHostname() { - return _columnHostname; - } - - /** - * PORT: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnPort() { - return _columnPort; - } - - /** - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnProtocolScheme() { - return _columnProtocolScheme; - } - - /** - * USERNAME: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUsername() { - return _columnUsername; - } - - /** - * PASSWORD: {VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnPassword() { - return _columnPassword; - } - - /** - * PARAMETERS: {VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnParameters() { - return _columnParameters; - } - - /** - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnFileCrawlingConfigId() { - return _columnFileCrawlingConfigId; - } - - /** - * 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(columnHostname()); - ls.add(columnPort()); - ls.add(columnProtocolScheme()); - ls.add(columnUsername()); - ls.add(columnPassword()); - ls.add(columnParameters()); - ls.add(columnFileCrawlingConfigId()); - 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 - // ---------------- - /** - * FILE_CRAWLING_CONFIG by my FILE_CRAWLING_CONFIG_ID, named 'fileCrawlingConfig'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignFileCrawlingConfig() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnFileCrawlingConfigId(), FileCrawlingConfigDbm - .getInstance().columnId()); - return cfi("CONSTRAINT_F90", "fileCrawlingConfig", this, - FileCrawlingConfigDbm.getInstance(), mp, 0, null, false, false, - false, false, null, null, false, "fileAuthenticationList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // 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.FileAuthentication"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.FileAuthenticationCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.FileAuthenticationBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<FileAuthentication> getEntityType() { - return FileAuthentication.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public FileAuthentication newEntity() { - return new FileAuthentication(); - } - - public FileAuthentication newMyEntity() { - return new FileAuthentication(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((FileAuthentication) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((FileAuthentication) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileConfigToLabelTypeMappingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileConfigToLabelTypeMappingDbm.java deleted file mode 100644 index 4524b54f1..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileConfigToLabelTypeMappingDbm.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Copyright 2009-2015 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.FileConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.db.exentity.LabelType; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of FILE_CONFIG_TO_LABEL_TYPE_MAPPING. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class FileConfigToLabelTypeMappingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final FileConfigToLabelTypeMappingDbm _instance = new FileConfigToLabelTypeMappingDbm(); - - private FileConfigToLabelTypeMappingDbm() { - } - - public static FileConfigToLabelTypeMappingDbm 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 EpgFileConfigId(), "fileConfigId"); - setupEpg(_epgMap, new EpgLabelTypeId(), "labelTypeId"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileConfigToLabelTypeMapping) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileConfigToLabelTypeMapping) et).setId(ctl(vl)); - } - } - - public static class EpgFileConfigId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileConfigToLabelTypeMapping) et).getFileConfigId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileConfigToLabelTypeMapping) et).setFileConfigId(ctl(vl)); - } - } - - public static class EpgLabelTypeId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileConfigToLabelTypeMapping) et).getLabelTypeId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileConfigToLabelTypeMapping) et).setLabelTypeId(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgFileCrawlingConfig(), "fileCrawlingConfig"); - setupEfpg(_efpgMap, new EfpgLabelType(), "labelType"); - } - - public class EfpgFileCrawlingConfig implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileConfigToLabelTypeMapping) et).getFileCrawlingConfig(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileConfigToLabelTypeMapping) et) - .setFileCrawlingConfig((FileCrawlingConfig) vl); - } - } - - public class EfpgLabelType implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileConfigToLabelTypeMapping) et).getLabelType(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileConfigToLabelTypeMapping) et).setLabelType((LabelType) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "FILE_CONFIG_TO_LABEL_TYPE_MAPPING"; - - protected final String _tablePropertyName = "fileConfigToLabelTypeMapping"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "FILE_CONFIG_TO_LABEL_TYPE_MAPPING", _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_9F525E8F_8FA0_43E4_91DA_4482B4A2D7A9", - false, null, null, null, null, null); - - protected final ColumnInfo _columnFileConfigId = cci("FILE_CONFIG_ID", - "FILE_CONFIG_ID", null, null, Long.class, "fileConfigId", null, - false, false, true, "BIGINT", 19, 0, null, false, null, null, - "fileCrawlingConfig", null, null); - - protected final ColumnInfo _columnLabelTypeId = cci("LABEL_TYPE_ID", - "LABEL_TYPE_ID", null, null, Long.class, "labelTypeId", null, - false, false, true, "BIGINT", 19, 0, null, false, null, null, - "labelType", null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnFileConfigId() { - return _columnFileConfigId; - } - - /** - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnLabelTypeId() { - return _columnLabelTypeId; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnFileConfigId()); - ls.add(columnLabelTypeId()); - 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 - // ---------------- - /** - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignFileCrawlingConfig() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnFileConfigId(), FileCrawlingConfigDbm.getInstance() - .columnId()); - return cfi("CONSTRAINT_F57F", "fileCrawlingConfig", this, - FileCrawlingConfigDbm.getInstance(), mp, 0, null, false, false, - false, false, null, null, false, - "fileConfigToLabelTypeMappingList"); - } - - /** - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignLabelType() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnLabelTypeId(), LabelTypeDbm.getInstance().columnId()); - return cfi("CONSTRAINT_F57", "labelType", this, - LabelTypeDbm.getInstance(), mp, 1, null, false, false, false, - false, null, null, false, "fileConfigToLabelTypeMappingList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.FileConfigToLabelTypeMapping"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.FileConfigToLabelTypeMappingBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<FileConfigToLabelTypeMapping> getEntityType() { - return FileConfigToLabelTypeMapping.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public FileConfigToLabelTypeMapping newEntity() { - return new FileConfigToLabelTypeMapping(); - } - - public FileConfigToLabelTypeMapping newMyEntity() { - return new FileConfigToLabelTypeMapping(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((FileConfigToLabelTypeMapping) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((FileConfigToLabelTypeMapping) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileConfigToRoleTypeMappingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileConfigToRoleTypeMappingDbm.java deleted file mode 100644 index 8fb784bf3..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileConfigToRoleTypeMappingDbm.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Copyright 2009-2015 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.FileConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.db.exentity.RoleType; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of FILE_CONFIG_TO_ROLE_TYPE_MAPPING. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class FileConfigToRoleTypeMappingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final FileConfigToRoleTypeMappingDbm _instance = new FileConfigToRoleTypeMappingDbm(); - - private FileConfigToRoleTypeMappingDbm() { - } - - public static FileConfigToRoleTypeMappingDbm 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 EpgFileConfigId(), "fileConfigId"); - setupEpg(_epgMap, new EpgRoleTypeId(), "roleTypeId"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileConfigToRoleTypeMapping) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileConfigToRoleTypeMapping) et).setId(ctl(vl)); - } - } - - public static class EpgFileConfigId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileConfigToRoleTypeMapping) et).getFileConfigId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileConfigToRoleTypeMapping) et).setFileConfigId(ctl(vl)); - } - } - - public static class EpgRoleTypeId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileConfigToRoleTypeMapping) et).getRoleTypeId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileConfigToRoleTypeMapping) et).setRoleTypeId(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgFileCrawlingConfig(), "fileCrawlingConfig"); - setupEfpg(_efpgMap, new EfpgRoleType(), "roleType"); - } - - public class EfpgFileCrawlingConfig implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileConfigToRoleTypeMapping) et).getFileCrawlingConfig(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileConfigToRoleTypeMapping) et) - .setFileCrawlingConfig((FileCrawlingConfig) vl); - } - } - - public class EfpgRoleType implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((FileConfigToRoleTypeMapping) et).getRoleType(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((FileConfigToRoleTypeMapping) et).setRoleType((RoleType) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "FILE_CONFIG_TO_ROLE_TYPE_MAPPING"; - - protected final String _tablePropertyName = "fileConfigToRoleTypeMapping"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "FILE_CONFIG_TO_ROLE_TYPE_MAPPING", _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_0E8E967B_45AF_45B3_BFF5_54A9DCD38376", - false, null, null, null, null, null); - - protected final ColumnInfo _columnFileConfigId = cci("FILE_CONFIG_ID", - "FILE_CONFIG_ID", null, null, Long.class, "fileConfigId", null, - false, false, true, "BIGINT", 19, 0, null, false, null, null, - "fileCrawlingConfig", null, null); - - protected final ColumnInfo _columnRoleTypeId = cci("ROLE_TYPE_ID", - "ROLE_TYPE_ID", null, null, Long.class, "roleTypeId", null, false, - false, true, "BIGINT", 19, 0, null, false, null, null, "roleType", - null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnFileConfigId() { - return _columnFileConfigId; - } - - /** - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnRoleTypeId() { - return _columnRoleTypeId; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnFileConfigId()); - ls.add(columnRoleTypeId()); - 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 - // ---------------- - /** - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignFileCrawlingConfig() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnFileConfigId(), FileCrawlingConfigDbm.getInstance() - .columnId()); - return cfi("CONSTRAINT_3A", "fileCrawlingConfig", this, - FileCrawlingConfigDbm.getInstance(), mp, 0, null, false, false, - false, false, null, null, false, - "fileConfigToRoleTypeMappingList"); - } - - /** - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignRoleType() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnRoleTypeId(), RoleTypeDbm.getInstance().columnId()); - return cfi("CONSTRAINT_3A9", "roleType", this, - RoleTypeDbm.getInstance(), mp, 1, null, false, false, false, - false, null, null, false, "fileConfigToRoleTypeMappingList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.FileConfigToRoleTypeMapping"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.FileConfigToRoleTypeMappingBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<FileConfigToRoleTypeMapping> getEntityType() { - return FileConfigToRoleTypeMapping.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public FileConfigToRoleTypeMapping newEntity() { - return new FileConfigToRoleTypeMapping(); - } - - public FileConfigToRoleTypeMapping newMyEntity() { - return new FileConfigToRoleTypeMapping(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((FileConfigToRoleTypeMapping) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((FileConfigToRoleTypeMapping) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileCrawlingConfigDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileCrawlingConfigDbm.java deleted file mode 100644 index 16b954147..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/FileCrawlingConfigDbm.java +++ /dev/null @@ -1,876 +0,0 @@ -/* - * Copyright 2009-2015 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/JobLogDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/JobLogDbm.java deleted file mode 100644 index db057802e..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/JobLogDbm.java +++ /dev/null @@ -1,474 +0,0 @@ -/* - * Copyright 2009-2015 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.JobLog; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of JOB_LOG. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class JobLogDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final JobLogDbm _instance = new JobLogDbm(); - - private JobLogDbm() { - } - - public static JobLogDbm 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 EpgJobName(), "jobName"); - setupEpg(_epgMap, new EpgJobStatus(), "jobStatus"); - setupEpg(_epgMap, new EpgTarget(), "target"); - setupEpg(_epgMap, new EpgScriptType(), "scriptType"); - setupEpg(_epgMap, new EpgScriptData(), "scriptData"); - setupEpg(_epgMap, new EpgScriptResult(), "scriptResult"); - setupEpg(_epgMap, new EpgStartTime(), "startTime"); - setupEpg(_epgMap, new EpgEndTime(), "endTime"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((JobLog) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((JobLog) et).setId(ctl(vl)); - } - } - - public static class EpgJobName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((JobLog) et).getJobName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((JobLog) et).setJobName((String) vl); - } - } - - public static class EpgJobStatus implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((JobLog) et).getJobStatus(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((JobLog) et).setJobStatus((String) vl); - } - } - - public static class EpgTarget implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((JobLog) et).getTarget(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((JobLog) et).setTarget((String) vl); - } - } - - public static class EpgScriptType implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((JobLog) et).getScriptType(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((JobLog) et).setScriptType((String) vl); - } - } - - public static class EpgScriptData implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((JobLog) et).getScriptData(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((JobLog) et).setScriptData((String) vl); - } - } - - public static class EpgScriptResult implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((JobLog) et).getScriptResult(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((JobLog) et).setScriptResult((String) vl); - } - } - - public static class EpgStartTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((JobLog) et).getStartTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((JobLog) et).setStartTime((java.sql.Timestamp) vl); - } - } - - public static class EpgEndTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((JobLog) et).getEndTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((JobLog) et).setEndTime((java.sql.Timestamp) vl); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "JOB_LOG"; - - protected final String _tablePropertyName = "jobLog"; - - protected final TableSqlName _tableSqlName = new TableSqlName("JOB_LOG", - _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_05A68D8C_FBBB_4144_97A9_4F66452123EE", - false, null, null, null, null, null); - - protected final ColumnInfo _columnJobName = cci("JOB_NAME", "JOB_NAME", - null, null, String.class, "jobName", null, false, false, true, - "VARCHAR", 100, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnJobStatus = cci("JOB_STATUS", - "JOB_STATUS", null, null, String.class, "jobStatus", null, false, - false, true, "VARCHAR", 10, 0, null, false, null, null, null, null, - null); - - protected final ColumnInfo _columnTarget = cci("TARGET", "TARGET", null, - null, String.class, "target", null, false, false, true, "VARCHAR", - 100, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnScriptType = cci("SCRIPT_TYPE", - "SCRIPT_TYPE", null, null, String.class, "scriptType", null, false, - false, true, "VARCHAR", 100, 0, null, false, null, null, null, - null, null); - - protected final ColumnInfo _columnScriptData = cci("SCRIPT_DATA", - "SCRIPT_DATA", null, null, String.class, "scriptData", null, false, - false, false, "VARCHAR", 4000, 0, null, false, null, null, null, - null, null); - - protected final ColumnInfo _columnScriptResult = cci("SCRIPT_RESULT", - "SCRIPT_RESULT", null, null, String.class, "scriptResult", null, - false, false, false, "VARCHAR", 4000, 0, null, false, null, null, - null, null, null); - - protected final ColumnInfo _columnStartTime = cci("START_TIME", - "START_TIME", null, null, java.sql.Timestamp.class, "startTime", - null, false, false, true, "TIMESTAMP", 23, 10, null, false, null, - null, null, null, null); - - protected final ColumnInfo _columnEndTime = cci("END_TIME", "END_TIME", - null, null, java.sql.Timestamp.class, "endTime", null, false, - false, false, "TIMESTAMP", 23, 10, null, false, null, null, null, - null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * JOB_NAME: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnJobName() { - return _columnJobName; - } - - /** - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnJobStatus() { - return _columnJobStatus; - } - - /** - * TARGET: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnTarget() { - return _columnTarget; - } - - /** - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnScriptType() { - return _columnScriptType; - } - - /** - * SCRIPT_DATA: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnScriptData() { - return _columnScriptData; - } - - /** - * SCRIPT_RESULT: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnScriptResult() { - return _columnScriptResult; - } - - /** - * START_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnStartTime() { - return _columnStartTime; - } - - /** - * END_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnEndTime() { - return _columnEndTime; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnJobName()); - ls.add(columnJobStatus()); - ls.add(columnTarget()); - ls.add(columnScriptType()); - ls.add(columnScriptData()); - ls.add(columnScriptResult()); - ls.add(columnStartTime()); - ls.add(columnEndTime()); - 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 - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.JobLog"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.JobLogCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.JobLogBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<JobLog> getEntityType() { - return JobLog.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public JobLog newEntity() { - return new JobLog(); - } - - public JobLog newMyEntity() { - return new JobLog(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((JobLog) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((JobLog) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/KeyMatchDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/KeyMatchDbm.java deleted file mode 100644 index 009864e9f..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/KeyMatchDbm.java +++ /dev/null @@ -1,563 +0,0 @@ -/* - * Copyright 2009-2015 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.KeyMatch; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of KEY_MATCH. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class KeyMatchDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final KeyMatchDbm _instance = new KeyMatchDbm(); - - private KeyMatchDbm() { - } - - public static KeyMatchDbm 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 EpgTerm(), "term"); - setupEpg(_epgMap, new EpgQuery(), "query"); - setupEpg(_epgMap, new EpgMaxSize(), "maxSize"); - setupEpg(_epgMap, new EpgBoost(), "boost"); - 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 ((KeyMatch) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((KeyMatch) et).setId(ctl(vl)); - } - } - - public static class EpgTerm implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((KeyMatch) et).getTerm(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((KeyMatch) et).setTerm((String) vl); - } - } - - public static class EpgQuery implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((KeyMatch) et).getQuery(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((KeyMatch) et).setQuery((String) vl); - } - } - - public static class EpgMaxSize implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((KeyMatch) et).getMaxSize(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((KeyMatch) et).setMaxSize(cti(vl)); - } - } - - public static class EpgBoost implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((KeyMatch) et).getBoost(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((KeyMatch) et).setBoost(ctb(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((KeyMatch) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((KeyMatch) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((KeyMatch) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((KeyMatch) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((KeyMatch) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((KeyMatch) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((KeyMatch) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((KeyMatch) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((KeyMatch) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((KeyMatch) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((KeyMatch) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((KeyMatch) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((KeyMatch) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((KeyMatch) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "KEY_MATCH"; - - protected final String _tablePropertyName = "keyMatch"; - - protected final TableSqlName _tableSqlName = new TableSqlName("KEY_MATCH", - _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_49E4DBD0_2D86_4C3C_8FB2_0BBBFC00FE29", - false, null, null, null, null, null); - - protected final ColumnInfo _columnTerm = cci("TERM", "TERM", null, null, - String.class, "term", null, false, false, true, "VARCHAR", 200, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnQuery = cci("QUERY", "QUERY", null, null, - String.class, "query", null, false, false, true, "VARCHAR", 4000, - 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnMaxSize = cci("MAX_SIZE", "MAX_SIZE", - null, null, Integer.class, "maxSize", 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 _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; - } - - /** - * TERM: {NotNull, VARCHAR(200)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnTerm() { - return _columnTerm; - } - - /** - * QUERY: {NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnQuery() { - return _columnQuery; - } - - /** - * MAX_SIZE: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnMaxSize() { - return _columnMaxSize; - } - - /** - * BOOST: {NotNull, DOUBLE(17)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnBoost() { - return _columnBoost; - } - - /** - * 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(columnTerm()); - ls.add(columnQuery()); - ls.add(columnMaxSize()); - ls.add(columnBoost()); - 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 - // ----------------- - - // =================================================================================== - // 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.KeyMatch"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.KeyMatchCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.KeyMatchBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<KeyMatch> getEntityType() { - return KeyMatch.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public KeyMatch newEntity() { - return new KeyMatch(); - } - - public KeyMatch newMyEntity() { - return new KeyMatch(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((KeyMatch) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((KeyMatch) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/LabelTypeDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/LabelTypeDbm.java deleted file mode 100644 index 511e526d3..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/LabelTypeDbm.java +++ /dev/null @@ -1,648 +0,0 @@ -/* - * Copyright 2009-2015 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.LabelType; - -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 LABEL_TYPE. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class LabelTypeDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final LabelTypeDbm _instance = new LabelTypeDbm(); - - private LabelTypeDbm() { - } - - public static LabelTypeDbm 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 EpgValue(), "value"); - setupEpg(_epgMap, new EpgIncludedPaths(), "includedPaths"); - setupEpg(_epgMap, new EpgExcludedPaths(), "excludedPaths"); - 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 ((LabelType) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setId(ctl(vl)); - } - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelType) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setName((String) vl); - } - } - - public static class EpgValue implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelType) et).getValue(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setValue((String) vl); - } - } - - public static class EpgIncludedPaths implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelType) et).getIncludedPaths(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setIncludedPaths((String) vl); - } - } - - public static class EpgExcludedPaths implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelType) et).getExcludedPaths(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setExcludedPaths((String) vl); - } - } - - public static class EpgSortOrder implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelType) et).getSortOrder(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setSortOrder(cti(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelType) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelType) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelType) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelType) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelType) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelType) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelType) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelType) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "LABEL_TYPE"; - - protected final String _tablePropertyName = "labelType"; - - protected final TableSqlName _tableSqlName = new TableSqlName("LABEL_TYPE", - _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_EDC5E40D_5414_428B_A8CE_221673E1F528", - false, - null, - null, - null, - "dataConfigToLabelTypeMappingList,fileConfigToLabelTypeMappingList,labelTypeToRoleTypeMappingList,webConfigToLabelTypeMappingList", - null); - - protected final ColumnInfo _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, true, "VARCHAR", 100, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnValue = cci("VALUE", "VALUE", null, null, - String.class, "value", null, false, false, true, "VARCHAR", 20, 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 _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(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * VALUE: {NotNull, VARCHAR(20)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnValue() { - return _columnValue; - } - - /** - * 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; - } - - /** - * 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(columnValue()); - ls.add(columnIncludedPaths()); - ls.add(columnExcludedPaths()); - 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 - // ----------------- - /** - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'dataConfigToLabelTypeMappingList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerDataConfigToLabelTypeMappingList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - DataConfigToLabelTypeMappingDbm.getInstance() - .columnLabelTypeId()); - return cri("CONSTRAINT_5CE1", "dataConfigToLabelTypeMappingList", this, - DataConfigToLabelTypeMappingDbm.getInstance(), mp, false, - "labelType"); - } - - /** - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'fileConfigToLabelTypeMappingList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerFileConfigToLabelTypeMappingList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - FileConfigToLabelTypeMappingDbm.getInstance() - .columnLabelTypeId()); - return cri("CONSTRAINT_F57", "fileConfigToLabelTypeMappingList", this, - FileConfigToLabelTypeMappingDbm.getInstance(), mp, false, - "labelType"); - } - - /** - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by LABEL_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerLabelTypeToRoleTypeMappingList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - LabelTypeToRoleTypeMappingDbm.getInstance().columnLabelTypeId()); - return cri("CONSTRAINT_2C", "labelTypeToRoleTypeMappingList", this, - LabelTypeToRoleTypeMappingDbm.getInstance(), mp, false, - "labelType"); - } - - /** - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'webConfigToLabelTypeMappingList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerWebConfigToLabelTypeMappingList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - WebConfigToLabelTypeMappingDbm.getInstance() - .columnLabelTypeId()); - return cri("CONSTRAINT_6A", "webConfigToLabelTypeMappingList", this, - WebConfigToLabelTypeMappingDbm.getInstance(), mp, false, - "labelType"); - } - - // =================================================================================== - // 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.LabelType"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.LabelTypeCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.LabelTypeBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<LabelType> getEntityType() { - return LabelType.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public LabelType newEntity() { - return new LabelType(); - } - - public LabelType newMyEntity() { - return new LabelType(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((LabelType) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((LabelType) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/LabelTypeToRoleTypeMappingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/LabelTypeToRoleTypeMappingDbm.java deleted file mode 100644 index 943d1a9fd..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/LabelTypeToRoleTypeMappingDbm.java +++ /dev/null @@ -1,378 +0,0 @@ -/* - * Copyright 2009-2015 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.LabelType; -import jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping; -import jp.sf.fess.db.exentity.RoleType; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of LABEL_TYPE_TO_ROLE_TYPE_MAPPING. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class LabelTypeToRoleTypeMappingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final LabelTypeToRoleTypeMappingDbm _instance = new LabelTypeToRoleTypeMappingDbm(); - - private LabelTypeToRoleTypeMappingDbm() { - } - - public static LabelTypeToRoleTypeMappingDbm 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 EpgLabelTypeId(), "labelTypeId"); - setupEpg(_epgMap, new EpgRoleTypeId(), "roleTypeId"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelTypeToRoleTypeMapping) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelTypeToRoleTypeMapping) et).setId(ctl(vl)); - } - } - - public static class EpgLabelTypeId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelTypeToRoleTypeMapping) et).getLabelTypeId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelTypeToRoleTypeMapping) et).setLabelTypeId(ctl(vl)); - } - } - - public static class EpgRoleTypeId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelTypeToRoleTypeMapping) et).getRoleTypeId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelTypeToRoleTypeMapping) et).setRoleTypeId(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgLabelType(), "labelType"); - setupEfpg(_efpgMap, new EfpgRoleType(), "roleType"); - } - - public class EfpgLabelType implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelTypeToRoleTypeMapping) et).getLabelType(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelTypeToRoleTypeMapping) et).setLabelType((LabelType) vl); - } - } - - public class EfpgRoleType implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((LabelTypeToRoleTypeMapping) et).getRoleType(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((LabelTypeToRoleTypeMapping) et).setRoleType((RoleType) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "LABEL_TYPE_TO_ROLE_TYPE_MAPPING"; - - protected final String _tablePropertyName = "labelTypeToRoleTypeMapping"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "LABEL_TYPE_TO_ROLE_TYPE_MAPPING", _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_E182F353_BF93_4A0C_AB63_35943DD6862B", - false, null, null, null, null, null); - - protected final ColumnInfo _columnLabelTypeId = cci("LABEL_TYPE_ID", - "LABEL_TYPE_ID", null, null, Long.class, "labelTypeId", null, - false, false, true, "BIGINT", 19, 0, null, false, null, null, - "labelType", null, null); - - protected final ColumnInfo _columnRoleTypeId = cci("ROLE_TYPE_ID", - "ROLE_TYPE_ID", null, null, Long.class, "roleTypeId", null, false, - false, true, "BIGINT", 19, 0, null, false, null, null, "roleType", - null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnLabelTypeId() { - return _columnLabelTypeId; - } - - /** - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnRoleTypeId() { - return _columnRoleTypeId; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnLabelTypeId()); - ls.add(columnRoleTypeId()); - 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 - // ---------------- - /** - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignLabelType() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnLabelTypeId(), LabelTypeDbm.getInstance().columnId()); - return cfi("CONSTRAINT_2C", "labelType", this, - LabelTypeDbm.getInstance(), mp, 0, null, false, false, false, - false, null, null, false, "labelTypeToRoleTypeMappingList"); - } - - /** - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignRoleType() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnRoleTypeId(), RoleTypeDbm.getInstance().columnId()); - return cfi("CONSTRAINT_2C8", "roleType", this, - RoleTypeDbm.getInstance(), mp, 1, null, false, false, false, - false, null, null, false, "labelTypeToRoleTypeMappingList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.LabelTypeToRoleTypeMappingBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<LabelTypeToRoleTypeMapping> getEntityType() { - return LabelTypeToRoleTypeMapping.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public LabelTypeToRoleTypeMapping newEntity() { - return new LabelTypeToRoleTypeMapping(); - } - - public LabelTypeToRoleTypeMapping newMyEntity() { - return new LabelTypeToRoleTypeMapping(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((LabelTypeToRoleTypeMapping) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((LabelTypeToRoleTypeMapping) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/OverlappingHostDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/OverlappingHostDbm.java deleted file mode 100644 index 9bd0f7966..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/OverlappingHostDbm.java +++ /dev/null @@ -1,540 +0,0 @@ -/* - * Copyright 2009-2015 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.OverlappingHost; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of OVERLAPPING_HOST. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class OverlappingHostDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final OverlappingHostDbm _instance = new OverlappingHostDbm(); - - private OverlappingHostDbm() { - } - - public static OverlappingHostDbm 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 EpgRegularName(), "regularName"); - setupEpg(_epgMap, new EpgOverlappingName(), "overlappingName"); - 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 ((OverlappingHost) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((OverlappingHost) et).setId(ctl(vl)); - } - } - - public static class EpgRegularName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((OverlappingHost) et).getRegularName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((OverlappingHost) et).setRegularName((String) vl); - } - } - - public static class EpgOverlappingName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((OverlappingHost) et).getOverlappingName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((OverlappingHost) et).setOverlappingName((String) vl); - } - } - - public static class EpgSortOrder implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((OverlappingHost) et).getSortOrder(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((OverlappingHost) et).setSortOrder(cti(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((OverlappingHost) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((OverlappingHost) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((OverlappingHost) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((OverlappingHost) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((OverlappingHost) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((OverlappingHost) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((OverlappingHost) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((OverlappingHost) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((OverlappingHost) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((OverlappingHost) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((OverlappingHost) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((OverlappingHost) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((OverlappingHost) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((OverlappingHost) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "OVERLAPPING_HOST"; - - protected final String _tablePropertyName = "overlappingHost"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "OVERLAPPING_HOST", _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_7831BA07_C376_450B_BFBA_69716B6395E1", - false, null, null, null, null, null); - - protected final ColumnInfo _columnRegularName = cci("REGULAR_NAME", - "REGULAR_NAME", null, null, String.class, "regularName", null, - false, false, true, "VARCHAR", 1000, 0, null, false, null, null, - null, null, null); - - protected final ColumnInfo _columnOverlappingName = cci("OVERLAPPING_NAME", - "OVERLAPPING_NAME", null, null, String.class, "overlappingName", - null, false, false, true, "VARCHAR", 1000, 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; - } - - /** - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnRegularName() { - return _columnRegularName; - } - - /** - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnOverlappingName() { - return _columnOverlappingName; - } - - /** - * 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(columnRegularName()); - ls.add(columnOverlappingName()); - 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 - // ----------------- - - // =================================================================================== - // 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.OverlappingHost"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.OverlappingHostCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.OverlappingHostBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<OverlappingHost> getEntityType() { - return OverlappingHost.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public OverlappingHost newEntity() { - return new OverlappingHost(); - } - - public OverlappingHost newMyEntity() { - return new OverlappingHost(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((OverlappingHost) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((OverlappingHost) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/PathMappingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/PathMappingDbm.java deleted file mode 100644 index 4927d1326..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/PathMappingDbm.java +++ /dev/null @@ -1,567 +0,0 @@ -/* - * Copyright 2009-2015 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.CDef; -import jp.sf.fess.db.allcommon.DBCurrent; -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exentity.PathMapping; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of PATH_MAPPING. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class PathMappingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final PathMappingDbm _instance = new PathMappingDbm(); - - private PathMappingDbm() { - } - - public static PathMappingDbm 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 EpgRegex(), "regex"); - setupEpg(_epgMap, new EpgReplacement(), "replacement"); - setupEpg(_epgMap, new EpgProcessType(), "processType"); - 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 ((PathMapping) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((PathMapping) et).setId(ctl(vl)); - } - } - - public static class EpgRegex implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((PathMapping) et).getRegex(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((PathMapping) et).setRegex((String) vl); - } - } - - public static class EpgReplacement implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((PathMapping) et).getReplacement(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((PathMapping) et).setReplacement((String) vl); - } - } - - public static class EpgProcessType implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((PathMapping) et).getProcessType(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((PathMapping) et).setProcessType((String) vl); - } - } - - public static class EpgSortOrder implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((PathMapping) et).getSortOrder(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((PathMapping) et).setSortOrder(cti(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((PathMapping) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((PathMapping) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((PathMapping) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((PathMapping) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((PathMapping) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((PathMapping) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((PathMapping) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((PathMapping) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((PathMapping) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((PathMapping) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((PathMapping) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((PathMapping) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((PathMapping) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((PathMapping) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "PATH_MAPPING"; - - protected final String _tablePropertyName = "pathMapping"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "PATH_MAPPING", _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_517DE2D9_E34C_4896_8AED_9F4601BF195C", - false, null, null, null, null, null); - - protected final ColumnInfo _columnRegex = cci("REGEX", "REGEX", null, null, - String.class, "regex", null, false, false, true, "VARCHAR", 1000, - 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnReplacement = cci("REPLACEMENT", - "REPLACEMENT", null, null, String.class, "replacement", null, - false, false, true, "VARCHAR", 1000, 0, null, false, null, null, - null, null, null); - - protected final ColumnInfo _columnProcessType = cci("PROCESS_TYPE", - "PROCESS_TYPE", null, null, String.class, "processType", null, - false, false, true, "VARCHAR", 1, 0, null, false, null, null, null, - null, CDef.DefMeta.ProcessType); - - 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; - } - - /** - * REGEX: {NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnRegex() { - return _columnRegex; - } - - /** - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnReplacement() { - return _columnReplacement; - } - - /** - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnProcessType() { - return _columnProcessType; - } - - /** - * 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(columnRegex()); - ls.add(columnReplacement()); - ls.add(columnProcessType()); - 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 - // ----------------- - - // =================================================================================== - // 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.PathMapping"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.PathMappingCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.PathMappingBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<PathMapping> getEntityType() { - return PathMapping.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public PathMapping newEntity() { - return new PathMapping(); - } - - public PathMapping newMyEntity() { - return new PathMapping(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((PathMapping) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((PathMapping) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/RequestHeaderDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/RequestHeaderDbm.java deleted file mode 100644 index 1e851ba1f..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/RequestHeaderDbm.java +++ /dev/null @@ -1,578 +0,0 @@ -/* - * Copyright 2009-2015 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.RequestHeader; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of REQUEST_HEADER. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class RequestHeaderDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final RequestHeaderDbm _instance = new RequestHeaderDbm(); - - private RequestHeaderDbm() { - } - - public static RequestHeaderDbm 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 EpgValue(), "value"); - setupEpg(_epgMap, new EpgWebCrawlingConfigId(), "webCrawlingConfigId"); - 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 ((RequestHeader) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RequestHeader) et).setId(ctl(vl)); - } - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RequestHeader) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RequestHeader) et).setName((String) vl); - } - } - - public static class EpgValue implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RequestHeader) et).getValue(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RequestHeader) et).setValue((String) vl); - } - } - - public static class EpgWebCrawlingConfigId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RequestHeader) et).getWebCrawlingConfigId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RequestHeader) et).setWebCrawlingConfigId(ctl(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RequestHeader) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RequestHeader) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RequestHeader) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RequestHeader) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RequestHeader) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RequestHeader) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RequestHeader) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RequestHeader) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RequestHeader) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RequestHeader) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RequestHeader) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RequestHeader) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RequestHeader) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RequestHeader) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgWebCrawlingConfig(), "webCrawlingConfig"); - } - - public class EfpgWebCrawlingConfig implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RequestHeader) et).getWebCrawlingConfig(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RequestHeader) et).setWebCrawlingConfig((WebCrawlingConfig) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "REQUEST_HEADER"; - - protected final String _tablePropertyName = "requestHeader"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "REQUEST_HEADER", _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_05567061_C6AA_4536_BDB5_59C3D86B630E", - false, null, null, null, null, null); - - protected final ColumnInfo _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, true, "VARCHAR", 100, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnValue = cci("VALUE", "VALUE", null, null, - String.class, "value", null, false, false, true, "VARCHAR", 1000, - 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnWebCrawlingConfigId = cci( - "WEB_CRAWLING_CONFIG_ID", "WEB_CRAWLING_CONFIG_ID", null, null, - Long.class, "webCrawlingConfigId", null, false, false, true, - "BIGINT", 19, 0, null, false, null, null, "webCrawlingConfig", - 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(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * VALUE: {NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnValue() { - return _columnValue; - } - - /** - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnWebCrawlingConfigId() { - return _columnWebCrawlingConfigId; - } - - /** - * 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(columnValue()); - ls.add(columnWebCrawlingConfigId()); - 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 - // ---------------- - /** - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignWebCrawlingConfig() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnWebCrawlingConfigId(), WebCrawlingConfigDbm.getInstance() - .columnId()); - return cfi("CONSTRAINT_A1", "webCrawlingConfig", this, - WebCrawlingConfigDbm.getInstance(), mp, 0, null, false, false, - false, false, null, null, false, "requestHeaderList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // 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.RequestHeader"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.RequestHeaderCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.RequestHeaderBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<RequestHeader> getEntityType() { - return RequestHeader.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public RequestHeader newEntity() { - return new RequestHeader(); - } - - public RequestHeader newMyEntity() { - return new RequestHeader(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((RequestHeader) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((RequestHeader) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/RoleTypeDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/RoleTypeDbm.java deleted file mode 100644 index 6ca4d5c07..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/RoleTypeDbm.java +++ /dev/null @@ -1,591 +0,0 @@ -/* - * Copyright 2009-2015 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.RoleType; - -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 ROLE_TYPE. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class RoleTypeDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final RoleTypeDbm _instance = new RoleTypeDbm(); - - private RoleTypeDbm() { - } - - public static RoleTypeDbm 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 EpgValue(), "value"); - 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 ((RoleType) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RoleType) et).setId(ctl(vl)); - } - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RoleType) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RoleType) et).setName((String) vl); - } - } - - public static class EpgValue implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RoleType) et).getValue(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RoleType) et).setValue((String) vl); - } - } - - public static class EpgSortOrder implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RoleType) et).getSortOrder(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RoleType) et).setSortOrder(cti(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RoleType) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RoleType) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RoleType) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RoleType) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RoleType) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RoleType) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RoleType) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RoleType) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RoleType) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RoleType) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RoleType) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RoleType) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((RoleType) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((RoleType) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "ROLE_TYPE"; - - protected final String _tablePropertyName = "roleType"; - - protected final TableSqlName _tableSqlName = new TableSqlName("ROLE_TYPE", - _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_98A73057_DD05_44E8_BE5A_EB50044424D0", - false, - null, - null, - null, - "dataConfigToRoleTypeMappingList,fileConfigToRoleTypeMappingList,labelTypeToRoleTypeMappingList,webConfigToRoleTypeMappingList", - null); - - protected final ColumnInfo _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, true, "VARCHAR", 100, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnValue = cci("VALUE", "VALUE", null, null, - String.class, "value", null, false, false, true, "VARCHAR", 20, 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(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * VALUE: {NotNull, VARCHAR(20)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnValue() { - return _columnValue; - } - - /** - * 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(columnValue()); - 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 - // ----------------- - /** - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'dataConfigToRoleTypeMappingList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerDataConfigToRoleTypeMappingList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - DataConfigToRoleTypeMappingDbm.getInstance().columnRoleTypeId()); - return cri("CONSTRAINT_E31", "dataConfigToRoleTypeMappingList", this, - DataConfigToRoleTypeMappingDbm.getInstance(), mp, false, - "roleType"); - } - - /** - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'fileConfigToRoleTypeMappingList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerFileConfigToRoleTypeMappingList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - FileConfigToRoleTypeMappingDbm.getInstance().columnRoleTypeId()); - return cri("CONSTRAINT_3A9", "fileConfigToRoleTypeMappingList", this, - FileConfigToRoleTypeMappingDbm.getInstance(), mp, false, - "roleType"); - } - - /** - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerLabelTypeToRoleTypeMappingList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - LabelTypeToRoleTypeMappingDbm.getInstance().columnRoleTypeId()); - return cri("CONSTRAINT_2C8", "labelTypeToRoleTypeMappingList", this, - LabelTypeToRoleTypeMappingDbm.getInstance(), mp, false, - "roleType"); - } - - /** - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'webConfigToRoleTypeMappingList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerWebConfigToRoleTypeMappingList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - WebConfigToRoleTypeMappingDbm.getInstance().columnRoleTypeId()); - return cri("CONSTRAINT_A17D5", "webConfigToRoleTypeMappingList", this, - WebConfigToRoleTypeMappingDbm.getInstance(), mp, false, - "roleType"); - } - - // =================================================================================== - // 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.RoleType"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.RoleTypeCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.RoleTypeBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<RoleType> getEntityType() { - return RoleType.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public RoleType newEntity() { - return new RoleType(); - } - - public RoleType newMyEntity() { - return new RoleType(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((RoleType) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((RoleType) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/ScheduledJobDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/ScheduledJobDbm.java deleted file mode 100644 index 5a5976bdc..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/ScheduledJobDbm.java +++ /dev/null @@ -1,698 +0,0 @@ -/* - * Copyright 2009-2015 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.ScheduledJob; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of SCHEDULED_JOB. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class ScheduledJobDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final ScheduledJobDbm _instance = new ScheduledJobDbm(); - - private ScheduledJobDbm() { - } - - public static ScheduledJobDbm 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 EpgTarget(), "target"); - setupEpg(_epgMap, new EpgCronExpression(), "cronExpression"); - setupEpg(_epgMap, new EpgScriptType(), "scriptType"); - setupEpg(_epgMap, new EpgScriptData(), "scriptData"); - setupEpg(_epgMap, new EpgCrawler(), "crawler"); - setupEpg(_epgMap, new EpgJobLogging(), "jobLogging"); - 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 ((ScheduledJob) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setId(ctl(vl)); - } - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setName((String) vl); - } - } - - public static class EpgTarget implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getTarget(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setTarget((String) vl); - } - } - - public static class EpgCronExpression implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getCronExpression(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setCronExpression((String) vl); - } - } - - public static class EpgScriptType implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getScriptType(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setScriptType((String) vl); - } - } - - public static class EpgScriptData implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getScriptData(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setScriptData((String) vl); - } - } - - public static class EpgCrawler implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getCrawler(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setCrawler((String) vl); - } - } - - public static class EpgJobLogging implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getJobLogging(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setJobLogging((String) vl); - } - } - - public static class EpgAvailable implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getAvailable(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setAvailable((String) vl); - } - } - - public static class EpgSortOrder implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getSortOrder(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setSortOrder(cti(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((ScheduledJob) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((ScheduledJob) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "SCHEDULED_JOB"; - - protected final String _tablePropertyName = "scheduledJob"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "SCHEDULED_JOB", _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_B6A4FF05_ABF5_4436_B82A_CC1845FCFBA1", - false, null, null, null, null, null); - - protected final ColumnInfo _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, true, "VARCHAR", 100, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnTarget = cci("TARGET", "TARGET", null, - null, String.class, "target", null, false, false, true, "VARCHAR", - 100, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnCronExpression = cci("CRON_EXPRESSION", - "CRON_EXPRESSION", null, null, String.class, "cronExpression", - null, false, false, true, "VARCHAR", 100, 0, null, false, null, - null, null, null, null); - - protected final ColumnInfo _columnScriptType = cci("SCRIPT_TYPE", - "SCRIPT_TYPE", null, null, String.class, "scriptType", null, false, - false, true, "VARCHAR", 100, 0, null, false, null, null, null, - null, null); - - protected final ColumnInfo _columnScriptData = cci("SCRIPT_DATA", - "SCRIPT_DATA", null, null, String.class, "scriptData", null, false, - false, false, "VARCHAR", 4000, 0, null, false, null, null, null, - null, null); - - protected final ColumnInfo _columnCrawler = cci("CRAWLER", "CRAWLER", null, - null, String.class, "crawler", null, false, false, true, "VARCHAR", - 1, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnJobLogging = cci("JOB_LOGGING", - "JOB_LOGGING", null, null, String.class, "jobLogging", null, false, - false, true, "VARCHAR", 1, 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(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * TARGET: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnTarget() { - return _columnTarget; - } - - /** - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCronExpression() { - return _columnCronExpression; - } - - /** - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnScriptType() { - return _columnScriptType; - } - - /** - * SCRIPT_DATA: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnScriptData() { - return _columnScriptData; - } - - /** - * CRAWLER: {NotNull, VARCHAR(1)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCrawler() { - return _columnCrawler; - } - - /** - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnJobLogging() { - return _columnJobLogging; - } - - /** - * 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(columnTarget()); - ls.add(columnCronExpression()); - ls.add(columnScriptType()); - ls.add(columnScriptData()); - ls.add(columnCrawler()); - ls.add(columnJobLogging()); - 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 - // ----------------- - - // =================================================================================== - // 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.ScheduledJob"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.ScheduledJobCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.ScheduledJobBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<ScheduledJob> getEntityType() { - return ScheduledJob.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public ScheduledJob newEntity() { - return new ScheduledJob(); - } - - public ScheduledJob newMyEntity() { - return new ScheduledJob(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((ScheduledJob) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((ScheduledJob) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/SearchFieldLogDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/SearchFieldLogDbm.java deleted file mode 100644 index c5ec64871..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/SearchFieldLogDbm.java +++ /dev/null @@ -1,376 +0,0 @@ -/* - * Copyright 2009-2015 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.SearchFieldLog; -import jp.sf.fess.db.exentity.SearchLog; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of SEARCH_FIELD_LOG. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class SearchFieldLogDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final SearchFieldLogDbm _instance = new SearchFieldLogDbm(); - - private SearchFieldLogDbm() { - } - - public static SearchFieldLogDbm 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 EpgSearchId(), "searchId"); - setupEpg(_epgMap, new EpgName(), "name"); - setupEpg(_epgMap, new EpgValue(), "value"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchFieldLog) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchFieldLog) et).setId(ctl(vl)); - } - } - - public static class EpgSearchId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchFieldLog) et).getSearchId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchFieldLog) et).setSearchId(ctl(vl)); - } - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchFieldLog) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchFieldLog) et).setName((String) vl); - } - } - - public static class EpgValue implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchFieldLog) et).getValue(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchFieldLog) et).setValue((String) vl); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgSearchLog(), "searchLog"); - } - - public class EfpgSearchLog implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchFieldLog) et).getSearchLog(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchFieldLog) et).setSearchLog((SearchLog) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "SEARCH_FIELD_LOG"; - - protected final String _tablePropertyName = "searchFieldLog"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "SEARCH_FIELD_LOG", _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_9073D7B3_DAA5_4428_9A25_73DFA7973FA0", - false, null, null, null, null, null); - - protected final ColumnInfo _columnSearchId = cci("SEARCH_ID", "SEARCH_ID", - null, null, Long.class, "searchId", null, false, false, true, - "BIGINT", 19, 0, null, false, null, null, "searchLog", null, null); - - protected final ColumnInfo _columnName = cci("NAME", "NAME", null, null, - String.class, "name", null, false, false, true, "VARCHAR", 255, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnValue = cci("VALUE", "VALUE", null, null, - String.class, "value", null, false, false, true, "VARCHAR", 1000, - 0, null, false, null, null, null, null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnSearchId() { - return _columnSearchId; - } - - /** - * NAME: {IX, NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnName() { - return _columnName; - } - - /** - * VALUE: {NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnValue() { - return _columnValue; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnSearchId()); - ls.add(columnName()); - ls.add(columnValue()); - 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 - // ---------------- - /** - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignSearchLog() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnSearchId(), SearchLogDbm.getInstance().columnId()); - return cfi("CONSTRAINT_96", "searchLog", this, - SearchLogDbm.getInstance(), mp, 0, null, false, false, false, - false, null, null, false, "searchFieldLogList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.SearchFieldLog"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.SearchFieldLogCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.SearchFieldLogBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<SearchFieldLog> getEntityType() { - return SearchFieldLog.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public SearchFieldLog newEntity() { - return new SearchFieldLog(); - } - - public SearchFieldLog newMyEntity() { - return new SearchFieldLog(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((SearchFieldLog) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((SearchFieldLog) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/SearchLogDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/SearchLogDbm.java deleted file mode 100644 index 282a65197..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/SearchLogDbm.java +++ /dev/null @@ -1,641 +0,0 @@ -/* - * Copyright 2009-2015 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.CDef; -import jp.sf.fess.db.allcommon.DBCurrent; -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.db.exentity.UserInfo; - -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.ForeignInfo; -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 SEARCH_LOG. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class SearchLogDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final SearchLogDbm _instance = new SearchLogDbm(); - - private SearchLogDbm() { - } - - public static SearchLogDbm 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 EpgSearchWord(), "searchWord"); - setupEpg(_epgMap, new EpgRequestedTime(), "requestedTime"); - setupEpg(_epgMap, new EpgResponseTime(), "responseTime"); - setupEpg(_epgMap, new EpgHitCount(), "hitCount"); - setupEpg(_epgMap, new EpgQueryOffset(), "queryOffset"); - setupEpg(_epgMap, new EpgQueryPageSize(), "queryPageSize"); - setupEpg(_epgMap, new EpgUserAgent(), "userAgent"); - setupEpg(_epgMap, new EpgReferer(), "referer"); - setupEpg(_epgMap, new EpgClientIp(), "clientIp"); - setupEpg(_epgMap, new EpgUserSessionId(), "userSessionId"); - setupEpg(_epgMap, new EpgAccessType(), "accessType"); - setupEpg(_epgMap, new EpgUserId(), "userId"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setId(ctl(vl)); - } - } - - public static class EpgSearchWord implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getSearchWord(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setSearchWord((String) vl); - } - } - - public static class EpgRequestedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getRequestedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setRequestedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgResponseTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getResponseTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setResponseTime(cti(vl)); - } - } - - public static class EpgHitCount implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getHitCount(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setHitCount(ctl(vl)); - } - } - - public static class EpgQueryOffset implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getQueryOffset(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setQueryOffset(cti(vl)); - } - } - - public static class EpgQueryPageSize implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getQueryPageSize(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setQueryPageSize(cti(vl)); - } - } - - public static class EpgUserAgent implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getUserAgent(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setUserAgent((String) vl); - } - } - - public static class EpgReferer implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getReferer(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setReferer((String) vl); - } - } - - public static class EpgClientIp implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getClientIp(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setClientIp((String) vl); - } - } - - public static class EpgUserSessionId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getUserSessionId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setUserSessionId((String) vl); - } - } - - public static class EpgAccessType implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getAccessType(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setAccessType((String) vl); - } - } - - public static class EpgUserId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getUserId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setUserId(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgUserInfo(), "userInfo"); - } - - public class EfpgUserInfo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SearchLog) et).getUserInfo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SearchLog) et).setUserInfo((UserInfo) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "SEARCH_LOG"; - - protected final String _tablePropertyName = "searchLog"; - - protected final TableSqlName _tableSqlName = new TableSqlName("SEARCH_LOG", - _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_8609B14F_3D70_4BDE_8BE0_9559075768F5", - false, null, null, null, "clickLogList,searchFieldLogList", null); - - protected final ColumnInfo _columnSearchWord = cci("SEARCH_WORD", - "SEARCH_WORD", null, null, String.class, "searchWord", null, false, - false, false, "VARCHAR", 1000, 0, null, false, null, null, null, - null, null); - - protected final ColumnInfo _columnRequestedTime = cci("REQUESTED_TIME", - "REQUESTED_TIME", null, null, java.sql.Timestamp.class, - "requestedTime", null, false, false, true, "TIMESTAMP", 23, 10, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnResponseTime = cci("RESPONSE_TIME", - "RESPONSE_TIME", null, null, Integer.class, "responseTime", null, - false, false, true, "INTEGER", 10, 0, null, false, null, null, - null, null, null); - - protected final ColumnInfo _columnHitCount = cci("HIT_COUNT", "HIT_COUNT", - null, null, Long.class, "hitCount", null, false, false, true, - "BIGINT", 19, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnQueryOffset = cci("QUERY_OFFSET", - "QUERY_OFFSET", null, null, Integer.class, "queryOffset", null, - false, false, true, "INTEGER", 10, 0, null, false, null, null, - null, null, null); - - protected final ColumnInfo _columnQueryPageSize = cci("QUERY_PAGE_SIZE", - "QUERY_PAGE_SIZE", null, null, Integer.class, "queryPageSize", - null, false, false, true, "INTEGER", 10, 0, null, false, null, - null, null, null, null); - - protected final ColumnInfo _columnUserAgent = cci("USER_AGENT", - "USER_AGENT", null, null, String.class, "userAgent", null, false, - false, false, "VARCHAR", 255, 0, null, false, null, null, null, - null, null); - - protected final ColumnInfo _columnReferer = cci("REFERER", "REFERER", null, - null, String.class, "referer", null, false, false, false, - "VARCHAR", 1000, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnClientIp = cci("CLIENT_IP", "CLIENT_IP", - null, null, String.class, "clientIp", null, false, false, false, - "VARCHAR", 50, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnUserSessionId = cci("USER_SESSION_ID", - "USER_SESSION_ID", null, null, String.class, "userSessionId", null, - false, false, false, "VARCHAR", 100, 0, null, false, null, null, - null, null, null); - - protected final ColumnInfo _columnAccessType = cci("ACCESS_TYPE", - "ACCESS_TYPE", null, null, String.class, "accessType", null, false, - false, true, "VARCHAR", 1, 0, null, false, null, null, null, null, - CDef.DefMeta.AccessType); - - protected final ColumnInfo _columnUserId = cci("USER_ID", "USER_ID", null, - null, Long.class, "userId", null, false, false, false, "BIGINT", - 19, 0, null, false, null, null, "userInfo", null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnSearchWord() { - return _columnSearchWord; - } - - /** - * REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnRequestedTime() { - return _columnRequestedTime; - } - - /** - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnResponseTime() { - return _columnResponseTime; - } - - /** - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnHitCount() { - return _columnHitCount; - } - - /** - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnQueryOffset() { - return _columnQueryOffset; - } - - /** - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnQueryPageSize() { - return _columnQueryPageSize; - } - - /** - * USER_AGENT: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUserAgent() { - return _columnUserAgent; - } - - /** - * REFERER: {VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnReferer() { - return _columnReferer; - } - - /** - * CLIENT_IP: {VARCHAR(50)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnClientIp() { - return _columnClientIp; - } - - /** - * USER_SESSION_ID: {VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUserSessionId() { - return _columnUserSessionId; - } - - /** - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnAccessType() { - return _columnAccessType; - } - - /** - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUserId() { - return _columnUserId; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnSearchWord()); - ls.add(columnRequestedTime()); - ls.add(columnResponseTime()); - ls.add(columnHitCount()); - ls.add(columnQueryOffset()); - ls.add(columnQueryPageSize()); - ls.add(columnUserAgent()); - ls.add(columnReferer()); - ls.add(columnClientIp()); - ls.add(columnUserSessionId()); - ls.add(columnAccessType()); - ls.add(columnUserId()); - 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 - // ---------------- - /** - * USER_INFO by my USER_ID, named 'userInfo'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignUserInfo() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnUserId(), - UserInfoDbm.getInstance().columnId()); - return cfi("CONSTRAINT_F2A", "userInfo", this, - UserInfoDbm.getInstance(), mp, 0, null, false, false, false, - false, null, null, false, "searchLogList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - /** - * CLICK_LOG by SEARCH_ID, named 'clickLogList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerClickLogList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - ClickLogDbm.getInstance().columnSearchId()); - return cri("CONSTRAINT_310", "clickLogList", this, - ClickLogDbm.getInstance(), mp, false, "searchLog"); - } - - /** - * SEARCH_FIELD_LOG by SEARCH_ID, named 'searchFieldLogList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerSearchFieldLogList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - SearchFieldLogDbm.getInstance().columnSearchId()); - return cri("CONSTRAINT_96", "searchFieldLogList", this, - SearchFieldLogDbm.getInstance(), mp, false, "searchLog"); - } - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.SearchLog"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.SearchLogCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.SearchLogBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<SearchLog> getEntityType() { - return SearchLog.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public SearchLog newEntity() { - return new SearchLog(); - } - - public SearchLog newMyEntity() { - return new SearchLog(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((SearchLog) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((SearchLog) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/SuggestBadWordDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/SuggestBadWordDbm.java deleted file mode 100644 index 0da5addf5..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/SuggestBadWordDbm.java +++ /dev/null @@ -1,540 +0,0 @@ -/* - * Copyright 2009-2015 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.SuggestBadWord; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of SUGGEST_BAD_WORD. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class SuggestBadWordDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final SuggestBadWordDbm _instance = new SuggestBadWordDbm(); - - private SuggestBadWordDbm() { - } - - public static SuggestBadWordDbm 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 EpgSuggestWord(), "suggestWord"); - setupEpg(_epgMap, new EpgTargetRole(), "targetRole"); - setupEpg(_epgMap, new EpgTargetLabel(), "targetLabel"); - 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 ((SuggestBadWord) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestBadWord) et).setId(ctl(vl)); - } - } - - public static class EpgSuggestWord implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestBadWord) et).getSuggestWord(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestBadWord) et).setSuggestWord((String) vl); - } - } - - public static class EpgTargetRole implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestBadWord) et).getTargetRole(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestBadWord) et).setTargetRole((String) vl); - } - } - - public static class EpgTargetLabel implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestBadWord) et).getTargetLabel(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestBadWord) et).setTargetLabel((String) vl); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestBadWord) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestBadWord) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestBadWord) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestBadWord) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestBadWord) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestBadWord) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestBadWord) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestBadWord) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestBadWord) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestBadWord) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestBadWord) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestBadWord) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestBadWord) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestBadWord) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "SUGGEST_BAD_WORD"; - - protected final String _tablePropertyName = "suggestBadWord"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "SUGGEST_BAD_WORD", _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_794D1FB6_B3E4_460E_BC28_41AC2DB9636D", - false, null, null, null, null, null); - - protected final ColumnInfo _columnSuggestWord = cci("SUGGEST_WORD", - "SUGGEST_WORD", null, null, String.class, "suggestWord", null, - false, false, true, "VARCHAR", 255, 0, null, false, null, null, - null, null, null); - - protected final ColumnInfo _columnTargetRole = cci("TARGET_ROLE", - "TARGET_ROLE", null, null, String.class, "targetRole", null, false, - false, false, "VARCHAR", 255, 0, null, false, null, null, null, - null, null); - - protected final ColumnInfo _columnTargetLabel = cci("TARGET_LABEL", - "TARGET_LABEL", null, null, String.class, "targetLabel", null, - false, false, false, "VARCHAR", 255, 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; - } - - /** - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnSuggestWord() { - return _columnSuggestWord; - } - - /** - * TARGET_ROLE: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnTargetRole() { - return _columnTargetRole; - } - - /** - * TARGET_LABEL: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnTargetLabel() { - return _columnTargetLabel; - } - - /** - * 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(columnSuggestWord()); - ls.add(columnTargetRole()); - ls.add(columnTargetLabel()); - 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 - // ----------------- - - // =================================================================================== - // 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.SuggestBadWord"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.SuggestBadWordCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.SuggestBadWordBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<SuggestBadWord> getEntityType() { - return SuggestBadWord.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public SuggestBadWord newEntity() { - return new SuggestBadWord(); - } - - public SuggestBadWord newMyEntity() { - return new SuggestBadWord(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((SuggestBadWord) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((SuggestBadWord) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/SuggestElevateWordDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/SuggestElevateWordDbm.java deleted file mode 100644 index 53fd7808b..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/SuggestElevateWordDbm.java +++ /dev/null @@ -1,592 +0,0 @@ -/* - * Copyright 2009-2015 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.SuggestElevateWord; - -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.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of SUGGEST_ELEVATE_WORD. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class SuggestElevateWordDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final SuggestElevateWordDbm _instance = new SuggestElevateWordDbm(); - - private SuggestElevateWordDbm() { - } - - public static SuggestElevateWordDbm 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 EpgSuggestWord(), "suggestWord"); - setupEpg(_epgMap, new EpgReading(), "reading"); - setupEpg(_epgMap, new EpgTargetRole(), "targetRole"); - setupEpg(_epgMap, new EpgTargetLabel(), "targetLabel"); - setupEpg(_epgMap, new EpgBoost(), "boost"); - 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 ((SuggestElevateWord) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setId(ctl(vl)); - } - } - - public static class EpgSuggestWord implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestElevateWord) et).getSuggestWord(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setSuggestWord((String) vl); - } - } - - public static class EpgReading implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestElevateWord) et).getReading(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setReading((String) vl); - } - } - - public static class EpgTargetRole implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestElevateWord) et).getTargetRole(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setTargetRole((String) vl); - } - } - - public static class EpgTargetLabel implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestElevateWord) et).getTargetLabel(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setTargetLabel((String) vl); - } - } - - public static class EpgBoost implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestElevateWord) et).getBoost(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setBoost(ctb(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestElevateWord) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestElevateWord) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestElevateWord) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestElevateWord) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestElevateWord) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestElevateWord) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((SuggestElevateWord) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((SuggestElevateWord) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "SUGGEST_ELEVATE_WORD"; - - protected final String _tablePropertyName = "suggestElevateWord"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "SUGGEST_ELEVATE_WORD", _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_278A6A28_36F4_4786_9C84_87D820521EDC", - false, null, null, null, null, null); - - protected final ColumnInfo _columnSuggestWord = cci("SUGGEST_WORD", - "SUGGEST_WORD", null, null, String.class, "suggestWord", null, - false, false, true, "VARCHAR", 255, 0, null, false, null, null, - null, null, null); - - protected final ColumnInfo _columnReading = cci("READING", "READING", null, - null, String.class, "reading", null, false, false, false, - "VARCHAR", 255, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnTargetRole = cci("TARGET_ROLE", - "TARGET_ROLE", null, null, String.class, "targetRole", null, false, - false, false, "VARCHAR", 255, 0, null, false, null, null, null, - null, null); - - protected final ColumnInfo _columnTargetLabel = cci("TARGET_LABEL", - "TARGET_LABEL", null, null, String.class, "targetLabel", null, - false, false, false, "VARCHAR", 255, 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 _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; - } - - /** - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnSuggestWord() { - return _columnSuggestWord; - } - - /** - * READING: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnReading() { - return _columnReading; - } - - /** - * TARGET_ROLE: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnTargetRole() { - return _columnTargetRole; - } - - /** - * TARGET_LABEL: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnTargetLabel() { - return _columnTargetLabel; - } - - /** - * BOOST: {NotNull, DOUBLE(17)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnBoost() { - return _columnBoost; - } - - /** - * 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(columnSuggestWord()); - ls.add(columnReading()); - ls.add(columnTargetRole()); - ls.add(columnTargetLabel()); - ls.add(columnBoost()); - 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 - // ----------------- - - // =================================================================================== - // 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.SuggestElevateWord"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.SuggestElevateWordCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.SuggestElevateWordBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<SuggestElevateWord> getEntityType() { - return SuggestElevateWord.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public SuggestElevateWord newEntity() { - return new SuggestElevateWord(); - } - - public SuggestElevateWord newMyEntity() { - return new SuggestElevateWord(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((SuggestElevateWord) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((SuggestElevateWord) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/UserInfoDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/UserInfoDbm.java deleted file mode 100644 index 66631500d..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/UserInfoDbm.java +++ /dev/null @@ -1,362 +0,0 @@ -/* - * Copyright 2009-2015 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.UserInfo; - -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 USER_INFO. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class UserInfoDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final UserInfoDbm _instance = new UserInfoDbm(); - - private UserInfoDbm() { - } - - public static UserInfoDbm 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 EpgCode(), "code"); - setupEpg(_epgMap, new EpgCreatedTime(), "createdTime"); - setupEpg(_epgMap, new EpgUpdatedTime(), "updatedTime"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((UserInfo) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((UserInfo) et).setId(ctl(vl)); - } - } - - public static class EpgCode implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((UserInfo) et).getCode(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((UserInfo) et).setCode((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((UserInfo) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((UserInfo) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((UserInfo) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((UserInfo) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "USER_INFO"; - - protected final String _tablePropertyName = "userInfo"; - - protected final TableSqlName _tableSqlName = new TableSqlName("USER_INFO", - _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_73943943_5D67_4C52_BD23_8FAE169D4F5E", - false, null, null, null, "favoriteLogList,searchLogList", null); - - protected final ColumnInfo _columnCode = cci("CODE", "CODE", null, null, - String.class, "code", null, false, false, true, "VARCHAR", 1000, 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 _columnUpdatedTime = cci("UPDATED_TIME", - "UPDATED_TIME", null, null, java.sql.Timestamp.class, - "updatedTime", null, false, false, true, "TIMESTAMP", 23, 10, null, - false, null, null, null, null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * CODE: {NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCode() { - return _columnCode; - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnCreatedTime() { - return _columnCreatedTime; - } - - /** - * UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUpdatedTime() { - return _columnUpdatedTime; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnCode()); - ls.add(columnCreatedTime()); - ls.add(columnUpdatedTime()); - 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 - // ----------------- - /** - * FAVORITE_LOG by USER_ID, named 'favoriteLogList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerFavoriteLogList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - FavoriteLogDbm.getInstance().columnUserId()); - return cri("CONSTRAINT_A98", "favoriteLogList", this, - FavoriteLogDbm.getInstance(), mp, false, "userInfo"); - } - - /** - * SEARCH_LOG by USER_ID, named 'searchLogList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerSearchLogList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - SearchLogDbm.getInstance().columnUserId()); - return cri("CONSTRAINT_F2A", "searchLogList", this, - SearchLogDbm.getInstance(), mp, false, "userInfo"); - } - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.UserInfo"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.UserInfoCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.UserInfoBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<UserInfo> getEntityType() { - return UserInfo.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public UserInfo newEntity() { - return new UserInfo(); - } - - public UserInfo newMyEntity() { - return new UserInfo(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((UserInfo) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((UserInfo) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebAuthenticationDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebAuthenticationDbm.java deleted file mode 100644 index fc8b0424d..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebAuthenticationDbm.java +++ /dev/null @@ -1,712 +0,0 @@ -/* - * Copyright 2009-2015 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.WebAuthentication; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of WEB_AUTHENTICATION. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class WebAuthenticationDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final WebAuthenticationDbm _instance = new WebAuthenticationDbm(); - - private WebAuthenticationDbm() { - } - - public static WebAuthenticationDbm 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 EpgHostname(), "hostname"); - setupEpg(_epgMap, new EpgPort(), "port"); - setupEpg(_epgMap, new EpgAuthRealm(), "authRealm"); - setupEpg(_epgMap, new EpgProtocolScheme(), "protocolScheme"); - setupEpg(_epgMap, new EpgUsername(), "username"); - setupEpg(_epgMap, new EpgPassword(), "password"); - setupEpg(_epgMap, new EpgParameters(), "parameters"); - setupEpg(_epgMap, new EpgWebCrawlingConfigId(), "webCrawlingConfigId"); - 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 ((WebAuthentication) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setId(ctl(vl)); - } - } - - public static class EpgHostname implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getHostname(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setHostname((String) vl); - } - } - - public static class EpgPort implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getPort(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setPort(cti(vl)); - } - } - - public static class EpgAuthRealm implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getAuthRealm(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setAuthRealm((String) vl); - } - } - - public static class EpgProtocolScheme implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getProtocolScheme(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setProtocolScheme((String) vl); - } - } - - public static class EpgUsername implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getUsername(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setUsername((String) vl); - } - } - - public static class EpgPassword implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getPassword(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setPassword((String) vl); - } - } - - public static class EpgParameters implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getParameters(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setParameters((String) vl); - } - } - - public static class EpgWebCrawlingConfigId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getWebCrawlingConfigId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setWebCrawlingConfigId(ctl(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgWebCrawlingConfig(), "webCrawlingConfig"); - } - - public class EfpgWebCrawlingConfig implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebAuthentication) et).getWebCrawlingConfig(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebAuthentication) et) - .setWebCrawlingConfig((WebCrawlingConfig) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "WEB_AUTHENTICATION"; - - protected final String _tablePropertyName = "webAuthentication"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "WEB_AUTHENTICATION", _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_C0A5E7AC_A4B9_4116_848B_830A77742A7E", - false, null, null, null, null, null); - - protected final ColumnInfo _columnHostname = cci("HOSTNAME", "HOSTNAME", - null, null, String.class, "hostname", null, false, false, false, - "VARCHAR", 100, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnPort = cci("PORT", "PORT", null, null, - Integer.class, "port", null, false, false, true, "INTEGER", 10, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnAuthRealm = cci("AUTH_REALM", - "AUTH_REALM", null, null, String.class, "authRealm", null, false, - false, false, "VARCHAR", 100, 0, null, false, null, null, null, - null, null); - - protected final ColumnInfo _columnProtocolScheme = cci("PROTOCOL_SCHEME", - "PROTOCOL_SCHEME", null, null, String.class, "protocolScheme", - null, false, false, false, "VARCHAR", 10, 0, null, false, null, - null, null, null, null); - - protected final ColumnInfo _columnUsername = cci("USERNAME", "USERNAME", - null, null, String.class, "username", null, false, false, true, - "VARCHAR", 100, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnPassword = cci("PASSWORD", "PASSWORD", - null, null, String.class, "password", null, false, false, false, - "VARCHAR", 100, 0, null, false, null, null, null, null, null); - - protected final ColumnInfo _columnParameters = cci("PARAMETERS", - "PARAMETERS", null, null, String.class, "parameters", null, false, - false, false, "VARCHAR", 1000, 0, null, false, null, null, null, - null, null); - - protected final ColumnInfo _columnWebCrawlingConfigId = cci( - "WEB_CRAWLING_CONFIG_ID", "WEB_CRAWLING_CONFIG_ID", null, null, - Long.class, "webCrawlingConfigId", null, false, false, true, - "BIGINT", 19, 0, null, false, null, null, "webCrawlingConfig", - 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; - } - - /** - * HOSTNAME: {VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnHostname() { - return _columnHostname; - } - - /** - * PORT: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnPort() { - return _columnPort; - } - - /** - * AUTH_REALM: {VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnAuthRealm() { - return _columnAuthRealm; - } - - /** - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnProtocolScheme() { - return _columnProtocolScheme; - } - - /** - * USERNAME: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUsername() { - return _columnUsername; - } - - /** - * PASSWORD: {VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnPassword() { - return _columnPassword; - } - - /** - * PARAMETERS: {VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnParameters() { - return _columnParameters; - } - - /** - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnWebCrawlingConfigId() { - return _columnWebCrawlingConfigId; - } - - /** - * 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(columnHostname()); - ls.add(columnPort()); - ls.add(columnAuthRealm()); - ls.add(columnProtocolScheme()); - ls.add(columnUsername()); - ls.add(columnPassword()); - ls.add(columnParameters()); - ls.add(columnWebCrawlingConfigId()); - 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 - // ---------------- - /** - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignWebCrawlingConfig() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnWebCrawlingConfigId(), WebCrawlingConfigDbm.getInstance() - .columnId()); - return cfi("CONSTRAINT_A31", "webCrawlingConfig", this, - WebCrawlingConfigDbm.getInstance(), mp, 0, null, false, false, - false, false, null, null, false, "webAuthenticationList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // 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.WebAuthentication"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.WebAuthenticationCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.WebAuthenticationBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<WebAuthentication> getEntityType() { - return WebAuthentication.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public WebAuthentication newEntity() { - return new WebAuthentication(); - } - - public WebAuthentication newMyEntity() { - return new WebAuthentication(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((WebAuthentication) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((WebAuthentication) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebConfigToLabelTypeMappingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebConfigToLabelTypeMappingDbm.java deleted file mode 100644 index 1bbd98705..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebConfigToLabelTypeMappingDbm.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Copyright 2009-2015 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.LabelType; -import jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of WEB_CONFIG_TO_LABEL_TYPE_MAPPING. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class WebConfigToLabelTypeMappingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final WebConfigToLabelTypeMappingDbm _instance = new WebConfigToLabelTypeMappingDbm(); - - private WebConfigToLabelTypeMappingDbm() { - } - - public static WebConfigToLabelTypeMappingDbm 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 EpgWebConfigId(), "webConfigId"); - setupEpg(_epgMap, new EpgLabelTypeId(), "labelTypeId"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebConfigToLabelTypeMapping) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebConfigToLabelTypeMapping) et).setId(ctl(vl)); - } - } - - public static class EpgWebConfigId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebConfigToLabelTypeMapping) et).getWebConfigId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebConfigToLabelTypeMapping) et).setWebConfigId(ctl(vl)); - } - } - - public static class EpgLabelTypeId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebConfigToLabelTypeMapping) et).getLabelTypeId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebConfigToLabelTypeMapping) et).setLabelTypeId(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgLabelType(), "labelType"); - setupEfpg(_efpgMap, new EfpgWebCrawlingConfig(), "webCrawlingConfig"); - } - - public class EfpgLabelType implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebConfigToLabelTypeMapping) et).getLabelType(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebConfigToLabelTypeMapping) et).setLabelType((LabelType) vl); - } - } - - public class EfpgWebCrawlingConfig implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebConfigToLabelTypeMapping) et).getWebCrawlingConfig(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebConfigToLabelTypeMapping) et) - .setWebCrawlingConfig((WebCrawlingConfig) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "WEB_CONFIG_TO_LABEL_TYPE_MAPPING"; - - protected final String _tablePropertyName = "webConfigToLabelTypeMapping"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "WEB_CONFIG_TO_LABEL_TYPE_MAPPING", _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_D6257AC4_F6DD_4CFC_B688_EC04598F8751", - false, null, null, null, null, null); - - protected final ColumnInfo _columnWebConfigId = cci("WEB_CONFIG_ID", - "WEB_CONFIG_ID", null, null, Long.class, "webConfigId", null, - false, false, true, "BIGINT", 19, 0, null, false, null, null, - "webCrawlingConfig", null, null); - - protected final ColumnInfo _columnLabelTypeId = cci("LABEL_TYPE_ID", - "LABEL_TYPE_ID", null, null, Long.class, "labelTypeId", null, - false, false, true, "BIGINT", 19, 0, null, false, null, null, - "labelType", null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnWebConfigId() { - return _columnWebConfigId; - } - - /** - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnLabelTypeId() { - return _columnLabelTypeId; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnWebConfigId()); - ls.add(columnLabelTypeId()); - 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 - // ---------------- - /** - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignLabelType() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnLabelTypeId(), LabelTypeDbm.getInstance().columnId()); - return cfi("CONSTRAINT_6A", "labelType", this, - LabelTypeDbm.getInstance(), mp, 0, null, false, false, false, - false, null, null, false, "webConfigToLabelTypeMappingList"); - } - - /** - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignWebCrawlingConfig() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnWebConfigId(), WebCrawlingConfigDbm.getInstance() - .columnId()); - return cfi("CONSTRAINT_6AC", "webCrawlingConfig", this, - WebCrawlingConfigDbm.getInstance(), mp, 1, null, false, false, - false, false, null, null, false, - "webConfigToLabelTypeMappingList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.WebConfigToLabelTypeMappingBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<WebConfigToLabelTypeMapping> getEntityType() { - return WebConfigToLabelTypeMapping.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public WebConfigToLabelTypeMapping newEntity() { - return new WebConfigToLabelTypeMapping(); - } - - public WebConfigToLabelTypeMapping newMyEntity() { - return new WebConfigToLabelTypeMapping(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((WebConfigToLabelTypeMapping) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((WebConfigToLabelTypeMapping) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebConfigToRoleTypeMappingDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebConfigToRoleTypeMappingDbm.java deleted file mode 100644 index 912a3cf37..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebConfigToRoleTypeMappingDbm.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Copyright 2009-2015 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.RoleType; -import jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; - -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.ForeignInfo; -import org.seasar.dbflute.dbmeta.info.UniqueInfo; -import org.seasar.dbflute.dbmeta.name.TableSqlName; - -/** - * The DB meta of WEB_CONFIG_TO_ROLE_TYPE_MAPPING. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class WebConfigToRoleTypeMappingDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final WebConfigToRoleTypeMappingDbm _instance = new WebConfigToRoleTypeMappingDbm(); - - private WebConfigToRoleTypeMappingDbm() { - } - - public static WebConfigToRoleTypeMappingDbm 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 EpgWebConfigId(), "webConfigId"); - setupEpg(_epgMap, new EpgRoleTypeId(), "roleTypeId"); - } - - public static class EpgId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebConfigToRoleTypeMapping) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebConfigToRoleTypeMapping) et).setId(ctl(vl)); - } - } - - public static class EpgWebConfigId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebConfigToRoleTypeMapping) et).getWebConfigId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebConfigToRoleTypeMapping) et).setWebConfigId(ctl(vl)); - } - } - - public static class EpgRoleTypeId implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebConfigToRoleTypeMapping) et).getRoleTypeId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebConfigToRoleTypeMapping) et).setRoleTypeId(ctl(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // ----------------------------------------------------- - // Foreign Property - // ---------------- - protected final Map<String, PropertyGateway> _efpgMap = newHashMap(); - { - setupEfpg(_efpgMap, new EfpgRoleType(), "roleType"); - setupEfpg(_efpgMap, new EfpgWebCrawlingConfig(), "webCrawlingConfig"); - } - - public class EfpgRoleType implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebConfigToRoleTypeMapping) et).getRoleType(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebConfigToRoleTypeMapping) et).setRoleType((RoleType) vl); - } - } - - public class EfpgWebCrawlingConfig implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebConfigToRoleTypeMapping) et).getWebCrawlingConfig(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebConfigToRoleTypeMapping) et) - .setWebCrawlingConfig((WebCrawlingConfig) vl); - } - } - - @Override - public PropertyGateway findForeignPropertyGateway(final String prop) { - return doFindEfpg(_efpgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "WEB_CONFIG_TO_ROLE_TYPE_MAPPING"; - - protected final String _tablePropertyName = "webConfigToRoleTypeMapping"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "WEB_CONFIG_TO_ROLE_TYPE_MAPPING", _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_105A1870_C2AD_4635_BE01_6360711F5509", - false, null, null, null, null, null); - - protected final ColumnInfo _columnWebConfigId = cci("WEB_CONFIG_ID", - "WEB_CONFIG_ID", null, null, Long.class, "webConfigId", null, - false, false, true, "BIGINT", 19, 0, null, false, null, null, - "webCrawlingConfig", null, null); - - protected final ColumnInfo _columnRoleTypeId = cci("ROLE_TYPE_ID", - "ROLE_TYPE_ID", null, null, Long.class, "roleTypeId", null, false, - false, true, "BIGINT", 19, 0, null, false, null, null, "roleType", - null, null); - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnId() { - return _columnId; - } - - /** - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnWebConfigId() { - return _columnWebConfigId; - } - - /** - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnRoleTypeId() { - return _columnRoleTypeId; - } - - @Override - protected List<ColumnInfo> ccil() { - final List<ColumnInfo> ls = newArrayList(); - ls.add(columnId()); - ls.add(columnWebConfigId()); - ls.add(columnRoleTypeId()); - 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 - // ---------------- - /** - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignRoleType() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnRoleTypeId(), RoleTypeDbm.getInstance().columnId()); - return cfi("CONSTRAINT_A17D5", "roleType", this, - RoleTypeDbm.getInstance(), mp, 0, null, false, false, false, - false, null, null, false, "webConfigToRoleTypeMappingList"); - } - - /** - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @return The information object of foreign property. (NotNull) - */ - public ForeignInfo foreignWebCrawlingConfig() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap( - columnWebConfigId(), WebCrawlingConfigDbm.getInstance() - .columnId()); - return cfi("CONSTRAINT_A17D", "webCrawlingConfig", this, - WebCrawlingConfigDbm.getInstance(), mp, 1, null, false, false, - false, false, null, null, false, - "webConfigToRoleTypeMappingList"); - } - - // ----------------------------------------------------- - // Referrer Property - // ----------------- - - // =================================================================================== - // Various Info - // ============ - @Override - public boolean hasIdentity() { - return true; - } - - // =================================================================================== - // Type Name - // ========= - @Override - public String getEntityTypeName() { - return "jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.WebConfigToRoleTypeMappingBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<WebConfigToRoleTypeMapping> getEntityType() { - return WebConfigToRoleTypeMapping.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public WebConfigToRoleTypeMapping newEntity() { - return new WebConfigToRoleTypeMapping(); - } - - public WebConfigToRoleTypeMapping newMyEntity() { - return new WebConfigToRoleTypeMapping(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((WebConfigToRoleTypeMapping) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((WebConfigToRoleTypeMapping) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebCrawlingConfigDbm.java b/src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebCrawlingConfigDbm.java deleted file mode 100644 index 0cf6d6b36..000000000 --- a/src/main/java/jp/sf/fess/db/bsentity/dbmeta/WebCrawlingConfigDbm.java +++ /dev/null @@ -1,912 +0,0 @@ -/* - * Copyright 2009-2015 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.WebCrawlingConfig; - -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 WEB_CRAWLING_CONFIG. (Singleton) - * @author DBFlute(AutoGenerator) - */ -public class WebCrawlingConfigDbm extends AbstractDBMeta { - - // =================================================================================== - // Singleton - // ========= - private static final WebCrawlingConfigDbm _instance = new WebCrawlingConfigDbm(); - - private WebCrawlingConfigDbm() { - } - - public static WebCrawlingConfigDbm 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 EpgUrls(), "urls"); - setupEpg(_epgMap, new EpgIncludedUrls(), "includedUrls"); - setupEpg(_epgMap, new EpgExcludedUrls(), "excludedUrls"); - setupEpg(_epgMap, new EpgIncludedDocUrls(), "includedDocUrls"); - setupEpg(_epgMap, new EpgExcludedDocUrls(), "excludedDocUrls"); - setupEpg(_epgMap, new EpgConfigParameter(), "configParameter"); - setupEpg(_epgMap, new EpgDepth(), "depth"); - setupEpg(_epgMap, new EpgMaxAccessCount(), "maxAccessCount"); - setupEpg(_epgMap, new EpgUserAgent(), "userAgent"); - 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 ((WebCrawlingConfig) et).getId(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setId(ctl(vl)); - } - } - - public static class EpgName implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getName(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setName((String) vl); - } - } - - public static class EpgUrls implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getUrls(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setUrls((String) vl); - } - } - - public static class EpgIncludedUrls implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getIncludedUrls(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setIncludedUrls((String) vl); - } - } - - public static class EpgExcludedUrls implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getExcludedUrls(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setExcludedUrls((String) vl); - } - } - - public static class EpgIncludedDocUrls implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getIncludedDocUrls(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setIncludedDocUrls((String) vl); - } - } - - public static class EpgExcludedDocUrls implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getExcludedDocUrls(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setExcludedDocUrls((String) vl); - } - } - - public static class EpgConfigParameter implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getConfigParameter(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setConfigParameter((String) vl); - } - } - - public static class EpgDepth implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getDepth(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setDepth(cti(vl)); - } - } - - public static class EpgMaxAccessCount implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getMaxAccessCount(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setMaxAccessCount(ctl(vl)); - } - } - - public static class EpgUserAgent implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getUserAgent(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setUserAgent((String) vl); - } - } - - public static class EpgNumOfThread implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getNumOfThread(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setNumOfThread(cti(vl)); - } - } - - public static class EpgIntervalTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getIntervalTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setIntervalTime(cti(vl)); - } - } - - public static class EpgBoost implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getBoost(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setBoost(ctb(vl)); - } - } - - public static class EpgAvailable implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getAvailable(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setAvailable((String) vl); - } - } - - public static class EpgSortOrder implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getSortOrder(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setSortOrder(cti(vl)); - } - } - - public static class EpgCreatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getCreatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setCreatedBy((String) vl); - } - } - - public static class EpgCreatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getCreatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setCreatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgUpdatedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getUpdatedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setUpdatedBy((String) vl); - } - } - - public static class EpgUpdatedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getUpdatedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setUpdatedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgDeletedBy implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getDeletedBy(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setDeletedBy((String) vl); - } - } - - public static class EpgDeletedTime implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getDeletedTime(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setDeletedTime((java.sql.Timestamp) vl); - } - } - - public static class EpgVersionNo implements PropertyGateway { - @Override - public Object read(final Entity et) { - return ((WebCrawlingConfig) et).getVersionNo(); - } - - @Override - public void write(final Entity et, final Object vl) { - ((WebCrawlingConfig) et).setVersionNo(cti(vl)); - } - } - - @Override - public PropertyGateway findPropertyGateway(final String prop) { - return doFindEpg(_epgMap, prop); - } - - // =================================================================================== - // Table Info - // ========== - protected final String _tableDbName = "WEB_CRAWLING_CONFIG"; - - protected final String _tablePropertyName = "webCrawlingConfig"; - - protected final TableSqlName _tableSqlName = new TableSqlName( - "WEB_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_1FDCD552_C6C3_44C5_802A_A080B6B1037D", - false, - null, - null, - null, - "requestHeaderList,webAuthenticationList,webConfigToLabelTypeMappingList,webConfigToRoleTypeMappingList", - 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 _columnUrls = cci("URLS", "URLS", null, null, - String.class, "urls", null, false, false, true, "VARCHAR", 4000, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnIncludedUrls = cci("INCLUDED_URLS", - "INCLUDED_URLS", null, null, String.class, "includedUrls", null, - false, false, false, "VARCHAR", 4000, 0, null, false, null, null, - null, null, null); - - protected final ColumnInfo _columnExcludedUrls = cci("EXCLUDED_URLS", - "EXCLUDED_URLS", null, null, String.class, "excludedUrls", null, - false, false, false, "VARCHAR", 4000, 0, null, false, null, null, - null, null, null); - - protected final ColumnInfo _columnIncludedDocUrls = cci( - "INCLUDED_DOC_URLS", "INCLUDED_DOC_URLS", null, null, String.class, - "includedDocUrls", null, false, false, false, "VARCHAR", 4000, 0, - null, false, null, null, null, null, null); - - protected final ColumnInfo _columnExcludedDocUrls = cci( - "EXCLUDED_DOC_URLS", "EXCLUDED_DOC_URLS", null, null, String.class, - "excludedDocUrls", 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 _columnUserAgent = cci("USER_AGENT", - "USER_AGENT", null, null, String.class, "userAgent", null, false, - false, true, "VARCHAR", 200, 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; - } - - /** - * URLS: {NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUrls() { - return _columnUrls; - } - - /** - * INCLUDED_URLS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnIncludedUrls() { - return _columnIncludedUrls; - } - - /** - * EXCLUDED_URLS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnExcludedUrls() { - return _columnExcludedUrls; - } - - /** - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnIncludedDocUrls() { - return _columnIncludedDocUrls; - } - - /** - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnExcludedDocUrls() { - return _columnExcludedDocUrls; - } - - /** - * 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; - } - - /** - * USER_AGENT: {NotNull, VARCHAR(200)} - * @return The information object of specified column. (NotNull) - */ - public ColumnInfo columnUserAgent() { - return _columnUserAgent; - } - - /** - * 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(columnUrls()); - ls.add(columnIncludedUrls()); - ls.add(columnExcludedUrls()); - ls.add(columnIncludedDocUrls()); - ls.add(columnExcludedDocUrls()); - ls.add(columnConfigParameter()); - ls.add(columnDepth()); - ls.add(columnMaxAccessCount()); - ls.add(columnUserAgent()); - 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 - // ----------------- - /** - * REQUEST_HEADER by WEB_CRAWLING_CONFIG_ID, named 'requestHeaderList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerRequestHeaderList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - RequestHeaderDbm.getInstance().columnWebCrawlingConfigId()); - return cri("CONSTRAINT_A1", "requestHeaderList", this, - RequestHeaderDbm.getInstance(), mp, false, "webCrawlingConfig"); - } - - /** - * WEB_AUTHENTICATION by WEB_CRAWLING_CONFIG_ID, named 'webAuthenticationList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerWebAuthenticationList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - WebAuthenticationDbm.getInstance().columnWebCrawlingConfigId()); - return cri("CONSTRAINT_A31", "webAuthenticationList", this, - WebAuthenticationDbm.getInstance(), mp, false, - "webCrawlingConfig"); - } - - /** - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToLabelTypeMappingList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerWebConfigToLabelTypeMappingList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - WebConfigToLabelTypeMappingDbm.getInstance() - .columnWebConfigId()); - return cri("CONSTRAINT_6AC", "webConfigToLabelTypeMappingList", this, - WebConfigToLabelTypeMappingDbm.getInstance(), mp, false, - "webCrawlingConfig"); - } - - /** - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToRoleTypeMappingList'. - * @return The information object of referrer property. (NotNull) - */ - public ReferrerInfo referrerWebConfigToRoleTypeMappingList() { - final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(), - WebConfigToRoleTypeMappingDbm.getInstance().columnWebConfigId()); - return cri("CONSTRAINT_A17D", "webConfigToRoleTypeMappingList", this, - WebConfigToRoleTypeMappingDbm.getInstance(), mp, false, - "webCrawlingConfig"); - } - - // =================================================================================== - // 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.WebCrawlingConfig"; - } - - @Override - public String getConditionBeanTypeName() { - return "jp.sf.fess.db.cbean.WebCrawlingConfigCB"; - } - - @Override - public String getBehaviorTypeName() { - return "jp.sf.fess.db.exbhv.WebCrawlingConfigBhv"; - } - - // =================================================================================== - // Object Type - // =========== - @Override - public Class<WebCrawlingConfig> getEntityType() { - return WebCrawlingConfig.class; - } - - // =================================================================================== - // Object Instance - // =============== - @Override - public WebCrawlingConfig newEntity() { - return new WebCrawlingConfig(); - } - - public WebCrawlingConfig newMyEntity() { - return new WebCrawlingConfig(); - } - - // =================================================================================== - // Map Communication - // ================= - @Override - public void acceptPrimaryKeyMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptPrimaryKeyMap((WebCrawlingConfig) et, mp); - } - - @Override - public void acceptAllColumnMap(final Entity et, - final Map<String, ? extends Object> mp) { - doAcceptAllColumnMap((WebCrawlingConfig) 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); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/BoostDocumentRuleCB.java b/src/main/java/jp/sf/fess/db/cbean/BoostDocumentRuleCB.java deleted file mode 100644 index 24f231d56..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/BoostDocumentRuleCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsBoostDocumentRuleCB; - -/** - * The condition-bean of BOOST_DOCUMENT_RULE. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class BoostDocumentRuleCB extends BsBoostDocumentRuleCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/ClickLogCB.java b/src/main/java/jp/sf/fess/db/cbean/ClickLogCB.java deleted file mode 100644 index c1cff9239..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/ClickLogCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsClickLogCB; - -/** - * The condition-bean of CLICK_LOG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class ClickLogCB extends BsClickLogCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/CrawlingSessionCB.java b/src/main/java/jp/sf/fess/db/cbean/CrawlingSessionCB.java deleted file mode 100644 index 8958f806a..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/CrawlingSessionCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsCrawlingSessionCB; - -/** - * The condition-bean of CRAWLING_SESSION. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class CrawlingSessionCB extends BsCrawlingSessionCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/CrawlingSessionInfoCB.java b/src/main/java/jp/sf/fess/db/cbean/CrawlingSessionInfoCB.java deleted file mode 100644 index f8d040882..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/CrawlingSessionInfoCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsCrawlingSessionInfoCB; - -/** - * The condition-bean of CRAWLING_SESSION_INFO. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class CrawlingSessionInfoCB extends BsCrawlingSessionInfoCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/DataConfigToLabelTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/DataConfigToLabelTypeMappingCB.java deleted file mode 100644 index 28d94fc4b..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/DataConfigToLabelTypeMappingCB.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsDataConfigToLabelTypeMappingCB; - -/** - * The condition-bean of DATA_CONFIG_TO_LABEL_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class DataConfigToLabelTypeMappingCB extends - BsDataConfigToLabelTypeMappingCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/DataConfigToRoleTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/DataConfigToRoleTypeMappingCB.java deleted file mode 100644 index 7a56c98be..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/DataConfigToRoleTypeMappingCB.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsDataConfigToRoleTypeMappingCB; - -/** - * The condition-bean of DATA_CONFIG_TO_ROLE_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class DataConfigToRoleTypeMappingCB extends - BsDataConfigToRoleTypeMappingCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/DataCrawlingConfigCB.java b/src/main/java/jp/sf/fess/db/cbean/DataCrawlingConfigCB.java deleted file mode 100644 index 08c205c36..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/DataCrawlingConfigCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsDataCrawlingConfigCB; - -/** - * The condition-bean of DATA_CRAWLING_CONFIG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class DataCrawlingConfigCB extends BsDataCrawlingConfigCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/FailureUrlCB.java b/src/main/java/jp/sf/fess/db/cbean/FailureUrlCB.java deleted file mode 100644 index 2a78626f7..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/FailureUrlCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsFailureUrlCB; - -/** - * The condition-bean of FAILURE_URL. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class FailureUrlCB extends BsFailureUrlCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/FavoriteLogCB.java b/src/main/java/jp/sf/fess/db/cbean/FavoriteLogCB.java deleted file mode 100644 index 6febf228d..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/FavoriteLogCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsFavoriteLogCB; - -/** - * The condition-bean of FAVORITE_LOG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class FavoriteLogCB extends BsFavoriteLogCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/FileAuthenticationCB.java b/src/main/java/jp/sf/fess/db/cbean/FileAuthenticationCB.java deleted file mode 100644 index 68bd89cce..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/FileAuthenticationCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsFileAuthenticationCB; - -/** - * The condition-bean of FILE_AUTHENTICATION. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class FileAuthenticationCB extends BsFileAuthenticationCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/FileConfigToLabelTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/FileConfigToLabelTypeMappingCB.java deleted file mode 100644 index 23d28c582..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/FileConfigToLabelTypeMappingCB.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsFileConfigToLabelTypeMappingCB; - -/** - * The condition-bean of FILE_CONFIG_TO_LABEL_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class FileConfigToLabelTypeMappingCB extends - BsFileConfigToLabelTypeMappingCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/FileConfigToRoleTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/FileConfigToRoleTypeMappingCB.java deleted file mode 100644 index 7e8bfe388..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/FileConfigToRoleTypeMappingCB.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsFileConfigToRoleTypeMappingCB; - -/** - * The condition-bean of FILE_CONFIG_TO_ROLE_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class FileConfigToRoleTypeMappingCB extends - BsFileConfigToRoleTypeMappingCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/FileCrawlingConfigCB.java b/src/main/java/jp/sf/fess/db/cbean/FileCrawlingConfigCB.java deleted file mode 100644 index f271f6bf6..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/FileCrawlingConfigCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsFileCrawlingConfigCB; - -/** - * The condition-bean of FILE_CRAWLING_CONFIG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class FileCrawlingConfigCB extends BsFileCrawlingConfigCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/JobLogCB.java b/src/main/java/jp/sf/fess/db/cbean/JobLogCB.java deleted file mode 100644 index 06453411f..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/JobLogCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsJobLogCB; - -/** - * The condition-bean of JOB_LOG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class JobLogCB extends BsJobLogCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/KeyMatchCB.java b/src/main/java/jp/sf/fess/db/cbean/KeyMatchCB.java deleted file mode 100644 index 4daecf986..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/KeyMatchCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsKeyMatchCB; - -/** - * The condition-bean of KEY_MATCH. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class KeyMatchCB extends BsKeyMatchCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/LabelTypeCB.java b/src/main/java/jp/sf/fess/db/cbean/LabelTypeCB.java deleted file mode 100644 index c2f7b46e7..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/LabelTypeCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsLabelTypeCB; - -/** - * The condition-bean of LABEL_TYPE. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class LabelTypeCB extends BsLabelTypeCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/LabelTypeToRoleTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/LabelTypeToRoleTypeMappingCB.java deleted file mode 100644 index 946a8eca6..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/LabelTypeToRoleTypeMappingCB.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsLabelTypeToRoleTypeMappingCB; - -/** - * The condition-bean of LABEL_TYPE_TO_ROLE_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class LabelTypeToRoleTypeMappingCB extends - BsLabelTypeToRoleTypeMappingCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/OverlappingHostCB.java b/src/main/java/jp/sf/fess/db/cbean/OverlappingHostCB.java deleted file mode 100644 index 752545365..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/OverlappingHostCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsOverlappingHostCB; - -/** - * The condition-bean of OVERLAPPING_HOST. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class OverlappingHostCB extends BsOverlappingHostCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/PathMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/PathMappingCB.java deleted file mode 100644 index bbb73af13..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/PathMappingCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsPathMappingCB; - -/** - * The condition-bean of PATH_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class PathMappingCB extends BsPathMappingCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/RequestHeaderCB.java b/src/main/java/jp/sf/fess/db/cbean/RequestHeaderCB.java deleted file mode 100644 index d3fc4760a..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/RequestHeaderCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsRequestHeaderCB; - -/** - * The condition-bean of REQUEST_HEADER. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class RequestHeaderCB extends BsRequestHeaderCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/RoleTypeCB.java b/src/main/java/jp/sf/fess/db/cbean/RoleTypeCB.java deleted file mode 100644 index 4475efe8c..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/RoleTypeCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsRoleTypeCB; - -/** - * The condition-bean of ROLE_TYPE. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class RoleTypeCB extends BsRoleTypeCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/ScheduledJobCB.java b/src/main/java/jp/sf/fess/db/cbean/ScheduledJobCB.java deleted file mode 100644 index ac93cf9b0..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/ScheduledJobCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsScheduledJobCB; - -/** - * The condition-bean of SCHEDULED_JOB. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class ScheduledJobCB extends BsScheduledJobCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/SearchFieldLogCB.java b/src/main/java/jp/sf/fess/db/cbean/SearchFieldLogCB.java deleted file mode 100644 index af883c1e7..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/SearchFieldLogCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsSearchFieldLogCB; - -/** - * The condition-bean of SEARCH_FIELD_LOG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class SearchFieldLogCB extends BsSearchFieldLogCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/SearchLogCB.java b/src/main/java/jp/sf/fess/db/cbean/SearchLogCB.java deleted file mode 100644 index f4cf42680..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/SearchLogCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsSearchLogCB; - -/** - * The condition-bean of SEARCH_LOG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class SearchLogCB extends BsSearchLogCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/SuggestBadWordCB.java b/src/main/java/jp/sf/fess/db/cbean/SuggestBadWordCB.java deleted file mode 100644 index bbf904271..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/SuggestBadWordCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsSuggestBadWordCB; - -/** - * The condition-bean of SUGGEST_BAD_WORD. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class SuggestBadWordCB extends BsSuggestBadWordCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/SuggestElevateWordCB.java b/src/main/java/jp/sf/fess/db/cbean/SuggestElevateWordCB.java deleted file mode 100644 index 44ae4b024..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/SuggestElevateWordCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsSuggestElevateWordCB; - -/** - * The condition-bean of SUGGEST_ELEVATE_WORD. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class SuggestElevateWordCB extends BsSuggestElevateWordCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/UserInfoCB.java b/src/main/java/jp/sf/fess/db/cbean/UserInfoCB.java deleted file mode 100644 index 8c0c81b4d..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/UserInfoCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsUserInfoCB; - -/** - * The condition-bean of USER_INFO. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class UserInfoCB extends BsUserInfoCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/WebAuthenticationCB.java b/src/main/java/jp/sf/fess/db/cbean/WebAuthenticationCB.java deleted file mode 100644 index 01b96b2cc..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/WebAuthenticationCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsWebAuthenticationCB; - -/** - * The condition-bean of WEB_AUTHENTICATION. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class WebAuthenticationCB extends BsWebAuthenticationCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/WebConfigToLabelTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/WebConfigToLabelTypeMappingCB.java deleted file mode 100644 index 9a249fa53..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/WebConfigToLabelTypeMappingCB.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsWebConfigToLabelTypeMappingCB; - -/** - * The condition-bean of WEB_CONFIG_TO_LABEL_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class WebConfigToLabelTypeMappingCB extends - BsWebConfigToLabelTypeMappingCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/WebConfigToRoleTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/WebConfigToRoleTypeMappingCB.java deleted file mode 100644 index a607faec0..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/WebConfigToRoleTypeMappingCB.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsWebConfigToRoleTypeMappingCB; - -/** - * The condition-bean of WEB_CONFIG_TO_ROLE_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class WebConfigToRoleTypeMappingCB extends - BsWebConfigToRoleTypeMappingCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/WebCrawlingConfigCB.java b/src/main/java/jp/sf/fess/db/cbean/WebCrawlingConfigCB.java deleted file mode 100644 index 1ce93ed3e..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/WebCrawlingConfigCB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean; - -import jp.sf.fess.db.cbean.bs.BsWebCrawlingConfigCB; - -/** - * The condition-bean of WEB_CRAWLING_CONFIG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class WebCrawlingConfigCB extends BsWebCrawlingConfigCB { -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsBoostDocumentRuleCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsBoostDocumentRuleCB.java deleted file mode 100644 index cbb8a4f61..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsBoostDocumentRuleCB.java +++ /dev/null @@ -1,791 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.BoostDocumentRuleCB; -import jp.sf.fess.db.cbean.cq.BoostDocumentRuleCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of BOOST_DOCUMENT_RULE. - * @author DBFlute(AutoGenerator) - */ -public class BsBoostDocumentRuleCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected BoostDocumentRuleCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsBoostDocumentRuleCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "BOOST_DOCUMENT_RULE"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public BoostDocumentRuleCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsBoostDocumentRuleCB cb = this; - cb.query().setId_Equal(id); - return (BoostDocumentRuleCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsBoostDocumentRuleCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public BoostDocumentRuleCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public BoostDocumentRuleCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected BoostDocumentRuleCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected BoostDocumentRuleCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final BoostDocumentRuleCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected BoostDocumentRuleCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new BoostDocumentRuleCQ(childQuery, sqlClause, aliasName, - nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<BoostDocumentRuleCB> unionQuery) { - final BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final BoostDocumentRuleCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<BoostDocumentRuleCB> unionQuery) { - final BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final BoostDocumentRuleCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<BoostDocumentRuleCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public BoostDocumentRuleCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<BoostDocumentRuleCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<BoostDocumentRuleCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUrlExpr() { - return doColumn("URL_EXPR"); - } - - /** - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnBoostExpr() { - return doColumn("BOOST_EXPR"); - } - - /** - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSortOrder() { - return doColumn("SORT_ORDER"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "BOOST_DOCUMENT_RULE"; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<BoostDocumentRuleCB, BoostDocumentRuleCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<BoostDocumentRuleCB, BoostDocumentRuleCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<BoostDocumentRuleCB, BoostDocumentRuleCQ>() { - @Override - public void setup(final String fn, - final SubQuery<BoostDocumentRuleCB> sq, - final BoostDocumentRuleCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<BoostDocumentRuleCB> columnQuery( - final SpecifyQuery<BoostDocumentRuleCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<BoostDocumentRuleCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<BoostDocumentRuleCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected BoostDocumentRuleCB xcreateColumnQueryCB() { - final BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public BoostDocumentRuleCB dreamCruiseCB() { - final BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<BoostDocumentRuleCB> orQuery) { - xorSQ((BoostDocumentRuleCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<BoostDocumentRuleCB> andQuery) { - xorSQAP((BoostDocumentRuleCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final BoostDocumentRuleCB cb; - if (mainCB != null) { - cb = (BoostDocumentRuleCB) mainCB; - } else { - cb = new BoostDocumentRuleCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<BoostDocumentRuleCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public BoostDocumentRuleCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return BoostDocumentRuleCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return BoostDocumentRuleCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsClickLogCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsClickLogCB.java deleted file mode 100644 index 0e0476bf7..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsClickLogCB.java +++ /dev/null @@ -1,819 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.cq.ClickLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.nss.SearchLogNss; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of CLICK_LOG. - * @author DBFlute(AutoGenerator) - */ -public class BsClickLogCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected ClickLogCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsClickLogCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "CLICK_LOG"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public ClickLogCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsClickLogCB cb = this; - cb.query().setId_Equal(id); - return (ClickLogCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsClickLogCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public ClickLogCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public ClickLogCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected ClickLogCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected ClickLogCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final ClickLogCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected ClickLogCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new ClickLogCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<ClickLogCB>() { - * public void query(ClickLogCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<ClickLogCB> unionQuery) { - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final ClickLogCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<ClickLogCB>() { - * public void query(ClickLogCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<ClickLogCB> unionQuery) { - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final ClickLogCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - protected SearchLogNss _nssSearchLog; - - public SearchLogNss getNssSearchLog() { - if (_nssSearchLog == null) { - _nssSearchLog = new SearchLogNss(null); - } - return _nssSearchLog; - } - - /** - * Set up relation columns to select clause. <br /> - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * <pre> - * ClickLogCB cb = new ClickLogCB(); - * cb.<span style="color: #DD4747">setupSelect_SearchLog()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * ClickLog clickLog = clickLogBhv.selectEntityWithDeletedCheck(cb); - * ... = clickLog.<span style="color: #DD4747">getSearchLog()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - * @return The set-upper of nested relation. {setupSelect...().with[nested-relation]} (NotNull) - */ - public SearchLogNss setupSelect_SearchLog() { - assertSetupSelectPurpose("searchLog"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnSearchId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().querySearchLog(); - } - }); - if (_nssSearchLog == null || !_nssSearchLog.hasConditionQuery()) { - _nssSearchLog = new SearchLogNss(query().querySearchLog()); - } - return _nssSearchLog; - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<ClickLogCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public ClickLogCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<ClickLogCQ> { - protected SearchLogCB.HpSpecification _searchLog; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<ClickLogCQ> qyCall, final HpCBPurpose purpose, - final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSearchId() { - return doColumn("SEARCH_ID"); - } - - /** - * URL: {IX, NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUrl() { - return doColumn("URL"); - } - - /** - * REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnRequestedTime() { - return doColumn("REQUESTED_TIME"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQuerySearchLog() - || qyCall().qy().xgetReferrerQuery() instanceof SearchLogCQ) { - columnSearchId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "CLICK_LOG"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public SearchLogCB.HpSpecification specifySearchLog() { - assertRelation("searchLog"); - if (_searchLog == null) { - _searchLog = new SearchLogCB.HpSpecification(_baseCB, - new HpSpQyCall<SearchLogCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall.qy() - .hasConditionQuerySearchLog(); - } - - @Override - public SearchLogCQ qy() { - return _qyCall.qy().querySearchLog(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _searchLog.xsetSyncQyCall(new HpSpQyCall<SearchLogCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall().qy() - .hasConditionQuerySearchLog(); - } - - @Override - public SearchLogCQ qy() { - return xsyncQyCall().qy().querySearchLog(); - } - }); - } - } - return _searchLog; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<ClickLogCB, ClickLogCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<ClickLogCB, ClickLogCQ>(_baseCB, - _qyCall.qy(), new HpSDRSetupper<ClickLogCB, ClickLogCQ>() { - @Override - public void setup(final String fn, - final SubQuery<ClickLogCB> sq, - final ClickLogCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<ClickLogCB>() { - * public void query(ClickLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<ClickLogCB>() { - * public void query(ClickLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<ClickLogCB> columnQuery( - final SpecifyQuery<ClickLogCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<ClickLogCB>() { - @Override - public HpCalculator handle(final SpecifyQuery<ClickLogCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected ClickLogCB xcreateColumnQueryCB() { - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public ClickLogCB dreamCruiseCB() { - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<ClickLogCB>() { - * public void query(ClickLogCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<ClickLogCB> orQuery) { - xorSQ((ClickLogCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<ClickLogCB>() { - * public void query(ClickLogCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<ClickLogCB>() { - * public void query(ClickLogCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<ClickLogCB> andQuery) { - xorSQAP((ClickLogCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final ClickLogCB cb; - if (mainCB != null) { - cb = (ClickLogCB) mainCB; - } else { - cb = new ClickLogCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<ClickLogCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public ClickLogCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return ClickLogCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return ClickLogCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsCrawlingSessionCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsCrawlingSessionCB.java deleted file mode 100644 index 9bdddd1db..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsCrawlingSessionCB.java +++ /dev/null @@ -1,776 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.CrawlingSessionCB; -import jp.sf.fess.db.cbean.CrawlingSessionInfoCB; -import jp.sf.fess.db.cbean.cq.CrawlingSessionCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of CRAWLING_SESSION. - * @author DBFlute(AutoGenerator) - */ -public class BsCrawlingSessionCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected CrawlingSessionCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsCrawlingSessionCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "CRAWLING_SESSION"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public CrawlingSessionCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsCrawlingSessionCB cb = this; - cb.query().setId_Equal(id); - return (CrawlingSessionCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsCrawlingSessionCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public CrawlingSessionCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public CrawlingSessionCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected CrawlingSessionCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected CrawlingSessionCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final CrawlingSessionCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected CrawlingSessionCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new CrawlingSessionCQ(childQuery, sqlClause, aliasName, - nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<CrawlingSessionCB> unionQuery) { - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final CrawlingSessionCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<CrawlingSessionCB> unionQuery) { - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final CrawlingSessionCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<CrawlingSessionCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public CrawlingSessionCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<CrawlingSessionCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<CrawlingSessionCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * SESSION_ID: {NotNull, VARCHAR(20)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSessionId() { - return doColumn("SESSION_ID"); - } - - /** - * NAME: {IX+, VARCHAR(20)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnName() { - return doColumn("NAME"); - } - - /** - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnExpiredTime() { - return doColumn("EXPIRED_TIME"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "CRAWLING_SESSION"; - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from CRAWLING_SESSION_INFO where ...) as FOO_MAX} <br /> - * CRAWLING_SESSION_INFO by CRAWLING_SESSION_ID, named 'crawlingSessionInfoList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedCrawlingSessionInfoList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, CrawlingSessionInfo.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<CrawlingSessionInfoCB, CrawlingSessionCQ> derivedCrawlingSessionInfoList() { - assertDerived("crawlingSessionInfoList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<CrawlingSessionInfoCB, CrawlingSessionCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<CrawlingSessionInfoCB, CrawlingSessionCQ>() { - @Override - public void setup(final String fn, - final SubQuery<CrawlingSessionInfoCB> sq, - final CrawlingSessionCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveCrawlingSessionInfoList(fn, sq, al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<CrawlingSessionCB, CrawlingSessionCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<CrawlingSessionCB, CrawlingSessionCQ>( - _baseCB, _qyCall.qy(), - new HpSDRSetupper<CrawlingSessionCB, CrawlingSessionCQ>() { - @Override - public void setup(final String fn, - final SubQuery<CrawlingSessionCB> sq, - final CrawlingSessionCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<CrawlingSessionCB> columnQuery( - final SpecifyQuery<CrawlingSessionCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<CrawlingSessionCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<CrawlingSessionCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected CrawlingSessionCB xcreateColumnQueryCB() { - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public CrawlingSessionCB dreamCruiseCB() { - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<CrawlingSessionCB> orQuery) { - xorSQ((CrawlingSessionCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<CrawlingSessionCB> andQuery) { - xorSQAP((CrawlingSessionCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final CrawlingSessionCB cb; - if (mainCB != null) { - cb = (CrawlingSessionCB) mainCB; - } else { - cb = new CrawlingSessionCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<CrawlingSessionCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public CrawlingSessionCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return CrawlingSessionCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return CrawlingSessionCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsCrawlingSessionInfoCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsCrawlingSessionInfoCB.java deleted file mode 100644 index c272c2e4c..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsCrawlingSessionInfoCB.java +++ /dev/null @@ -1,821 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.CrawlingSessionCB; -import jp.sf.fess.db.cbean.CrawlingSessionInfoCB; -import jp.sf.fess.db.cbean.cq.CrawlingSessionCQ; -import jp.sf.fess.db.cbean.cq.CrawlingSessionInfoCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of CRAWLING_SESSION_INFO. - * @author DBFlute(AutoGenerator) - */ -public class BsCrawlingSessionInfoCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected CrawlingSessionInfoCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsCrawlingSessionInfoCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "CRAWLING_SESSION_INFO"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public CrawlingSessionInfoCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsCrawlingSessionInfoCB cb = this; - cb.query().setId_Equal(id); - return (CrawlingSessionInfoCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsCrawlingSessionInfoCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public CrawlingSessionInfoCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public CrawlingSessionInfoCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected CrawlingSessionInfoCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected CrawlingSessionInfoCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final CrawlingSessionInfoCQ cq = xnewCQ(childQuery, sqlClause, - aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected CrawlingSessionInfoCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new CrawlingSessionInfoCQ(childQuery, sqlClause, aliasName, - nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<CrawlingSessionInfoCB> unionQuery) { - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final CrawlingSessionInfoCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<CrawlingSessionInfoCB> unionQuery) { - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final CrawlingSessionInfoCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * CRAWLING_SESSION by my CRAWLING_SESSION_ID, named 'crawlingSession'. - * <pre> - * CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - * cb.<span style="color: #DD4747">setupSelect_CrawlingSession()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * CrawlingSessionInfo crawlingSessionInfo = crawlingSessionInfoBhv.selectEntityWithDeletedCheck(cb); - * ... = crawlingSessionInfo.<span style="color: #DD4747">getCrawlingSession()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_CrawlingSession() { - assertSetupSelectPurpose("crawlingSession"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnCrawlingSessionId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryCrawlingSession(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<CrawlingSessionInfoCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public CrawlingSessionInfoCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<CrawlingSessionInfoCQ> { - protected CrawlingSessionCB.HpSpecification _crawlingSession; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<CrawlingSessionInfoCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCrawlingSessionId() { - return doColumn("CRAWLING_SESSION_ID"); - } - - /** - * KEY: {NotNull, VARCHAR(20)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnKey() { - return doColumn("KEY"); - } - - /** - * VALUE: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnValue() { - return doColumn("VALUE"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryCrawlingSession() - || qyCall().qy().xgetReferrerQuery() instanceof CrawlingSessionCQ) { - columnCrawlingSessionId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "CRAWLING_SESSION_INFO"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * CRAWLING_SESSION by my CRAWLING_SESSION_ID, named 'crawlingSession'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public CrawlingSessionCB.HpSpecification specifyCrawlingSession() { - assertRelation("crawlingSession"); - if (_crawlingSession == null) { - _crawlingSession = new CrawlingSessionCB.HpSpecification( - _baseCB, new HpSpQyCall<CrawlingSessionCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall - .qy() - .hasConditionQueryCrawlingSession(); - } - - @Override - public CrawlingSessionCQ qy() { - return _qyCall.qy().queryCrawlingSession(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _crawlingSession - .xsetSyncQyCall(new HpSpQyCall<CrawlingSessionCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall() - .qy() - .hasConditionQueryCrawlingSession(); - } - - @Override - public CrawlingSessionCQ qy() { - return xsyncQyCall().qy() - .queryCrawlingSession(); - } - }); - } - } - return _crawlingSession; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<CrawlingSessionInfoCB, CrawlingSessionInfoCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<CrawlingSessionInfoCB, CrawlingSessionInfoCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<CrawlingSessionInfoCB, CrawlingSessionInfoCQ>() { - @Override - public void setup(final String fn, - final SubQuery<CrawlingSessionInfoCB> sq, - final CrawlingSessionInfoCQ cq, - final String al, final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<CrawlingSessionInfoCB> columnQuery( - final SpecifyQuery<CrawlingSessionInfoCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<CrawlingSessionInfoCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<CrawlingSessionInfoCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected CrawlingSessionInfoCB xcreateColumnQueryCB() { - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public CrawlingSessionInfoCB dreamCruiseCB() { - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<CrawlingSessionInfoCB> orQuery) { - xorSQ((CrawlingSessionInfoCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart( - final AndQuery<CrawlingSessionInfoCB> andQuery) { - xorSQAP((CrawlingSessionInfoCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final CrawlingSessionInfoCB cb; - if (mainCB != null) { - cb = (CrawlingSessionInfoCB) mainCB; - } else { - cb = new CrawlingSessionInfoCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<CrawlingSessionInfoCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public CrawlingSessionInfoCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return CrawlingSessionInfoCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return CrawlingSessionInfoCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsDataConfigToLabelTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsDataConfigToLabelTypeMappingCB.java deleted file mode 100644 index cf4358088..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsDataConfigToLabelTypeMappingCB.java +++ /dev/null @@ -1,883 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.DataCrawlingConfigCB; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.cq.DataConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of DATA_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsDataConfigToLabelTypeMappingCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected DataConfigToLabelTypeMappingCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsDataConfigToLabelTypeMappingCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "DATA_CONFIG_TO_LABEL_TYPE_MAPPING"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public DataConfigToLabelTypeMappingCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsDataConfigToLabelTypeMappingCB cb = this; - cb.query().setId_Equal(id); - return (DataConfigToLabelTypeMappingCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsDataConfigToLabelTypeMappingCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public DataConfigToLabelTypeMappingCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public DataConfigToLabelTypeMappingCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected DataConfigToLabelTypeMappingCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected DataConfigToLabelTypeMappingCQ xcreateCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - final DataConfigToLabelTypeMappingCQ cq = xnewCQ(childQuery, sqlClause, - aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected DataConfigToLabelTypeMappingCQ xnewCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - return new DataConfigToLabelTypeMappingCQ(childQuery, sqlClause, - aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union( - final UnionQuery<DataConfigToLabelTypeMappingCB> unionQuery) { - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final DataConfigToLabelTypeMappingCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll( - final UnionQuery<DataConfigToLabelTypeMappingCB> unionQuery) { - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final DataConfigToLabelTypeMappingCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * <pre> - * DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_DataCrawlingConfig()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = dataConfigToLabelTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = dataConfigToLabelTypeMapping.<span style="color: #DD4747">getDataCrawlingConfig()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_DataCrawlingConfig() { - assertSetupSelectPurpose("dataCrawlingConfig"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnDataConfigId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryDataCrawlingConfig(); - } - }); - } - - /** - * Set up relation columns to select clause. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * <pre> - * DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_LabelType()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * DataConfigToLabelTypeMapping dataConfigToLabelTypeMapping = dataConfigToLabelTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = dataConfigToLabelTypeMapping.<span style="color: #DD4747">getLabelType()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_LabelType() { - assertSetupSelectPurpose("labelType"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnLabelTypeId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryLabelType(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<DataConfigToLabelTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public DataConfigToLabelTypeMappingCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<DataConfigToLabelTypeMappingCQ> { - protected DataCrawlingConfigCB.HpSpecification _dataCrawlingConfig; - - protected LabelTypeCB.HpSpecification _labelType; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<DataConfigToLabelTypeMappingCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDataConfigId() { - return doColumn("DATA_CONFIG_ID"); - } - - /** - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnLabelTypeId() { - return doColumn("LABEL_TYPE_ID"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryDataCrawlingConfig() - || qyCall().qy().xgetReferrerQuery() instanceof DataCrawlingConfigCQ) { - columnDataConfigId(); // FK or one-to-one referrer - } - if (qyCall().qy().hasConditionQueryLabelType() - || qyCall().qy().xgetReferrerQuery() instanceof LabelTypeCQ) { - columnLabelTypeId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "DATA_CONFIG_TO_LABEL_TYPE_MAPPING"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public DataCrawlingConfigCB.HpSpecification specifyDataCrawlingConfig() { - assertRelation("dataCrawlingConfig"); - if (_dataCrawlingConfig == null) { - _dataCrawlingConfig = new DataCrawlingConfigCB.HpSpecification( - _baseCB, new HpSpQyCall<DataCrawlingConfigCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall - .qy() - .hasConditionQueryDataCrawlingConfig(); - } - - @Override - public DataCrawlingConfigCQ qy() { - return _qyCall.qy().queryDataCrawlingConfig(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _dataCrawlingConfig - .xsetSyncQyCall(new HpSpQyCall<DataCrawlingConfigCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall() - .qy() - .hasConditionQueryDataCrawlingConfig(); - } - - @Override - public DataCrawlingConfigCQ qy() { - return xsyncQyCall().qy() - .queryDataCrawlingConfig(); - } - }); - } - } - return _dataCrawlingConfig; - } - - /** - * Prepare to specify functions about relation table. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public LabelTypeCB.HpSpecification specifyLabelType() { - assertRelation("labelType"); - if (_labelType == null) { - _labelType = new LabelTypeCB.HpSpecification(_baseCB, - new HpSpQyCall<LabelTypeCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall.qy() - .hasConditionQueryLabelType(); - } - - @Override - public LabelTypeCQ qy() { - return _qyCall.qy().queryLabelType(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _labelType.xsetSyncQyCall(new HpSpQyCall<LabelTypeCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall().qy() - .hasConditionQueryLabelType(); - } - - @Override - public LabelTypeCQ qy() { - return xsyncQyCall().qy().queryLabelType(); - } - }); - } - } - return _labelType; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMappingCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMappingCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<DataConfigToLabelTypeMappingCB, DataConfigToLabelTypeMappingCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<DataConfigToLabelTypeMappingCB> sq, - final DataConfigToLabelTypeMappingCQ cq, - final String al, final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<DataConfigToLabelTypeMappingCB> columnQuery( - final SpecifyQuery<DataConfigToLabelTypeMappingCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<DataConfigToLabelTypeMappingCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<DataConfigToLabelTypeMappingCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected DataConfigToLabelTypeMappingCB xcreateColumnQueryCB() { - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public DataConfigToLabelTypeMappingCB dreamCruiseCB() { - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery( - final OrQuery<DataConfigToLabelTypeMappingCB> orQuery) { - xorSQ((DataConfigToLabelTypeMappingCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart( - final AndQuery<DataConfigToLabelTypeMappingCB> andQuery) { - xorSQAP((DataConfigToLabelTypeMappingCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final DataConfigToLabelTypeMappingCB cb; - if (mainCB != null) { - cb = (DataConfigToLabelTypeMappingCB) mainCB; - } else { - cb = new DataConfigToLabelTypeMappingCB(); - } - specify().xsetSyncQyCall( - new HpSpQyCall<DataConfigToLabelTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public DataConfigToLabelTypeMappingCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return DataConfigToLabelTypeMappingCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return DataConfigToLabelTypeMappingCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsDataConfigToRoleTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsDataConfigToRoleTypeMappingCB.java deleted file mode 100644 index 23bef7be3..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsDataConfigToRoleTypeMappingCB.java +++ /dev/null @@ -1,882 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.DataCrawlingConfigCB; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.cq.DataConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of DATA_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsDataConfigToRoleTypeMappingCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected DataConfigToRoleTypeMappingCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsDataConfigToRoleTypeMappingCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "DATA_CONFIG_TO_ROLE_TYPE_MAPPING"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public DataConfigToRoleTypeMappingCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsDataConfigToRoleTypeMappingCB cb = this; - cb.query().setId_Equal(id); - return (DataConfigToRoleTypeMappingCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsDataConfigToRoleTypeMappingCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public DataConfigToRoleTypeMappingCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public DataConfigToRoleTypeMappingCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected DataConfigToRoleTypeMappingCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected DataConfigToRoleTypeMappingCQ xcreateCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - final DataConfigToRoleTypeMappingCQ cq = xnewCQ(childQuery, sqlClause, - aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected DataConfigToRoleTypeMappingCQ xnewCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - return new DataConfigToRoleTypeMappingCQ(childQuery, sqlClause, - aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<DataConfigToRoleTypeMappingCB> unionQuery) { - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final DataConfigToRoleTypeMappingCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll( - final UnionQuery<DataConfigToRoleTypeMappingCB> unionQuery) { - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final DataConfigToRoleTypeMappingCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * <pre> - * DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_DataCrawlingConfig()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = dataConfigToRoleTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = dataConfigToRoleTypeMapping.<span style="color: #DD4747">getDataCrawlingConfig()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_DataCrawlingConfig() { - assertSetupSelectPurpose("dataCrawlingConfig"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnDataConfigId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryDataCrawlingConfig(); - } - }); - } - - /** - * Set up relation columns to select clause. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * <pre> - * DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_RoleType()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * DataConfigToRoleTypeMapping dataConfigToRoleTypeMapping = dataConfigToRoleTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = dataConfigToRoleTypeMapping.<span style="color: #DD4747">getRoleType()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_RoleType() { - assertSetupSelectPurpose("roleType"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnRoleTypeId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryRoleType(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<DataConfigToRoleTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public DataConfigToRoleTypeMappingCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<DataConfigToRoleTypeMappingCQ> { - protected DataCrawlingConfigCB.HpSpecification _dataCrawlingConfig; - - protected RoleTypeCB.HpSpecification _roleType; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<DataConfigToRoleTypeMappingCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDataConfigId() { - return doColumn("DATA_CONFIG_ID"); - } - - /** - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnRoleTypeId() { - return doColumn("ROLE_TYPE_ID"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryDataCrawlingConfig() - || qyCall().qy().xgetReferrerQuery() instanceof DataCrawlingConfigCQ) { - columnDataConfigId(); // FK or one-to-one referrer - } - if (qyCall().qy().hasConditionQueryRoleType() - || qyCall().qy().xgetReferrerQuery() instanceof RoleTypeCQ) { - columnRoleTypeId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "DATA_CONFIG_TO_ROLE_TYPE_MAPPING"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public DataCrawlingConfigCB.HpSpecification specifyDataCrawlingConfig() { - assertRelation("dataCrawlingConfig"); - if (_dataCrawlingConfig == null) { - _dataCrawlingConfig = new DataCrawlingConfigCB.HpSpecification( - _baseCB, new HpSpQyCall<DataCrawlingConfigCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall - .qy() - .hasConditionQueryDataCrawlingConfig(); - } - - @Override - public DataCrawlingConfigCQ qy() { - return _qyCall.qy().queryDataCrawlingConfig(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _dataCrawlingConfig - .xsetSyncQyCall(new HpSpQyCall<DataCrawlingConfigCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall() - .qy() - .hasConditionQueryDataCrawlingConfig(); - } - - @Override - public DataCrawlingConfigCQ qy() { - return xsyncQyCall().qy() - .queryDataCrawlingConfig(); - } - }); - } - } - return _dataCrawlingConfig; - } - - /** - * Prepare to specify functions about relation table. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public RoleTypeCB.HpSpecification specifyRoleType() { - assertRelation("roleType"); - if (_roleType == null) { - _roleType = new RoleTypeCB.HpSpecification(_baseCB, - new HpSpQyCall<RoleTypeCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall.qy() - .hasConditionQueryRoleType(); - } - - @Override - public RoleTypeCQ qy() { - return _qyCall.qy().queryRoleType(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _roleType.xsetSyncQyCall(new HpSpQyCall<RoleTypeCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall().qy() - .hasConditionQueryRoleType(); - } - - @Override - public RoleTypeCQ qy() { - return xsyncQyCall().qy().queryRoleType(); - } - }); - } - } - return _roleType; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMappingCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMappingCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<DataConfigToRoleTypeMappingCB, DataConfigToRoleTypeMappingCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<DataConfigToRoleTypeMappingCB> sq, - final DataConfigToRoleTypeMappingCQ cq, - final String al, final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<DataConfigToRoleTypeMappingCB> columnQuery( - final SpecifyQuery<DataConfigToRoleTypeMappingCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<DataConfigToRoleTypeMappingCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<DataConfigToRoleTypeMappingCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected DataConfigToRoleTypeMappingCB xcreateColumnQueryCB() { - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public DataConfigToRoleTypeMappingCB dreamCruiseCB() { - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery( - final OrQuery<DataConfigToRoleTypeMappingCB> orQuery) { - xorSQ((DataConfigToRoleTypeMappingCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart( - final AndQuery<DataConfigToRoleTypeMappingCB> andQuery) { - xorSQAP((DataConfigToRoleTypeMappingCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final DataConfigToRoleTypeMappingCB cb; - if (mainCB != null) { - cb = (DataConfigToRoleTypeMappingCB) mainCB; - } else { - cb = new DataConfigToRoleTypeMappingCB(); - } - specify().xsetSyncQyCall( - new HpSpQyCall<DataConfigToRoleTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public DataConfigToRoleTypeMappingCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return DataConfigToRoleTypeMappingCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return DataConfigToRoleTypeMappingCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsDataCrawlingConfigCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsDataCrawlingConfigCB.java deleted file mode 100644 index 924e56536..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsDataCrawlingConfigCB.java +++ /dev/null @@ -1,896 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.DataCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.DataCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of DATA_CRAWLING_CONFIG. - * @author DBFlute(AutoGenerator) - */ -public class BsDataCrawlingConfigCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected DataCrawlingConfigCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsDataCrawlingConfigCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "DATA_CRAWLING_CONFIG"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public DataCrawlingConfigCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsDataCrawlingConfigCB cb = this; - cb.query().setId_Equal(id); - return (DataCrawlingConfigCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsDataCrawlingConfigCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public DataCrawlingConfigCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public DataCrawlingConfigCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected DataCrawlingConfigCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected DataCrawlingConfigCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final DataCrawlingConfigCQ cq = xnewCQ(childQuery, sqlClause, - aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected DataCrawlingConfigCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new DataCrawlingConfigCQ(childQuery, sqlClause, aliasName, - nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<DataCrawlingConfigCB> unionQuery) { - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final DataCrawlingConfigCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<DataCrawlingConfigCB> unionQuery) { - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final DataCrawlingConfigCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<DataCrawlingConfigCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public DataCrawlingConfigCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<DataCrawlingConfigCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<DataCrawlingConfigCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * NAME: {NotNull, VARCHAR(200)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnName() { - return doColumn("NAME"); - } - - /** - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnHandlerName() { - return doColumn("HANDLER_NAME"); - } - - /** - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnHandlerParameter() { - return doColumn("HANDLER_PARAMETER"); - } - - /** - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnHandlerScript() { - return doColumn("HANDLER_SCRIPT"); - } - - /** - * BOOST: {NotNull, DOUBLE(17)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnBoost() { - return doColumn("BOOST"); - } - - /** - * AVAILABLE: {NotNull, VARCHAR(1)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnAvailable() { - return doColumn("AVAILABLE"); - } - - /** - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSortOrder() { - return doColumn("SORT_ORDER"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "DATA_CRAWLING_CONFIG"; - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from DATA_CONFIG_TO_LABEL_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToLabelTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedDataConfigToLabelTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, DataConfigToLabelTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<DataConfigToLabelTypeMappingCB, DataCrawlingConfigCQ> derivedDataConfigToLabelTypeMappingList() { - assertDerived("dataConfigToLabelTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<DataConfigToLabelTypeMappingCB, DataCrawlingConfigCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<DataConfigToLabelTypeMappingCB, DataCrawlingConfigCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<DataConfigToLabelTypeMappingCB> sq, - final DataCrawlingConfigCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveDataConfigToLabelTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from DATA_CONFIG_TO_ROLE_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToRoleTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedDataConfigToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, DataConfigToRoleTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<DataConfigToRoleTypeMappingCB, DataCrawlingConfigCQ> derivedDataConfigToRoleTypeMappingList() { - assertDerived("dataConfigToRoleTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<DataConfigToRoleTypeMappingCB, DataCrawlingConfigCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<DataConfigToRoleTypeMappingCB, DataCrawlingConfigCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<DataConfigToRoleTypeMappingCB> sq, - final DataCrawlingConfigCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveDataConfigToRoleTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<DataCrawlingConfigCB, DataCrawlingConfigCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<DataCrawlingConfigCB, DataCrawlingConfigCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<DataCrawlingConfigCB, DataCrawlingConfigCQ>() { - @Override - public void setup(final String fn, - final SubQuery<DataCrawlingConfigCB> sq, - final DataCrawlingConfigCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<DataCrawlingConfigCB> columnQuery( - final SpecifyQuery<DataCrawlingConfigCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<DataCrawlingConfigCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<DataCrawlingConfigCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected DataCrawlingConfigCB xcreateColumnQueryCB() { - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public DataCrawlingConfigCB dreamCruiseCB() { - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<DataCrawlingConfigCB> orQuery) { - xorSQ((DataCrawlingConfigCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart( - final AndQuery<DataCrawlingConfigCB> andQuery) { - xorSQAP((DataCrawlingConfigCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final DataCrawlingConfigCB cb; - if (mainCB != null) { - cb = (DataCrawlingConfigCB) mainCB; - } else { - cb = new DataCrawlingConfigCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<DataCrawlingConfigCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public DataCrawlingConfigCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return DataCrawlingConfigCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return DataCrawlingConfigCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsFailureUrlCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsFailureUrlCB.java deleted file mode 100644 index 36ea3a78e..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsFailureUrlCB.java +++ /dev/null @@ -1,765 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.FailureUrlCB; -import jp.sf.fess.db.cbean.cq.FailureUrlCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of FAILURE_URL. - * @author DBFlute(AutoGenerator) - */ -public class BsFailureUrlCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected FailureUrlCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsFailureUrlCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "FAILURE_URL"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public FailureUrlCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsFailureUrlCB cb = this; - cb.query().setId_Equal(id); - return (FailureUrlCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsFailureUrlCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public FailureUrlCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public FailureUrlCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected FailureUrlCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected FailureUrlCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final FailureUrlCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected FailureUrlCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new FailureUrlCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<FailureUrlCB>() { - * public void query(FailureUrlCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<FailureUrlCB> unionQuery) { - final FailureUrlCB cb = new FailureUrlCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final FailureUrlCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<FailureUrlCB>() { - * public void query(FailureUrlCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<FailureUrlCB> unionQuery) { - final FailureUrlCB cb = new FailureUrlCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final FailureUrlCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<FailureUrlCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public FailureUrlCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<FailureUrlCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<FailureUrlCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * URL: {IX+, NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUrl() { - return doColumn("URL"); - } - - /** - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnThreadName() { - return doColumn("THREAD_NAME"); - } - - /** - * ERROR_NAME: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnErrorName() { - return doColumn("ERROR_NAME"); - } - - /** - * ERROR_LOG: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnErrorLog() { - return doColumn("ERROR_LOG"); - } - - /** - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnErrorCount() { - return doColumn("ERROR_COUNT"); - } - - /** - * LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnLastAccessTime() { - return doColumn("LAST_ACCESS_TIME"); - } - - /** - * CONFIG_ID: {IX, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnConfigId() { - return doColumn("CONFIG_ID"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "FAILURE_URL"; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<FailureUrlCB, FailureUrlCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<FailureUrlCB, FailureUrlCQ>(_baseCB, - _qyCall.qy(), - new HpSDRSetupper<FailureUrlCB, FailureUrlCQ>() { - @Override - public void setup(final String fn, - final SubQuery<FailureUrlCB> sq, - final FailureUrlCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<FailureUrlCB>() { - * public void query(FailureUrlCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<FailureUrlCB>() { - * public void query(FailureUrlCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<FailureUrlCB> columnQuery( - final SpecifyQuery<FailureUrlCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<FailureUrlCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<FailureUrlCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected FailureUrlCB xcreateColumnQueryCB() { - final FailureUrlCB cb = new FailureUrlCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public FailureUrlCB dreamCruiseCB() { - final FailureUrlCB cb = new FailureUrlCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<FailureUrlCB>() { - * public void query(FailureUrlCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<FailureUrlCB> orQuery) { - xorSQ((FailureUrlCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<FailureUrlCB>() { - * public void query(FailureUrlCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<FailureUrlCB>() { - * public void query(FailureUrlCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<FailureUrlCB> andQuery) { - xorSQAP((FailureUrlCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final FailureUrlCB cb; - if (mainCB != null) { - cb = (FailureUrlCB) mainCB; - } else { - cb = new FailureUrlCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<FailureUrlCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public FailureUrlCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return FailureUrlCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return FailureUrlCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsFavoriteLogCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsFavoriteLogCB.java deleted file mode 100644 index 5f497edd4..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsFavoriteLogCB.java +++ /dev/null @@ -1,821 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.FavoriteLogCB; -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.cbean.cq.FavoriteLogCQ; -import jp.sf.fess.db.cbean.cq.UserInfoCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of FAVORITE_LOG. - * @author DBFlute(AutoGenerator) - */ -public class BsFavoriteLogCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected FavoriteLogCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsFavoriteLogCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "FAVORITE_LOG"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public FavoriteLogCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsFavoriteLogCB cb = this; - cb.query().setId_Equal(id); - return (FavoriteLogCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsFavoriteLogCB cb = this; - cb.query().setId_Equal(id); - } - - /** - * Accept the query condition of unique key as equal. - * @param userId : UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO. (NotNull) - * @param url : +UQ, NotNull, VARCHAR(4000). (NotNull) - * @return this. (NotNull) - */ - public FavoriteLogCB acceptUniqueOf(final Long userId, final String url) { - assertObjectNotNull("userId", userId); - assertObjectNotNull("url", url); - final BsFavoriteLogCB cb = this; - cb.query().setUserId_Equal(userId); - cb.query().setUrl_Equal(url); - return (FavoriteLogCB) this; - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public FavoriteLogCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public FavoriteLogCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected FavoriteLogCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected FavoriteLogCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final FavoriteLogCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected FavoriteLogCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new FavoriteLogCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<FavoriteLogCB> unionQuery) { - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final FavoriteLogCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<FavoriteLogCB> unionQuery) { - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final FavoriteLogCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * USER_INFO by my USER_ID, named 'userInfo'. - * <pre> - * FavoriteLogCB cb = new FavoriteLogCB(); - * cb.<span style="color: #DD4747">setupSelect_UserInfo()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * FavoriteLog favoriteLog = favoriteLogBhv.selectEntityWithDeletedCheck(cb); - * ... = favoriteLog.<span style="color: #DD4747">getUserInfo()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_UserInfo() { - assertSetupSelectPurpose("userInfo"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnUserId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryUserInfo(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<FavoriteLogCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public FavoriteLogCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<FavoriteLogCQ> { - protected UserInfoCB.HpSpecification _userInfo; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<FavoriteLogCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUserId() { - return doColumn("USER_ID"); - } - - /** - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUrl() { - return doColumn("URL"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryUserInfo() - || qyCall().qy().xgetReferrerQuery() instanceof UserInfoCQ) { - columnUserId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "FAVORITE_LOG"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * USER_INFO by my USER_ID, named 'userInfo'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public UserInfoCB.HpSpecification specifyUserInfo() { - assertRelation("userInfo"); - if (_userInfo == null) { - _userInfo = new UserInfoCB.HpSpecification(_baseCB, - new HpSpQyCall<UserInfoCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall.qy() - .hasConditionQueryUserInfo(); - } - - @Override - public UserInfoCQ qy() { - return _qyCall.qy().queryUserInfo(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _userInfo.xsetSyncQyCall(new HpSpQyCall<UserInfoCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall().qy() - .hasConditionQueryUserInfo(); - } - - @Override - public UserInfoCQ qy() { - return xsyncQyCall().qy().queryUserInfo(); - } - }); - } - } - return _userInfo; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<FavoriteLogCB, FavoriteLogCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<FavoriteLogCB, FavoriteLogCQ>(_baseCB, - _qyCall.qy(), - new HpSDRSetupper<FavoriteLogCB, FavoriteLogCQ>() { - @Override - public void setup(final String fn, - final SubQuery<FavoriteLogCB> sq, - final FavoriteLogCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<FavoriteLogCB> columnQuery( - final SpecifyQuery<FavoriteLogCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<FavoriteLogCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<FavoriteLogCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected FavoriteLogCB xcreateColumnQueryCB() { - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public FavoriteLogCB dreamCruiseCB() { - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<FavoriteLogCB> orQuery) { - xorSQ((FavoriteLogCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<FavoriteLogCB> andQuery) { - xorSQAP((FavoriteLogCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final FavoriteLogCB cb; - if (mainCB != null) { - cb = (FavoriteLogCB) mainCB; - } else { - cb = new FavoriteLogCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<FavoriteLogCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public FavoriteLogCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return FavoriteLogCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return FavoriteLogCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsFileAuthenticationCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsFileAuthenticationCB.java deleted file mode 100644 index 1a8d2e21d..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsFileAuthenticationCB.java +++ /dev/null @@ -1,901 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.FileAuthenticationCB; -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.FileAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of FILE_AUTHENTICATION. - * @author DBFlute(AutoGenerator) - */ -public class BsFileAuthenticationCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected FileAuthenticationCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsFileAuthenticationCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "FILE_AUTHENTICATION"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public FileAuthenticationCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsFileAuthenticationCB cb = this; - cb.query().setId_Equal(id); - return (FileAuthenticationCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsFileAuthenticationCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public FileAuthenticationCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public FileAuthenticationCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected FileAuthenticationCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected FileAuthenticationCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final FileAuthenticationCQ cq = xnewCQ(childQuery, sqlClause, - aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected FileAuthenticationCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new FileAuthenticationCQ(childQuery, sqlClause, aliasName, - nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<FileAuthenticationCB> unionQuery) { - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final FileAuthenticationCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<FileAuthenticationCB> unionQuery) { - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final FileAuthenticationCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * FILE_CRAWLING_CONFIG by my FILE_CRAWLING_CONFIG_ID, named 'fileCrawlingConfig'. - * <pre> - * FileAuthenticationCB cb = new FileAuthenticationCB(); - * cb.<span style="color: #DD4747">setupSelect_FileCrawlingConfig()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * FileAuthentication fileAuthentication = fileAuthenticationBhv.selectEntityWithDeletedCheck(cb); - * ... = fileAuthentication.<span style="color: #DD4747">getFileCrawlingConfig()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_FileCrawlingConfig() { - assertSetupSelectPurpose("fileCrawlingConfig"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnFileCrawlingConfigId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryFileCrawlingConfig(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<FileAuthenticationCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public FileAuthenticationCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<FileAuthenticationCQ> { - protected FileCrawlingConfigCB.HpSpecification _fileCrawlingConfig; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<FileAuthenticationCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * HOSTNAME: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnHostname() { - return doColumn("HOSTNAME"); - } - - /** - * PORT: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnPort() { - return doColumn("PORT"); - } - - /** - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnProtocolScheme() { - return doColumn("PROTOCOL_SCHEME"); - } - - /** - * USERNAME: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUsername() { - return doColumn("USERNAME"); - } - - /** - * PASSWORD: {VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnPassword() { - return doColumn("PASSWORD"); - } - - /** - * PARAMETERS: {VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnParameters() { - return doColumn("PARAMETERS"); - } - - /** - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnFileCrawlingConfigId() { - return doColumn("FILE_CRAWLING_CONFIG_ID"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryFileCrawlingConfig() - || qyCall().qy().xgetReferrerQuery() instanceof FileCrawlingConfigCQ) { - columnFileCrawlingConfigId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "FILE_AUTHENTICATION"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * FILE_CRAWLING_CONFIG by my FILE_CRAWLING_CONFIG_ID, named 'fileCrawlingConfig'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public FileCrawlingConfigCB.HpSpecification specifyFileCrawlingConfig() { - assertRelation("fileCrawlingConfig"); - if (_fileCrawlingConfig == null) { - _fileCrawlingConfig = new FileCrawlingConfigCB.HpSpecification( - _baseCB, new HpSpQyCall<FileCrawlingConfigCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall - .qy() - .hasConditionQueryFileCrawlingConfig(); - } - - @Override - public FileCrawlingConfigCQ qy() { - return _qyCall.qy().queryFileCrawlingConfig(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _fileCrawlingConfig - .xsetSyncQyCall(new HpSpQyCall<FileCrawlingConfigCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall() - .qy() - .hasConditionQueryFileCrawlingConfig(); - } - - @Override - public FileCrawlingConfigCQ qy() { - return xsyncQyCall().qy() - .queryFileCrawlingConfig(); - } - }); - } - } - return _fileCrawlingConfig; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<FileAuthenticationCB, FileAuthenticationCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<FileAuthenticationCB, FileAuthenticationCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<FileAuthenticationCB, FileAuthenticationCQ>() { - @Override - public void setup(final String fn, - final SubQuery<FileAuthenticationCB> sq, - final FileAuthenticationCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<FileAuthenticationCB> columnQuery( - final SpecifyQuery<FileAuthenticationCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<FileAuthenticationCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<FileAuthenticationCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected FileAuthenticationCB xcreateColumnQueryCB() { - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public FileAuthenticationCB dreamCruiseCB() { - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<FileAuthenticationCB> orQuery) { - xorSQ((FileAuthenticationCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart( - final AndQuery<FileAuthenticationCB> andQuery) { - xorSQAP((FileAuthenticationCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final FileAuthenticationCB cb; - if (mainCB != null) { - cb = (FileAuthenticationCB) mainCB; - } else { - cb = new FileAuthenticationCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<FileAuthenticationCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public FileAuthenticationCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return FileAuthenticationCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return FileAuthenticationCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsFileConfigToLabelTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsFileConfigToLabelTypeMappingCB.java deleted file mode 100644 index 21feab190..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsFileConfigToLabelTypeMappingCB.java +++ /dev/null @@ -1,883 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.cq.FileConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of FILE_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsFileConfigToLabelTypeMappingCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected FileConfigToLabelTypeMappingCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsFileConfigToLabelTypeMappingCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "FILE_CONFIG_TO_LABEL_TYPE_MAPPING"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public FileConfigToLabelTypeMappingCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsFileConfigToLabelTypeMappingCB cb = this; - cb.query().setId_Equal(id); - return (FileConfigToLabelTypeMappingCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsFileConfigToLabelTypeMappingCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public FileConfigToLabelTypeMappingCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public FileConfigToLabelTypeMappingCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected FileConfigToLabelTypeMappingCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected FileConfigToLabelTypeMappingCQ xcreateCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - final FileConfigToLabelTypeMappingCQ cq = xnewCQ(childQuery, sqlClause, - aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected FileConfigToLabelTypeMappingCQ xnewCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - return new FileConfigToLabelTypeMappingCQ(childQuery, sqlClause, - aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union( - final UnionQuery<FileConfigToLabelTypeMappingCB> unionQuery) { - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final FileConfigToLabelTypeMappingCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll( - final UnionQuery<FileConfigToLabelTypeMappingCB> unionQuery) { - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final FileConfigToLabelTypeMappingCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * <pre> - * FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_FileCrawlingConfig()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = fileConfigToLabelTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = fileConfigToLabelTypeMapping.<span style="color: #DD4747">getFileCrawlingConfig()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_FileCrawlingConfig() { - assertSetupSelectPurpose("fileCrawlingConfig"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnFileConfigId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryFileCrawlingConfig(); - } - }); - } - - /** - * Set up relation columns to select clause. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * <pre> - * FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_LabelType()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * FileConfigToLabelTypeMapping fileConfigToLabelTypeMapping = fileConfigToLabelTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = fileConfigToLabelTypeMapping.<span style="color: #DD4747">getLabelType()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_LabelType() { - assertSetupSelectPurpose("labelType"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnLabelTypeId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryLabelType(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<FileConfigToLabelTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public FileConfigToLabelTypeMappingCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<FileConfigToLabelTypeMappingCQ> { - protected FileCrawlingConfigCB.HpSpecification _fileCrawlingConfig; - - protected LabelTypeCB.HpSpecification _labelType; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<FileConfigToLabelTypeMappingCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnFileConfigId() { - return doColumn("FILE_CONFIG_ID"); - } - - /** - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnLabelTypeId() { - return doColumn("LABEL_TYPE_ID"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryFileCrawlingConfig() - || qyCall().qy().xgetReferrerQuery() instanceof FileCrawlingConfigCQ) { - columnFileConfigId(); // FK or one-to-one referrer - } - if (qyCall().qy().hasConditionQueryLabelType() - || qyCall().qy().xgetReferrerQuery() instanceof LabelTypeCQ) { - columnLabelTypeId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "FILE_CONFIG_TO_LABEL_TYPE_MAPPING"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public FileCrawlingConfigCB.HpSpecification specifyFileCrawlingConfig() { - assertRelation("fileCrawlingConfig"); - if (_fileCrawlingConfig == null) { - _fileCrawlingConfig = new FileCrawlingConfigCB.HpSpecification( - _baseCB, new HpSpQyCall<FileCrawlingConfigCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall - .qy() - .hasConditionQueryFileCrawlingConfig(); - } - - @Override - public FileCrawlingConfigCQ qy() { - return _qyCall.qy().queryFileCrawlingConfig(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _fileCrawlingConfig - .xsetSyncQyCall(new HpSpQyCall<FileCrawlingConfigCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall() - .qy() - .hasConditionQueryFileCrawlingConfig(); - } - - @Override - public FileCrawlingConfigCQ qy() { - return xsyncQyCall().qy() - .queryFileCrawlingConfig(); - } - }); - } - } - return _fileCrawlingConfig; - } - - /** - * Prepare to specify functions about relation table. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public LabelTypeCB.HpSpecification specifyLabelType() { - assertRelation("labelType"); - if (_labelType == null) { - _labelType = new LabelTypeCB.HpSpecification(_baseCB, - new HpSpQyCall<LabelTypeCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall.qy() - .hasConditionQueryLabelType(); - } - - @Override - public LabelTypeCQ qy() { - return _qyCall.qy().queryLabelType(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _labelType.xsetSyncQyCall(new HpSpQyCall<LabelTypeCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall().qy() - .hasConditionQueryLabelType(); - } - - @Override - public LabelTypeCQ qy() { - return xsyncQyCall().qy().queryLabelType(); - } - }); - } - } - return _labelType; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMappingCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMappingCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<FileConfigToLabelTypeMappingCB, FileConfigToLabelTypeMappingCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<FileConfigToLabelTypeMappingCB> sq, - final FileConfigToLabelTypeMappingCQ cq, - final String al, final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<FileConfigToLabelTypeMappingCB> columnQuery( - final SpecifyQuery<FileConfigToLabelTypeMappingCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<FileConfigToLabelTypeMappingCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<FileConfigToLabelTypeMappingCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected FileConfigToLabelTypeMappingCB xcreateColumnQueryCB() { - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public FileConfigToLabelTypeMappingCB dreamCruiseCB() { - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery( - final OrQuery<FileConfigToLabelTypeMappingCB> orQuery) { - xorSQ((FileConfigToLabelTypeMappingCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart( - final AndQuery<FileConfigToLabelTypeMappingCB> andQuery) { - xorSQAP((FileConfigToLabelTypeMappingCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final FileConfigToLabelTypeMappingCB cb; - if (mainCB != null) { - cb = (FileConfigToLabelTypeMappingCB) mainCB; - } else { - cb = new FileConfigToLabelTypeMappingCB(); - } - specify().xsetSyncQyCall( - new HpSpQyCall<FileConfigToLabelTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public FileConfigToLabelTypeMappingCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return FileConfigToLabelTypeMappingCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return FileConfigToLabelTypeMappingCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsFileConfigToRoleTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsFileConfigToRoleTypeMappingCB.java deleted file mode 100644 index 3bdfc6ed1..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsFileConfigToRoleTypeMappingCB.java +++ /dev/null @@ -1,882 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.cq.FileConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of FILE_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsFileConfigToRoleTypeMappingCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected FileConfigToRoleTypeMappingCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsFileConfigToRoleTypeMappingCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "FILE_CONFIG_TO_ROLE_TYPE_MAPPING"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public FileConfigToRoleTypeMappingCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsFileConfigToRoleTypeMappingCB cb = this; - cb.query().setId_Equal(id); - return (FileConfigToRoleTypeMappingCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsFileConfigToRoleTypeMappingCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public FileConfigToRoleTypeMappingCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public FileConfigToRoleTypeMappingCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected FileConfigToRoleTypeMappingCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected FileConfigToRoleTypeMappingCQ xcreateCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - final FileConfigToRoleTypeMappingCQ cq = xnewCQ(childQuery, sqlClause, - aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected FileConfigToRoleTypeMappingCQ xnewCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - return new FileConfigToRoleTypeMappingCQ(childQuery, sqlClause, - aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<FileConfigToRoleTypeMappingCB> unionQuery) { - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final FileConfigToRoleTypeMappingCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll( - final UnionQuery<FileConfigToRoleTypeMappingCB> unionQuery) { - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final FileConfigToRoleTypeMappingCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * <pre> - * FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_FileCrawlingConfig()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = fileConfigToRoleTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = fileConfigToRoleTypeMapping.<span style="color: #DD4747">getFileCrawlingConfig()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_FileCrawlingConfig() { - assertSetupSelectPurpose("fileCrawlingConfig"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnFileConfigId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryFileCrawlingConfig(); - } - }); - } - - /** - * Set up relation columns to select clause. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * <pre> - * FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_RoleType()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * FileConfigToRoleTypeMapping fileConfigToRoleTypeMapping = fileConfigToRoleTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = fileConfigToRoleTypeMapping.<span style="color: #DD4747">getRoleType()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_RoleType() { - assertSetupSelectPurpose("roleType"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnRoleTypeId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryRoleType(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<FileConfigToRoleTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public FileConfigToRoleTypeMappingCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<FileConfigToRoleTypeMappingCQ> { - protected FileCrawlingConfigCB.HpSpecification _fileCrawlingConfig; - - protected RoleTypeCB.HpSpecification _roleType; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<FileConfigToRoleTypeMappingCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnFileConfigId() { - return doColumn("FILE_CONFIG_ID"); - } - - /** - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnRoleTypeId() { - return doColumn("ROLE_TYPE_ID"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryFileCrawlingConfig() - || qyCall().qy().xgetReferrerQuery() instanceof FileCrawlingConfigCQ) { - columnFileConfigId(); // FK or one-to-one referrer - } - if (qyCall().qy().hasConditionQueryRoleType() - || qyCall().qy().xgetReferrerQuery() instanceof RoleTypeCQ) { - columnRoleTypeId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "FILE_CONFIG_TO_ROLE_TYPE_MAPPING"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public FileCrawlingConfigCB.HpSpecification specifyFileCrawlingConfig() { - assertRelation("fileCrawlingConfig"); - if (_fileCrawlingConfig == null) { - _fileCrawlingConfig = new FileCrawlingConfigCB.HpSpecification( - _baseCB, new HpSpQyCall<FileCrawlingConfigCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall - .qy() - .hasConditionQueryFileCrawlingConfig(); - } - - @Override - public FileCrawlingConfigCQ qy() { - return _qyCall.qy().queryFileCrawlingConfig(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _fileCrawlingConfig - .xsetSyncQyCall(new HpSpQyCall<FileCrawlingConfigCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall() - .qy() - .hasConditionQueryFileCrawlingConfig(); - } - - @Override - public FileCrawlingConfigCQ qy() { - return xsyncQyCall().qy() - .queryFileCrawlingConfig(); - } - }); - } - } - return _fileCrawlingConfig; - } - - /** - * Prepare to specify functions about relation table. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public RoleTypeCB.HpSpecification specifyRoleType() { - assertRelation("roleType"); - if (_roleType == null) { - _roleType = new RoleTypeCB.HpSpecification(_baseCB, - new HpSpQyCall<RoleTypeCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall.qy() - .hasConditionQueryRoleType(); - } - - @Override - public RoleTypeCQ qy() { - return _qyCall.qy().queryRoleType(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _roleType.xsetSyncQyCall(new HpSpQyCall<RoleTypeCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall().qy() - .hasConditionQueryRoleType(); - } - - @Override - public RoleTypeCQ qy() { - return xsyncQyCall().qy().queryRoleType(); - } - }); - } - } - return _roleType; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMappingCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMappingCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<FileConfigToRoleTypeMappingCB, FileConfigToRoleTypeMappingCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<FileConfigToRoleTypeMappingCB> sq, - final FileConfigToRoleTypeMappingCQ cq, - final String al, final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<FileConfigToRoleTypeMappingCB> columnQuery( - final SpecifyQuery<FileConfigToRoleTypeMappingCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<FileConfigToRoleTypeMappingCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<FileConfigToRoleTypeMappingCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected FileConfigToRoleTypeMappingCB xcreateColumnQueryCB() { - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public FileConfigToRoleTypeMappingCB dreamCruiseCB() { - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery( - final OrQuery<FileConfigToRoleTypeMappingCB> orQuery) { - xorSQ((FileConfigToRoleTypeMappingCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart( - final AndQuery<FileConfigToRoleTypeMappingCB> andQuery) { - xorSQAP((FileConfigToRoleTypeMappingCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final FileConfigToRoleTypeMappingCB cb; - if (mainCB != null) { - cb = (FileConfigToRoleTypeMappingCB) mainCB; - } else { - cb = new FileConfigToRoleTypeMappingCB(); - } - specify().xsetSyncQyCall( - new HpSpQyCall<FileConfigToRoleTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public FileConfigToRoleTypeMappingCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return FileConfigToRoleTypeMappingCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return FileConfigToRoleTypeMappingCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsFileCrawlingConfigCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsFileCrawlingConfigCB.java deleted file mode 100644 index 53721eb08..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsFileCrawlingConfigCB.java +++ /dev/null @@ -1,986 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.FileAuthenticationCB; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of FILE_CRAWLING_CONFIG. - * @author DBFlute(AutoGenerator) - */ -public class BsFileCrawlingConfigCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected FileCrawlingConfigCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsFileCrawlingConfigCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "FILE_CRAWLING_CONFIG"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public FileCrawlingConfigCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsFileCrawlingConfigCB cb = this; - cb.query().setId_Equal(id); - return (FileCrawlingConfigCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsFileCrawlingConfigCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public FileCrawlingConfigCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public FileCrawlingConfigCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected FileCrawlingConfigCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected FileCrawlingConfigCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final FileCrawlingConfigCQ cq = xnewCQ(childQuery, sqlClause, - aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected FileCrawlingConfigCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new FileCrawlingConfigCQ(childQuery, sqlClause, aliasName, - nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<FileCrawlingConfigCB> unionQuery) { - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final FileCrawlingConfigCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<FileCrawlingConfigCB> unionQuery) { - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final FileCrawlingConfigCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<FileCrawlingConfigCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public FileCrawlingConfigCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<FileCrawlingConfigCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<FileCrawlingConfigCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * NAME: {NotNull, VARCHAR(200)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnName() { - return doColumn("NAME"); - } - - /** - * PATHS: {NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnPaths() { - return doColumn("PATHS"); - } - - /** - * INCLUDED_PATHS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnIncludedPaths() { - return doColumn("INCLUDED_PATHS"); - } - - /** - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnExcludedPaths() { - return doColumn("EXCLUDED_PATHS"); - } - - /** - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnIncludedDocPaths() { - return doColumn("INCLUDED_DOC_PATHS"); - } - - /** - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnExcludedDocPaths() { - return doColumn("EXCLUDED_DOC_PATHS"); - } - - /** - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnConfigParameter() { - return doColumn("CONFIG_PARAMETER"); - } - - /** - * DEPTH: {INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDepth() { - return doColumn("DEPTH"); - } - - /** - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnMaxAccessCount() { - return doColumn("MAX_ACCESS_COUNT"); - } - - /** - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnNumOfThread() { - return doColumn("NUM_OF_THREAD"); - } - - /** - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnIntervalTime() { - return doColumn("INTERVAL_TIME"); - } - - /** - * BOOST: {NotNull, DOUBLE(17)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnBoost() { - return doColumn("BOOST"); - } - - /** - * AVAILABLE: {NotNull, VARCHAR(1)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnAvailable() { - return doColumn("AVAILABLE"); - } - - /** - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSortOrder() { - return doColumn("SORT_ORDER"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "FILE_CRAWLING_CONFIG"; - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from FILE_AUTHENTICATION where ...) as FOO_MAX} <br /> - * FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedFileAuthenticationList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, FileAuthentication.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<FileAuthenticationCB, FileCrawlingConfigCQ> derivedFileAuthenticationList() { - assertDerived("fileAuthenticationList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<FileAuthenticationCB, FileCrawlingConfigCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<FileAuthenticationCB, FileCrawlingConfigCQ>() { - @Override - public void setup(final String fn, - final SubQuery<FileAuthenticationCB> sq, - final FileCrawlingConfigCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveFileAuthenticationList(fn, sq, al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from FILE_CONFIG_TO_LABEL_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedFileConfigToLabelTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, FileConfigToLabelTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<FileConfigToLabelTypeMappingCB, FileCrawlingConfigCQ> derivedFileConfigToLabelTypeMappingList() { - assertDerived("fileConfigToLabelTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<FileConfigToLabelTypeMappingCB, FileCrawlingConfigCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<FileConfigToLabelTypeMappingCB, FileCrawlingConfigCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<FileConfigToLabelTypeMappingCB> sq, - final FileCrawlingConfigCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveFileConfigToLabelTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from FILE_CONFIG_TO_ROLE_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedFileConfigToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, FileConfigToRoleTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<FileConfigToRoleTypeMappingCB, FileCrawlingConfigCQ> derivedFileConfigToRoleTypeMappingList() { - assertDerived("fileConfigToRoleTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<FileConfigToRoleTypeMappingCB, FileCrawlingConfigCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<FileConfigToRoleTypeMappingCB, FileCrawlingConfigCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<FileConfigToRoleTypeMappingCB> sq, - final FileCrawlingConfigCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveFileConfigToRoleTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<FileCrawlingConfigCB, FileCrawlingConfigCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<FileCrawlingConfigCB, FileCrawlingConfigCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<FileCrawlingConfigCB, FileCrawlingConfigCQ>() { - @Override - public void setup(final String fn, - final SubQuery<FileCrawlingConfigCB> sq, - final FileCrawlingConfigCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<FileCrawlingConfigCB> columnQuery( - final SpecifyQuery<FileCrawlingConfigCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<FileCrawlingConfigCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<FileCrawlingConfigCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected FileCrawlingConfigCB xcreateColumnQueryCB() { - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public FileCrawlingConfigCB dreamCruiseCB() { - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<FileCrawlingConfigCB> orQuery) { - xorSQ((FileCrawlingConfigCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart( - final AndQuery<FileCrawlingConfigCB> andQuery) { - xorSQAP((FileCrawlingConfigCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final FileCrawlingConfigCB cb; - if (mainCB != null) { - cb = (FileCrawlingConfigCB) mainCB; - } else { - cb = new FileCrawlingConfigCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<FileCrawlingConfigCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public FileCrawlingConfigCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return FileCrawlingConfigCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return FileCrawlingConfigCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsJobLogCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsJobLogCB.java deleted file mode 100644 index 85198246a..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsJobLogCB.java +++ /dev/null @@ -1,769 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.JobLogCB; -import jp.sf.fess.db.cbean.cq.JobLogCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of JOB_LOG. - * @author DBFlute(AutoGenerator) - */ -public class BsJobLogCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected JobLogCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsJobLogCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "JOB_LOG"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public JobLogCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsJobLogCB cb = this; - cb.query().setId_Equal(id); - return (JobLogCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsJobLogCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public JobLogCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public JobLogCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected JobLogCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected JobLogCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final JobLogCQ cq = xnewCQ(childQuery, sqlClause, aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected JobLogCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new JobLogCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<JobLogCB>() { - * public void query(JobLogCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<JobLogCB> unionQuery) { - final JobLogCB cb = new JobLogCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final JobLogCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<JobLogCB>() { - * public void query(JobLogCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<JobLogCB> unionQuery) { - final JobLogCB cb = new JobLogCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final JobLogCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<JobLogCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public JobLogCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<JobLogCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<JobLogCQ> qyCall, final HpCBPurpose purpose, - final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * JOB_NAME: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnJobName() { - return doColumn("JOB_NAME"); - } - - /** - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnJobStatus() { - return doColumn("JOB_STATUS"); - } - - /** - * TARGET: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnTarget() { - return doColumn("TARGET"); - } - - /** - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnScriptType() { - return doColumn("SCRIPT_TYPE"); - } - - /** - * SCRIPT_DATA: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnScriptData() { - return doColumn("SCRIPT_DATA"); - } - - /** - * SCRIPT_RESULT: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnScriptResult() { - return doColumn("SCRIPT_RESULT"); - } - - /** - * START_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnStartTime() { - return doColumn("START_TIME"); - } - - /** - * END_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnEndTime() { - return doColumn("END_TIME"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "JOB_LOG"; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<JobLogCB, JobLogCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<JobLogCB, JobLogCQ>(_baseCB, _qyCall.qy(), - new HpSDRSetupper<JobLogCB, JobLogCQ>() { - @Override - public void setup(final String fn, - final SubQuery<JobLogCB> sq, final JobLogCQ cq, - final String al, final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<JobLogCB>() { - * public void query(JobLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<JobLogCB>() { - * public void query(JobLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<JobLogCB> columnQuery( - final SpecifyQuery<JobLogCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<JobLogCB>() { - @Override - public HpCalculator handle(final SpecifyQuery<JobLogCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected JobLogCB xcreateColumnQueryCB() { - final JobLogCB cb = new JobLogCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public JobLogCB dreamCruiseCB() { - final JobLogCB cb = new JobLogCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<JobLogCB>() { - * public void query(JobLogCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<JobLogCB> orQuery) { - xorSQ((JobLogCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<JobLogCB>() { - * public void query(JobLogCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<JobLogCB>() { - * public void query(JobLogCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<JobLogCB> andQuery) { - xorSQAP((JobLogCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final JobLogCB cb; - if (mainCB != null) { - cb = (JobLogCB) mainCB; - } else { - cb = new JobLogCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<JobLogCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public JobLogCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return JobLogCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return JobLogCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsKeyMatchCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsKeyMatchCB.java deleted file mode 100644 index 0ab010492..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsKeyMatchCB.java +++ /dev/null @@ -1,795 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.KeyMatchCB; -import jp.sf.fess.db.cbean.cq.KeyMatchCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of KEY_MATCH. - * @author DBFlute(AutoGenerator) - */ -public class BsKeyMatchCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected KeyMatchCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsKeyMatchCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "KEY_MATCH"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public KeyMatchCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsKeyMatchCB cb = this; - cb.query().setId_Equal(id); - return (KeyMatchCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsKeyMatchCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public KeyMatchCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public KeyMatchCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected KeyMatchCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected KeyMatchCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final KeyMatchCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected KeyMatchCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new KeyMatchCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<KeyMatchCB>() { - * public void query(KeyMatchCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<KeyMatchCB> unionQuery) { - final KeyMatchCB cb = new KeyMatchCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final KeyMatchCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<KeyMatchCB>() { - * public void query(KeyMatchCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<KeyMatchCB> unionQuery) { - final KeyMatchCB cb = new KeyMatchCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final KeyMatchCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<KeyMatchCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public KeyMatchCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<KeyMatchCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<KeyMatchCQ> qyCall, final HpCBPurpose purpose, - final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * TERM: {NotNull, VARCHAR(200)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnTerm() { - return doColumn("TERM"); - } - - /** - * QUERY: {NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnQuery() { - return doColumn("QUERY"); - } - - /** - * MAX_SIZE: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnMaxSize() { - return doColumn("MAX_SIZE"); - } - - /** - * BOOST: {NotNull, DOUBLE(17)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnBoost() { - return doColumn("BOOST"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "KEY_MATCH"; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<KeyMatchCB, KeyMatchCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<KeyMatchCB, KeyMatchCQ>(_baseCB, - _qyCall.qy(), new HpSDRSetupper<KeyMatchCB, KeyMatchCQ>() { - @Override - public void setup(final String fn, - final SubQuery<KeyMatchCB> sq, - final KeyMatchCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<KeyMatchCB>() { - * public void query(KeyMatchCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<KeyMatchCB>() { - * public void query(KeyMatchCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<KeyMatchCB> columnQuery( - final SpecifyQuery<KeyMatchCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<KeyMatchCB>() { - @Override - public HpCalculator handle(final SpecifyQuery<KeyMatchCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected KeyMatchCB xcreateColumnQueryCB() { - final KeyMatchCB cb = new KeyMatchCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public KeyMatchCB dreamCruiseCB() { - final KeyMatchCB cb = new KeyMatchCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<KeyMatchCB>() { - * public void query(KeyMatchCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<KeyMatchCB> orQuery) { - xorSQ((KeyMatchCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<KeyMatchCB>() { - * public void query(KeyMatchCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<KeyMatchCB>() { - * public void query(KeyMatchCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<KeyMatchCB> andQuery) { - xorSQAP((KeyMatchCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final KeyMatchCB cb; - if (mainCB != null) { - cb = (KeyMatchCB) mainCB; - } else { - cb = new KeyMatchCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<KeyMatchCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public KeyMatchCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return KeyMatchCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return KeyMatchCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsLabelTypeCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsLabelTypeCB.java deleted file mode 100644 index 84ee38ea0..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsLabelTypeCB.java +++ /dev/null @@ -1,948 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of LABEL_TYPE. - * @author DBFlute(AutoGenerator) - */ -public class BsLabelTypeCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected LabelTypeCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsLabelTypeCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "LABEL_TYPE"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public LabelTypeCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsLabelTypeCB cb = this; - cb.query().setId_Equal(id); - return (LabelTypeCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsLabelTypeCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public LabelTypeCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public LabelTypeCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected LabelTypeCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected LabelTypeCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final LabelTypeCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected LabelTypeCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new LabelTypeCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<LabelTypeCB>() { - * public void query(LabelTypeCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<LabelTypeCB> unionQuery) { - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final LabelTypeCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<LabelTypeCB>() { - * public void query(LabelTypeCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<LabelTypeCB> unionQuery) { - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final LabelTypeCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<LabelTypeCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public LabelTypeCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<LabelTypeCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<LabelTypeCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * NAME: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnName() { - return doColumn("NAME"); - } - - /** - * VALUE: {NotNull, VARCHAR(20)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnValue() { - return doColumn("VALUE"); - } - - /** - * INCLUDED_PATHS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnIncludedPaths() { - return doColumn("INCLUDED_PATHS"); - } - - /** - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnExcludedPaths() { - return doColumn("EXCLUDED_PATHS"); - } - - /** - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSortOrder() { - return doColumn("SORT_ORDER"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "LABEL_TYPE"; - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from DATA_CONFIG_TO_LABEL_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'dataConfigToLabelTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedDataConfigToLabelTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, DataConfigToLabelTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<DataConfigToLabelTypeMappingCB, LabelTypeCQ> derivedDataConfigToLabelTypeMappingList() { - assertDerived("dataConfigToLabelTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<DataConfigToLabelTypeMappingCB, LabelTypeCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<DataConfigToLabelTypeMappingCB, LabelTypeCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<DataConfigToLabelTypeMappingCB> sq, - final LabelTypeCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveDataConfigToLabelTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from FILE_CONFIG_TO_LABEL_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'fileConfigToLabelTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedFileConfigToLabelTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, FileConfigToLabelTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<FileConfigToLabelTypeMappingCB, LabelTypeCQ> derivedFileConfigToLabelTypeMappingList() { - assertDerived("fileConfigToLabelTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<FileConfigToLabelTypeMappingCB, LabelTypeCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<FileConfigToLabelTypeMappingCB, LabelTypeCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<FileConfigToLabelTypeMappingCB> sq, - final LabelTypeCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveFileConfigToLabelTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from LABEL_TYPE_TO_ROLE_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by LABEL_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedLabelTypeToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, LabelTypeToRoleTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<LabelTypeToRoleTypeMappingCB, LabelTypeCQ> derivedLabelTypeToRoleTypeMappingList() { - assertDerived("labelTypeToRoleTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<LabelTypeToRoleTypeMappingCB, LabelTypeCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<LabelTypeToRoleTypeMappingCB, LabelTypeCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<LabelTypeToRoleTypeMappingCB> sq, - final LabelTypeCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveLabelTypeToRoleTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from WEB_CONFIG_TO_LABEL_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'webConfigToLabelTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedWebConfigToLabelTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, WebConfigToLabelTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<WebConfigToLabelTypeMappingCB, LabelTypeCQ> derivedWebConfigToLabelTypeMappingList() { - assertDerived("webConfigToLabelTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<WebConfigToLabelTypeMappingCB, LabelTypeCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<WebConfigToLabelTypeMappingCB, LabelTypeCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<WebConfigToLabelTypeMappingCB> sq, - final LabelTypeCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveWebConfigToLabelTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<LabelTypeCB, LabelTypeCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<LabelTypeCB, LabelTypeCQ>(_baseCB, - _qyCall.qy(), - new HpSDRSetupper<LabelTypeCB, LabelTypeCQ>() { - @Override - public void setup(final String fn, - final SubQuery<LabelTypeCB> sq, - final LabelTypeCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<LabelTypeCB>() { - * public void query(LabelTypeCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<LabelTypeCB>() { - * public void query(LabelTypeCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<LabelTypeCB> columnQuery( - final SpecifyQuery<LabelTypeCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<LabelTypeCB>() { - @Override - public HpCalculator handle(final SpecifyQuery<LabelTypeCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected LabelTypeCB xcreateColumnQueryCB() { - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public LabelTypeCB dreamCruiseCB() { - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<LabelTypeCB>() { - * public void query(LabelTypeCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<LabelTypeCB> orQuery) { - xorSQ((LabelTypeCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<LabelTypeCB>() { - * public void query(LabelTypeCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<LabelTypeCB>() { - * public void query(LabelTypeCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<LabelTypeCB> andQuery) { - xorSQAP((LabelTypeCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final LabelTypeCB cb; - if (mainCB != null) { - cb = (LabelTypeCB) mainCB; - } else { - cb = new LabelTypeCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<LabelTypeCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public LabelTypeCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return LabelTypeCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return LabelTypeCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsLabelTypeToRoleTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsLabelTypeToRoleTypeMappingCB.java deleted file mode 100644 index 13dcdc59d..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsLabelTypeToRoleTypeMappingCB.java +++ /dev/null @@ -1,877 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of LABEL_TYPE_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsLabelTypeToRoleTypeMappingCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected LabelTypeToRoleTypeMappingCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsLabelTypeToRoleTypeMappingCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "LABEL_TYPE_TO_ROLE_TYPE_MAPPING"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public LabelTypeToRoleTypeMappingCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsLabelTypeToRoleTypeMappingCB cb = this; - cb.query().setId_Equal(id); - return (LabelTypeToRoleTypeMappingCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsLabelTypeToRoleTypeMappingCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public LabelTypeToRoleTypeMappingCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public LabelTypeToRoleTypeMappingCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected LabelTypeToRoleTypeMappingCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected LabelTypeToRoleTypeMappingCQ xcreateCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - final LabelTypeToRoleTypeMappingCQ cq = xnewCQ(childQuery, sqlClause, - aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected LabelTypeToRoleTypeMappingCQ xnewCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - return new LabelTypeToRoleTypeMappingCQ(childQuery, sqlClause, - aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<LabelTypeToRoleTypeMappingCB> unionQuery) { - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final LabelTypeToRoleTypeMappingCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll( - final UnionQuery<LabelTypeToRoleTypeMappingCB> unionQuery) { - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final LabelTypeToRoleTypeMappingCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * <pre> - * LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_LabelType()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = labelTypeToRoleTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = labelTypeToRoleTypeMapping.<span style="color: #DD4747">getLabelType()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_LabelType() { - assertSetupSelectPurpose("labelType"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnLabelTypeId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryLabelType(); - } - }); - } - - /** - * Set up relation columns to select clause. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * <pre> - * LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_RoleType()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * LabelTypeToRoleTypeMapping labelTypeToRoleTypeMapping = labelTypeToRoleTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = labelTypeToRoleTypeMapping.<span style="color: #DD4747">getRoleType()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_RoleType() { - assertSetupSelectPurpose("roleType"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnRoleTypeId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryRoleType(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<LabelTypeToRoleTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public LabelTypeToRoleTypeMappingCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<LabelTypeToRoleTypeMappingCQ> { - protected LabelTypeCB.HpSpecification _labelType; - - protected RoleTypeCB.HpSpecification _roleType; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<LabelTypeToRoleTypeMappingCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnLabelTypeId() { - return doColumn("LABEL_TYPE_ID"); - } - - /** - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnRoleTypeId() { - return doColumn("ROLE_TYPE_ID"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryLabelType() - || qyCall().qy().xgetReferrerQuery() instanceof LabelTypeCQ) { - columnLabelTypeId(); // FK or one-to-one referrer - } - if (qyCall().qy().hasConditionQueryRoleType() - || qyCall().qy().xgetReferrerQuery() instanceof RoleTypeCQ) { - columnRoleTypeId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "LABEL_TYPE_TO_ROLE_TYPE_MAPPING"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public LabelTypeCB.HpSpecification specifyLabelType() { - assertRelation("labelType"); - if (_labelType == null) { - _labelType = new LabelTypeCB.HpSpecification(_baseCB, - new HpSpQyCall<LabelTypeCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall.qy() - .hasConditionQueryLabelType(); - } - - @Override - public LabelTypeCQ qy() { - return _qyCall.qy().queryLabelType(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _labelType.xsetSyncQyCall(new HpSpQyCall<LabelTypeCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall().qy() - .hasConditionQueryLabelType(); - } - - @Override - public LabelTypeCQ qy() { - return xsyncQyCall().qy().queryLabelType(); - } - }); - } - } - return _labelType; - } - - /** - * Prepare to specify functions about relation table. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public RoleTypeCB.HpSpecification specifyRoleType() { - assertRelation("roleType"); - if (_roleType == null) { - _roleType = new RoleTypeCB.HpSpecification(_baseCB, - new HpSpQyCall<RoleTypeCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall.qy() - .hasConditionQueryRoleType(); - } - - @Override - public RoleTypeCQ qy() { - return _qyCall.qy().queryRoleType(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _roleType.xsetSyncQyCall(new HpSpQyCall<RoleTypeCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall().qy() - .hasConditionQueryRoleType(); - } - - @Override - public RoleTypeCQ qy() { - return xsyncQyCall().qy().queryRoleType(); - } - }); - } - } - return _roleType; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMappingCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMappingCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<LabelTypeToRoleTypeMappingCB, LabelTypeToRoleTypeMappingCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<LabelTypeToRoleTypeMappingCB> sq, - final LabelTypeToRoleTypeMappingCQ cq, - final String al, final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<LabelTypeToRoleTypeMappingCB> columnQuery( - final SpecifyQuery<LabelTypeToRoleTypeMappingCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<LabelTypeToRoleTypeMappingCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<LabelTypeToRoleTypeMappingCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected LabelTypeToRoleTypeMappingCB xcreateColumnQueryCB() { - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public LabelTypeToRoleTypeMappingCB dreamCruiseCB() { - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<LabelTypeToRoleTypeMappingCB> orQuery) { - xorSQ((LabelTypeToRoleTypeMappingCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart( - final AndQuery<LabelTypeToRoleTypeMappingCB> andQuery) { - xorSQAP((LabelTypeToRoleTypeMappingCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final LabelTypeToRoleTypeMappingCB cb; - if (mainCB != null) { - cb = (LabelTypeToRoleTypeMappingCB) mainCB; - } else { - cb = new LabelTypeToRoleTypeMappingCB(); - } - specify().xsetSyncQyCall( - new HpSpQyCall<LabelTypeToRoleTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public LabelTypeToRoleTypeMappingCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return LabelTypeToRoleTypeMappingCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return LabelTypeToRoleTypeMappingCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsOverlappingHostCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsOverlappingHostCB.java deleted file mode 100644 index cb43443e3..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsOverlappingHostCB.java +++ /dev/null @@ -1,790 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.OverlappingHostCB; -import jp.sf.fess.db.cbean.cq.OverlappingHostCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of OVERLAPPING_HOST. - * @author DBFlute(AutoGenerator) - */ -public class BsOverlappingHostCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected OverlappingHostCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsOverlappingHostCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "OVERLAPPING_HOST"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public OverlappingHostCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsOverlappingHostCB cb = this; - cb.query().setId_Equal(id); - return (OverlappingHostCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsOverlappingHostCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public OverlappingHostCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public OverlappingHostCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected OverlappingHostCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected OverlappingHostCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final OverlappingHostCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected OverlappingHostCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new OverlappingHostCQ(childQuery, sqlClause, aliasName, - nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<OverlappingHostCB> unionQuery) { - final OverlappingHostCB cb = new OverlappingHostCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final OverlappingHostCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<OverlappingHostCB> unionQuery) { - final OverlappingHostCB cb = new OverlappingHostCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final OverlappingHostCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<OverlappingHostCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public OverlappingHostCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<OverlappingHostCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<OverlappingHostCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnRegularName() { - return doColumn("REGULAR_NAME"); - } - - /** - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnOverlappingName() { - return doColumn("OVERLAPPING_NAME"); - } - - /** - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSortOrder() { - return doColumn("SORT_ORDER"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "OVERLAPPING_HOST"; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<OverlappingHostCB, OverlappingHostCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<OverlappingHostCB, OverlappingHostCQ>( - _baseCB, _qyCall.qy(), - new HpSDRSetupper<OverlappingHostCB, OverlappingHostCQ>() { - @Override - public void setup(final String fn, - final SubQuery<OverlappingHostCB> sq, - final OverlappingHostCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<OverlappingHostCB> columnQuery( - final SpecifyQuery<OverlappingHostCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<OverlappingHostCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<OverlappingHostCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected OverlappingHostCB xcreateColumnQueryCB() { - final OverlappingHostCB cb = new OverlappingHostCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public OverlappingHostCB dreamCruiseCB() { - final OverlappingHostCB cb = new OverlappingHostCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<OverlappingHostCB> orQuery) { - xorSQ((OverlappingHostCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<OverlappingHostCB> andQuery) { - xorSQAP((OverlappingHostCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final OverlappingHostCB cb; - if (mainCB != null) { - cb = (OverlappingHostCB) mainCB; - } else { - cb = new OverlappingHostCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<OverlappingHostCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public OverlappingHostCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return OverlappingHostCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return OverlappingHostCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsPathMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsPathMappingCB.java deleted file mode 100644 index fe8484df5..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsPathMappingCB.java +++ /dev/null @@ -1,797 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.PathMappingCB; -import jp.sf.fess.db.cbean.cq.PathMappingCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of PATH_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsPathMappingCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected PathMappingCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsPathMappingCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "PATH_MAPPING"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public PathMappingCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsPathMappingCB cb = this; - cb.query().setId_Equal(id); - return (PathMappingCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsPathMappingCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public PathMappingCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public PathMappingCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected PathMappingCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected PathMappingCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final PathMappingCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected PathMappingCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new PathMappingCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<PathMappingCB>() { - * public void query(PathMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<PathMappingCB> unionQuery) { - final PathMappingCB cb = new PathMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final PathMappingCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<PathMappingCB>() { - * public void query(PathMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<PathMappingCB> unionQuery) { - final PathMappingCB cb = new PathMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final PathMappingCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<PathMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public PathMappingCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<PathMappingCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<PathMappingCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * REGEX: {NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnRegex() { - return doColumn("REGEX"); - } - - /** - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnReplacement() { - return doColumn("REPLACEMENT"); - } - - /** - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnProcessType() { - return doColumn("PROCESS_TYPE"); - } - - /** - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSortOrder() { - return doColumn("SORT_ORDER"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "PATH_MAPPING"; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<PathMappingCB, PathMappingCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<PathMappingCB, PathMappingCQ>(_baseCB, - _qyCall.qy(), - new HpSDRSetupper<PathMappingCB, PathMappingCQ>() { - @Override - public void setup(final String fn, - final SubQuery<PathMappingCB> sq, - final PathMappingCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<PathMappingCB>() { - * public void query(PathMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<PathMappingCB>() { - * public void query(PathMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<PathMappingCB> columnQuery( - final SpecifyQuery<PathMappingCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<PathMappingCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<PathMappingCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected PathMappingCB xcreateColumnQueryCB() { - final PathMappingCB cb = new PathMappingCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public PathMappingCB dreamCruiseCB() { - final PathMappingCB cb = new PathMappingCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<PathMappingCB>() { - * public void query(PathMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<PathMappingCB> orQuery) { - xorSQ((PathMappingCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<PathMappingCB>() { - * public void query(PathMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<PathMappingCB>() { - * public void query(PathMappingCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<PathMappingCB> andQuery) { - xorSQAP((PathMappingCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final PathMappingCB cb; - if (mainCB != null) { - cb = (PathMappingCB) mainCB; - } else { - cb = new PathMappingCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<PathMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public PathMappingCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return PathMappingCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return PathMappingCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsRequestHeaderCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsRequestHeaderCB.java deleted file mode 100644 index 83d4a6027..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsRequestHeaderCB.java +++ /dev/null @@ -1,866 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.RequestHeaderCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.RequestHeaderCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of REQUEST_HEADER. - * @author DBFlute(AutoGenerator) - */ -public class BsRequestHeaderCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected RequestHeaderCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsRequestHeaderCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "REQUEST_HEADER"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public RequestHeaderCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsRequestHeaderCB cb = this; - cb.query().setId_Equal(id); - return (RequestHeaderCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsRequestHeaderCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public RequestHeaderCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public RequestHeaderCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected RequestHeaderCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected RequestHeaderCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final RequestHeaderCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected RequestHeaderCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new RequestHeaderCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<RequestHeaderCB> unionQuery) { - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final RequestHeaderCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<RequestHeaderCB> unionQuery) { - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final RequestHeaderCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * <pre> - * RequestHeaderCB cb = new RequestHeaderCB(); - * cb.<span style="color: #DD4747">setupSelect_WebCrawlingConfig()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * RequestHeader requestHeader = requestHeaderBhv.selectEntityWithDeletedCheck(cb); - * ... = requestHeader.<span style="color: #DD4747">getWebCrawlingConfig()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_WebCrawlingConfig() { - assertSetupSelectPurpose("webCrawlingConfig"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnWebCrawlingConfigId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryWebCrawlingConfig(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<RequestHeaderCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public RequestHeaderCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<RequestHeaderCQ> { - protected WebCrawlingConfigCB.HpSpecification _webCrawlingConfig; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<RequestHeaderCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * NAME: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnName() { - return doColumn("NAME"); - } - - /** - * VALUE: {NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnValue() { - return doColumn("VALUE"); - } - - /** - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnWebCrawlingConfigId() { - return doColumn("WEB_CRAWLING_CONFIG_ID"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryWebCrawlingConfig() - || qyCall().qy().xgetReferrerQuery() instanceof WebCrawlingConfigCQ) { - columnWebCrawlingConfigId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "REQUEST_HEADER"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public WebCrawlingConfigCB.HpSpecification specifyWebCrawlingConfig() { - assertRelation("webCrawlingConfig"); - if (_webCrawlingConfig == null) { - _webCrawlingConfig = new WebCrawlingConfigCB.HpSpecification( - _baseCB, new HpSpQyCall<WebCrawlingConfigCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall - .qy() - .hasConditionQueryWebCrawlingConfig(); - } - - @Override - public WebCrawlingConfigCQ qy() { - return _qyCall.qy().queryWebCrawlingConfig(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _webCrawlingConfig - .xsetSyncQyCall(new HpSpQyCall<WebCrawlingConfigCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall() - .qy() - .hasConditionQueryWebCrawlingConfig(); - } - - @Override - public WebCrawlingConfigCQ qy() { - return xsyncQyCall().qy() - .queryWebCrawlingConfig(); - } - }); - } - } - return _webCrawlingConfig; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<RequestHeaderCB, RequestHeaderCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<RequestHeaderCB, RequestHeaderCQ>(_baseCB, - _qyCall.qy(), - new HpSDRSetupper<RequestHeaderCB, RequestHeaderCQ>() { - @Override - public void setup(final String fn, - final SubQuery<RequestHeaderCB> sq, - final RequestHeaderCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<RequestHeaderCB> columnQuery( - final SpecifyQuery<RequestHeaderCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<RequestHeaderCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<RequestHeaderCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected RequestHeaderCB xcreateColumnQueryCB() { - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public RequestHeaderCB dreamCruiseCB() { - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<RequestHeaderCB> orQuery) { - xorSQ((RequestHeaderCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<RequestHeaderCB> andQuery) { - xorSQAP((RequestHeaderCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final RequestHeaderCB cb; - if (mainCB != null) { - cb = (RequestHeaderCB) mainCB; - } else { - cb = new RequestHeaderCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<RequestHeaderCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public RequestHeaderCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return RequestHeaderCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return RequestHeaderCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsRoleTypeCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsRoleTypeCB.java deleted file mode 100644 index 6a587aeea..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsRoleTypeCB.java +++ /dev/null @@ -1,931 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of ROLE_TYPE. - * @author DBFlute(AutoGenerator) - */ -public class BsRoleTypeCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected RoleTypeCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsRoleTypeCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "ROLE_TYPE"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public RoleTypeCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsRoleTypeCB cb = this; - cb.query().setId_Equal(id); - return (RoleTypeCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsRoleTypeCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public RoleTypeCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public RoleTypeCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected RoleTypeCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected RoleTypeCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final RoleTypeCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected RoleTypeCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new RoleTypeCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<RoleTypeCB>() { - * public void query(RoleTypeCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<RoleTypeCB> unionQuery) { - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final RoleTypeCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<RoleTypeCB>() { - * public void query(RoleTypeCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<RoleTypeCB> unionQuery) { - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final RoleTypeCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<RoleTypeCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public RoleTypeCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<RoleTypeCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<RoleTypeCQ> qyCall, final HpCBPurpose purpose, - final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * NAME: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnName() { - return doColumn("NAME"); - } - - /** - * VALUE: {NotNull, VARCHAR(20)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnValue() { - return doColumn("VALUE"); - } - - /** - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSortOrder() { - return doColumn("SORT_ORDER"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "ROLE_TYPE"; - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from DATA_CONFIG_TO_ROLE_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'dataConfigToRoleTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedDataConfigToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, DataConfigToRoleTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<DataConfigToRoleTypeMappingCB, RoleTypeCQ> derivedDataConfigToRoleTypeMappingList() { - assertDerived("dataConfigToRoleTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<DataConfigToRoleTypeMappingCB, RoleTypeCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<DataConfigToRoleTypeMappingCB, RoleTypeCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<DataConfigToRoleTypeMappingCB> sq, - final RoleTypeCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveDataConfigToRoleTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from FILE_CONFIG_TO_ROLE_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'fileConfigToRoleTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedFileConfigToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, FileConfigToRoleTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<FileConfigToRoleTypeMappingCB, RoleTypeCQ> derivedFileConfigToRoleTypeMappingList() { - assertDerived("fileConfigToRoleTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<FileConfigToRoleTypeMappingCB, RoleTypeCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<FileConfigToRoleTypeMappingCB, RoleTypeCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<FileConfigToRoleTypeMappingCB> sq, - final RoleTypeCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveFileConfigToRoleTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from LABEL_TYPE_TO_ROLE_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'labelTypeToRoleTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedLabelTypeToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, LabelTypeToRoleTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<LabelTypeToRoleTypeMappingCB, RoleTypeCQ> derivedLabelTypeToRoleTypeMappingList() { - assertDerived("labelTypeToRoleTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<LabelTypeToRoleTypeMappingCB, RoleTypeCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<LabelTypeToRoleTypeMappingCB, RoleTypeCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<LabelTypeToRoleTypeMappingCB> sq, - final RoleTypeCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveLabelTypeToRoleTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from WEB_CONFIG_TO_ROLE_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'webConfigToRoleTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedWebConfigToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, WebConfigToRoleTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<WebConfigToRoleTypeMappingCB, RoleTypeCQ> derivedWebConfigToRoleTypeMappingList() { - assertDerived("webConfigToRoleTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<WebConfigToRoleTypeMappingCB, RoleTypeCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<WebConfigToRoleTypeMappingCB, RoleTypeCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<WebConfigToRoleTypeMappingCB> sq, - final RoleTypeCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveWebConfigToRoleTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<RoleTypeCB, RoleTypeCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<RoleTypeCB, RoleTypeCQ>(_baseCB, - _qyCall.qy(), new HpSDRSetupper<RoleTypeCB, RoleTypeCQ>() { - @Override - public void setup(final String fn, - final SubQuery<RoleTypeCB> sq, - final RoleTypeCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<RoleTypeCB>() { - * public void query(RoleTypeCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<RoleTypeCB>() { - * public void query(RoleTypeCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<RoleTypeCB> columnQuery( - final SpecifyQuery<RoleTypeCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<RoleTypeCB>() { - @Override - public HpCalculator handle(final SpecifyQuery<RoleTypeCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected RoleTypeCB xcreateColumnQueryCB() { - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public RoleTypeCB dreamCruiseCB() { - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<RoleTypeCB>() { - * public void query(RoleTypeCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<RoleTypeCB> orQuery) { - xorSQ((RoleTypeCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<RoleTypeCB>() { - * public void query(RoleTypeCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<RoleTypeCB>() { - * public void query(RoleTypeCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<RoleTypeCB> andQuery) { - xorSQAP((RoleTypeCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final RoleTypeCB cb; - if (mainCB != null) { - cb = (RoleTypeCB) mainCB; - } else { - cb = new RoleTypeCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<RoleTypeCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public RoleTypeCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return RoleTypeCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return RoleTypeCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsScheduledJobCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsScheduledJobCB.java deleted file mode 100644 index 5f5790773..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsScheduledJobCB.java +++ /dev/null @@ -1,837 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.ScheduledJobCB; -import jp.sf.fess.db.cbean.cq.ScheduledJobCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of SCHEDULED_JOB. - * @author DBFlute(AutoGenerator) - */ -public class BsScheduledJobCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected ScheduledJobCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsScheduledJobCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "SCHEDULED_JOB"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public ScheduledJobCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsScheduledJobCB cb = this; - cb.query().setId_Equal(id); - return (ScheduledJobCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsScheduledJobCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public ScheduledJobCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public ScheduledJobCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected ScheduledJobCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected ScheduledJobCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final ScheduledJobCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected ScheduledJobCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new ScheduledJobCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<ScheduledJobCB> unionQuery) { - final ScheduledJobCB cb = new ScheduledJobCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final ScheduledJobCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<ScheduledJobCB> unionQuery) { - final ScheduledJobCB cb = new ScheduledJobCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final ScheduledJobCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<ScheduledJobCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public ScheduledJobCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<ScheduledJobCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<ScheduledJobCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * NAME: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnName() { - return doColumn("NAME"); - } - - /** - * TARGET: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnTarget() { - return doColumn("TARGET"); - } - - /** - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCronExpression() { - return doColumn("CRON_EXPRESSION"); - } - - /** - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnScriptType() { - return doColumn("SCRIPT_TYPE"); - } - - /** - * SCRIPT_DATA: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnScriptData() { - return doColumn("SCRIPT_DATA"); - } - - /** - * CRAWLER: {NotNull, VARCHAR(1)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCrawler() { - return doColumn("CRAWLER"); - } - - /** - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnJobLogging() { - return doColumn("JOB_LOGGING"); - } - - /** - * AVAILABLE: {NotNull, VARCHAR(1)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnAvailable() { - return doColumn("AVAILABLE"); - } - - /** - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSortOrder() { - return doColumn("SORT_ORDER"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "SCHEDULED_JOB"; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<ScheduledJobCB, ScheduledJobCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<ScheduledJobCB, ScheduledJobCQ>(_baseCB, - _qyCall.qy(), - new HpSDRSetupper<ScheduledJobCB, ScheduledJobCQ>() { - @Override - public void setup(final String fn, - final SubQuery<ScheduledJobCB> sq, - final ScheduledJobCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<ScheduledJobCB> columnQuery( - final SpecifyQuery<ScheduledJobCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<ScheduledJobCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<ScheduledJobCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected ScheduledJobCB xcreateColumnQueryCB() { - final ScheduledJobCB cb = new ScheduledJobCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public ScheduledJobCB dreamCruiseCB() { - final ScheduledJobCB cb = new ScheduledJobCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<ScheduledJobCB> orQuery) { - xorSQ((ScheduledJobCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<ScheduledJobCB> andQuery) { - xorSQAP((ScheduledJobCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final ScheduledJobCB cb; - if (mainCB != null) { - cb = (ScheduledJobCB) mainCB; - } else { - cb = new ScheduledJobCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<ScheduledJobCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public ScheduledJobCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return ScheduledJobCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return ScheduledJobCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsSearchFieldLogCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsSearchFieldLogCB.java deleted file mode 100644 index c3cc9a3fd..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsSearchFieldLogCB.java +++ /dev/null @@ -1,821 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.SearchFieldLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.cq.SearchFieldLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.nss.SearchLogNss; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of SEARCH_FIELD_LOG. - * @author DBFlute(AutoGenerator) - */ -public class BsSearchFieldLogCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected SearchFieldLogCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsSearchFieldLogCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "SEARCH_FIELD_LOG"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public SearchFieldLogCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsSearchFieldLogCB cb = this; - cb.query().setId_Equal(id); - return (SearchFieldLogCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsSearchFieldLogCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public SearchFieldLogCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public SearchFieldLogCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected SearchFieldLogCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected SearchFieldLogCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final SearchFieldLogCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected SearchFieldLogCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new SearchFieldLogCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<SearchFieldLogCB> unionQuery) { - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final SearchFieldLogCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<SearchFieldLogCB> unionQuery) { - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final SearchFieldLogCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - protected SearchLogNss _nssSearchLog; - - public SearchLogNss getNssSearchLog() { - if (_nssSearchLog == null) { - _nssSearchLog = new SearchLogNss(null); - } - return _nssSearchLog; - } - - /** - * Set up relation columns to select clause. <br /> - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * <pre> - * SearchFieldLogCB cb = new SearchFieldLogCB(); - * cb.<span style="color: #DD4747">setupSelect_SearchLog()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * SearchFieldLog searchFieldLog = searchFieldLogBhv.selectEntityWithDeletedCheck(cb); - * ... = searchFieldLog.<span style="color: #DD4747">getSearchLog()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - * @return The set-upper of nested relation. {setupSelect...().with[nested-relation]} (NotNull) - */ - public SearchLogNss setupSelect_SearchLog() { - assertSetupSelectPurpose("searchLog"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnSearchId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().querySearchLog(); - } - }); - if (_nssSearchLog == null || !_nssSearchLog.hasConditionQuery()) { - _nssSearchLog = new SearchLogNss(query().querySearchLog()); - } - return _nssSearchLog; - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<SearchFieldLogCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public SearchFieldLogCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<SearchFieldLogCQ> { - protected SearchLogCB.HpSpecification _searchLog; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<SearchFieldLogCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSearchId() { - return doColumn("SEARCH_ID"); - } - - /** - * NAME: {IX, NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnName() { - return doColumn("NAME"); - } - - /** - * VALUE: {NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnValue() { - return doColumn("VALUE"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQuerySearchLog() - || qyCall().qy().xgetReferrerQuery() instanceof SearchLogCQ) { - columnSearchId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "SEARCH_FIELD_LOG"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public SearchLogCB.HpSpecification specifySearchLog() { - assertRelation("searchLog"); - if (_searchLog == null) { - _searchLog = new SearchLogCB.HpSpecification(_baseCB, - new HpSpQyCall<SearchLogCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall.qy() - .hasConditionQuerySearchLog(); - } - - @Override - public SearchLogCQ qy() { - return _qyCall.qy().querySearchLog(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _searchLog.xsetSyncQyCall(new HpSpQyCall<SearchLogCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall().qy() - .hasConditionQuerySearchLog(); - } - - @Override - public SearchLogCQ qy() { - return xsyncQyCall().qy().querySearchLog(); - } - }); - } - } - return _searchLog; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<SearchFieldLogCB, SearchFieldLogCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<SearchFieldLogCB, SearchFieldLogCQ>( - _baseCB, _qyCall.qy(), - new HpSDRSetupper<SearchFieldLogCB, SearchFieldLogCQ>() { - @Override - public void setup(final String fn, - final SubQuery<SearchFieldLogCB> sq, - final SearchFieldLogCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<SearchFieldLogCB> columnQuery( - final SpecifyQuery<SearchFieldLogCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<SearchFieldLogCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<SearchFieldLogCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected SearchFieldLogCB xcreateColumnQueryCB() { - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public SearchFieldLogCB dreamCruiseCB() { - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<SearchFieldLogCB> orQuery) { - xorSQ((SearchFieldLogCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<SearchFieldLogCB> andQuery) { - xorSQAP((SearchFieldLogCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final SearchFieldLogCB cb; - if (mainCB != null) { - cb = (SearchFieldLogCB) mainCB; - } else { - cb = new SearchFieldLogCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<SearchFieldLogCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public SearchFieldLogCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return SearchFieldLogCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return SearchFieldLogCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsSearchLogCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsSearchLogCB.java deleted file mode 100644 index f59e6b3c4..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsSearchLogCB.java +++ /dev/null @@ -1,942 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.cbean.SearchFieldLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.cq.UserInfoCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of SEARCH_LOG. - * @author DBFlute(AutoGenerator) - */ -public class BsSearchLogCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected SearchLogCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsSearchLogCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "SEARCH_LOG"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public SearchLogCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsSearchLogCB cb = this; - cb.query().setId_Equal(id); - return (SearchLogCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsSearchLogCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public SearchLogCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public SearchLogCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected SearchLogCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected SearchLogCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final SearchLogCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected SearchLogCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new SearchLogCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<SearchLogCB>() { - * public void query(SearchLogCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<SearchLogCB> unionQuery) { - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final SearchLogCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<SearchLogCB>() { - * public void query(SearchLogCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<SearchLogCB> unionQuery) { - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final SearchLogCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * USER_INFO by my USER_ID, named 'userInfo'. - * <pre> - * SearchLogCB cb = new SearchLogCB(); - * cb.<span style="color: #DD4747">setupSelect_UserInfo()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * SearchLog searchLog = searchLogBhv.selectEntityWithDeletedCheck(cb); - * ... = searchLog.<span style="color: #DD4747">getUserInfo()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_UserInfo() { - assertSetupSelectPurpose("userInfo"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnUserId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryUserInfo(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<SearchLogCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public SearchLogCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<SearchLogCQ> { - protected UserInfoCB.HpSpecification _userInfo; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<SearchLogCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSearchWord() { - return doColumn("SEARCH_WORD"); - } - - /** - * REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnRequestedTime() { - return doColumn("REQUESTED_TIME"); - } - - /** - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnResponseTime() { - return doColumn("RESPONSE_TIME"); - } - - /** - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnHitCount() { - return doColumn("HIT_COUNT"); - } - - /** - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnQueryOffset() { - return doColumn("QUERY_OFFSET"); - } - - /** - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnQueryPageSize() { - return doColumn("QUERY_PAGE_SIZE"); - } - - /** - * USER_AGENT: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUserAgent() { - return doColumn("USER_AGENT"); - } - - /** - * REFERER: {VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnReferer() { - return doColumn("REFERER"); - } - - /** - * CLIENT_IP: {VARCHAR(50)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnClientIp() { - return doColumn("CLIENT_IP"); - } - - /** - * USER_SESSION_ID: {VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUserSessionId() { - return doColumn("USER_SESSION_ID"); - } - - /** - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnAccessType() { - return doColumn("ACCESS_TYPE"); - } - - /** - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUserId() { - return doColumn("USER_ID"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryUserInfo() - || qyCall().qy().xgetReferrerQuery() instanceof UserInfoCQ) { - columnUserId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "SEARCH_LOG"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * USER_INFO by my USER_ID, named 'userInfo'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public UserInfoCB.HpSpecification specifyUserInfo() { - assertRelation("userInfo"); - if (_userInfo == null) { - _userInfo = new UserInfoCB.HpSpecification(_baseCB, - new HpSpQyCall<UserInfoCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall.qy() - .hasConditionQueryUserInfo(); - } - - @Override - public UserInfoCQ qy() { - return _qyCall.qy().queryUserInfo(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _userInfo.xsetSyncQyCall(new HpSpQyCall<UserInfoCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall().qy() - .hasConditionQueryUserInfo(); - } - - @Override - public UserInfoCQ qy() { - return xsyncQyCall().qy().queryUserInfo(); - } - }); - } - } - return _userInfo; - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from CLICK_LOG where ...) as FOO_MAX} <br /> - * CLICK_LOG by SEARCH_ID, named 'clickLogList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedClickLogList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<ClickLogCB>() { - * public void query(ClickLogCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, ClickLog.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<ClickLogCB, SearchLogCQ> derivedClickLogList() { - assertDerived("clickLogList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<ClickLogCB, SearchLogCQ>(_baseCB, - _qyCall.qy(), new HpSDRSetupper<ClickLogCB, SearchLogCQ>() { - @Override - public void setup(final String fn, - final SubQuery<ClickLogCB> sq, - final SearchLogCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveClickLogList(fn, sq, al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from SEARCH_FIELD_LOG where ...) as FOO_MAX} <br /> - * SEARCH_FIELD_LOG by SEARCH_ID, named 'searchFieldLogList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedSearchFieldLogList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, SearchFieldLog.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<SearchFieldLogCB, SearchLogCQ> derivedSearchFieldLogList() { - assertDerived("searchFieldLogList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<SearchFieldLogCB, SearchLogCQ>(_baseCB, - _qyCall.qy(), - new HpSDRSetupper<SearchFieldLogCB, SearchLogCQ>() { - @Override - public void setup(final String fn, - final SubQuery<SearchFieldLogCB> sq, - final SearchLogCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveSearchFieldLogList(fn, sq, al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<SearchLogCB, SearchLogCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<SearchLogCB, SearchLogCQ>(_baseCB, - _qyCall.qy(), - new HpSDRSetupper<SearchLogCB, SearchLogCQ>() { - @Override - public void setup(final String fn, - final SubQuery<SearchLogCB> sq, - final SearchLogCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<SearchLogCB>() { - * public void query(SearchLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<SearchLogCB>() { - * public void query(SearchLogCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<SearchLogCB> columnQuery( - final SpecifyQuery<SearchLogCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<SearchLogCB>() { - @Override - public HpCalculator handle(final SpecifyQuery<SearchLogCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected SearchLogCB xcreateColumnQueryCB() { - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public SearchLogCB dreamCruiseCB() { - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<SearchLogCB>() { - * public void query(SearchLogCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<SearchLogCB> orQuery) { - xorSQ((SearchLogCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<SearchLogCB>() { - * public void query(SearchLogCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<SearchLogCB>() { - * public void query(SearchLogCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<SearchLogCB> andQuery) { - xorSQAP((SearchLogCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final SearchLogCB cb; - if (mainCB != null) { - cb = (SearchLogCB) mainCB; - } else { - cb = new SearchLogCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<SearchLogCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public SearchLogCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return SearchLogCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return SearchLogCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsSuggestBadWordCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsSuggestBadWordCB.java deleted file mode 100644 index 6d89dd052..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsSuggestBadWordCB.java +++ /dev/null @@ -1,789 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.SuggestBadWordCB; -import jp.sf.fess.db.cbean.cq.SuggestBadWordCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of SUGGEST_BAD_WORD. - * @author DBFlute(AutoGenerator) - */ -public class BsSuggestBadWordCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected SuggestBadWordCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsSuggestBadWordCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "SUGGEST_BAD_WORD"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public SuggestBadWordCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsSuggestBadWordCB cb = this; - cb.query().setId_Equal(id); - return (SuggestBadWordCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsSuggestBadWordCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public SuggestBadWordCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public SuggestBadWordCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected SuggestBadWordCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected SuggestBadWordCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final SuggestBadWordCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected SuggestBadWordCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new SuggestBadWordCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<SuggestBadWordCB> unionQuery) { - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final SuggestBadWordCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<SuggestBadWordCB> unionQuery) { - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final SuggestBadWordCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<SuggestBadWordCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public SuggestBadWordCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<SuggestBadWordCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<SuggestBadWordCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSuggestWord() { - return doColumn("SUGGEST_WORD"); - } - - /** - * TARGET_ROLE: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnTargetRole() { - return doColumn("TARGET_ROLE"); - } - - /** - * TARGET_LABEL: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnTargetLabel() { - return doColumn("TARGET_LABEL"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "SUGGEST_BAD_WORD"; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<SuggestBadWordCB, SuggestBadWordCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<SuggestBadWordCB, SuggestBadWordCQ>( - _baseCB, _qyCall.qy(), - new HpSDRSetupper<SuggestBadWordCB, SuggestBadWordCQ>() { - @Override - public void setup(final String fn, - final SubQuery<SuggestBadWordCB> sq, - final SuggestBadWordCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<SuggestBadWordCB> columnQuery( - final SpecifyQuery<SuggestBadWordCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<SuggestBadWordCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<SuggestBadWordCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected SuggestBadWordCB xcreateColumnQueryCB() { - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public SuggestBadWordCB dreamCruiseCB() { - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<SuggestBadWordCB> orQuery) { - xorSQ((SuggestBadWordCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<SuggestBadWordCB> andQuery) { - xorSQAP((SuggestBadWordCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final SuggestBadWordCB cb; - if (mainCB != null) { - cb = (SuggestBadWordCB) mainCB; - } else { - cb = new SuggestBadWordCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<SuggestBadWordCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public SuggestBadWordCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return SuggestBadWordCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return SuggestBadWordCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsSuggestElevateWordCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsSuggestElevateWordCB.java deleted file mode 100644 index 92f0549e1..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsSuggestElevateWordCB.java +++ /dev/null @@ -1,808 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.SuggestElevateWordCB; -import jp.sf.fess.db.cbean.cq.SuggestElevateWordCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of SUGGEST_ELEVATE_WORD. - * @author DBFlute(AutoGenerator) - */ -public class BsSuggestElevateWordCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected SuggestElevateWordCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsSuggestElevateWordCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "SUGGEST_ELEVATE_WORD"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public SuggestElevateWordCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsSuggestElevateWordCB cb = this; - cb.query().setId_Equal(id); - return (SuggestElevateWordCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsSuggestElevateWordCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public SuggestElevateWordCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public SuggestElevateWordCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected SuggestElevateWordCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected SuggestElevateWordCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final SuggestElevateWordCQ cq = xnewCQ(childQuery, sqlClause, - aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected SuggestElevateWordCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new SuggestElevateWordCQ(childQuery, sqlClause, aliasName, - nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<SuggestElevateWordCB> unionQuery) { - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final SuggestElevateWordCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<SuggestElevateWordCB> unionQuery) { - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final SuggestElevateWordCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<SuggestElevateWordCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public SuggestElevateWordCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<SuggestElevateWordCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<SuggestElevateWordCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSuggestWord() { - return doColumn("SUGGEST_WORD"); - } - - /** - * READING: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnReading() { - return doColumn("READING"); - } - - /** - * TARGET_ROLE: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnTargetRole() { - return doColumn("TARGET_ROLE"); - } - - /** - * TARGET_LABEL: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnTargetLabel() { - return doColumn("TARGET_LABEL"); - } - - /** - * BOOST: {NotNull, DOUBLE(17)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnBoost() { - return doColumn("BOOST"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "SUGGEST_ELEVATE_WORD"; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<SuggestElevateWordCB, SuggestElevateWordCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<SuggestElevateWordCB, SuggestElevateWordCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<SuggestElevateWordCB, SuggestElevateWordCQ>() { - @Override - public void setup(final String fn, - final SubQuery<SuggestElevateWordCB> sq, - final SuggestElevateWordCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<SuggestElevateWordCB> columnQuery( - final SpecifyQuery<SuggestElevateWordCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<SuggestElevateWordCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<SuggestElevateWordCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected SuggestElevateWordCB xcreateColumnQueryCB() { - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public SuggestElevateWordCB dreamCruiseCB() { - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<SuggestElevateWordCB> orQuery) { - xorSQ((SuggestElevateWordCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart( - final AndQuery<SuggestElevateWordCB> andQuery) { - xorSQAP((SuggestElevateWordCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final SuggestElevateWordCB cb; - if (mainCB != null) { - cb = (SuggestElevateWordCB) mainCB; - } else { - cb = new SuggestElevateWordCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<SuggestElevateWordCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public SuggestElevateWordCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return SuggestElevateWordCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return SuggestElevateWordCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsUserInfoCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsUserInfoCB.java deleted file mode 100644 index b336a2a11..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsUserInfoCB.java +++ /dev/null @@ -1,796 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.FavoriteLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.cbean.cq.UserInfoCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of USER_INFO. - * @author DBFlute(AutoGenerator) - */ -public class BsUserInfoCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected UserInfoCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsUserInfoCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "USER_INFO"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public UserInfoCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsUserInfoCB cb = this; - cb.query().setId_Equal(id); - return (UserInfoCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsUserInfoCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public UserInfoCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public UserInfoCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected UserInfoCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected UserInfoCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final UserInfoCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected UserInfoCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new UserInfoCQ(childQuery, sqlClause, aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<UserInfoCB>() { - * public void query(UserInfoCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<UserInfoCB> unionQuery) { - final UserInfoCB cb = new UserInfoCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final UserInfoCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<UserInfoCB>() { - * public void query(UserInfoCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<UserInfoCB> unionQuery) { - final UserInfoCB cb = new UserInfoCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final UserInfoCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<UserInfoCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public UserInfoCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<UserInfoCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<UserInfoCQ> qyCall, final HpCBPurpose purpose, - final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * CODE: {NotNull, VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCode() { - return doColumn("CODE"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "USER_INFO"; - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from FAVORITE_LOG where ...) as FOO_MAX} <br /> - * FAVORITE_LOG by USER_ID, named 'favoriteLogList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedFavoriteLogList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, FavoriteLog.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<FavoriteLogCB, UserInfoCQ> derivedFavoriteLogList() { - assertDerived("favoriteLogList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<FavoriteLogCB, UserInfoCQ>(_baseCB, - _qyCall.qy(), - new HpSDRSetupper<FavoriteLogCB, UserInfoCQ>() { - @Override - public void setup(final String fn, - final SubQuery<FavoriteLogCB> sq, - final UserInfoCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveFavoriteLogList(fn, sq, al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from SEARCH_LOG where ...) as FOO_MAX} <br /> - * SEARCH_LOG by USER_ID, named 'searchLogList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedSearchLogList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<SearchLogCB>() { - * public void query(SearchLogCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, SearchLog.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<SearchLogCB, UserInfoCQ> derivedSearchLogList() { - assertDerived("searchLogList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<SearchLogCB, UserInfoCQ>(_baseCB, - _qyCall.qy(), new HpSDRSetupper<SearchLogCB, UserInfoCQ>() { - @Override - public void setup(final String fn, - final SubQuery<SearchLogCB> sq, - final UserInfoCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveSearchLogList(fn, sq, al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<UserInfoCB, UserInfoCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<UserInfoCB, UserInfoCQ>(_baseCB, - _qyCall.qy(), new HpSDRSetupper<UserInfoCB, UserInfoCQ>() { - @Override - public void setup(final String fn, - final SubQuery<UserInfoCB> sq, - final UserInfoCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<UserInfoCB>() { - * public void query(UserInfoCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<UserInfoCB>() { - * public void query(UserInfoCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<UserInfoCB> columnQuery( - final SpecifyQuery<UserInfoCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<UserInfoCB>() { - @Override - public HpCalculator handle(final SpecifyQuery<UserInfoCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected UserInfoCB xcreateColumnQueryCB() { - final UserInfoCB cb = new UserInfoCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public UserInfoCB dreamCruiseCB() { - final UserInfoCB cb = new UserInfoCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<UserInfoCB>() { - * public void query(UserInfoCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<UserInfoCB> orQuery) { - xorSQ((UserInfoCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<UserInfoCB>() { - * public void query(UserInfoCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<UserInfoCB>() { - * public void query(UserInfoCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<UserInfoCB> andQuery) { - xorSQAP((UserInfoCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final UserInfoCB cb; - if (mainCB != null) { - cb = (UserInfoCB) mainCB; - } else { - cb = new UserInfoCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<UserInfoCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public UserInfoCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return UserInfoCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return UserInfoCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsWebAuthenticationCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsWebAuthenticationCB.java deleted file mode 100644 index 011e2fb38..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsWebAuthenticationCB.java +++ /dev/null @@ -1,908 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.WebAuthenticationCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.WebAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of WEB_AUTHENTICATION. - * @author DBFlute(AutoGenerator) - */ -public class BsWebAuthenticationCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected WebAuthenticationCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsWebAuthenticationCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "WEB_AUTHENTICATION"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public WebAuthenticationCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsWebAuthenticationCB cb = this; - cb.query().setId_Equal(id); - return (WebAuthenticationCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsWebAuthenticationCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public WebAuthenticationCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public WebAuthenticationCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected WebAuthenticationCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected WebAuthenticationCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final WebAuthenticationCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected WebAuthenticationCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new WebAuthenticationCQ(childQuery, sqlClause, aliasName, - nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<WebAuthenticationCB> unionQuery) { - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final WebAuthenticationCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<WebAuthenticationCB> unionQuery) { - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final WebAuthenticationCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * <pre> - * WebAuthenticationCB cb = new WebAuthenticationCB(); - * cb.<span style="color: #DD4747">setupSelect_WebCrawlingConfig()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * WebAuthentication webAuthentication = webAuthenticationBhv.selectEntityWithDeletedCheck(cb); - * ... = webAuthentication.<span style="color: #DD4747">getWebCrawlingConfig()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_WebCrawlingConfig() { - assertSetupSelectPurpose("webCrawlingConfig"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnWebCrawlingConfigId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryWebCrawlingConfig(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<WebAuthenticationCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public WebAuthenticationCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<WebAuthenticationCQ> { - protected WebCrawlingConfigCB.HpSpecification _webCrawlingConfig; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<WebAuthenticationCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * HOSTNAME: {VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnHostname() { - return doColumn("HOSTNAME"); - } - - /** - * PORT: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnPort() { - return doColumn("PORT"); - } - - /** - * AUTH_REALM: {VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnAuthRealm() { - return doColumn("AUTH_REALM"); - } - - /** - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnProtocolScheme() { - return doColumn("PROTOCOL_SCHEME"); - } - - /** - * USERNAME: {NotNull, VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUsername() { - return doColumn("USERNAME"); - } - - /** - * PASSWORD: {VARCHAR(100)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnPassword() { - return doColumn("PASSWORD"); - } - - /** - * PARAMETERS: {VARCHAR(1000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnParameters() { - return doColumn("PARAMETERS"); - } - - /** - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnWebCrawlingConfigId() { - return doColumn("WEB_CRAWLING_CONFIG_ID"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryWebCrawlingConfig() - || qyCall().qy().xgetReferrerQuery() instanceof WebCrawlingConfigCQ) { - columnWebCrawlingConfigId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "WEB_AUTHENTICATION"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public WebCrawlingConfigCB.HpSpecification specifyWebCrawlingConfig() { - assertRelation("webCrawlingConfig"); - if (_webCrawlingConfig == null) { - _webCrawlingConfig = new WebCrawlingConfigCB.HpSpecification( - _baseCB, new HpSpQyCall<WebCrawlingConfigCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall - .qy() - .hasConditionQueryWebCrawlingConfig(); - } - - @Override - public WebCrawlingConfigCQ qy() { - return _qyCall.qy().queryWebCrawlingConfig(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _webCrawlingConfig - .xsetSyncQyCall(new HpSpQyCall<WebCrawlingConfigCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall() - .qy() - .hasConditionQueryWebCrawlingConfig(); - } - - @Override - public WebCrawlingConfigCQ qy() { - return xsyncQyCall().qy() - .queryWebCrawlingConfig(); - } - }); - } - } - return _webCrawlingConfig; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<WebAuthenticationCB, WebAuthenticationCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<WebAuthenticationCB, WebAuthenticationCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<WebAuthenticationCB, WebAuthenticationCQ>() { - @Override - public void setup(final String fn, - final SubQuery<WebAuthenticationCB> sq, - final WebAuthenticationCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<WebAuthenticationCB> columnQuery( - final SpecifyQuery<WebAuthenticationCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<WebAuthenticationCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<WebAuthenticationCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected WebAuthenticationCB xcreateColumnQueryCB() { - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public WebAuthenticationCB dreamCruiseCB() { - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<WebAuthenticationCB> orQuery) { - xorSQ((WebAuthenticationCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<WebAuthenticationCB> andQuery) { - xorSQAP((WebAuthenticationCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final WebAuthenticationCB cb; - if (mainCB != null) { - cb = (WebAuthenticationCB) mainCB; - } else { - cb = new WebAuthenticationCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<WebAuthenticationCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public WebAuthenticationCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return WebAuthenticationCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return WebAuthenticationCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsWebConfigToLabelTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsWebConfigToLabelTypeMappingCB.java deleted file mode 100644 index e334c089d..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsWebConfigToLabelTypeMappingCB.java +++ /dev/null @@ -1,882 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of WEB_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsWebConfigToLabelTypeMappingCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected WebConfigToLabelTypeMappingCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsWebConfigToLabelTypeMappingCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "WEB_CONFIG_TO_LABEL_TYPE_MAPPING"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public WebConfigToLabelTypeMappingCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsWebConfigToLabelTypeMappingCB cb = this; - cb.query().setId_Equal(id); - return (WebConfigToLabelTypeMappingCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsWebConfigToLabelTypeMappingCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public WebConfigToLabelTypeMappingCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public WebConfigToLabelTypeMappingCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected WebConfigToLabelTypeMappingCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected WebConfigToLabelTypeMappingCQ xcreateCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - final WebConfigToLabelTypeMappingCQ cq = xnewCQ(childQuery, sqlClause, - aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected WebConfigToLabelTypeMappingCQ xnewCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - return new WebConfigToLabelTypeMappingCQ(childQuery, sqlClause, - aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<WebConfigToLabelTypeMappingCB> unionQuery) { - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final WebConfigToLabelTypeMappingCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll( - final UnionQuery<WebConfigToLabelTypeMappingCB> unionQuery) { - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final WebConfigToLabelTypeMappingCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * <pre> - * WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_LabelType()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = webConfigToLabelTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = webConfigToLabelTypeMapping.<span style="color: #DD4747">getLabelType()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_LabelType() { - assertSetupSelectPurpose("labelType"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnLabelTypeId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryLabelType(); - } - }); - } - - /** - * Set up relation columns to select clause. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * <pre> - * WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_WebCrawlingConfig()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * WebConfigToLabelTypeMapping webConfigToLabelTypeMapping = webConfigToLabelTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = webConfigToLabelTypeMapping.<span style="color: #DD4747">getWebCrawlingConfig()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_WebCrawlingConfig() { - assertSetupSelectPurpose("webCrawlingConfig"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnWebConfigId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryWebCrawlingConfig(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<WebConfigToLabelTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public WebConfigToLabelTypeMappingCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<WebConfigToLabelTypeMappingCQ> { - protected LabelTypeCB.HpSpecification _labelType; - - protected WebCrawlingConfigCB.HpSpecification _webCrawlingConfig; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<WebConfigToLabelTypeMappingCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnWebConfigId() { - return doColumn("WEB_CONFIG_ID"); - } - - /** - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnLabelTypeId() { - return doColumn("LABEL_TYPE_ID"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryLabelType() - || qyCall().qy().xgetReferrerQuery() instanceof LabelTypeCQ) { - columnLabelTypeId(); // FK or one-to-one referrer - } - if (qyCall().qy().hasConditionQueryWebCrawlingConfig() - || qyCall().qy().xgetReferrerQuery() instanceof WebCrawlingConfigCQ) { - columnWebConfigId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "WEB_CONFIG_TO_LABEL_TYPE_MAPPING"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public LabelTypeCB.HpSpecification specifyLabelType() { - assertRelation("labelType"); - if (_labelType == null) { - _labelType = new LabelTypeCB.HpSpecification(_baseCB, - new HpSpQyCall<LabelTypeCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall.qy() - .hasConditionQueryLabelType(); - } - - @Override - public LabelTypeCQ qy() { - return _qyCall.qy().queryLabelType(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _labelType.xsetSyncQyCall(new HpSpQyCall<LabelTypeCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall().qy() - .hasConditionQueryLabelType(); - } - - @Override - public LabelTypeCQ qy() { - return xsyncQyCall().qy().queryLabelType(); - } - }); - } - } - return _labelType; - } - - /** - * Prepare to specify functions about relation table. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public WebCrawlingConfigCB.HpSpecification specifyWebCrawlingConfig() { - assertRelation("webCrawlingConfig"); - if (_webCrawlingConfig == null) { - _webCrawlingConfig = new WebCrawlingConfigCB.HpSpecification( - _baseCB, new HpSpQyCall<WebCrawlingConfigCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall - .qy() - .hasConditionQueryWebCrawlingConfig(); - } - - @Override - public WebCrawlingConfigCQ qy() { - return _qyCall.qy().queryWebCrawlingConfig(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _webCrawlingConfig - .xsetSyncQyCall(new HpSpQyCall<WebCrawlingConfigCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall() - .qy() - .hasConditionQueryWebCrawlingConfig(); - } - - @Override - public WebCrawlingConfigCQ qy() { - return xsyncQyCall().qy() - .queryWebCrawlingConfig(); - } - }); - } - } - return _webCrawlingConfig; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMappingCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMappingCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<WebConfigToLabelTypeMappingCB, WebConfigToLabelTypeMappingCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<WebConfigToLabelTypeMappingCB> sq, - final WebConfigToLabelTypeMappingCQ cq, - final String al, final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<WebConfigToLabelTypeMappingCB> columnQuery( - final SpecifyQuery<WebConfigToLabelTypeMappingCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<WebConfigToLabelTypeMappingCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<WebConfigToLabelTypeMappingCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected WebConfigToLabelTypeMappingCB xcreateColumnQueryCB() { - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public WebConfigToLabelTypeMappingCB dreamCruiseCB() { - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery( - final OrQuery<WebConfigToLabelTypeMappingCB> orQuery) { - xorSQ((WebConfigToLabelTypeMappingCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart( - final AndQuery<WebConfigToLabelTypeMappingCB> andQuery) { - xorSQAP((WebConfigToLabelTypeMappingCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final WebConfigToLabelTypeMappingCB cb; - if (mainCB != null) { - cb = (WebConfigToLabelTypeMappingCB) mainCB; - } else { - cb = new WebConfigToLabelTypeMappingCB(); - } - specify().xsetSyncQyCall( - new HpSpQyCall<WebConfigToLabelTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public WebConfigToLabelTypeMappingCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return WebConfigToLabelTypeMappingCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return WebConfigToLabelTypeMappingCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsWebConfigToRoleTypeMappingCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsWebConfigToRoleTypeMappingCB.java deleted file mode 100644 index 4effe86f4..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsWebConfigToRoleTypeMappingCB.java +++ /dev/null @@ -1,881 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of WEB_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsWebConfigToRoleTypeMappingCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected WebConfigToRoleTypeMappingCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsWebConfigToRoleTypeMappingCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "WEB_CONFIG_TO_ROLE_TYPE_MAPPING"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public WebConfigToRoleTypeMappingCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsWebConfigToRoleTypeMappingCB cb = this; - cb.query().setId_Equal(id); - return (WebConfigToRoleTypeMappingCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsWebConfigToRoleTypeMappingCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public WebConfigToRoleTypeMappingCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public WebConfigToRoleTypeMappingCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected WebConfigToRoleTypeMappingCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected WebConfigToRoleTypeMappingCQ xcreateCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - final WebConfigToRoleTypeMappingCQ cq = xnewCQ(childQuery, sqlClause, - aliasName, nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected WebConfigToRoleTypeMappingCQ xnewCQ( - final ConditionQuery childQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - return new WebConfigToRoleTypeMappingCQ(childQuery, sqlClause, - aliasName, nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<WebConfigToRoleTypeMappingCB> unionQuery) { - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final WebConfigToRoleTypeMappingCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll( - final UnionQuery<WebConfigToRoleTypeMappingCB> unionQuery) { - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final WebConfigToRoleTypeMappingCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - /** - * Set up relation columns to select clause. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * <pre> - * WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_RoleType()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = webConfigToRoleTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = webConfigToRoleTypeMapping.<span style="color: #DD4747">getRoleType()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_RoleType() { - assertSetupSelectPurpose("roleType"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnRoleTypeId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryRoleType(); - } - }); - } - - /** - * Set up relation columns to select clause. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * <pre> - * WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - * cb.<span style="color: #DD4747">setupSelect_WebCrawlingConfig()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> - * cb.query().setFoo...(value); - * WebConfigToRoleTypeMapping webConfigToRoleTypeMapping = webConfigToRoleTypeMappingBhv.selectEntityWithDeletedCheck(cb); - * ... = webConfigToRoleTypeMapping.<span style="color: #DD4747">getWebCrawlingConfig()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> - * </pre> - */ - public void setupSelect_WebCrawlingConfig() { - assertSetupSelectPurpose("webCrawlingConfig"); - if (hasSpecifiedColumn()) { // if reverse call - specify().columnWebConfigId(); - } - doSetupSelect(new SsCall() { - @Override - public ConditionQuery qf() { - return query().queryWebCrawlingConfig(); - } - }); - } - - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<WebConfigToRoleTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public WebConfigToRoleTypeMappingCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<WebConfigToRoleTypeMappingCQ> { - protected RoleTypeCB.HpSpecification _roleType; - - protected WebCrawlingConfigCB.HpSpecification _webCrawlingConfig; - - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<WebConfigToRoleTypeMappingCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnWebConfigId() { - return doColumn("WEB_CONFIG_ID"); - } - - /** - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnRoleTypeId() { - return doColumn("ROLE_TYPE_ID"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - if (qyCall().qy().hasConditionQueryRoleType() - || qyCall().qy().xgetReferrerQuery() instanceof RoleTypeCQ) { - columnRoleTypeId(); // FK or one-to-one referrer - } - if (qyCall().qy().hasConditionQueryWebCrawlingConfig() - || qyCall().qy().xgetReferrerQuery() instanceof WebCrawlingConfigCQ) { - columnWebConfigId(); // FK or one-to-one referrer - } - } - - @Override - protected String getTableDbName() { - return "WEB_CONFIG_TO_ROLE_TYPE_MAPPING"; - } - - /** - * Prepare to specify functions about relation table. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public RoleTypeCB.HpSpecification specifyRoleType() { - assertRelation("roleType"); - if (_roleType == null) { - _roleType = new RoleTypeCB.HpSpecification(_baseCB, - new HpSpQyCall<RoleTypeCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall.qy() - .hasConditionQueryRoleType(); - } - - @Override - public RoleTypeCQ qy() { - return _qyCall.qy().queryRoleType(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _roleType.xsetSyncQyCall(new HpSpQyCall<RoleTypeCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall().qy() - .hasConditionQueryRoleType(); - } - - @Override - public RoleTypeCQ qy() { - return xsyncQyCall().qy().queryRoleType(); - } - }); - } - } - return _roleType; - } - - /** - * Prepare to specify functions about relation table. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @return The instance for specification for relation table to specify. (NotNull) - */ - public WebCrawlingConfigCB.HpSpecification specifyWebCrawlingConfig() { - assertRelation("webCrawlingConfig"); - if (_webCrawlingConfig == null) { - _webCrawlingConfig = new WebCrawlingConfigCB.HpSpecification( - _baseCB, new HpSpQyCall<WebCrawlingConfigCQ>() { - @Override - public boolean has() { - return _qyCall.has() - && _qyCall - .qy() - .hasConditionQueryWebCrawlingConfig(); - } - - @Override - public WebCrawlingConfigCQ qy() { - return _qyCall.qy().queryWebCrawlingConfig(); - } - }, _purpose, _dbmetaProvider); - if (xhasSyncQyCall()) { // inherits it - _webCrawlingConfig - .xsetSyncQyCall(new HpSpQyCall<WebCrawlingConfigCQ>() { - @Override - public boolean has() { - return xsyncQyCall().has() - && xsyncQyCall() - .qy() - .hasConditionQueryWebCrawlingConfig(); - } - - @Override - public WebCrawlingConfigCQ qy() { - return xsyncQyCall().qy() - .queryWebCrawlingConfig(); - } - }); - } - } - return _webCrawlingConfig; - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMappingCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMappingCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<WebConfigToRoleTypeMappingCB, WebConfigToRoleTypeMappingCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<WebConfigToRoleTypeMappingCB> sq, - final WebConfigToRoleTypeMappingCQ cq, - final String al, final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<WebConfigToRoleTypeMappingCB> columnQuery( - final SpecifyQuery<WebConfigToRoleTypeMappingCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<WebConfigToRoleTypeMappingCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<WebConfigToRoleTypeMappingCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected WebConfigToRoleTypeMappingCB xcreateColumnQueryCB() { - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public WebConfigToRoleTypeMappingCB dreamCruiseCB() { - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<WebConfigToRoleTypeMappingCB> orQuery) { - xorSQ((WebConfigToRoleTypeMappingCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart( - final AndQuery<WebConfigToRoleTypeMappingCB> andQuery) { - xorSQAP((WebConfigToRoleTypeMappingCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final WebConfigToRoleTypeMappingCB cb; - if (mainCB != null) { - cb = (WebConfigToRoleTypeMappingCB) mainCB; - } else { - cb = new WebConfigToRoleTypeMappingCB(); - } - specify().xsetSyncQyCall( - new HpSpQyCall<WebConfigToRoleTypeMappingCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public WebConfigToRoleTypeMappingCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return WebConfigToRoleTypeMappingCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return WebConfigToRoleTypeMappingCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/bs/BsWebCrawlingConfigCB.java b/src/main/java/jp/sf/fess/db/cbean/bs/BsWebCrawlingConfigCB.java deleted file mode 100644 index b633144e0..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/bs/BsWebCrawlingConfigCB.java +++ /dev/null @@ -1,1026 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.bs; - -import jp.sf.fess.db.allcommon.DBFluteConfig; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.allcommon.ImplementedInvokerAssistant; -import jp.sf.fess.db.allcommon.ImplementedSqlClauseCreator; -import jp.sf.fess.db.cbean.RequestHeaderCB; -import jp.sf.fess.db.cbean.WebAuthenticationCB; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionBean; -import org.seasar.dbflute.cbean.AndQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.OrQuery; -import org.seasar.dbflute.cbean.SpecifyQuery; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.UnionQuery; -import org.seasar.dbflute.cbean.chelper.HpAbstractSpecification; -import org.seasar.dbflute.cbean.chelper.HpCBPurpose; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.chelper.HpColQyHandler; -import org.seasar.dbflute.cbean.chelper.HpColQyOperand; -import org.seasar.dbflute.cbean.chelper.HpColumnSpHandler; -import org.seasar.dbflute.cbean.chelper.HpSDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSpQyCall; -import org.seasar.dbflute.cbean.chelper.HpSpecifiedColumn; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.cbean.sqlclause.SqlClauseCreator; -import org.seasar.dbflute.dbmeta.DBMetaProvider; -import org.seasar.dbflute.twowaysql.factory.SqlAnalyzerFactory; - -/** - * The base condition-bean of WEB_CRAWLING_CONFIG. - * @author DBFlute(AutoGenerator) - */ -public class BsWebCrawlingConfigCB extends AbstractConditionBean { - - // =================================================================================== - // Attribute - // ========= - protected WebCrawlingConfigCQ _conditionQuery; - - // =================================================================================== - // Constructor - // =========== - public BsWebCrawlingConfigCB() { - if (DBFluteConfig.getInstance().isPagingCountLater()) { - enablePagingCountLater(); - } - if (DBFluteConfig.getInstance().isPagingCountLeastJoin()) { - enablePagingCountLeastJoin(); - } - if (DBFluteConfig.getInstance().isQueryUpdateCountPreCheck()) { - enableQueryUpdateCountPreCheck(); - } - } - - // =================================================================================== - // SqlClause - // ========= - @Override - protected SqlClause createSqlClause() { - final SqlClauseCreator creator = DBFluteConfig.getInstance() - .getSqlClauseCreator(); - if (creator != null) { - return creator.createSqlClause(this); - } - return new ImplementedSqlClauseCreator().createSqlClause(this); // as default - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider getDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); // as default - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "WEB_CRAWLING_CONFIG"; - } - - // =================================================================================== - // PrimaryKey Handling - // =================== - /** - * Accept the query condition of primary key as equal. - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - * @return this. (NotNull) - */ - public WebCrawlingConfigCB acceptPK(final Long id) { - assertObjectNotNull("id", id); - final BsWebCrawlingConfigCB cb = this; - cb.query().setId_Equal(id); - return (WebCrawlingConfigCB) this; - } - - /** - * Accept the query condition of primary key as equal. (old style) - * @param id : PK, ID, NotNull, BIGINT(19). (NotNull) - */ - public void acceptPrimaryKey(final Long id) { - assertObjectNotNull("id", id); - final BsWebCrawlingConfigCB cb = this; - cb.query().setId_Equal(id); - } - - @Override - public ConditionBean addOrderBy_PK_Asc() { - query().addOrderBy_Id_Asc(); - return this; - } - - @Override - public ConditionBean addOrderBy_PK_Desc() { - query().addOrderBy_Id_Desc(); - return this; - } - - // =================================================================================== - // Query - // ===== - /** - * Prepare for various queries. <br /> - * Examples of main functions are following: - * <pre> - * <span style="color: #3F7E5E">// Basic Queries</span> - * cb.query().setMemberId_Equal(value); <span style="color: #3F7E5E">// =</span> - * cb.query().setMemberId_NotEqual(value); <span style="color: #3F7E5E">// !=</span> - * cb.query().setMemberId_GreaterThan(value); <span style="color: #3F7E5E">// ></span> - * cb.query().setMemberId_LessThan(value); <span style="color: #3F7E5E">// <</span> - * cb.query().setMemberId_GreaterEqual(value); <span style="color: #3F7E5E">// >=</span> - * cb.query().setMemberId_LessEqual(value); <span style="color: #3F7E5E">// <=</span> - * cb.query().setMemberName_InScope(valueList); <span style="color: #3F7E5E">// in ('a', 'b')</span> - * cb.query().setMemberName_NotInScope(valueList); <span style="color: #3F7E5E">// not in ('a', 'b')</span> - * cb.query().setMemberName_PrefixSearch(value); <span style="color: #3F7E5E">// like 'a%' escape '|'</span> - * <span style="color: #3F7E5E">// LikeSearch with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {like ... [options]}</span> - * cb.query().setMemberName_LikeSearch(value, option); - * cb.query().setMemberName_NotLikeSearch(value, option); <span style="color: #3F7E5E">// not like ...</span> - * <span style="color: #3F7E5E">// FromTo with various options: (versatile)</span> - * <span style="color: #3F7E5E">// {(default) fromDatetime <= BIRTHDATE <= toDatetime}</span> - * cb.query().setBirthdate_FromTo(fromDatetime, toDatetime, option); - * <span style="color: #3F7E5E">// DateFromTo: (Date means yyyy/MM/dd)</span> - * <span style="color: #3F7E5E">// {fromDate <= BIRTHDATE < toDate + 1 day}</span> - * cb.query().setBirthdate_DateFromTo(fromDate, toDate); - * cb.query().setBirthdate_IsNull(); <span style="color: #3F7E5E">// is null</span> - * cb.query().setBirthdate_IsNotNull(); <span style="color: #3F7E5E">// is not null</span> - * - * <span style="color: #3F7E5E">// ExistsReferrer: (correlated sub-query)</span> - * <span style="color: #3F7E5E">// {where exists (select PURCHASE_ID from PURCHASE where ...)}</span> - * cb.query().existsPurchaseList(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }); - * cb.query().notExistsPurchaseList... - * - * <span style="color: #3F7E5E">// InScopeRelation: (sub-query)</span> - * <span style="color: #3F7E5E">// {where MEMBER_STATUS_CODE in (select MEMBER_STATUS_CODE from MEMBER_STATUS where ...)}</span> - * cb.query().inScopeMemberStatus(new SubQuery<MemberStatusCB>() { - * public void query(MemberStatusCB subCB) { - * subCB.query().setXxx... <span style="color: #3F7E5E">// relation sub-query condition</span> - * } - * }); - * cb.query().notInScopeMemberStatus... - * - * <span style="color: #3F7E5E">// (Query)DerivedReferrer: (correlated sub-query)</span> - * cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchasePrice(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// referrer sub-query condition</span> - * } - * }).greaterEqual(value); - * - * <span style="color: #3F7E5E">// ScalarCondition: (self-table sub-query)</span> - * cb.query().scalar_Equal().max(new SubQuery<MemberCB>() { - * public void query(MemberCB subCB) { - * subCB.specify().columnBirthdate(); <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setXxx... <span style="color: #3F7E5E">// scalar sub-query condition</span> - * } - * }); - * - * <span style="color: #3F7E5E">// OrderBy</span> - * cb.query().addOrderBy_MemberName_Asc(); - * cb.query().addOrderBy_MemberName_Desc().withManualOrder(valueList); - * cb.query().addOrderBy_MemberName_Desc().withNullsFirst(); - * cb.query().addOrderBy_MemberName_Desc().withNullsLast(); - * cb.query().addSpecifiedDerivedOrderBy_Desc(aliasName); - * - * <span style="color: #3F7E5E">// Query(Relation)</span> - * cb.query().queryMemberStatus()...; - * cb.query().queryMemberAddressAsValid(targetDate)...; - * </pre> - * @return The instance of condition-query for base-point table to set up query. (NotNull) - */ - public WebCrawlingConfigCQ query() { - assertQueryPurpose(); // assert only when user-public query - return getConditionQuery(); - } - - public WebCrawlingConfigCQ getConditionQuery() { // public for parameter comment and internal - if (_conditionQuery == null) { - _conditionQuery = createLocalCQ(); - } - return _conditionQuery; - } - - protected WebCrawlingConfigCQ createLocalCQ() { - return xcreateCQ(null, getSqlClause(), getSqlClause() - .getBasePointAliasName(), 0); - } - - protected WebCrawlingConfigCQ xcreateCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - final WebCrawlingConfigCQ cq = xnewCQ(childQuery, sqlClause, aliasName, - nestLevel); - cq.xsetBaseCB(this); - return cq; - } - - protected WebCrawlingConfigCQ xnewCQ(final ConditionQuery childQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - return new WebCrawlingConfigCQ(childQuery, sqlClause, aliasName, - nestLevel); - } - - @Override - public ConditionQuery localCQ() { - return getConditionQuery(); - } - - // =================================================================================== - // Union - // ===== - /** - * Set up 'union' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">union</span>(new UnionQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union'. (NotNull) - */ - public void union(final UnionQuery<WebCrawlingConfigCB> unionQuery) { - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final WebCrawlingConfigCQ cq = cb.query(); - query().xsetUnionQuery(cq); - } - - /** - * Set up 'union all' for base-point table. <br /> - * You don't need to call SetupSelect in union-query, - * because it inherits calls before. (Don't call SetupSelect after here) - * <pre> - * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB unionCB) { - * unionCB.query().setXxx... - * } - * }); - * </pre> - * @param unionQuery The query of 'union all'. (NotNull) - */ - public void unionAll(final UnionQuery<WebCrawlingConfigCB> unionQuery) { - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForUnion(this); - xsyncUQ(cb); - try { - lock(); - unionQuery.query(cb); - } finally { - unlock(); - } - xsaveUCB(cb); - final WebCrawlingConfigCQ cq = cb.query(); - query().xsetUnionAllQuery(cq); - } - - // =================================================================================== - // SetupSelect - // =========== - // [DBFlute-0.7.4] - // =================================================================================== - // Specify - // ======= - protected HpSpecification _specification; - - /** - * Prepare for SpecifyColumn, (Specify)DerivedReferrer. <br /> - * This method should be called after SetupSelect. - * <pre> - * cb.setupSelect_MemberStatus(); <span style="color: #3F7E5E">// should be called before specify()</span> - * cb.specify().columnMemberName(); - * cb.specify().specifyMemberStatus().columnMemberStatusName(); - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * subCB.query().set... - * } - * }, aliasName); - * </pre> - * @return The instance of specification. (NotNull) - */ - public HpSpecification specify() { - assertSpecifyPurpose(); - if (_specification == null) { - _specification = new HpSpecification(this, - new HpSpQyCall<WebCrawlingConfigCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public WebCrawlingConfigCQ qy() { - return getConditionQuery(); - } - }, _purpose, getDBMetaProvider()); - } - return _specification; - } - - @Override - public HpColumnSpHandler localSp() { - return specify(); - } - - @Override - public boolean hasSpecifiedColumn() { - return _specification != null - && _specification.isAlreadySpecifiedRequiredColumn(); - } - - public static class HpSpecification extends - HpAbstractSpecification<WebCrawlingConfigCQ> { - public HpSpecification(final ConditionBean baseCB, - final HpSpQyCall<WebCrawlingConfigCQ> qyCall, - final HpCBPurpose purpose, final DBMetaProvider dbmetaProvider) { - super(baseCB, qyCall, purpose, dbmetaProvider); - } - - /** - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnId() { - return doColumn("ID"); - } - - /** - * NAME: {NotNull, VARCHAR(200)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnName() { - return doColumn("NAME"); - } - - /** - * URLS: {NotNull, VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUrls() { - return doColumn("URLS"); - } - - /** - * INCLUDED_URLS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnIncludedUrls() { - return doColumn("INCLUDED_URLS"); - } - - /** - * EXCLUDED_URLS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnExcludedUrls() { - return doColumn("EXCLUDED_URLS"); - } - - /** - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnIncludedDocUrls() { - return doColumn("INCLUDED_DOC_URLS"); - } - - /** - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnExcludedDocUrls() { - return doColumn("EXCLUDED_DOC_URLS"); - } - - /** - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnConfigParameter() { - return doColumn("CONFIG_PARAMETER"); - } - - /** - * DEPTH: {INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDepth() { - return doColumn("DEPTH"); - } - - /** - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnMaxAccessCount() { - return doColumn("MAX_ACCESS_COUNT"); - } - - /** - * USER_AGENT: {NotNull, VARCHAR(200)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUserAgent() { - return doColumn("USER_AGENT"); - } - - /** - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnNumOfThread() { - return doColumn("NUM_OF_THREAD"); - } - - /** - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnIntervalTime() { - return doColumn("INTERVAL_TIME"); - } - - /** - * BOOST: {NotNull, DOUBLE(17)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnBoost() { - return doColumn("BOOST"); - } - - /** - * AVAILABLE: {NotNull, VARCHAR(1)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnAvailable() { - return doColumn("AVAILABLE"); - } - - /** - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnSortOrder() { - return doColumn("SORT_ORDER"); - } - - /** - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedBy() { - return doColumn("CREATED_BY"); - } - - /** - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnCreatedTime() { - return doColumn("CREATED_TIME"); - } - - /** - * UPDATED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedBy() { - return doColumn("UPDATED_BY"); - } - - /** - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnUpdatedTime() { - return doColumn("UPDATED_TIME"); - } - - /** - * DELETED_BY: {VARCHAR(255)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedBy() { - return doColumn("DELETED_BY"); - } - - /** - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnDeletedTime() { - return doColumn("DELETED_TIME"); - } - - /** - * VERSION_NO: {NotNull, INTEGER(10)} - * @return The information object of specified column. (NotNull) - */ - public HpSpecifiedColumn columnVersionNo() { - return doColumn("VERSION_NO"); - } - - @Override - public void everyColumn() { - doEveryColumn(); - } - - @Override - public void exceptRecordMetaColumn() { - doExceptRecordMetaColumn(); - } - - @Override - protected void doSpecifyRequiredColumn() { - columnId(); // PK - } - - @Override - protected String getTableDbName() { - return "WEB_CRAWLING_CONFIG"; - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from REQUEST_HEADER where ...) as FOO_MAX} <br /> - * REQUEST_HEADER by WEB_CRAWLING_CONFIG_ID, named 'requestHeaderList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedRequestHeaderList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, RequestHeader.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<RequestHeaderCB, WebCrawlingConfigCQ> derivedRequestHeaderList() { - assertDerived("requestHeaderList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<RequestHeaderCB, WebCrawlingConfigCQ>( - _baseCB, _qyCall.qy(), - new HpSDRSetupper<RequestHeaderCB, WebCrawlingConfigCQ>() { - @Override - public void setup(final String fn, - final SubQuery<RequestHeaderCB> sq, - final WebCrawlingConfigCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveRequestHeaderList(fn, sq, al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from WEB_AUTHENTICATION where ...) as FOO_MAX} <br /> - * WEB_AUTHENTICATION by WEB_CRAWLING_CONFIG_ID, named 'webAuthenticationList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedWebAuthenticationList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, WebAuthentication.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<WebAuthenticationCB, WebCrawlingConfigCQ> derivedWebAuthenticationList() { - assertDerived("webAuthenticationList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<WebAuthenticationCB, WebCrawlingConfigCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<WebAuthenticationCB, WebCrawlingConfigCQ>() { - @Override - public void setup(final String fn, - final SubQuery<WebAuthenticationCB> sq, - final WebCrawlingConfigCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveWebAuthenticationList(fn, sq, al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from WEB_CONFIG_TO_LABEL_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToLabelTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedWebConfigToLabelTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, WebConfigToLabelTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<WebConfigToLabelTypeMappingCB, WebCrawlingConfigCQ> derivedWebConfigToLabelTypeMappingList() { - assertDerived("webConfigToLabelTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<WebConfigToLabelTypeMappingCB, WebCrawlingConfigCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<WebConfigToLabelTypeMappingCB, WebCrawlingConfigCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<WebConfigToLabelTypeMappingCB> sq, - final WebCrawlingConfigCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveWebConfigToLabelTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)DerivedReferrer (correlated sub-query). <br /> - * {select max(FOO) from WEB_CONFIG_TO_ROLE_TYPE_MAPPING where ...) as FOO_MAX} <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToRoleTypeMappingList'. - * <pre> - * cb.specify().<span style="color: #DD4747">derivedWebConfigToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }, WebConfigToRoleTypeMapping.<span style="color: #DD4747">ALIAS_foo...</span>); - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpSDRFunction<WebConfigToRoleTypeMappingCB, WebCrawlingConfigCQ> derivedWebConfigToRoleTypeMappingList() { - assertDerived("webConfigToRoleTypeMappingList"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<WebConfigToRoleTypeMappingCB, WebCrawlingConfigCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<WebConfigToRoleTypeMappingCB, WebCrawlingConfigCQ>() { - @Override - public void setup( - final String fn, - final SubQuery<WebConfigToRoleTypeMappingCB> sq, - final WebCrawlingConfigCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsderiveWebConfigToRoleTypeMappingList(fn, sq, - al, op); - } - }, _dbmetaProvider); - } - - /** - * Prepare for (Specify)MyselfDerived (SubQuery). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpSDRFunction<WebCrawlingConfigCB, WebCrawlingConfigCQ> myselfDerived() { - assertDerived("myselfDerived"); - if (xhasSyncQyCall()) { - xsyncQyCall().qy(); - } // for sync (for example, this in ColumnQuery) - return new HpSDRFunction<WebCrawlingConfigCB, WebCrawlingConfigCQ>( - _baseCB, - _qyCall.qy(), - new HpSDRSetupper<WebCrawlingConfigCB, WebCrawlingConfigCQ>() { - @Override - public void setup(final String fn, - final SubQuery<WebCrawlingConfigCB> sq, - final WebCrawlingConfigCQ cq, final String al, - final DerivedReferrerOption op) { - cq.xsmyselfDerive(fn, sq, al, op); - } - }, _dbmetaProvider); - } - } - - // [DBFlute-0.9.5.3] - // =================================================================================== - // Column Query - // ============ - /** - * Set up column-query. {column1 = column2} - * <pre> - * <span style="color: #3F7E5E">// where FOO < BAR</span> - * cb.<span style="color: #DD4747">columnQuery</span>(new SpecifyQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnFoo()</span>; <span style="color: #3F7E5E">// left column</span> - * } - * }).lessThan(new SpecifyQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB cb) { - * cb.specify().<span style="color: #DD4747">columnBar()</span>; <span style="color: #3F7E5E">// right column</span> - * } - * }); <span style="color: #3F7E5E">// you can calculate for right column like '}).plus(3);'</span> - * </pre> - * @param leftSpecifyQuery The specify-query for left column. (NotNull) - * @return The object for setting up operand and right column. (NotNull) - */ - public HpColQyOperand<WebCrawlingConfigCB> columnQuery( - final SpecifyQuery<WebCrawlingConfigCB> leftSpecifyQuery) { - return xcreateColQyOperand(new HpColQyHandler<WebCrawlingConfigCB>() { - @Override - public HpCalculator handle( - final SpecifyQuery<WebCrawlingConfigCB> rightSp, - final String operand) { - return xcolqy(xcreateColumnQueryCB(), xcreateColumnQueryCB(), - leftSpecifyQuery, rightSp, operand); - } - }); - } - - protected WebCrawlingConfigCB xcreateColumnQueryCB() { - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForColumnQuery(this); - return cb; - } - - // =================================================================================== - // Dream Cruise - // ============ - /** - * Welcome to the Dream Cruise for condition-bean deep world. <br /> - * This is very specialty so you can get the frontier spirit. Bon voyage! - * @return The condition-bean for dream cruise, which is linked to main condition-bean. - */ - public WebCrawlingConfigCB dreamCruiseCB() { - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForDreamCruise(this); - return cb; - } - - @Override - protected ConditionBean xdoCreateDreamCruiseCB() { - return dreamCruiseCB(); - } - - // [DBFlute-0.9.6.3] - // =================================================================================== - // OrScope Query - // ============= - /** - * Set up the query for or-scope. <br /> - * (Same-column-and-same-condition-key conditions are allowed in or-scope) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or BAR = '...')</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.query().setBAR_Equal... - * } - * }); - * </pre> - * @param orQuery The query for or-condition. (NotNull) - */ - public void orScopeQuery(final OrQuery<WebCrawlingConfigCB> orQuery) { - xorSQ((WebCrawlingConfigCB) this, orQuery); - } - - @Override - protected HpCBPurpose xhandleOrSQPurposeChange() { - return null; // means no check - } - - /** - * Set up the and-part of or-scope. <br /> - * (However nested or-scope query and as-or-split of like-search in and-part are unsupported) - * <pre> - * <span style="color: #3F7E5E">// where (FOO = '...' or (BAR = '...' and QUX = '...'))</span> - * cb.<span style="color: #DD4747">orScopeQuery</span>(new OrQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB orCB) { - * orCB.query().setFOO_Equal... - * orCB.<span style="color: #DD4747">orScopeQueryAndPart</span>(new AndQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB andCB) { - * andCB.query().setBar_... - * andCB.query().setQux_... - * } - * }); - * } - * }); - * </pre> - * @param andQuery The query for and-condition. (NotNull) - */ - public void orScopeQueryAndPart(final AndQuery<WebCrawlingConfigCB> andQuery) { - xorSQAP((WebCrawlingConfigCB) this, andQuery); - } - - /** - * Check invalid query when query is set. <br /> - * (it throws an exception if set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. <br /> - * - * <p>renamed to checkNullOrEmptyQuery() since 1.1, - * but not deprecated because it might have many use.</p> - * - * #java8 compatible option - */ - public void checkInvalidQuery() { - checkNullOrEmptyQuery(); - } - - /** - * Accept (no check) an invalid query when a query is set. <br /> - * (no condition if a set query is invalid) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use ignoreNullOrEmptyQuery() - */ - @Deprecated - public void acceptInvalidQuery() { - getSqlClause().ignoreNullOrEmptyQuery(); - } - - /** - * Allow to auto-detect joins that can be inner-join. <br /> - * <pre> - * o You should call this before registrations of where clause. - * o Union and SubQuery and other sub condition-bean inherit this. - * o You should confirm your SQL on the log to be tuned by inner-join correctly. - * </pre> - * @deprecated use enableInnerJoinAutoDetect() - */ - @Deprecated - public void allowInnerJoinAutoDetect() { - enableInnerJoinAutoDetect(); - } - - /** - * Suppress auto-detecting inner-join. <br /> - * You should call this before registrations of where clause. - * @deprecated use disableInnerJoinAutoDetect() - */ - @Deprecated - public void suppressInnerJoinAutoDetect() { - disableInnerJoinAutoDetect(); - } - - /** - * Allow an empty string for query. <br /> - * (you can use an empty string as condition) <br /> - * You should call this before registrations of where clause and other queries. <br /> - * Union and SubQuery and other sub condition-bean inherit this. - * @deprecated use enableEmptyStringQuery() - */ - @Deprecated - public void allowEmptyStringQuery() { - enableEmptyStringQuery(); - } - - /** - * Enable checking record count before QueryUpdate (contains QueryDelete). (default is disabled) <br /> - * No query update if zero count. (basically for MySQL's deadlock by next-key lock) - * @deprecated use enableQueryUpdateCountPreCheck() - */ - @Deprecated - public void enableCheckCountBeforeQueryUpdate() { - enableQueryUpdateCountPreCheck(); - } - - /** - * Disable checking record count before QueryUpdate (contains QueryDelete). (back to default) <br /> - * Executes query update even if zero count. (normal specification) - * @deprecated use disableQueryUpdateCountPreCheck() - */ - @Deprecated - public void disableCheckCountBeforeQueryUpdate() { - disableQueryUpdateCountPreCheck(); - } - - /** - * Allow "that's bad timing" check. - * @deprecated use enableThatsBadTiming() - */ - @Deprecated - public void allowThatsBadTiming() { - enableThatsBadTiming(); - } - - /** - * Suppress "that's bad timing" check. - * @deprecated use disableThatsBadTiming() - */ - @Deprecated - public void suppressThatsBadTiming() { - disableThatsBadTiming(); - } - - // =================================================================================== - // DisplaySQL - // ========== - @Override - protected SqlAnalyzerFactory getSqlAnalyzerFactory() { - return new ImplementedInvokerAssistant().assistSqlAnalyzerFactory(); - } - - @Override - protected String getLogDateFormat() { - return DBFluteConfig.getInstance().getLogDateFormat(); - } - - @Override - protected String getLogTimestampFormat() { - return DBFluteConfig.getInstance().getLogTimestampFormat(); - } - - // =================================================================================== - // Meta Handling - // ============= - @Override - public boolean hasUnionQueryOrUnionAllQuery() { - return query().hasUnionQueryOrUnionAllQuery(); - } - - // =================================================================================== - // Purpose Type - // ============ - @Override - protected void xprepareSyncQyCall(final ConditionBean mainCB) { - final WebCrawlingConfigCB cb; - if (mainCB != null) { - cb = (WebCrawlingConfigCB) mainCB; - } else { - cb = new WebCrawlingConfigCB(); - } - specify().xsetSyncQyCall(new HpSpQyCall<WebCrawlingConfigCQ>() { - @Override - public boolean has() { - return true; - } - - @Override - public WebCrawlingConfigCQ qy() { - return cb.query(); - } - }); - } - - // =================================================================================== - // Internal - // ======== - // very internal (for suppressing warn about 'Not Use Import') - protected String getConditionBeanClassNameInternally() { - return WebCrawlingConfigCB.class.getName(); - } - - protected String getConditionQueryClassNameInternally() { - return WebCrawlingConfigCQ.class.getName(); - } - - protected String getSubQueryClassNameInternally() { - return SubQuery.class.getName(); - } - - protected String getConditionOptionClassNameInternally() { - return ConditionOption.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/BoostDocumentRuleCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/BoostDocumentRuleCQ.java deleted file mode 100644 index 30d65504d..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/BoostDocumentRuleCQ.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsBoostDocumentRuleCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of BOOST_DOCUMENT_RULE. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class BoostDocumentRuleCQ extends BsBoostDocumentRuleCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Auto-generated constructor to create query instance, basically called in DBFlute. - * @param referrerQuery The instance of referrer query. (NullAllowed: if null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (if zero, this is base query) - */ - public BoostDocumentRuleCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. e.g. public void arrangeXxx() -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ClickLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ClickLogCQ.java deleted file mode 100644 index 2adfbc57b..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ClickLogCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsClickLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of CLICK_LOG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class ClickLogCQ extends BsClickLogCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public ClickLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/CrawlingSessionCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/CrawlingSessionCQ.java deleted file mode 100644 index 346fc4383..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/CrawlingSessionCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsCrawlingSessionCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of CRAWLING_SESSION. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class CrawlingSessionCQ extends BsCrawlingSessionCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public CrawlingSessionCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/CrawlingSessionInfoCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/CrawlingSessionInfoCQ.java deleted file mode 100644 index ea880cb2e..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/CrawlingSessionInfoCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsCrawlingSessionInfoCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of CRAWLING_SESSION_INFO. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class CrawlingSessionInfoCQ extends BsCrawlingSessionInfoCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public CrawlingSessionInfoCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/DataConfigToLabelTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/DataConfigToLabelTypeMappingCQ.java deleted file mode 100644 index fe72be5a7..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/DataConfigToLabelTypeMappingCQ.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsDataConfigToLabelTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of DATA_CONFIG_TO_LABEL_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class DataConfigToLabelTypeMappingCQ extends - BsDataConfigToLabelTypeMappingCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public DataConfigToLabelTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/DataConfigToRoleTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/DataConfigToRoleTypeMappingCQ.java deleted file mode 100644 index 4946230e6..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/DataConfigToRoleTypeMappingCQ.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsDataConfigToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of DATA_CONFIG_TO_ROLE_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class DataConfigToRoleTypeMappingCQ extends - BsDataConfigToRoleTypeMappingCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public DataConfigToRoleTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/DataCrawlingConfigCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/DataCrawlingConfigCQ.java deleted file mode 100644 index 103346b08..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/DataCrawlingConfigCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsDataCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of DATA_CRAWLING_CONFIG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class DataCrawlingConfigCQ extends BsDataCrawlingConfigCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public DataCrawlingConfigCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/FailureUrlCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/FailureUrlCQ.java deleted file mode 100644 index 7412d3a88..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/FailureUrlCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsFailureUrlCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of FAILURE_URL. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class FailureUrlCQ extends BsFailureUrlCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public FailureUrlCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/FavoriteLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/FavoriteLogCQ.java deleted file mode 100644 index 898f490cd..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/FavoriteLogCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsFavoriteLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of FAVORITE_LOG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class FavoriteLogCQ extends BsFavoriteLogCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public FavoriteLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/FileAuthenticationCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/FileAuthenticationCQ.java deleted file mode 100644 index c5becff7f..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/FileAuthenticationCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsFileAuthenticationCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of FILE_AUTHENTICATION. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class FileAuthenticationCQ extends BsFileAuthenticationCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public FileAuthenticationCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/FileConfigToLabelTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/FileConfigToLabelTypeMappingCQ.java deleted file mode 100644 index e22f5cbdb..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/FileConfigToLabelTypeMappingCQ.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsFileConfigToLabelTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of FILE_CONFIG_TO_LABEL_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class FileConfigToLabelTypeMappingCQ extends - BsFileConfigToLabelTypeMappingCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public FileConfigToLabelTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/FileConfigToRoleTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/FileConfigToRoleTypeMappingCQ.java deleted file mode 100644 index fa21aa306..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/FileConfigToRoleTypeMappingCQ.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsFileConfigToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of FILE_CONFIG_TO_ROLE_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class FileConfigToRoleTypeMappingCQ extends - BsFileConfigToRoleTypeMappingCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public FileConfigToRoleTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/FileCrawlingConfigCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/FileCrawlingConfigCQ.java deleted file mode 100644 index abb8a7a6d..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/FileCrawlingConfigCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsFileCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of FILE_CRAWLING_CONFIG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class FileCrawlingConfigCQ extends BsFileCrawlingConfigCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public FileCrawlingConfigCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/JobLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/JobLogCQ.java deleted file mode 100644 index 384b99fda..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/JobLogCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsJobLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of JOB_LOG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class JobLogCQ extends BsJobLogCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public JobLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/KeyMatchCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/KeyMatchCQ.java deleted file mode 100644 index e138446c4..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/KeyMatchCQ.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsKeyMatchCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of KEY_MATCH. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class KeyMatchCQ extends BsKeyMatchCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Auto-generated constructor to create query instance, basically called in DBFlute. - * @param referrerQuery The instance of referrer query. (NullAllowed: if null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (if zero, this is base query) - */ - public KeyMatchCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. e.g. public void arrangeXxx() -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/LabelTypeCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/LabelTypeCQ.java deleted file mode 100644 index af82a73ff..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/LabelTypeCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsLabelTypeCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of LABEL_TYPE. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class LabelTypeCQ extends BsLabelTypeCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public LabelTypeCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/LabelTypeToRoleTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/LabelTypeToRoleTypeMappingCQ.java deleted file mode 100644 index 5d562bbfe..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/LabelTypeToRoleTypeMappingCQ.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsLabelTypeToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of LABEL_TYPE_TO_ROLE_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class LabelTypeToRoleTypeMappingCQ extends - BsLabelTypeToRoleTypeMappingCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public LabelTypeToRoleTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/OverlappingHostCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/OverlappingHostCQ.java deleted file mode 100644 index 4a74575f5..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/OverlappingHostCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsOverlappingHostCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of OVERLAPPING_HOST. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class OverlappingHostCQ extends BsOverlappingHostCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public OverlappingHostCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/PathMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/PathMappingCQ.java deleted file mode 100644 index d48efb9c3..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/PathMappingCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsPathMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of PATH_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class PathMappingCQ extends BsPathMappingCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public PathMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/RequestHeaderCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/RequestHeaderCQ.java deleted file mode 100644 index 081dc5861..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/RequestHeaderCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsRequestHeaderCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of REQUEST_HEADER. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class RequestHeaderCQ extends BsRequestHeaderCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public RequestHeaderCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/RoleTypeCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/RoleTypeCQ.java deleted file mode 100644 index 276eabadf..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/RoleTypeCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsRoleTypeCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of ROLE_TYPE. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class RoleTypeCQ extends BsRoleTypeCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public RoleTypeCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ScheduledJobCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ScheduledJobCQ.java deleted file mode 100644 index 2c0eb8a6a..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ScheduledJobCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsScheduledJobCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of SCHEDULED_JOB. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class ScheduledJobCQ extends BsScheduledJobCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public ScheduledJobCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/SearchFieldLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/SearchFieldLogCQ.java deleted file mode 100644 index 9ca4a1956..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/SearchFieldLogCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsSearchFieldLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of SEARCH_FIELD_LOG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class SearchFieldLogCQ extends BsSearchFieldLogCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public SearchFieldLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/SearchLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/SearchLogCQ.java deleted file mode 100644 index 608178254..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/SearchLogCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsSearchLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of SEARCH_LOG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class SearchLogCQ extends BsSearchLogCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public SearchLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/SuggestBadWordCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/SuggestBadWordCQ.java deleted file mode 100644 index abe9b11bc..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/SuggestBadWordCQ.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsSuggestBadWordCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of SUGGEST_BAD_WORD. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class SuggestBadWordCQ extends BsSuggestBadWordCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Auto-generated constructor to create query instance, basically called in DBFlute. - * @param referrerQuery The instance of referrer query. (NullAllowed: if null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (if zero, this is base query) - */ - public SuggestBadWordCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. e.g. public void arrangeXxx() -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/SuggestElevateWordCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/SuggestElevateWordCQ.java deleted file mode 100644 index 67781d9a0..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/SuggestElevateWordCQ.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsSuggestElevateWordCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of SUGGEST_ELEVATE_WORD. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class SuggestElevateWordCQ extends BsSuggestElevateWordCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Auto-generated constructor to create query instance, basically called in DBFlute. - * @param referrerQuery The instance of referrer query. (NullAllowed: if null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (if zero, this is base query) - */ - public SuggestElevateWordCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. e.g. public void arrangeXxx() -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/UserInfoCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/UserInfoCQ.java deleted file mode 100644 index 58c4537f9..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/UserInfoCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsUserInfoCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of USER_INFO. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class UserInfoCQ extends BsUserInfoCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public UserInfoCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/WebAuthenticationCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/WebAuthenticationCQ.java deleted file mode 100644 index 52f9db675..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/WebAuthenticationCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsWebAuthenticationCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of WEB_AUTHENTICATION. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class WebAuthenticationCQ extends BsWebAuthenticationCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public WebAuthenticationCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/WebConfigToLabelTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/WebConfigToLabelTypeMappingCQ.java deleted file mode 100644 index f5f61904f..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/WebConfigToLabelTypeMappingCQ.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsWebConfigToLabelTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of WEB_CONFIG_TO_LABEL_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class WebConfigToLabelTypeMappingCQ extends - BsWebConfigToLabelTypeMappingCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public WebConfigToLabelTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/WebConfigToRoleTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/WebConfigToRoleTypeMappingCQ.java deleted file mode 100644 index e1cb4b137..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/WebConfigToRoleTypeMappingCQ.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsWebConfigToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of WEB_CONFIG_TO_ROLE_TYPE_MAPPING. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class WebConfigToRoleTypeMappingCQ extends - BsWebConfigToRoleTypeMappingCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public WebConfigToRoleTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/WebCrawlingConfigCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/WebCrawlingConfigCQ.java deleted file mode 100644 index 49d5bc21d..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/WebCrawlingConfigCQ.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq; - -import jp.sf.fess.db.cbean.cq.bs.BsWebCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; - -/** - * The condition-query of WEB_CRAWLING_CONFIG. - * <p> - * You can implement your original methods here. - * This class remains when re-generating. - * </p> - * @author DBFlute(AutoGenerator) - */ -public class WebCrawlingConfigCQ extends BsWebCrawlingConfigCQ { - - // =================================================================================== - // Constructor - // =========== - // You should NOT touch with this constructor. - /** - * Constructor. - * @param referrerQuery The instance of referrer query. (NullAllowed: If null, this is base query) - * @param sqlClause The instance of SQL clause. (NotNull) - * @param aliasName The alias name for this query. (NotNull) - * @param nestLevel The nest level of this query. (If zero, this is base query) - */ - public WebCrawlingConfigCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // Arrange Query - // ============= - // You can make your arranged query methods here. - //public void arrangeXxx() { - // ... - //} -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsBoostDocumentRuleCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsBoostDocumentRuleCQ.java deleted file mode 100644 index 26ebd91be..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsBoostDocumentRuleCQ.java +++ /dev/null @@ -1,1731 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.BoostDocumentRuleCB; -import jp.sf.fess.db.cbean.cq.BoostDocumentRuleCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of BOOST_DOCUMENT_RULE. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsBoostDocumentRuleCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsBoostDocumentRuleCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "BOOST_DOCUMENT_RULE"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @param urlExpr The value of urlExpr as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUrlExpr_Equal(final String urlExpr) { - doSetUrlExpr_Equal(fRES(urlExpr)); - } - - protected void doSetUrlExpr_Equal(final String urlExpr) { - regUrlExpr(CK_EQ, urlExpr); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @param urlExpr The value of urlExpr as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrlExpr_NotEqual(final String urlExpr) { - doSetUrlExpr_NotEqual(fRES(urlExpr)); - } - - protected void doSetUrlExpr_NotEqual(final String urlExpr) { - regUrlExpr(CK_NES, urlExpr); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @param urlExpr The value of urlExpr as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUrlExpr_GreaterThan(final String urlExpr) { - regUrlExpr(CK_GT, fRES(urlExpr)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @param urlExpr The value of urlExpr as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUrlExpr_LessThan(final String urlExpr) { - regUrlExpr(CK_LT, fRES(urlExpr)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @param urlExpr The value of urlExpr as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrlExpr_GreaterEqual(final String urlExpr) { - regUrlExpr(CK_GE, fRES(urlExpr)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @param urlExpr The value of urlExpr as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrlExpr_LessEqual(final String urlExpr) { - regUrlExpr(CK_LE, fRES(urlExpr)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @param urlExprList The collection of urlExpr as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUrlExpr_InScope(final Collection<String> urlExprList) { - doSetUrlExpr_InScope(urlExprList); - } - - public void doSetUrlExpr_InScope(final Collection<String> urlExprList) { - regINS(CK_INS, cTL(urlExprList), getCValueUrlExpr(), "URL_EXPR"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @param urlExprList The collection of urlExpr as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUrlExpr_NotInScope(final Collection<String> urlExprList) { - doSetUrlExpr_NotInScope(urlExprList); - } - - public void doSetUrlExpr_NotInScope(final Collection<String> urlExprList) { - regINS(CK_NINS, cTL(urlExprList), getCValueUrlExpr(), "URL_EXPR"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @param urlExpr The value of urlExpr as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUrlExpr_PrefixSearch(final String urlExpr) { - setUrlExpr_LikeSearch(urlExpr, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} <br /> - * <pre>e.g. setUrlExpr_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param urlExpr The value of urlExpr as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUrlExpr_LikeSearch(final String urlExpr, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(urlExpr), getCValueUrlExpr(), "URL_EXPR", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @param urlExpr The value of urlExpr as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUrlExpr_NotLikeSearch(final String urlExpr, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(urlExpr), getCValueUrlExpr(), "URL_EXPR", - likeSearchOption); - } - - protected void regUrlExpr(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUrlExpr(), "URL_EXPR"); - } - - protected abstract ConditionValue getCValueUrlExpr(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @param boostExpr The value of boostExpr as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setBoostExpr_Equal(final String boostExpr) { - doSetBoostExpr_Equal(fRES(boostExpr)); - } - - protected void doSetBoostExpr_Equal(final String boostExpr) { - regBoostExpr(CK_EQ, boostExpr); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @param boostExpr The value of boostExpr as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setBoostExpr_NotEqual(final String boostExpr) { - doSetBoostExpr_NotEqual(fRES(boostExpr)); - } - - protected void doSetBoostExpr_NotEqual(final String boostExpr) { - regBoostExpr(CK_NES, boostExpr); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @param boostExpr The value of boostExpr as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setBoostExpr_GreaterThan(final String boostExpr) { - regBoostExpr(CK_GT, fRES(boostExpr)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @param boostExpr The value of boostExpr as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setBoostExpr_LessThan(final String boostExpr) { - regBoostExpr(CK_LT, fRES(boostExpr)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @param boostExpr The value of boostExpr as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setBoostExpr_GreaterEqual(final String boostExpr) { - regBoostExpr(CK_GE, fRES(boostExpr)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @param boostExpr The value of boostExpr as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setBoostExpr_LessEqual(final String boostExpr) { - regBoostExpr(CK_LE, fRES(boostExpr)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @param boostExprList The collection of boostExpr as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setBoostExpr_InScope(final Collection<String> boostExprList) { - doSetBoostExpr_InScope(boostExprList); - } - - public void doSetBoostExpr_InScope(final Collection<String> boostExprList) { - regINS(CK_INS, cTL(boostExprList), getCValueBoostExpr(), "BOOST_EXPR"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @param boostExprList The collection of boostExpr as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setBoostExpr_NotInScope(final Collection<String> boostExprList) { - doSetBoostExpr_NotInScope(boostExprList); - } - - public void doSetBoostExpr_NotInScope(final Collection<String> boostExprList) { - regINS(CK_NINS, cTL(boostExprList), getCValueBoostExpr(), "BOOST_EXPR"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @param boostExpr The value of boostExpr as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setBoostExpr_PrefixSearch(final String boostExpr) { - setBoostExpr_LikeSearch(boostExpr, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} <br /> - * <pre>e.g. setBoostExpr_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param boostExpr The value of boostExpr as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setBoostExpr_LikeSearch(final String boostExpr, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(boostExpr), getCValueBoostExpr(), "BOOST_EXPR", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @param boostExpr The value of boostExpr as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setBoostExpr_NotLikeSearch(final String boostExpr, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(boostExpr), getCValueBoostExpr(), "BOOST_EXPR", - likeSearchOption); - } - - protected void regBoostExpr(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueBoostExpr(), "BOOST_EXPR"); - } - - protected abstract ConditionValue getCValueBoostExpr(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as equal. (NullAllowed: if null, no condition) - */ - public void setSortOrder_Equal(final Integer sortOrder) { - doSetSortOrder_Equal(sortOrder); - } - - protected void doSetSortOrder_Equal(final Integer sortOrder) { - regSortOrder(CK_EQ, sortOrder); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as notEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_NotEqual(final Integer sortOrder) { - doSetSortOrder_NotEqual(sortOrder); - } - - protected void doSetSortOrder_NotEqual(final Integer sortOrder) { - regSortOrder(CK_NES, sortOrder); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterThan(final Integer sortOrder) { - regSortOrder(CK_GT, sortOrder); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessThan(final Integer sortOrder) { - regSortOrder(CK_LT, sortOrder); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterEqual(final Integer sortOrder) { - regSortOrder(CK_GE, sortOrder); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessEqual(final Integer sortOrder) { - regSortOrder(CK_LE, sortOrder); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param minNumber The min number of sortOrder. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of sortOrder. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setSortOrder_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueSortOrder(), "SORT_ORDER", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_InScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_InScope(sortOrderList); - } - - protected void doSetSortOrder_InScope( - final Collection<Integer> sortOrderList) { - regINS(CK_INS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_NotInScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_NotInScope(sortOrderList); - } - - protected void doSetSortOrder_NotInScope( - final Collection<Integer> sortOrderList) { - regINS(CK_NINS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - protected void regSortOrder(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSortOrder(), "SORT_ORDER"); - } - - protected abstract ConditionValue getCValueSortOrder(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<BoostDocumentRuleCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, BoostDocumentRuleCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<BoostDocumentRuleCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, BoostDocumentRuleCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<BoostDocumentRuleCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, BoostDocumentRuleCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<BoostDocumentRuleCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, BoostDocumentRuleCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<BoostDocumentRuleCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, BoostDocumentRuleCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<BoostDocumentRuleCB>() { - * public void query(BoostDocumentRuleCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<BoostDocumentRuleCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, BoostDocumentRuleCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final BoostDocumentRuleCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(BoostDocumentRuleCQ sq); - - protected BoostDocumentRuleCB xcreateScalarConditionCB() { - final BoostDocumentRuleCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected BoostDocumentRuleCB xcreateScalarConditionPartitionByCB() { - final BoostDocumentRuleCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<BoostDocumentRuleCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(BoostDocumentRuleCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<BoostDocumentRuleCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(BoostDocumentRuleCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(BoostDocumentRuleCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<BoostDocumentRuleCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(BoostDocumentRuleCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<BoostDocumentRuleCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(BoostDocumentRuleCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected BoostDocumentRuleCB newMyCB() { - return new BoostDocumentRuleCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return BoostDocumentRuleCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsClickLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsClickLogCQ.java deleted file mode 100644 index 8f14057b2..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsClickLogCQ.java +++ /dev/null @@ -1,900 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.cq.ClickLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of CLICK_LOG. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsClickLogCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsClickLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "CLICK_LOG"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchId The value of searchId as equal. (NullAllowed: if null, no condition) - */ - public void setSearchId_Equal(final Long searchId) { - doSetSearchId_Equal(searchId); - } - - protected void doSetSearchId_Equal(final Long searchId) { - regSearchId(CK_EQ, searchId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchId The value of searchId as notEqual. (NullAllowed: if null, no condition) - */ - public void setSearchId_NotEqual(final Long searchId) { - doSetSearchId_NotEqual(searchId); - } - - protected void doSetSearchId_NotEqual(final Long searchId) { - regSearchId(CK_NES, searchId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchId The value of searchId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setSearchId_GreaterThan(final Long searchId) { - regSearchId(CK_GT, searchId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchId The value of searchId as lessThan. (NullAllowed: if null, no condition) - */ - public void setSearchId_LessThan(final Long searchId) { - regSearchId(CK_LT, searchId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchId The value of searchId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setSearchId_GreaterEqual(final Long searchId) { - regSearchId(CK_GE, searchId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchId The value of searchId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setSearchId_LessEqual(final Long searchId) { - regSearchId(CK_LE, searchId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param minNumber The min number of searchId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of searchId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setSearchId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueSearchId(), "SEARCH_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchIdList The collection of searchId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchId_InScope(final Collection<Long> searchIdList) { - doSetSearchId_InScope(searchIdList); - } - - protected void doSetSearchId_InScope(final Collection<Long> searchIdList) { - regINS(CK_INS, cTL(searchIdList), getCValueSearchId(), "SEARCH_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchIdList The collection of searchId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchId_NotInScope(final Collection<Long> searchIdList) { - doSetSearchId_NotInScope(searchIdList); - } - - protected void doSetSearchId_NotInScope(final Collection<Long> searchIdList) { - regINS(CK_NINS, cTL(searchIdList), getCValueSearchId(), "SEARCH_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select SEARCH_ID from SEARCH_LOG where ...)} <br /> - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @param subQuery The sub-query of SearchLog for 'in-scope'. (NotNull) - */ - public void inScopeSearchLog(final SubQuery<SearchLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepSearchId_InScopeRelation_SearchLog(cb.query()); - registerInScopeRelation(cb.query(), "SEARCH_ID", "ID", pp, "searchLog"); - } - - public abstract String keepSearchId_InScopeRelation_SearchLog(SearchLogCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select SEARCH_ID from SEARCH_LOG where ...)} <br /> - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @param subQuery The sub-query of SearchLog for 'not in-scope'. (NotNull) - */ - public void notInScopeSearchLog(final SubQuery<SearchLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepSearchId_NotInScopeRelation_SearchLog(cb.query()); - registerNotInScopeRelation(cb.query(), "SEARCH_ID", "ID", pp, - "searchLog"); - } - - public abstract String keepSearchId_NotInScopeRelation_SearchLog( - SearchLogCQ sq); - - protected void regSearchId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSearchId(), "SEARCH_ID"); - } - - protected abstract ConditionValue getCValueSearchId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} - * @param url The value of url as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_Equal(final String url) { - doSetUrl_Equal(fRES(url)); - } - - protected void doSetUrl_Equal(final String url) { - regUrl(CK_EQ, url); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} - * @param url The value of url as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_NotEqual(final String url) { - doSetUrl_NotEqual(fRES(url)); - } - - protected void doSetUrl_NotEqual(final String url) { - regUrl(CK_NES, url); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} - * @param url The value of url as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_GreaterThan(final String url) { - regUrl(CK_GT, fRES(url)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} - * @param url The value of url as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_LessThan(final String url) { - regUrl(CK_LT, fRES(url)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} - * @param url The value of url as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_GreaterEqual(final String url) { - regUrl(CK_GE, fRES(url)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} - * @param url The value of url as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_LessEqual(final String url) { - regUrl(CK_LE, fRES(url)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} - * @param urlList The collection of url as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_InScope(final Collection<String> urlList) { - doSetUrl_InScope(urlList); - } - - public void doSetUrl_InScope(final Collection<String> urlList) { - regINS(CK_INS, cTL(urlList), getCValueUrl(), "URL"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} - * @param urlList The collection of url as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_NotInScope(final Collection<String> urlList) { - doSetUrl_NotInScope(urlList); - } - - public void doSetUrl_NotInScope(final Collection<String> urlList) { - regINS(CK_NINS, cTL(urlList), getCValueUrl(), "URL"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} - * @param url The value of url as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_PrefixSearch(final String url) { - setUrl_LikeSearch(url, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} <br /> - * <pre>e.g. setUrl_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param url The value of url as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUrl_LikeSearch(final String url, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(url), getCValueUrl(), "URL", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} - * @param url The value of url as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUrl_NotLikeSearch(final String url, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(url), getCValueUrl(), "URL", likeSearchOption); - } - - protected void regUrl(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUrl(), "URL"); - } - - protected abstract ConditionValue getCValueUrl(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param requestedTime The value of requestedTime as equal. (NullAllowed: if null, no condition) - */ - public void setRequestedTime_Equal(final java.sql.Timestamp requestedTime) { - regRequestedTime(CK_EQ, requestedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param requestedTime The value of requestedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setRequestedTime_GreaterThan( - final java.sql.Timestamp requestedTime) { - regRequestedTime(CK_GT, requestedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param requestedTime The value of requestedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setRequestedTime_LessThan(final java.sql.Timestamp requestedTime) { - regRequestedTime(CK_LT, requestedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param requestedTime The value of requestedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setRequestedTime_GreaterEqual( - final java.sql.Timestamp requestedTime) { - regRequestedTime(CK_GE, requestedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param requestedTime The value of requestedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setRequestedTime_LessEqual( - final java.sql.Timestamp requestedTime) { - regRequestedTime(CK_LE, requestedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setRequestedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of requestedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of requestedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setRequestedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueRequestedTime(), - "REQUESTED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of requestedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of requestedTime. (NullAllowed: if null, no to-condition) - */ - public void setRequestedTime_DateFromTo(final Date fromDate, - final Date toDate) { - setRequestedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regRequestedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueRequestedTime(), "REQUESTED_TIME"); - } - - protected abstract ConditionValue getCValueRequestedTime(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<ClickLogCB>() { - * public void query(ClickLogCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<ClickLogCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, ClickLogCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<ClickLogCB>() { - * public void query(ClickLogCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<ClickLogCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, ClickLogCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<ClickLogCB>() { - * public void query(ClickLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<ClickLogCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, ClickLogCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<ClickLogCB>() { - * public void query(ClickLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<ClickLogCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, ClickLogCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<ClickLogCB>() { - * public void query(ClickLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<ClickLogCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, ClickLogCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<ClickLogCB>() { - * public void query(ClickLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<ClickLogCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, ClickLogCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final ClickLogCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(ClickLogCQ sq); - - protected ClickLogCB xcreateScalarConditionCB() { - final ClickLogCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected ClickLogCB xcreateScalarConditionPartitionByCB() { - final ClickLogCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, final SubQuery<ClickLogCB> sq, - final String al, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(ClickLogCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<ClickLogCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(ClickLogCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(ClickLogCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<ClickLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(ClickLogCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<ClickLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(ClickLogCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected ClickLogCB newMyCB() { - return new ClickLogCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return ClickLogCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsCrawlingSessionCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsCrawlingSessionCQ.java deleted file mode 100644 index 7c0c0e3b7..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsCrawlingSessionCQ.java +++ /dev/null @@ -1,1194 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.CrawlingSessionCB; -import jp.sf.fess.db.cbean.CrawlingSessionInfoCB; -import jp.sf.fess.db.cbean.cq.CrawlingSessionCQ; -import jp.sf.fess.db.cbean.cq.CrawlingSessionInfoCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpQDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of CRAWLING_SESSION. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsCrawlingSessionCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsCrawlingSessionCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "CRAWLING_SESSION"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select CRAWLING_SESSION_ID from CRAWLING_SESSION_INFO where ...)} <br /> - * CRAWLING_SESSION_INFO by CRAWLING_SESSION_ID, named 'crawlingSessionInfoAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsCrawlingSessionInfoList</span>(new SubQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of CrawlingSessionInfoList for 'exists'. (NotNull) - */ - public void existsCrawlingSessionInfoList( - final SubQuery<CrawlingSessionInfoCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_CrawlingSessionInfoList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "CRAWLING_SESSION_ID", pp, - "crawlingSessionInfoList"); - } - - public abstract String keepId_ExistsReferrer_CrawlingSessionInfoList( - CrawlingSessionInfoCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select CRAWLING_SESSION_ID from CRAWLING_SESSION_INFO where ...)} <br /> - * CRAWLING_SESSION_INFO by CRAWLING_SESSION_ID, named 'crawlingSessionInfoAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsCrawlingSessionInfoList</span>(new SubQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_CrawlingSessionInfoList for 'not exists'. (NotNull) - */ - public void notExistsCrawlingSessionInfoList( - final SubQuery<CrawlingSessionInfoCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_CrawlingSessionInfoList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "CRAWLING_SESSION_ID", pp, - "crawlingSessionInfoList"); - } - - public abstract String keepId_NotExistsReferrer_CrawlingSessionInfoList( - CrawlingSessionInfoCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select CRAWLING_SESSION_ID from CRAWLING_SESSION_INFO where ...)} <br /> - * CRAWLING_SESSION_INFO by CRAWLING_SESSION_ID, named 'crawlingSessionInfoAsOne'. - * @param subQuery The sub-query of CrawlingSessionInfoList for 'in-scope'. (NotNull) - */ - public void inScopeCrawlingSessionInfoList( - final SubQuery<CrawlingSessionInfoCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_CrawlingSessionInfoList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "CRAWLING_SESSION_ID", pp, - "crawlingSessionInfoList"); - } - - public abstract String keepId_InScopeRelation_CrawlingSessionInfoList( - CrawlingSessionInfoCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select CRAWLING_SESSION_ID from CRAWLING_SESSION_INFO where ...)} <br /> - * CRAWLING_SESSION_INFO by CRAWLING_SESSION_ID, named 'crawlingSessionInfoAsOne'. - * @param subQuery The sub-query of CrawlingSessionInfoList for 'not in-scope'. (NotNull) - */ - public void notInScopeCrawlingSessionInfoList( - final SubQuery<CrawlingSessionInfoCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_CrawlingSessionInfoList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "CRAWLING_SESSION_ID", pp, - "crawlingSessionInfoList"); - } - - public abstract String keepId_NotInScopeRelation_CrawlingSessionInfoList( - CrawlingSessionInfoCQ sq); - - public void xsderiveCrawlingSessionInfoList(final String fn, - final SubQuery<CrawlingSessionInfoCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_CrawlingSessionInfoList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", - "CRAWLING_SESSION_ID", pp, "crawlingSessionInfoList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_CrawlingSessionInfoList( - CrawlingSessionInfoCQ sq); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from CRAWLING_SESSION_INFO where ...)} <br /> - * CRAWLING_SESSION_INFO by CRAWLING_SESSION_ID, named 'crawlingSessionInfoAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedCrawlingSessionInfoList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<CrawlingSessionInfoCB> derivedCrawlingSessionInfoList() { - return xcreateQDRFunctionCrawlingSessionInfoList(); - } - - protected HpQDRFunction<CrawlingSessionInfoCB> xcreateQDRFunctionCrawlingSessionInfoList() { - return new HpQDRFunction<CrawlingSessionInfoCB>( - new HpQDRSetupper<CrawlingSessionInfoCB>() { - @Override - public void setup(final String fn, - final SubQuery<CrawlingSessionInfoCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveCrawlingSessionInfoList(fn, sq, rd, vl, op); - } - }); - } - - public void xqderiveCrawlingSessionInfoList(final String fn, - final SubQuery<CrawlingSessionInfoCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_CrawlingSessionInfoList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_CrawlingSessionInfoListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", - "CRAWLING_SESSION_ID", sqpp, "crawlingSessionInfoList", rd, vl, - prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_CrawlingSessionInfoList( - CrawlingSessionInfoCQ sq); - - public abstract String keepId_QueryDerivedReferrer_CrawlingSessionInfoListParameter( - Object vl); - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} - * @param sessionId The value of sessionId as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setSessionId_Equal(final String sessionId) { - doSetSessionId_Equal(fRES(sessionId)); - } - - protected void doSetSessionId_Equal(final String sessionId) { - regSessionId(CK_EQ, sessionId); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} - * @param sessionId The value of sessionId as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setSessionId_NotEqual(final String sessionId) { - doSetSessionId_NotEqual(fRES(sessionId)); - } - - protected void doSetSessionId_NotEqual(final String sessionId) { - regSessionId(CK_NES, sessionId); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} - * @param sessionId The value of sessionId as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setSessionId_GreaterThan(final String sessionId) { - regSessionId(CK_GT, fRES(sessionId)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} - * @param sessionId The value of sessionId as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setSessionId_LessThan(final String sessionId) { - regSessionId(CK_LT, fRES(sessionId)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} - * @param sessionId The value of sessionId as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setSessionId_GreaterEqual(final String sessionId) { - regSessionId(CK_GE, fRES(sessionId)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} - * @param sessionId The value of sessionId as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setSessionId_LessEqual(final String sessionId) { - regSessionId(CK_LE, fRES(sessionId)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} - * @param sessionIdList The collection of sessionId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSessionId_InScope(final Collection<String> sessionIdList) { - doSetSessionId_InScope(sessionIdList); - } - - public void doSetSessionId_InScope(final Collection<String> sessionIdList) { - regINS(CK_INS, cTL(sessionIdList), getCValueSessionId(), "SESSION_ID"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} - * @param sessionIdList The collection of sessionId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSessionId_NotInScope(final Collection<String> sessionIdList) { - doSetSessionId_NotInScope(sessionIdList); - } - - public void doSetSessionId_NotInScope(final Collection<String> sessionIdList) { - regINS(CK_NINS, cTL(sessionIdList), getCValueSessionId(), "SESSION_ID"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} - * @param sessionId The value of sessionId as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setSessionId_PrefixSearch(final String sessionId) { - setSessionId_LikeSearch(sessionId, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} <br /> - * <pre>e.g. setSessionId_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param sessionId The value of sessionId as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setSessionId_LikeSearch(final String sessionId, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(sessionId), getCValueSessionId(), "SESSION_ID", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} - * @param sessionId The value of sessionId as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setSessionId_NotLikeSearch(final String sessionId, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(sessionId), getCValueSessionId(), "SESSION_ID", - likeSearchOption); - } - - protected void regSessionId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSessionId(), "SESSION_ID"); - } - - protected abstract ConditionValue getCValueSessionId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - * @param name The value of name as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setName_Equal(final String name) { - doSetName_Equal(fRES(name)); - } - - protected void doSetName_Equal(final String name) { - regName(CK_EQ, name); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - * @param name The value of name as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotEqual(final String name) { - doSetName_NotEqual(fRES(name)); - } - - protected void doSetName_NotEqual(final String name) { - regName(CK_NES, name); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - * @param name The value of name as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterThan(final String name) { - regName(CK_GT, fRES(name)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - * @param name The value of name as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessThan(final String name) { - regName(CK_LT, fRES(name)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - * @param name The value of name as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterEqual(final String name) { - regName(CK_GE, fRES(name)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - * @param name The value of name as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessEqual(final String name) { - regName(CK_LE, fRES(name)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - * @param nameList The collection of name as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_InScope(final Collection<String> nameList) { - doSetName_InScope(nameList); - } - - public void doSetName_InScope(final Collection<String> nameList) { - regINS(CK_INS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - * @param nameList The collection of name as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotInScope(final Collection<String> nameList) { - doSetName_NotInScope(nameList); - } - - public void doSetName_NotInScope(final Collection<String> nameList) { - regINS(CK_NINS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - * @param name The value of name as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setName_PrefixSearch(final String name) { - setName_LikeSearch(name, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} <br /> - * <pre>e.g. setName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param name The value of name as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setName_LikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - * @param name The value of name as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setName_NotLikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - */ - public void setName_IsNull() { - regName(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - */ - public void setName_IsNullOrEmpty() { - regName(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * NAME: {IX+, VARCHAR(20)} - */ - public void setName_IsNotNull() { - regName(CK_ISNN, DOBJ); - } - - protected void regName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueName(), "NAME"); - } - - protected abstract ConditionValue getCValueName(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - * @param expiredTime The value of expiredTime as equal. (NullAllowed: if null, no condition) - */ - public void setExpiredTime_Equal(final java.sql.Timestamp expiredTime) { - regExpiredTime(CK_EQ, expiredTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - * @param expiredTime The value of expiredTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setExpiredTime_GreaterThan(final java.sql.Timestamp expiredTime) { - regExpiredTime(CK_GT, expiredTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - * @param expiredTime The value of expiredTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setExpiredTime_LessThan(final java.sql.Timestamp expiredTime) { - regExpiredTime(CK_LT, expiredTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - * @param expiredTime The value of expiredTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setExpiredTime_GreaterEqual(final java.sql.Timestamp expiredTime) { - regExpiredTime(CK_GE, expiredTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - * @param expiredTime The value of expiredTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setExpiredTime_LessEqual(final java.sql.Timestamp expiredTime) { - regExpiredTime(CK_LE, expiredTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setExpiredTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of expiredTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of expiredTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setExpiredTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueExpiredTime(), - "EXPIRED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of expiredTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of expiredTime. (NullAllowed: if null, no to-condition) - */ - public void setExpiredTime_DateFromTo(final Date fromDate, final Date toDate) { - setExpiredTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - */ - public void setExpiredTime_IsNull() { - regExpiredTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - */ - public void setExpiredTime_IsNotNull() { - regExpiredTime(CK_ISNN, DOBJ); - } - - protected void regExpiredTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueExpiredTime(), "EXPIRED_TIME"); - } - - protected abstract ConditionValue getCValueExpiredTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<CrawlingSessionCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, CrawlingSessionCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<CrawlingSessionCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, CrawlingSessionCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<CrawlingSessionCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, CrawlingSessionCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<CrawlingSessionCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, CrawlingSessionCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<CrawlingSessionCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, CrawlingSessionCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<CrawlingSessionCB>() { - * public void query(CrawlingSessionCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<CrawlingSessionCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, CrawlingSessionCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final CrawlingSessionCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(CrawlingSessionCQ sq); - - protected CrawlingSessionCB xcreateScalarConditionCB() { - final CrawlingSessionCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected CrawlingSessionCB xcreateScalarConditionPartitionByCB() { - final CrawlingSessionCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<CrawlingSessionCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(CrawlingSessionCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<CrawlingSessionCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(CrawlingSessionCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(CrawlingSessionCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<CrawlingSessionCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(CrawlingSessionCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<CrawlingSessionCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(CrawlingSessionCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected CrawlingSessionCB newMyCB() { - return new CrawlingSessionCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return CrawlingSessionCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsCrawlingSessionInfoCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsCrawlingSessionInfoCQ.java deleted file mode 100644 index 4c4f1d31b..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsCrawlingSessionInfoCQ.java +++ /dev/null @@ -1,1037 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.CrawlingSessionCB; -import jp.sf.fess.db.cbean.CrawlingSessionInfoCB; -import jp.sf.fess.db.cbean.cq.CrawlingSessionCQ; -import jp.sf.fess.db.cbean.cq.CrawlingSessionInfoCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of CRAWLING_SESSION_INFO. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsCrawlingSessionInfoCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsCrawlingSessionInfoCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "CRAWLING_SESSION_INFO"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @param crawlingSessionId The value of crawlingSessionId as equal. (NullAllowed: if null, no condition) - */ - public void setCrawlingSessionId_Equal(final Long crawlingSessionId) { - doSetCrawlingSessionId_Equal(crawlingSessionId); - } - - protected void doSetCrawlingSessionId_Equal(final Long crawlingSessionId) { - regCrawlingSessionId(CK_EQ, crawlingSessionId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @param crawlingSessionId The value of crawlingSessionId as notEqual. (NullAllowed: if null, no condition) - */ - public void setCrawlingSessionId_NotEqual(final Long crawlingSessionId) { - doSetCrawlingSessionId_NotEqual(crawlingSessionId); - } - - protected void doSetCrawlingSessionId_NotEqual(final Long crawlingSessionId) { - regCrawlingSessionId(CK_NES, crawlingSessionId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @param crawlingSessionId The value of crawlingSessionId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCrawlingSessionId_GreaterThan(final Long crawlingSessionId) { - regCrawlingSessionId(CK_GT, crawlingSessionId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @param crawlingSessionId The value of crawlingSessionId as lessThan. (NullAllowed: if null, no condition) - */ - public void setCrawlingSessionId_LessThan(final Long crawlingSessionId) { - regCrawlingSessionId(CK_LT, crawlingSessionId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @param crawlingSessionId The value of crawlingSessionId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCrawlingSessionId_GreaterEqual(final Long crawlingSessionId) { - regCrawlingSessionId(CK_GE, crawlingSessionId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @param crawlingSessionId The value of crawlingSessionId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCrawlingSessionId_LessEqual(final Long crawlingSessionId) { - regCrawlingSessionId(CK_LE, crawlingSessionId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @param minNumber The min number of crawlingSessionId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of crawlingSessionId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setCrawlingSessionId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueCrawlingSessionId(), - "CRAWLING_SESSION_ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @param crawlingSessionIdList The collection of crawlingSessionId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCrawlingSessionId_InScope( - final Collection<Long> crawlingSessionIdList) { - doSetCrawlingSessionId_InScope(crawlingSessionIdList); - } - - protected void doSetCrawlingSessionId_InScope( - final Collection<Long> crawlingSessionIdList) { - regINS(CK_INS, cTL(crawlingSessionIdList), - getCValueCrawlingSessionId(), "CRAWLING_SESSION_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @param crawlingSessionIdList The collection of crawlingSessionId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCrawlingSessionId_NotInScope( - final Collection<Long> crawlingSessionIdList) { - doSetCrawlingSessionId_NotInScope(crawlingSessionIdList); - } - - protected void doSetCrawlingSessionId_NotInScope( - final Collection<Long> crawlingSessionIdList) { - regINS(CK_NINS, cTL(crawlingSessionIdList), - getCValueCrawlingSessionId(), "CRAWLING_SESSION_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select CRAWLING_SESSION_ID from CRAWLING_SESSION where ...)} <br /> - * CRAWLING_SESSION by my CRAWLING_SESSION_ID, named 'crawlingSession'. - * @param subQuery The sub-query of CrawlingSession for 'in-scope'. (NotNull) - */ - public void inScopeCrawlingSession( - final SubQuery<CrawlingSessionCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepCrawlingSessionId_InScopeRelation_CrawlingSession(cb - .query()); - registerInScopeRelation(cb.query(), "CRAWLING_SESSION_ID", "ID", pp, - "crawlingSession"); - } - - public abstract String keepCrawlingSessionId_InScopeRelation_CrawlingSession( - CrawlingSessionCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select CRAWLING_SESSION_ID from CRAWLING_SESSION where ...)} <br /> - * CRAWLING_SESSION by my CRAWLING_SESSION_ID, named 'crawlingSession'. - * @param subQuery The sub-query of CrawlingSession for 'not in-scope'. (NotNull) - */ - public void notInScopeCrawlingSession( - final SubQuery<CrawlingSessionCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepCrawlingSessionId_NotInScopeRelation_CrawlingSession(cb - .query()); - registerNotInScopeRelation(cb.query(), "CRAWLING_SESSION_ID", "ID", pp, - "crawlingSession"); - } - - public abstract String keepCrawlingSessionId_NotInScopeRelation_CrawlingSession( - CrawlingSessionCQ sq); - - protected void regCrawlingSessionId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCrawlingSessionId(), "CRAWLING_SESSION_ID"); - } - - protected abstract ConditionValue getCValueCrawlingSessionId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * KEY: {NotNull, VARCHAR(20)} - * @param key The value of key as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setKey_Equal(final String key) { - doSetKey_Equal(fRES(key)); - } - - protected void doSetKey_Equal(final String key) { - regKey(CK_EQ, key); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * KEY: {NotNull, VARCHAR(20)} - * @param key The value of key as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setKey_NotEqual(final String key) { - doSetKey_NotEqual(fRES(key)); - } - - protected void doSetKey_NotEqual(final String key) { - regKey(CK_NES, key); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * KEY: {NotNull, VARCHAR(20)} - * @param key The value of key as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setKey_GreaterThan(final String key) { - regKey(CK_GT, fRES(key)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * KEY: {NotNull, VARCHAR(20)} - * @param key The value of key as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setKey_LessThan(final String key) { - regKey(CK_LT, fRES(key)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * KEY: {NotNull, VARCHAR(20)} - * @param key The value of key as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setKey_GreaterEqual(final String key) { - regKey(CK_GE, fRES(key)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * KEY: {NotNull, VARCHAR(20)} - * @param key The value of key as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setKey_LessEqual(final String key) { - regKey(CK_LE, fRES(key)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * KEY: {NotNull, VARCHAR(20)} - * @param keyList The collection of key as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setKey_InScope(final Collection<String> keyList) { - doSetKey_InScope(keyList); - } - - public void doSetKey_InScope(final Collection<String> keyList) { - regINS(CK_INS, cTL(keyList), getCValueKey(), "KEY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * KEY: {NotNull, VARCHAR(20)} - * @param keyList The collection of key as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setKey_NotInScope(final Collection<String> keyList) { - doSetKey_NotInScope(keyList); - } - - public void doSetKey_NotInScope(final Collection<String> keyList) { - regINS(CK_NINS, cTL(keyList), getCValueKey(), "KEY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * KEY: {NotNull, VARCHAR(20)} - * @param key The value of key as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setKey_PrefixSearch(final String key) { - setKey_LikeSearch(key, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * KEY: {NotNull, VARCHAR(20)} <br /> - * <pre>e.g. setKey_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param key The value of key as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setKey_LikeSearch(final String key, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(key), getCValueKey(), "KEY", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * KEY: {NotNull, VARCHAR(20)} - * @param key The value of key as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setKey_NotLikeSearch(final String key, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(key), getCValueKey(), "KEY", likeSearchOption); - } - - protected void regKey(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueKey(), "KEY"); - } - - protected abstract ConditionValue getCValueKey(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(100)} - * @param value The value of value as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_Equal(final String value) { - doSetValue_Equal(fRES(value)); - } - - protected void doSetValue_Equal(final String value) { - regValue(CK_EQ, value); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(100)} - * @param value The value of value as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_NotEqual(final String value) { - doSetValue_NotEqual(fRES(value)); - } - - protected void doSetValue_NotEqual(final String value) { - regValue(CK_NES, value); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(100)} - * @param value The value of value as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_GreaterThan(final String value) { - regValue(CK_GT, fRES(value)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(100)} - * @param value The value of value as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_LessThan(final String value) { - regValue(CK_LT, fRES(value)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(100)} - * @param value The value of value as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_GreaterEqual(final String value) { - regValue(CK_GE, fRES(value)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(100)} - * @param value The value of value as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_LessEqual(final String value) { - regValue(CK_LE, fRES(value)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(100)} - * @param valueList The collection of value as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_InScope(final Collection<String> valueList) { - doSetValue_InScope(valueList); - } - - public void doSetValue_InScope(final Collection<String> valueList) { - regINS(CK_INS, cTL(valueList), getCValueValue(), "VALUE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(100)} - * @param valueList The collection of value as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_NotInScope(final Collection<String> valueList) { - doSetValue_NotInScope(valueList); - } - - public void doSetValue_NotInScope(final Collection<String> valueList) { - regINS(CK_NINS, cTL(valueList), getCValueValue(), "VALUE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(100)} - * @param value The value of value as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_PrefixSearch(final String value) { - setValue_LikeSearch(value, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setValue_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param value The value of value as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setValue_LikeSearch(final String value, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(value), getCValueValue(), "VALUE", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(100)} - * @param value The value of value as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setValue_NotLikeSearch(final String value, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(value), getCValueValue(), "VALUE", likeSearchOption); - } - - protected void regValue(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueValue(), "VALUE"); - } - - protected abstract ConditionValue getCValueValue(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<CrawlingSessionInfoCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, CrawlingSessionInfoCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<CrawlingSessionInfoCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, CrawlingSessionInfoCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<CrawlingSessionInfoCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, CrawlingSessionInfoCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<CrawlingSessionInfoCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, CrawlingSessionInfoCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<CrawlingSessionInfoCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, CrawlingSessionInfoCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<CrawlingSessionInfoCB>() { - * public void query(CrawlingSessionInfoCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<CrawlingSessionInfoCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, CrawlingSessionInfoCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final CrawlingSessionInfoCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(CrawlingSessionInfoCQ sq); - - protected CrawlingSessionInfoCB xcreateScalarConditionCB() { - final CrawlingSessionInfoCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected CrawlingSessionInfoCB xcreateScalarConditionPartitionByCB() { - final CrawlingSessionInfoCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<CrawlingSessionInfoCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(CrawlingSessionInfoCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<CrawlingSessionInfoCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(CrawlingSessionInfoCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(CrawlingSessionInfoCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<CrawlingSessionInfoCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(CrawlingSessionInfoCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<CrawlingSessionInfoCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(CrawlingSessionInfoCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected CrawlingSessionInfoCB newMyCB() { - return new CrawlingSessionInfoCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return CrawlingSessionInfoCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsDataConfigToLabelTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsDataConfigToLabelTypeMappingCQ.java deleted file mode 100644 index 2050f1fbc..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsDataConfigToLabelTypeMappingCQ.java +++ /dev/null @@ -1,865 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.DataCrawlingConfigCB; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.cq.DataConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of DATA_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsDataConfigToLabelTypeMappingCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsDataConfigToLabelTypeMappingCQ( - final ConditionQuery referrerQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "DATA_CONFIG_TO_LABEL_TYPE_MAPPING"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigId The value of dataConfigId as equal. (NullAllowed: if null, no condition) - */ - public void setDataConfigId_Equal(final Long dataConfigId) { - doSetDataConfigId_Equal(dataConfigId); - } - - protected void doSetDataConfigId_Equal(final Long dataConfigId) { - regDataConfigId(CK_EQ, dataConfigId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigId The value of dataConfigId as notEqual. (NullAllowed: if null, no condition) - */ - public void setDataConfigId_NotEqual(final Long dataConfigId) { - doSetDataConfigId_NotEqual(dataConfigId); - } - - protected void doSetDataConfigId_NotEqual(final Long dataConfigId) { - regDataConfigId(CK_NES, dataConfigId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigId The value of dataConfigId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDataConfigId_GreaterThan(final Long dataConfigId) { - regDataConfigId(CK_GT, dataConfigId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigId The value of dataConfigId as lessThan. (NullAllowed: if null, no condition) - */ - public void setDataConfigId_LessThan(final Long dataConfigId) { - regDataConfigId(CK_LT, dataConfigId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigId The value of dataConfigId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDataConfigId_GreaterEqual(final Long dataConfigId) { - regDataConfigId(CK_GE, dataConfigId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigId The value of dataConfigId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDataConfigId_LessEqual(final Long dataConfigId) { - regDataConfigId(CK_LE, dataConfigId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param minNumber The min number of dataConfigId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of dataConfigId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setDataConfigId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueDataConfigId(), "DATA_CONFIG_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigIdList The collection of dataConfigId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDataConfigId_InScope(final Collection<Long> dataConfigIdList) { - doSetDataConfigId_InScope(dataConfigIdList); - } - - protected void doSetDataConfigId_InScope( - final Collection<Long> dataConfigIdList) { - regINS(CK_INS, cTL(dataConfigIdList), getCValueDataConfigId(), - "DATA_CONFIG_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigIdList The collection of dataConfigId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDataConfigId_NotInScope( - final Collection<Long> dataConfigIdList) { - doSetDataConfigId_NotInScope(dataConfigIdList); - } - - protected void doSetDataConfigId_NotInScope( - final Collection<Long> dataConfigIdList) { - regINS(CK_NINS, cTL(dataConfigIdList), getCValueDataConfigId(), - "DATA_CONFIG_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select DATA_CONFIG_ID from DATA_CRAWLING_CONFIG where ...)} <br /> - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @param subQuery The sub-query of DataCrawlingConfig for 'in-scope'. (NotNull) - */ - public void inScopeDataCrawlingConfig( - final SubQuery<DataCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepDataConfigId_InScopeRelation_DataCrawlingConfig(cb - .query()); - registerInScopeRelation(cb.query(), "DATA_CONFIG_ID", "ID", pp, - "dataCrawlingConfig"); - } - - public abstract String keepDataConfigId_InScopeRelation_DataCrawlingConfig( - DataCrawlingConfigCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select DATA_CONFIG_ID from DATA_CRAWLING_CONFIG where ...)} <br /> - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @param subQuery The sub-query of DataCrawlingConfig for 'not in-scope'. (NotNull) - */ - public void notInScopeDataCrawlingConfig( - final SubQuery<DataCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepDataConfigId_NotInScopeRelation_DataCrawlingConfig(cb - .query()); - registerNotInScopeRelation(cb.query(), "DATA_CONFIG_ID", "ID", pp, - "dataCrawlingConfig"); - } - - public abstract String keepDataConfigId_NotInScopeRelation_DataCrawlingConfig( - DataCrawlingConfigCQ sq); - - protected void regDataConfigId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDataConfigId(), "DATA_CONFIG_ID"); - } - - protected abstract ConditionValue getCValueDataConfigId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as equal. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_Equal(final Long labelTypeId) { - doSetLabelTypeId_Equal(labelTypeId); - } - - protected void doSetLabelTypeId_Equal(final Long labelTypeId) { - regLabelTypeId(CK_EQ, labelTypeId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as notEqual. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_NotEqual(final Long labelTypeId) { - doSetLabelTypeId_NotEqual(labelTypeId); - } - - protected void doSetLabelTypeId_NotEqual(final Long labelTypeId) { - regLabelTypeId(CK_NES, labelTypeId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_GreaterThan(final Long labelTypeId) { - regLabelTypeId(CK_GT, labelTypeId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as lessThan. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_LessThan(final Long labelTypeId) { - regLabelTypeId(CK_LT, labelTypeId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_GreaterEqual(final Long labelTypeId) { - regLabelTypeId(CK_GE, labelTypeId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_LessEqual(final Long labelTypeId) { - regLabelTypeId(CK_LE, labelTypeId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param minNumber The min number of labelTypeId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of labelTypeId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setLabelTypeId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueLabelTypeId(), "LABEL_TYPE_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeIdList The collection of labelTypeId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setLabelTypeId_InScope(final Collection<Long> labelTypeIdList) { - doSetLabelTypeId_InScope(labelTypeIdList); - } - - protected void doSetLabelTypeId_InScope( - final Collection<Long> labelTypeIdList) { - regINS(CK_INS, cTL(labelTypeIdList), getCValueLabelTypeId(), - "LABEL_TYPE_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeIdList The collection of labelTypeId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setLabelTypeId_NotInScope(final Collection<Long> labelTypeIdList) { - doSetLabelTypeId_NotInScope(labelTypeIdList); - } - - protected void doSetLabelTypeId_NotInScope( - final Collection<Long> labelTypeIdList) { - regINS(CK_NINS, cTL(labelTypeIdList), getCValueLabelTypeId(), - "LABEL_TYPE_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select LABEL_TYPE_ID from LABEL_TYPE where ...)} <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @param subQuery The sub-query of LabelType for 'in-scope'. (NotNull) - */ - public void inScopeLabelType(final SubQuery<LabelTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepLabelTypeId_InScopeRelation_LabelType(cb.query()); - registerInScopeRelation(cb.query(), "LABEL_TYPE_ID", "ID", pp, - "labelType"); - } - - public abstract String keepLabelTypeId_InScopeRelation_LabelType( - LabelTypeCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select LABEL_TYPE_ID from LABEL_TYPE where ...)} <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @param subQuery The sub-query of LabelType for 'not in-scope'. (NotNull) - */ - public void notInScopeLabelType(final SubQuery<LabelTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepLabelTypeId_NotInScopeRelation_LabelType(cb - .query()); - registerNotInScopeRelation(cb.query(), "LABEL_TYPE_ID", "ID", pp, - "labelType"); - } - - public abstract String keepLabelTypeId_NotInScopeRelation_LabelType( - LabelTypeCQ sq); - - protected void regLabelTypeId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueLabelTypeId(), "LABEL_TYPE_ID"); - } - - protected abstract ConditionValue getCValueLabelTypeId(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataConfigToLabelTypeMappingCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, DataConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataConfigToLabelTypeMappingCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, DataConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataConfigToLabelTypeMappingCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, DataConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataConfigToLabelTypeMappingCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, DataConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataConfigToLabelTypeMappingCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, DataConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataConfigToLabelTypeMappingCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, DataConfigToLabelTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToLabelTypeMappingCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(DataConfigToLabelTypeMappingCQ sq); - - protected DataConfigToLabelTypeMappingCB xcreateScalarConditionCB() { - final DataConfigToLabelTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected DataConfigToLabelTypeMappingCB xcreateScalarConditionPartitionByCB() { - final DataConfigToLabelTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<DataConfigToLabelTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived( - DataConfigToLabelTypeMappingCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<DataConfigToLabelTypeMappingCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(DataConfigToLabelTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived( - DataConfigToLabelTypeMappingCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists( - final SubQuery<DataConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(DataConfigToLabelTypeMappingCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope( - final SubQuery<DataConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(DataConfigToLabelTypeMappingCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected DataConfigToLabelTypeMappingCB newMyCB() { - return new DataConfigToLabelTypeMappingCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return DataConfigToLabelTypeMappingCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsDataConfigToRoleTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsDataConfigToRoleTypeMappingCQ.java deleted file mode 100644 index 53b7a35ef..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsDataConfigToRoleTypeMappingCQ.java +++ /dev/null @@ -1,862 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.DataCrawlingConfigCB; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.cq.DataConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of DATA_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsDataConfigToRoleTypeMappingCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsDataConfigToRoleTypeMappingCQ( - final ConditionQuery referrerQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "DATA_CONFIG_TO_ROLE_TYPE_MAPPING"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigId The value of dataConfigId as equal. (NullAllowed: if null, no condition) - */ - public void setDataConfigId_Equal(final Long dataConfigId) { - doSetDataConfigId_Equal(dataConfigId); - } - - protected void doSetDataConfigId_Equal(final Long dataConfigId) { - regDataConfigId(CK_EQ, dataConfigId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigId The value of dataConfigId as notEqual. (NullAllowed: if null, no condition) - */ - public void setDataConfigId_NotEqual(final Long dataConfigId) { - doSetDataConfigId_NotEqual(dataConfigId); - } - - protected void doSetDataConfigId_NotEqual(final Long dataConfigId) { - regDataConfigId(CK_NES, dataConfigId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigId The value of dataConfigId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDataConfigId_GreaterThan(final Long dataConfigId) { - regDataConfigId(CK_GT, dataConfigId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigId The value of dataConfigId as lessThan. (NullAllowed: if null, no condition) - */ - public void setDataConfigId_LessThan(final Long dataConfigId) { - regDataConfigId(CK_LT, dataConfigId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigId The value of dataConfigId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDataConfigId_GreaterEqual(final Long dataConfigId) { - regDataConfigId(CK_GE, dataConfigId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigId The value of dataConfigId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDataConfigId_LessEqual(final Long dataConfigId) { - regDataConfigId(CK_LE, dataConfigId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param minNumber The min number of dataConfigId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of dataConfigId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setDataConfigId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueDataConfigId(), "DATA_CONFIG_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigIdList The collection of dataConfigId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDataConfigId_InScope(final Collection<Long> dataConfigIdList) { - doSetDataConfigId_InScope(dataConfigIdList); - } - - protected void doSetDataConfigId_InScope( - final Collection<Long> dataConfigIdList) { - regINS(CK_INS, cTL(dataConfigIdList), getCValueDataConfigId(), - "DATA_CONFIG_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @param dataConfigIdList The collection of dataConfigId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDataConfigId_NotInScope( - final Collection<Long> dataConfigIdList) { - doSetDataConfigId_NotInScope(dataConfigIdList); - } - - protected void doSetDataConfigId_NotInScope( - final Collection<Long> dataConfigIdList) { - regINS(CK_NINS, cTL(dataConfigIdList), getCValueDataConfigId(), - "DATA_CONFIG_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select DATA_CONFIG_ID from DATA_CRAWLING_CONFIG where ...)} <br /> - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @param subQuery The sub-query of DataCrawlingConfig for 'in-scope'. (NotNull) - */ - public void inScopeDataCrawlingConfig( - final SubQuery<DataCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepDataConfigId_InScopeRelation_DataCrawlingConfig(cb - .query()); - registerInScopeRelation(cb.query(), "DATA_CONFIG_ID", "ID", pp, - "dataCrawlingConfig"); - } - - public abstract String keepDataConfigId_InScopeRelation_DataCrawlingConfig( - DataCrawlingConfigCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select DATA_CONFIG_ID from DATA_CRAWLING_CONFIG where ...)} <br /> - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @param subQuery The sub-query of DataCrawlingConfig for 'not in-scope'. (NotNull) - */ - public void notInScopeDataCrawlingConfig( - final SubQuery<DataCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepDataConfigId_NotInScopeRelation_DataCrawlingConfig(cb - .query()); - registerNotInScopeRelation(cb.query(), "DATA_CONFIG_ID", "ID", pp, - "dataCrawlingConfig"); - } - - public abstract String keepDataConfigId_NotInScopeRelation_DataCrawlingConfig( - DataCrawlingConfigCQ sq); - - protected void regDataConfigId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDataConfigId(), "DATA_CONFIG_ID"); - } - - protected abstract ConditionValue getCValueDataConfigId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as equal. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_Equal(final Long roleTypeId) { - doSetRoleTypeId_Equal(roleTypeId); - } - - protected void doSetRoleTypeId_Equal(final Long roleTypeId) { - regRoleTypeId(CK_EQ, roleTypeId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as notEqual. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_NotEqual(final Long roleTypeId) { - doSetRoleTypeId_NotEqual(roleTypeId); - } - - protected void doSetRoleTypeId_NotEqual(final Long roleTypeId) { - regRoleTypeId(CK_NES, roleTypeId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_GreaterThan(final Long roleTypeId) { - regRoleTypeId(CK_GT, roleTypeId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as lessThan. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_LessThan(final Long roleTypeId) { - regRoleTypeId(CK_LT, roleTypeId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_GreaterEqual(final Long roleTypeId) { - regRoleTypeId(CK_GE, roleTypeId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_LessEqual(final Long roleTypeId) { - regRoleTypeId(CK_LE, roleTypeId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param minNumber The min number of roleTypeId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of roleTypeId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setRoleTypeId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueRoleTypeId(), "ROLE_TYPE_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeIdList The collection of roleTypeId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setRoleTypeId_InScope(final Collection<Long> roleTypeIdList) { - doSetRoleTypeId_InScope(roleTypeIdList); - } - - protected void doSetRoleTypeId_InScope(final Collection<Long> roleTypeIdList) { - regINS(CK_INS, cTL(roleTypeIdList), getCValueRoleTypeId(), - "ROLE_TYPE_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeIdList The collection of roleTypeId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setRoleTypeId_NotInScope(final Collection<Long> roleTypeIdList) { - doSetRoleTypeId_NotInScope(roleTypeIdList); - } - - protected void doSetRoleTypeId_NotInScope( - final Collection<Long> roleTypeIdList) { - regINS(CK_NINS, cTL(roleTypeIdList), getCValueRoleTypeId(), - "ROLE_TYPE_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select ROLE_TYPE_ID from ROLE_TYPE where ...)} <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @param subQuery The sub-query of RoleType for 'in-scope'. (NotNull) - */ - public void inScopeRoleType(final SubQuery<RoleTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepRoleTypeId_InScopeRelation_RoleType(cb.query()); - registerInScopeRelation(cb.query(), "ROLE_TYPE_ID", "ID", pp, - "roleType"); - } - - public abstract String keepRoleTypeId_InScopeRelation_RoleType(RoleTypeCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select ROLE_TYPE_ID from ROLE_TYPE where ...)} <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @param subQuery The sub-query of RoleType for 'not in-scope'. (NotNull) - */ - public void notInScopeRoleType(final SubQuery<RoleTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepRoleTypeId_NotInScopeRelation_RoleType(cb.query()); - registerNotInScopeRelation(cb.query(), "ROLE_TYPE_ID", "ID", pp, - "roleType"); - } - - public abstract String keepRoleTypeId_NotInScopeRelation_RoleType( - RoleTypeCQ sq); - - protected void regRoleTypeId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueRoleTypeId(), "ROLE_TYPE_ID"); - } - - protected abstract ConditionValue getCValueRoleTypeId(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataConfigToRoleTypeMappingCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, DataConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataConfigToRoleTypeMappingCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, DataConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataConfigToRoleTypeMappingCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, DataConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataConfigToRoleTypeMappingCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, DataConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataConfigToRoleTypeMappingCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, DataConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataConfigToRoleTypeMappingCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, DataConfigToRoleTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToRoleTypeMappingCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(DataConfigToRoleTypeMappingCQ sq); - - protected DataConfigToRoleTypeMappingCB xcreateScalarConditionCB() { - final DataConfigToRoleTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected DataConfigToRoleTypeMappingCB xcreateScalarConditionPartitionByCB() { - final DataConfigToRoleTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<DataConfigToRoleTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived( - DataConfigToRoleTypeMappingCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<DataConfigToRoleTypeMappingCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(DataConfigToRoleTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived( - DataConfigToRoleTypeMappingCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists( - final SubQuery<DataConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(DataConfigToRoleTypeMappingCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope( - final SubQuery<DataConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(DataConfigToRoleTypeMappingCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected DataConfigToRoleTypeMappingCB newMyCB() { - return new DataConfigToRoleTypeMappingCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return DataConfigToRoleTypeMappingCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsDataCrawlingConfigCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsDataCrawlingConfigCQ.java deleted file mode 100644 index 4b32d4cfd..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsDataCrawlingConfigCQ.java +++ /dev/null @@ -1,2692 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.DataCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.DataConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpQDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of DATA_CRAWLING_CONFIG. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsDataCrawlingConfigCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsDataCrawlingConfigCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "DATA_CRAWLING_CONFIG"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select DATA_CONFIG_ID from DATA_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsDataConfigToLabelTypeMappingList</span>(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of DataConfigToLabelTypeMappingList for 'exists'. (NotNull) - */ - public void existsDataConfigToLabelTypeMappingList( - final SubQuery<DataConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_DataConfigToLabelTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "DATA_CONFIG_ID", pp, - "dataConfigToLabelTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_DataConfigToLabelTypeMappingList( - DataConfigToLabelTypeMappingCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select DATA_CONFIG_ID from DATA_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsDataConfigToRoleTypeMappingList</span>(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of DataConfigToRoleTypeMappingList for 'exists'. (NotNull) - */ - public void existsDataConfigToRoleTypeMappingList( - final SubQuery<DataConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_DataConfigToRoleTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "DATA_CONFIG_ID", pp, - "dataConfigToRoleTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_DataConfigToRoleTypeMappingList( - DataConfigToRoleTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select DATA_CONFIG_ID from DATA_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsDataConfigToLabelTypeMappingList</span>(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_DataConfigToLabelTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsDataConfigToLabelTypeMappingList( - final SubQuery<DataConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_DataConfigToLabelTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "DATA_CONFIG_ID", pp, - "dataConfigToLabelTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_DataConfigToLabelTypeMappingList( - DataConfigToLabelTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select DATA_CONFIG_ID from DATA_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsDataConfigToRoleTypeMappingList</span>(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_DataConfigToRoleTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsDataConfigToRoleTypeMappingList( - final SubQuery<DataConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_DataConfigToRoleTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "DATA_CONFIG_ID", pp, - "dataConfigToRoleTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_DataConfigToRoleTypeMappingList( - DataConfigToRoleTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select DATA_CONFIG_ID from DATA_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToLabelTypeMappingAsOne'. - * @param subQuery The sub-query of DataConfigToLabelTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeDataConfigToLabelTypeMappingList( - final SubQuery<DataConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_DataConfigToLabelTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "DATA_CONFIG_ID", pp, - "dataConfigToLabelTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_DataConfigToLabelTypeMappingList( - DataConfigToLabelTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select DATA_CONFIG_ID from DATA_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of DataConfigToRoleTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeDataConfigToRoleTypeMappingList( - final SubQuery<DataConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_DataConfigToRoleTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "DATA_CONFIG_ID", pp, - "dataConfigToRoleTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_DataConfigToRoleTypeMappingList( - DataConfigToRoleTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select DATA_CONFIG_ID from DATA_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToLabelTypeMappingAsOne'. - * @param subQuery The sub-query of DataConfigToLabelTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeDataConfigToLabelTypeMappingList( - final SubQuery<DataConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_DataConfigToLabelTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "DATA_CONFIG_ID", pp, - "dataConfigToLabelTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_DataConfigToLabelTypeMappingList( - DataConfigToLabelTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select DATA_CONFIG_ID from DATA_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of DataConfigToRoleTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeDataConfigToRoleTypeMappingList( - final SubQuery<DataConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_DataConfigToRoleTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "DATA_CONFIG_ID", pp, - "dataConfigToRoleTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_DataConfigToRoleTypeMappingList( - DataConfigToRoleTypeMappingCQ sq); - - public void xsderiveDataConfigToLabelTypeMappingList(final String fn, - final SubQuery<DataConfigToLabelTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "DATA_CONFIG_ID", - pp, "dataConfigToLabelTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList( - DataConfigToLabelTypeMappingCQ sq); - - public void xsderiveDataConfigToRoleTypeMappingList(final String fn, - final SubQuery<DataConfigToRoleTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "DATA_CONFIG_ID", - pp, "dataConfigToRoleTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList( - DataConfigToRoleTypeMappingCQ sq); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from DATA_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedDataConfigToLabelTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<DataConfigToLabelTypeMappingCB> derivedDataConfigToLabelTypeMappingList() { - return xcreateQDRFunctionDataConfigToLabelTypeMappingList(); - } - - protected HpQDRFunction<DataConfigToLabelTypeMappingCB> xcreateQDRFunctionDataConfigToLabelTypeMappingList() { - return new HpQDRFunction<DataConfigToLabelTypeMappingCB>( - new HpQDRSetupper<DataConfigToLabelTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<DataConfigToLabelTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveDataConfigToLabelTypeMappingList(fn, sq, rd, - vl, op); - } - }); - } - - public void xqderiveDataConfigToLabelTypeMappingList(final String fn, - final SubQuery<DataConfigToLabelTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "DATA_CONFIG_ID", - sqpp, "dataConfigToLabelTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingList( - DataConfigToLabelTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from DATA_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by DATA_CONFIG_ID, named 'dataConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedDataConfigToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<DataConfigToRoleTypeMappingCB> derivedDataConfigToRoleTypeMappingList() { - return xcreateQDRFunctionDataConfigToRoleTypeMappingList(); - } - - protected HpQDRFunction<DataConfigToRoleTypeMappingCB> xcreateQDRFunctionDataConfigToRoleTypeMappingList() { - return new HpQDRFunction<DataConfigToRoleTypeMappingCB>( - new HpQDRSetupper<DataConfigToRoleTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<DataConfigToRoleTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveDataConfigToRoleTypeMappingList(fn, sq, rd, vl, - op); - } - }); - } - - public void xqderiveDataConfigToRoleTypeMappingList(final String fn, - final SubQuery<DataConfigToRoleTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "DATA_CONFIG_ID", - sqpp, "dataConfigToRoleTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingList( - DataConfigToRoleTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingListParameter( - Object vl); - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setName_Equal(final String name) { - doSetName_Equal(fRES(name)); - } - - protected void doSetName_Equal(final String name) { - regName(CK_EQ, name); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotEqual(final String name) { - doSetName_NotEqual(fRES(name)); - } - - protected void doSetName_NotEqual(final String name) { - regName(CK_NES, name); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterThan(final String name) { - regName(CK_GT, fRES(name)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessThan(final String name) { - regName(CK_LT, fRES(name)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterEqual(final String name) { - regName(CK_GE, fRES(name)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessEqual(final String name) { - regName(CK_LE, fRES(name)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param nameList The collection of name as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_InScope(final Collection<String> nameList) { - doSetName_InScope(nameList); - } - - public void doSetName_InScope(final Collection<String> nameList) { - regINS(CK_INS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param nameList The collection of name as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotInScope(final Collection<String> nameList) { - doSetName_NotInScope(nameList); - } - - public void doSetName_NotInScope(final Collection<String> nameList) { - regINS(CK_NINS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setName_PrefixSearch(final String name) { - setName_LikeSearch(name, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} <br /> - * <pre>e.g. setName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param name The value of name as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setName_LikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setName_NotLikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - protected void regName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueName(), "NAME"); - } - - protected abstract ConditionValue getCValueName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @param handlerName The value of handlerName as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerName_Equal(final String handlerName) { - doSetHandlerName_Equal(fRES(handlerName)); - } - - protected void doSetHandlerName_Equal(final String handlerName) { - regHandlerName(CK_EQ, handlerName); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @param handlerName The value of handlerName as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerName_NotEqual(final String handlerName) { - doSetHandlerName_NotEqual(fRES(handlerName)); - } - - protected void doSetHandlerName_NotEqual(final String handlerName) { - regHandlerName(CK_NES, handlerName); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @param handlerName The value of handlerName as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerName_GreaterThan(final String handlerName) { - regHandlerName(CK_GT, fRES(handlerName)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @param handlerName The value of handlerName as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerName_LessThan(final String handlerName) { - regHandlerName(CK_LT, fRES(handlerName)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @param handlerName The value of handlerName as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerName_GreaterEqual(final String handlerName) { - regHandlerName(CK_GE, fRES(handlerName)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @param handlerName The value of handlerName as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerName_LessEqual(final String handlerName) { - regHandlerName(CK_LE, fRES(handlerName)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @param handlerNameList The collection of handlerName as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerName_InScope(final Collection<String> handlerNameList) { - doSetHandlerName_InScope(handlerNameList); - } - - public void doSetHandlerName_InScope( - final Collection<String> handlerNameList) { - regINS(CK_INS, cTL(handlerNameList), getCValueHandlerName(), - "HANDLER_NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @param handlerNameList The collection of handlerName as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerName_NotInScope( - final Collection<String> handlerNameList) { - doSetHandlerName_NotInScope(handlerNameList); - } - - public void doSetHandlerName_NotInScope( - final Collection<String> handlerNameList) { - regINS(CK_NINS, cTL(handlerNameList), getCValueHandlerName(), - "HANDLER_NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @param handlerName The value of handlerName as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerName_PrefixSearch(final String handlerName) { - setHandlerName_LikeSearch(handlerName, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} <br /> - * <pre>e.g. setHandlerName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param handlerName The value of handlerName as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setHandlerName_LikeSearch(final String handlerName, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(handlerName), getCValueHandlerName(), - "HANDLER_NAME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @param handlerName The value of handlerName as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setHandlerName_NotLikeSearch(final String handlerName, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(handlerName), getCValueHandlerName(), - "HANDLER_NAME", likeSearchOption); - } - - protected void regHandlerName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueHandlerName(), "HANDLER_NAME"); - } - - protected abstract ConditionValue getCValueHandlerName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @param handlerParameter The value of handlerParameter as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerParameter_Equal(final String handlerParameter) { - doSetHandlerParameter_Equal(fRES(handlerParameter)); - } - - protected void doSetHandlerParameter_Equal(final String handlerParameter) { - regHandlerParameter(CK_EQ, handlerParameter); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @param handlerParameter The value of handlerParameter as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerParameter_NotEqual(final String handlerParameter) { - doSetHandlerParameter_NotEqual(fRES(handlerParameter)); - } - - protected void doSetHandlerParameter_NotEqual(final String handlerParameter) { - regHandlerParameter(CK_NES, handlerParameter); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @param handlerParameter The value of handlerParameter as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerParameter_GreaterThan(final String handlerParameter) { - regHandlerParameter(CK_GT, fRES(handlerParameter)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @param handlerParameter The value of handlerParameter as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerParameter_LessThan(final String handlerParameter) { - regHandlerParameter(CK_LT, fRES(handlerParameter)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @param handlerParameter The value of handlerParameter as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerParameter_GreaterEqual(final String handlerParameter) { - regHandlerParameter(CK_GE, fRES(handlerParameter)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @param handlerParameter The value of handlerParameter as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerParameter_LessEqual(final String handlerParameter) { - regHandlerParameter(CK_LE, fRES(handlerParameter)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @param handlerParameterList The collection of handlerParameter as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerParameter_InScope( - final Collection<String> handlerParameterList) { - doSetHandlerParameter_InScope(handlerParameterList); - } - - public void doSetHandlerParameter_InScope( - final Collection<String> handlerParameterList) { - regINS(CK_INS, cTL(handlerParameterList), getCValueHandlerParameter(), - "HANDLER_PARAMETER"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @param handlerParameterList The collection of handlerParameter as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerParameter_NotInScope( - final Collection<String> handlerParameterList) { - doSetHandlerParameter_NotInScope(handlerParameterList); - } - - public void doSetHandlerParameter_NotInScope( - final Collection<String> handlerParameterList) { - regINS(CK_NINS, cTL(handlerParameterList), getCValueHandlerParameter(), - "HANDLER_PARAMETER"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @param handlerParameter The value of handlerParameter as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerParameter_PrefixSearch(final String handlerParameter) { - setHandlerParameter_LikeSearch(handlerParameter, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} <br /> - * <pre>e.g. setHandlerParameter_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param handlerParameter The value of handlerParameter as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setHandlerParameter_LikeSearch(final String handlerParameter, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(handlerParameter), getCValueHandlerParameter(), - "HANDLER_PARAMETER", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @param handlerParameter The value of handlerParameter as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setHandlerParameter_NotLikeSearch( - final String handlerParameter, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(handlerParameter), getCValueHandlerParameter(), - "HANDLER_PARAMETER", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - */ - public void setHandlerParameter_IsNull() { - regHandlerParameter(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - */ - public void setHandlerParameter_IsNullOrEmpty() { - regHandlerParameter(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - */ - public void setHandlerParameter_IsNotNull() { - regHandlerParameter(CK_ISNN, DOBJ); - } - - protected void regHandlerParameter(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueHandlerParameter(), "HANDLER_PARAMETER"); - } - - protected abstract ConditionValue getCValueHandlerParameter(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @param handlerScript The value of handlerScript as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerScript_Equal(final String handlerScript) { - doSetHandlerScript_Equal(fRES(handlerScript)); - } - - protected void doSetHandlerScript_Equal(final String handlerScript) { - regHandlerScript(CK_EQ, handlerScript); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @param handlerScript The value of handlerScript as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerScript_NotEqual(final String handlerScript) { - doSetHandlerScript_NotEqual(fRES(handlerScript)); - } - - protected void doSetHandlerScript_NotEqual(final String handlerScript) { - regHandlerScript(CK_NES, handlerScript); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @param handlerScript The value of handlerScript as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerScript_GreaterThan(final String handlerScript) { - regHandlerScript(CK_GT, fRES(handlerScript)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @param handlerScript The value of handlerScript as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerScript_LessThan(final String handlerScript) { - regHandlerScript(CK_LT, fRES(handlerScript)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @param handlerScript The value of handlerScript as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerScript_GreaterEqual(final String handlerScript) { - regHandlerScript(CK_GE, fRES(handlerScript)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @param handlerScript The value of handlerScript as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerScript_LessEqual(final String handlerScript) { - regHandlerScript(CK_LE, fRES(handlerScript)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @param handlerScriptList The collection of handlerScript as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerScript_InScope( - final Collection<String> handlerScriptList) { - doSetHandlerScript_InScope(handlerScriptList); - } - - public void doSetHandlerScript_InScope( - final Collection<String> handlerScriptList) { - regINS(CK_INS, cTL(handlerScriptList), getCValueHandlerScript(), - "HANDLER_SCRIPT"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @param handlerScriptList The collection of handlerScript as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerScript_NotInScope( - final Collection<String> handlerScriptList) { - doSetHandlerScript_NotInScope(handlerScriptList); - } - - public void doSetHandlerScript_NotInScope( - final Collection<String> handlerScriptList) { - regINS(CK_NINS, cTL(handlerScriptList), getCValueHandlerScript(), - "HANDLER_SCRIPT"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @param handlerScript The value of handlerScript as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setHandlerScript_PrefixSearch(final String handlerScript) { - setHandlerScript_LikeSearch(handlerScript, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} <br /> - * <pre>e.g. setHandlerScript_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param handlerScript The value of handlerScript as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setHandlerScript_LikeSearch(final String handlerScript, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(handlerScript), getCValueHandlerScript(), - "HANDLER_SCRIPT", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @param handlerScript The value of handlerScript as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setHandlerScript_NotLikeSearch(final String handlerScript, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(handlerScript), getCValueHandlerScript(), - "HANDLER_SCRIPT", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - */ - public void setHandlerScript_IsNull() { - regHandlerScript(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - */ - public void setHandlerScript_IsNullOrEmpty() { - regHandlerScript(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - */ - public void setHandlerScript_IsNotNull() { - regHandlerScript(CK_ISNN, DOBJ); - } - - protected void regHandlerScript(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueHandlerScript(), "HANDLER_SCRIPT"); - } - - protected abstract ConditionValue getCValueHandlerScript(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as equal. (NullAllowed: if null, no condition) - */ - public void setBoost_Equal(final java.math.BigDecimal boost) { - doSetBoost_Equal(boost); - } - - protected void doSetBoost_Equal(final java.math.BigDecimal boost) { - regBoost(CK_EQ, boost); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as notEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_NotEqual(final java.math.BigDecimal boost) { - doSetBoost_NotEqual(boost); - } - - protected void doSetBoost_NotEqual(final java.math.BigDecimal boost) { - regBoost(CK_NES, boost); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as greaterThan. (NullAllowed: if null, no condition) - */ - public void setBoost_GreaterThan(final java.math.BigDecimal boost) { - regBoost(CK_GT, boost); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as lessThan. (NullAllowed: if null, no condition) - */ - public void setBoost_LessThan(final java.math.BigDecimal boost) { - regBoost(CK_LT, boost); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_GreaterEqual(final java.math.BigDecimal boost) { - regBoost(CK_GE, boost); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as lessEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_LessEqual(final java.math.BigDecimal boost) { - regBoost(CK_LE, boost); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param minNumber The min number of boost. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of boost. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setBoost_RangeOf(final java.math.BigDecimal minNumber, - final java.math.BigDecimal maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueBoost(), "BOOST", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boostList The collection of boost as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setBoost_InScope( - final Collection<java.math.BigDecimal> boostList) { - doSetBoost_InScope(boostList); - } - - protected void doSetBoost_InScope( - final Collection<java.math.BigDecimal> boostList) { - regINS(CK_INS, cTL(boostList), getCValueBoost(), "BOOST"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boostList The collection of boost as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setBoost_NotInScope( - final Collection<java.math.BigDecimal> boostList) { - doSetBoost_NotInScope(boostList); - } - - protected void doSetBoost_NotInScope( - final Collection<java.math.BigDecimal> boostList) { - regINS(CK_NINS, cTL(boostList), getCValueBoost(), "BOOST"); - } - - protected void regBoost(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueBoost(), "BOOST"); - } - - protected abstract ConditionValue getCValueBoost(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_Equal(final String available) { - doSetAvailable_Equal(fRES(available)); - } - - protected void doSetAvailable_Equal(final String available) { - regAvailable(CK_EQ, available); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_NotEqual(final String available) { - doSetAvailable_NotEqual(fRES(available)); - } - - protected void doSetAvailable_NotEqual(final String available) { - regAvailable(CK_NES, available); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_GreaterThan(final String available) { - regAvailable(CK_GT, fRES(available)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_LessThan(final String available) { - regAvailable(CK_LT, fRES(available)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_GreaterEqual(final String available) { - regAvailable(CK_GE, fRES(available)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_LessEqual(final String available) { - regAvailable(CK_LE, fRES(available)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param availableList The collection of available as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_InScope(final Collection<String> availableList) { - doSetAvailable_InScope(availableList); - } - - public void doSetAvailable_InScope(final Collection<String> availableList) { - regINS(CK_INS, cTL(availableList), getCValueAvailable(), "AVAILABLE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param availableList The collection of available as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_NotInScope(final Collection<String> availableList) { - doSetAvailable_NotInScope(availableList); - } - - public void doSetAvailable_NotInScope(final Collection<String> availableList) { - regINS(CK_NINS, cTL(availableList), getCValueAvailable(), "AVAILABLE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_PrefixSearch(final String available) { - setAvailable_LikeSearch(available, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} <br /> - * <pre>e.g. setAvailable_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param available The value of available as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setAvailable_LikeSearch(final String available, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(available), getCValueAvailable(), "AVAILABLE", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setAvailable_NotLikeSearch(final String available, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(available), getCValueAvailable(), "AVAILABLE", - likeSearchOption); - } - - protected void regAvailable(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueAvailable(), "AVAILABLE"); - } - - protected abstract ConditionValue getCValueAvailable(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as equal. (NullAllowed: if null, no condition) - */ - public void setSortOrder_Equal(final Integer sortOrder) { - doSetSortOrder_Equal(sortOrder); - } - - protected void doSetSortOrder_Equal(final Integer sortOrder) { - regSortOrder(CK_EQ, sortOrder); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as notEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_NotEqual(final Integer sortOrder) { - doSetSortOrder_NotEqual(sortOrder); - } - - protected void doSetSortOrder_NotEqual(final Integer sortOrder) { - regSortOrder(CK_NES, sortOrder); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterThan(final Integer sortOrder) { - regSortOrder(CK_GT, sortOrder); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessThan(final Integer sortOrder) { - regSortOrder(CK_LT, sortOrder); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterEqual(final Integer sortOrder) { - regSortOrder(CK_GE, sortOrder); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessEqual(final Integer sortOrder) { - regSortOrder(CK_LE, sortOrder); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param minNumber The min number of sortOrder. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of sortOrder. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setSortOrder_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueSortOrder(), "SORT_ORDER", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_InScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_InScope(sortOrderList); - } - - protected void doSetSortOrder_InScope( - final Collection<Integer> sortOrderList) { - regINS(CK_INS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_NotInScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_NotInScope(sortOrderList); - } - - protected void doSetSortOrder_NotInScope( - final Collection<Integer> sortOrderList) { - regINS(CK_NINS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - protected void regSortOrder(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSortOrder(), "SORT_ORDER"); - } - - protected abstract ConditionValue getCValueSortOrder(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataCrawlingConfigCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, DataCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataCrawlingConfigCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, DataCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataCrawlingConfigCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, DataCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataCrawlingConfigCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, DataCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataCrawlingConfigCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, DataCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<DataCrawlingConfigCB>() { - * public void query(DataCrawlingConfigCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<DataCrawlingConfigCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, DataCrawlingConfigCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final DataCrawlingConfigCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(DataCrawlingConfigCQ sq); - - protected DataCrawlingConfigCB xcreateScalarConditionCB() { - final DataCrawlingConfigCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected DataCrawlingConfigCB xcreateScalarConditionPartitionByCB() { - final DataCrawlingConfigCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<DataCrawlingConfigCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(DataCrawlingConfigCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<DataCrawlingConfigCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(DataCrawlingConfigCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(DataCrawlingConfigCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<DataCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(DataCrawlingConfigCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<DataCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(DataCrawlingConfigCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected DataCrawlingConfigCB newMyCB() { - return new DataCrawlingConfigCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return DataCrawlingConfigCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFailureUrlCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFailureUrlCQ.java deleted file mode 100644 index c7649f5b5..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFailureUrlCQ.java +++ /dev/null @@ -1,1450 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.FailureUrlCB; -import jp.sf.fess.db.cbean.cq.FailureUrlCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of FAILURE_URL. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsFailureUrlCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsFailureUrlCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "FAILURE_URL"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} - * @param url The value of url as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_Equal(final String url) { - doSetUrl_Equal(fRES(url)); - } - - protected void doSetUrl_Equal(final String url) { - regUrl(CK_EQ, url); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} - * @param url The value of url as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_NotEqual(final String url) { - doSetUrl_NotEqual(fRES(url)); - } - - protected void doSetUrl_NotEqual(final String url) { - regUrl(CK_NES, url); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} - * @param url The value of url as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_GreaterThan(final String url) { - regUrl(CK_GT, fRES(url)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} - * @param url The value of url as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_LessThan(final String url) { - regUrl(CK_LT, fRES(url)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} - * @param url The value of url as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_GreaterEqual(final String url) { - regUrl(CK_GE, fRES(url)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} - * @param url The value of url as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_LessEqual(final String url) { - regUrl(CK_LE, fRES(url)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} - * @param urlList The collection of url as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_InScope(final Collection<String> urlList) { - doSetUrl_InScope(urlList); - } - - public void doSetUrl_InScope(final Collection<String> urlList) { - regINS(CK_INS, cTL(urlList), getCValueUrl(), "URL"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} - * @param urlList The collection of url as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_NotInScope(final Collection<String> urlList) { - doSetUrl_NotInScope(urlList); - } - - public void doSetUrl_NotInScope(final Collection<String> urlList) { - regINS(CK_NINS, cTL(urlList), getCValueUrl(), "URL"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} - * @param url The value of url as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_PrefixSearch(final String url) { - setUrl_LikeSearch(url, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} <br /> - * <pre>e.g. setUrl_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param url The value of url as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUrl_LikeSearch(final String url, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(url), getCValueUrl(), "URL", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} - * @param url The value of url as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUrl_NotLikeSearch(final String url, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(url), getCValueUrl(), "URL", likeSearchOption); - } - - protected void regUrl(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUrl(), "URL"); - } - - protected abstract ConditionValue getCValueUrl(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @param threadName The value of threadName as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setThreadName_Equal(final String threadName) { - doSetThreadName_Equal(fRES(threadName)); - } - - protected void doSetThreadName_Equal(final String threadName) { - regThreadName(CK_EQ, threadName); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @param threadName The value of threadName as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setThreadName_NotEqual(final String threadName) { - doSetThreadName_NotEqual(fRES(threadName)); - } - - protected void doSetThreadName_NotEqual(final String threadName) { - regThreadName(CK_NES, threadName); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @param threadName The value of threadName as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setThreadName_GreaterThan(final String threadName) { - regThreadName(CK_GT, fRES(threadName)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @param threadName The value of threadName as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setThreadName_LessThan(final String threadName) { - regThreadName(CK_LT, fRES(threadName)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @param threadName The value of threadName as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setThreadName_GreaterEqual(final String threadName) { - regThreadName(CK_GE, fRES(threadName)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @param threadName The value of threadName as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setThreadName_LessEqual(final String threadName) { - regThreadName(CK_LE, fRES(threadName)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @param threadNameList The collection of threadName as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setThreadName_InScope(final Collection<String> threadNameList) { - doSetThreadName_InScope(threadNameList); - } - - public void doSetThreadName_InScope(final Collection<String> threadNameList) { - regINS(CK_INS, cTL(threadNameList), getCValueThreadName(), - "THREAD_NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @param threadNameList The collection of threadName as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setThreadName_NotInScope(final Collection<String> threadNameList) { - doSetThreadName_NotInScope(threadNameList); - } - - public void doSetThreadName_NotInScope( - final Collection<String> threadNameList) { - regINS(CK_NINS, cTL(threadNameList), getCValueThreadName(), - "THREAD_NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @param threadName The value of threadName as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setThreadName_PrefixSearch(final String threadName) { - setThreadName_LikeSearch(threadName, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} <br /> - * <pre>e.g. setThreadName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param threadName The value of threadName as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setThreadName_LikeSearch(final String threadName, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(threadName), getCValueThreadName(), "THREAD_NAME", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @param threadName The value of threadName as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setThreadName_NotLikeSearch(final String threadName, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(threadName), getCValueThreadName(), "THREAD_NAME", - likeSearchOption); - } - - protected void regThreadName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueThreadName(), "THREAD_NAME"); - } - - protected abstract ConditionValue getCValueThreadName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - * @param errorName The value of errorName as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorName_Equal(final String errorName) { - doSetErrorName_Equal(fRES(errorName)); - } - - protected void doSetErrorName_Equal(final String errorName) { - regErrorName(CK_EQ, errorName); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - * @param errorName The value of errorName as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorName_NotEqual(final String errorName) { - doSetErrorName_NotEqual(fRES(errorName)); - } - - protected void doSetErrorName_NotEqual(final String errorName) { - regErrorName(CK_NES, errorName); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - * @param errorName The value of errorName as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorName_GreaterThan(final String errorName) { - regErrorName(CK_GT, fRES(errorName)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - * @param errorName The value of errorName as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorName_LessThan(final String errorName) { - regErrorName(CK_LT, fRES(errorName)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - * @param errorName The value of errorName as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorName_GreaterEqual(final String errorName) { - regErrorName(CK_GE, fRES(errorName)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - * @param errorName The value of errorName as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorName_LessEqual(final String errorName) { - regErrorName(CK_LE, fRES(errorName)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - * @param errorNameList The collection of errorName as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorName_InScope(final Collection<String> errorNameList) { - doSetErrorName_InScope(errorNameList); - } - - public void doSetErrorName_InScope(final Collection<String> errorNameList) { - regINS(CK_INS, cTL(errorNameList), getCValueErrorName(), "ERROR_NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - * @param errorNameList The collection of errorName as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorName_NotInScope(final Collection<String> errorNameList) { - doSetErrorName_NotInScope(errorNameList); - } - - public void doSetErrorName_NotInScope(final Collection<String> errorNameList) { - regINS(CK_NINS, cTL(errorNameList), getCValueErrorName(), "ERROR_NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - * @param errorName The value of errorName as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorName_PrefixSearch(final String errorName) { - setErrorName_LikeSearch(errorName, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} <br /> - * <pre>e.g. setErrorName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param errorName The value of errorName as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setErrorName_LikeSearch(final String errorName, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(errorName), getCValueErrorName(), "ERROR_NAME", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - * @param errorName The value of errorName as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setErrorName_NotLikeSearch(final String errorName, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(errorName), getCValueErrorName(), "ERROR_NAME", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - */ - public void setErrorName_IsNull() { - regErrorName(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - */ - public void setErrorName_IsNullOrEmpty() { - regErrorName(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ERROR_NAME: {VARCHAR(255)} - */ - public void setErrorName_IsNotNull() { - regErrorName(CK_ISNN, DOBJ); - } - - protected void regErrorName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueErrorName(), "ERROR_NAME"); - } - - protected abstract ConditionValue getCValueErrorName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - * @param errorLog The value of errorLog as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorLog_Equal(final String errorLog) { - doSetErrorLog_Equal(fRES(errorLog)); - } - - protected void doSetErrorLog_Equal(final String errorLog) { - regErrorLog(CK_EQ, errorLog); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - * @param errorLog The value of errorLog as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorLog_NotEqual(final String errorLog) { - doSetErrorLog_NotEqual(fRES(errorLog)); - } - - protected void doSetErrorLog_NotEqual(final String errorLog) { - regErrorLog(CK_NES, errorLog); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - * @param errorLog The value of errorLog as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorLog_GreaterThan(final String errorLog) { - regErrorLog(CK_GT, fRES(errorLog)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - * @param errorLog The value of errorLog as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorLog_LessThan(final String errorLog) { - regErrorLog(CK_LT, fRES(errorLog)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - * @param errorLog The value of errorLog as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorLog_GreaterEqual(final String errorLog) { - regErrorLog(CK_GE, fRES(errorLog)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - * @param errorLog The value of errorLog as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorLog_LessEqual(final String errorLog) { - regErrorLog(CK_LE, fRES(errorLog)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - * @param errorLogList The collection of errorLog as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorLog_InScope(final Collection<String> errorLogList) { - doSetErrorLog_InScope(errorLogList); - } - - public void doSetErrorLog_InScope(final Collection<String> errorLogList) { - regINS(CK_INS, cTL(errorLogList), getCValueErrorLog(), "ERROR_LOG"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - * @param errorLogList The collection of errorLog as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorLog_NotInScope(final Collection<String> errorLogList) { - doSetErrorLog_NotInScope(errorLogList); - } - - public void doSetErrorLog_NotInScope(final Collection<String> errorLogList) { - regINS(CK_NINS, cTL(errorLogList), getCValueErrorLog(), "ERROR_LOG"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - * @param errorLog The value of errorLog as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorLog_PrefixSearch(final String errorLog) { - setErrorLog_LikeSearch(errorLog, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} <br /> - * <pre>e.g. setErrorLog_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param errorLog The value of errorLog as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setErrorLog_LikeSearch(final String errorLog, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(errorLog), getCValueErrorLog(), "ERROR_LOG", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - * @param errorLog The value of errorLog as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setErrorLog_NotLikeSearch(final String errorLog, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(errorLog), getCValueErrorLog(), "ERROR_LOG", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - */ - public void setErrorLog_IsNull() { - regErrorLog(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - */ - public void setErrorLog_IsNullOrEmpty() { - regErrorLog(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ERROR_LOG: {VARCHAR(4000)} - */ - public void setErrorLog_IsNotNull() { - regErrorLog(CK_ISNN, DOBJ); - } - - protected void regErrorLog(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueErrorLog(), "ERROR_LOG"); - } - - protected abstract ConditionValue getCValueErrorLog(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @param errorCount The value of errorCount as equal. (NullAllowed: if null, no condition) - */ - public void setErrorCount_Equal(final Integer errorCount) { - doSetErrorCount_Equal(errorCount); - } - - protected void doSetErrorCount_Equal(final Integer errorCount) { - regErrorCount(CK_EQ, errorCount); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @param errorCount The value of errorCount as notEqual. (NullAllowed: if null, no condition) - */ - public void setErrorCount_NotEqual(final Integer errorCount) { - doSetErrorCount_NotEqual(errorCount); - } - - protected void doSetErrorCount_NotEqual(final Integer errorCount) { - regErrorCount(CK_NES, errorCount); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @param errorCount The value of errorCount as greaterThan. (NullAllowed: if null, no condition) - */ - public void setErrorCount_GreaterThan(final Integer errorCount) { - regErrorCount(CK_GT, errorCount); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @param errorCount The value of errorCount as lessThan. (NullAllowed: if null, no condition) - */ - public void setErrorCount_LessThan(final Integer errorCount) { - regErrorCount(CK_LT, errorCount); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @param errorCount The value of errorCount as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setErrorCount_GreaterEqual(final Integer errorCount) { - regErrorCount(CK_GE, errorCount); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @param errorCount The value of errorCount as lessEqual. (NullAllowed: if null, no condition) - */ - public void setErrorCount_LessEqual(final Integer errorCount) { - regErrorCount(CK_LE, errorCount); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @param minNumber The min number of errorCount. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of errorCount. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setErrorCount_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueErrorCount(), "ERROR_COUNT", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @param errorCountList The collection of errorCount as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorCount_InScope(final Collection<Integer> errorCountList) { - doSetErrorCount_InScope(errorCountList); - } - - protected void doSetErrorCount_InScope( - final Collection<Integer> errorCountList) { - regINS(CK_INS, cTL(errorCountList), getCValueErrorCount(), - "ERROR_COUNT"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @param errorCountList The collection of errorCount as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setErrorCount_NotInScope( - final Collection<Integer> errorCountList) { - doSetErrorCount_NotInScope(errorCountList); - } - - protected void doSetErrorCount_NotInScope( - final Collection<Integer> errorCountList) { - regINS(CK_NINS, cTL(errorCountList), getCValueErrorCount(), - "ERROR_COUNT"); - } - - protected void regErrorCount(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueErrorCount(), "ERROR_COUNT"); - } - - protected abstract ConditionValue getCValueErrorCount(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param lastAccessTime The value of lastAccessTime as equal. (NullAllowed: if null, no condition) - */ - public void setLastAccessTime_Equal(final java.sql.Timestamp lastAccessTime) { - regLastAccessTime(CK_EQ, lastAccessTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param lastAccessTime The value of lastAccessTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setLastAccessTime_GreaterThan( - final java.sql.Timestamp lastAccessTime) { - regLastAccessTime(CK_GT, lastAccessTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param lastAccessTime The value of lastAccessTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setLastAccessTime_LessThan( - final java.sql.Timestamp lastAccessTime) { - regLastAccessTime(CK_LT, lastAccessTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param lastAccessTime The value of lastAccessTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setLastAccessTime_GreaterEqual( - final java.sql.Timestamp lastAccessTime) { - regLastAccessTime(CK_GE, lastAccessTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param lastAccessTime The value of lastAccessTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setLastAccessTime_LessEqual( - final java.sql.Timestamp lastAccessTime) { - regLastAccessTime(CK_LE, lastAccessTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setLastAccessTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of lastAccessTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of lastAccessTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setLastAccessTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueLastAccessTime(), - "LAST_ACCESS_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of lastAccessTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of lastAccessTime. (NullAllowed: if null, no to-condition) - */ - public void setLastAccessTime_DateFromTo(final Date fromDate, - final Date toDate) { - setLastAccessTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regLastAccessTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueLastAccessTime(), "LAST_ACCESS_TIME"); - } - - protected abstract ConditionValue getCValueLastAccessTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - * @param configId The value of configId as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigId_Equal(final String configId) { - doSetConfigId_Equal(fRES(configId)); - } - - protected void doSetConfigId_Equal(final String configId) { - regConfigId(CK_EQ, configId); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - * @param configId The value of configId as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigId_NotEqual(final String configId) { - doSetConfigId_NotEqual(fRES(configId)); - } - - protected void doSetConfigId_NotEqual(final String configId) { - regConfigId(CK_NES, configId); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - * @param configId The value of configId as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigId_GreaterThan(final String configId) { - regConfigId(CK_GT, fRES(configId)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - * @param configId The value of configId as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigId_LessThan(final String configId) { - regConfigId(CK_LT, fRES(configId)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - * @param configId The value of configId as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigId_GreaterEqual(final String configId) { - regConfigId(CK_GE, fRES(configId)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - * @param configId The value of configId as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigId_LessEqual(final String configId) { - regConfigId(CK_LE, fRES(configId)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - * @param configIdList The collection of configId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigId_InScope(final Collection<String> configIdList) { - doSetConfigId_InScope(configIdList); - } - - public void doSetConfigId_InScope(final Collection<String> configIdList) { - regINS(CK_INS, cTL(configIdList), getCValueConfigId(), "CONFIG_ID"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - * @param configIdList The collection of configId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigId_NotInScope(final Collection<String> configIdList) { - doSetConfigId_NotInScope(configIdList); - } - - public void doSetConfigId_NotInScope(final Collection<String> configIdList) { - regINS(CK_NINS, cTL(configIdList), getCValueConfigId(), "CONFIG_ID"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - * @param configId The value of configId as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigId_PrefixSearch(final String configId) { - setConfigId_LikeSearch(configId, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} <br /> - * <pre>e.g. setConfigId_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param configId The value of configId as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setConfigId_LikeSearch(final String configId, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(configId), getCValueConfigId(), "CONFIG_ID", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - * @param configId The value of configId as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setConfigId_NotLikeSearch(final String configId, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(configId), getCValueConfigId(), "CONFIG_ID", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - */ - public void setConfigId_IsNull() { - regConfigId(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - */ - public void setConfigId_IsNullOrEmpty() { - regConfigId(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - */ - public void setConfigId_IsNotNull() { - regConfigId(CK_ISNN, DOBJ); - } - - protected void regConfigId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueConfigId(), "CONFIG_ID"); - } - - protected abstract ConditionValue getCValueConfigId(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<FailureUrlCB>() { - * public void query(FailureUrlCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FailureUrlCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, FailureUrlCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<FailureUrlCB>() { - * public void query(FailureUrlCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FailureUrlCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, FailureUrlCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<FailureUrlCB>() { - * public void query(FailureUrlCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FailureUrlCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, FailureUrlCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<FailureUrlCB>() { - * public void query(FailureUrlCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FailureUrlCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, FailureUrlCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<FailureUrlCB>() { - * public void query(FailureUrlCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FailureUrlCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, FailureUrlCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<FailureUrlCB>() { - * public void query(FailureUrlCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FailureUrlCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, FailureUrlCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final FailureUrlCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(FailureUrlCQ sq); - - protected FailureUrlCB xcreateScalarConditionCB() { - final FailureUrlCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected FailureUrlCB xcreateScalarConditionPartitionByCB() { - final FailureUrlCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<FailureUrlCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FailureUrlCB cb = new FailureUrlCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(FailureUrlCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<FailureUrlCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(FailureUrlCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FailureUrlCB cb = new FailureUrlCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(FailureUrlCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<FailureUrlCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FailureUrlCB cb = new FailureUrlCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(FailureUrlCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<FailureUrlCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FailureUrlCB cb = new FailureUrlCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(FailureUrlCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected FailureUrlCB newMyCB() { - return new FailureUrlCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return FailureUrlCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFavoriteLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFavoriteLogCQ.java deleted file mode 100644 index 0dc3798a3..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFavoriteLogCQ.java +++ /dev/null @@ -1,895 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.FavoriteLogCB; -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.cbean.cq.FavoriteLogCQ; -import jp.sf.fess.db.cbean.cq.UserInfoCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of FAVORITE_LOG. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsFavoriteLogCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsFavoriteLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "FAVORITE_LOG"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @param userId The value of userId as equal. (NullAllowed: if null, no condition) - */ - public void setUserId_Equal(final Long userId) { - doSetUserId_Equal(userId); - } - - protected void doSetUserId_Equal(final Long userId) { - regUserId(CK_EQ, userId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @param userId The value of userId as notEqual. (NullAllowed: if null, no condition) - */ - public void setUserId_NotEqual(final Long userId) { - doSetUserId_NotEqual(userId); - } - - protected void doSetUserId_NotEqual(final Long userId) { - regUserId(CK_NES, userId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @param userId The value of userId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUserId_GreaterThan(final Long userId) { - regUserId(CK_GT, userId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @param userId The value of userId as lessThan. (NullAllowed: if null, no condition) - */ - public void setUserId_LessThan(final Long userId) { - regUserId(CK_LT, userId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @param userId The value of userId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUserId_GreaterEqual(final Long userId) { - regUserId(CK_GE, userId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @param userId The value of userId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUserId_LessEqual(final Long userId) { - regUserId(CK_LE, userId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @param minNumber The min number of userId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of userId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setUserId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueUserId(), "USER_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @param userIdList The collection of userId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUserId_InScope(final Collection<Long> userIdList) { - doSetUserId_InScope(userIdList); - } - - protected void doSetUserId_InScope(final Collection<Long> userIdList) { - regINS(CK_INS, cTL(userIdList), getCValueUserId(), "USER_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @param userIdList The collection of userId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUserId_NotInScope(final Collection<Long> userIdList) { - doSetUserId_NotInScope(userIdList); - } - - protected void doSetUserId_NotInScope(final Collection<Long> userIdList) { - regINS(CK_NINS, cTL(userIdList), getCValueUserId(), "USER_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select USER_ID from USER_INFO where ...)} <br /> - * USER_INFO by my USER_ID, named 'userInfo'. - * @param subQuery The sub-query of UserInfo for 'in-scope'. (NotNull) - */ - public void inScopeUserInfo(final SubQuery<UserInfoCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final UserInfoCB cb = new UserInfoCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepUserId_InScopeRelation_UserInfo(cb.query()); - registerInScopeRelation(cb.query(), "USER_ID", "ID", pp, "userInfo"); - } - - public abstract String keepUserId_InScopeRelation_UserInfo(UserInfoCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select USER_ID from USER_INFO where ...)} <br /> - * USER_INFO by my USER_ID, named 'userInfo'. - * @param subQuery The sub-query of UserInfo for 'not in-scope'. (NotNull) - */ - public void notInScopeUserInfo(final SubQuery<UserInfoCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final UserInfoCB cb = new UserInfoCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepUserId_NotInScopeRelation_UserInfo(cb.query()); - registerNotInScopeRelation(cb.query(), "USER_ID", "ID", pp, "userInfo"); - } - - public abstract String keepUserId_NotInScopeRelation_UserInfo(UserInfoCQ sq); - - protected void regUserId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUserId(), "USER_ID"); - } - - protected abstract ConditionValue getCValueUserId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @param url The value of url as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_Equal(final String url) { - doSetUrl_Equal(fRES(url)); - } - - protected void doSetUrl_Equal(final String url) { - regUrl(CK_EQ, url); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @param url The value of url as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_NotEqual(final String url) { - doSetUrl_NotEqual(fRES(url)); - } - - protected void doSetUrl_NotEqual(final String url) { - regUrl(CK_NES, url); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @param url The value of url as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_GreaterThan(final String url) { - regUrl(CK_GT, fRES(url)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @param url The value of url as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_LessThan(final String url) { - regUrl(CK_LT, fRES(url)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @param url The value of url as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_GreaterEqual(final String url) { - regUrl(CK_GE, fRES(url)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @param url The value of url as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_LessEqual(final String url) { - regUrl(CK_LE, fRES(url)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @param urlList The collection of url as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_InScope(final Collection<String> urlList) { - doSetUrl_InScope(urlList); - } - - public void doSetUrl_InScope(final Collection<String> urlList) { - regINS(CK_INS, cTL(urlList), getCValueUrl(), "URL"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @param urlList The collection of url as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_NotInScope(final Collection<String> urlList) { - doSetUrl_NotInScope(urlList); - } - - public void doSetUrl_NotInScope(final Collection<String> urlList) { - regINS(CK_NINS, cTL(urlList), getCValueUrl(), "URL"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @param url The value of url as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUrl_PrefixSearch(final String url) { - setUrl_LikeSearch(url, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} <br /> - * <pre>e.g. setUrl_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param url The value of url as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUrl_LikeSearch(final String url, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(url), getCValueUrl(), "URL", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @param url The value of url as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUrl_NotLikeSearch(final String url, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(url), getCValueUrl(), "URL", likeSearchOption); - } - - protected void regUrl(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUrl(), "URL"); - } - - protected abstract ConditionValue getCValueUrl(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FavoriteLogCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, FavoriteLogCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FavoriteLogCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, FavoriteLogCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FavoriteLogCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, FavoriteLogCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FavoriteLogCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, FavoriteLogCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FavoriteLogCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, FavoriteLogCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FavoriteLogCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, FavoriteLogCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final FavoriteLogCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(FavoriteLogCQ sq); - - protected FavoriteLogCB xcreateScalarConditionCB() { - final FavoriteLogCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected FavoriteLogCB xcreateScalarConditionPartitionByCB() { - final FavoriteLogCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<FavoriteLogCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(FavoriteLogCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<FavoriteLogCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(FavoriteLogCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(FavoriteLogCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<FavoriteLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(FavoriteLogCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<FavoriteLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(FavoriteLogCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected FavoriteLogCB newMyCB() { - return new FavoriteLogCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return FavoriteLogCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileAuthenticationCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileAuthenticationCQ.java deleted file mode 100644 index d343de1dd..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileAuthenticationCQ.java +++ /dev/null @@ -1,2394 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.FileAuthenticationCB; -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.FileAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of FILE_AUTHENTICATION. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsFileAuthenticationCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsFileAuthenticationCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "FILE_AUTHENTICATION"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - * @param hostname The value of hostname as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_Equal(final String hostname) { - doSetHostname_Equal(fRES(hostname)); - } - - protected void doSetHostname_Equal(final String hostname) { - regHostname(CK_EQ, hostname); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - * @param hostname The value of hostname as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_NotEqual(final String hostname) { - doSetHostname_NotEqual(fRES(hostname)); - } - - protected void doSetHostname_NotEqual(final String hostname) { - regHostname(CK_NES, hostname); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - * @param hostname The value of hostname as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_GreaterThan(final String hostname) { - regHostname(CK_GT, fRES(hostname)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - * @param hostname The value of hostname as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_LessThan(final String hostname) { - regHostname(CK_LT, fRES(hostname)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - * @param hostname The value of hostname as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_GreaterEqual(final String hostname) { - regHostname(CK_GE, fRES(hostname)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - * @param hostname The value of hostname as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_LessEqual(final String hostname) { - regHostname(CK_LE, fRES(hostname)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - * @param hostnameList The collection of hostname as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_InScope(final Collection<String> hostnameList) { - doSetHostname_InScope(hostnameList); - } - - public void doSetHostname_InScope(final Collection<String> hostnameList) { - regINS(CK_INS, cTL(hostnameList), getCValueHostname(), "HOSTNAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - * @param hostnameList The collection of hostname as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_NotInScope(final Collection<String> hostnameList) { - doSetHostname_NotInScope(hostnameList); - } - - public void doSetHostname_NotInScope(final Collection<String> hostnameList) { - regINS(CK_NINS, cTL(hostnameList), getCValueHostname(), "HOSTNAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - * @param hostname The value of hostname as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_PrefixSearch(final String hostname) { - setHostname_LikeSearch(hostname, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} <br /> - * <pre>e.g. setHostname_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param hostname The value of hostname as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setHostname_LikeSearch(final String hostname, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(hostname), getCValueHostname(), "HOSTNAME", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - * @param hostname The value of hostname as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setHostname_NotLikeSearch(final String hostname, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(hostname), getCValueHostname(), "HOSTNAME", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - */ - public void setHostname_IsNull() { - regHostname(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - */ - public void setHostname_IsNullOrEmpty() { - regHostname(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(255)} - */ - public void setHostname_IsNotNull() { - regHostname(CK_ISNN, DOBJ); - } - - protected void regHostname(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueHostname(), "HOSTNAME"); - } - - protected abstract ConditionValue getCValueHostname(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param port The value of port as equal. (NullAllowed: if null, no condition) - */ - public void setPort_Equal(final Integer port) { - doSetPort_Equal(port); - } - - protected void doSetPort_Equal(final Integer port) { - regPort(CK_EQ, port); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param port The value of port as notEqual. (NullAllowed: if null, no condition) - */ - public void setPort_NotEqual(final Integer port) { - doSetPort_NotEqual(port); - } - - protected void doSetPort_NotEqual(final Integer port) { - regPort(CK_NES, port); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param port The value of port as greaterThan. (NullAllowed: if null, no condition) - */ - public void setPort_GreaterThan(final Integer port) { - regPort(CK_GT, port); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param port The value of port as lessThan. (NullAllowed: if null, no condition) - */ - public void setPort_LessThan(final Integer port) { - regPort(CK_LT, port); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param port The value of port as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setPort_GreaterEqual(final Integer port) { - regPort(CK_GE, port); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param port The value of port as lessEqual. (NullAllowed: if null, no condition) - */ - public void setPort_LessEqual(final Integer port) { - regPort(CK_LE, port); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param minNumber The min number of port. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of port. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setPort_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValuePort(), "PORT", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param portList The collection of port as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setPort_InScope(final Collection<Integer> portList) { - doSetPort_InScope(portList); - } - - protected void doSetPort_InScope(final Collection<Integer> portList) { - regINS(CK_INS, cTL(portList), getCValuePort(), "PORT"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param portList The collection of port as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setPort_NotInScope(final Collection<Integer> portList) { - doSetPort_NotInScope(portList); - } - - protected void doSetPort_NotInScope(final Collection<Integer> portList) { - regINS(CK_NINS, cTL(portList), getCValuePort(), "PORT"); - } - - protected void regPort(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValuePort(), "PORT"); - } - - protected abstract ConditionValue getCValuePort(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_Equal(final String protocolScheme) { - doSetProtocolScheme_Equal(fRES(protocolScheme)); - } - - protected void doSetProtocolScheme_Equal(final String protocolScheme) { - regProtocolScheme(CK_EQ, protocolScheme); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_NotEqual(final String protocolScheme) { - doSetProtocolScheme_NotEqual(fRES(protocolScheme)); - } - - protected void doSetProtocolScheme_NotEqual(final String protocolScheme) { - regProtocolScheme(CK_NES, protocolScheme); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_GreaterThan(final String protocolScheme) { - regProtocolScheme(CK_GT, fRES(protocolScheme)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_LessThan(final String protocolScheme) { - regProtocolScheme(CK_LT, fRES(protocolScheme)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_GreaterEqual(final String protocolScheme) { - regProtocolScheme(CK_GE, fRES(protocolScheme)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_LessEqual(final String protocolScheme) { - regProtocolScheme(CK_LE, fRES(protocolScheme)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolSchemeList The collection of protocolScheme as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_InScope( - final Collection<String> protocolSchemeList) { - doSetProtocolScheme_InScope(protocolSchemeList); - } - - public void doSetProtocolScheme_InScope( - final Collection<String> protocolSchemeList) { - regINS(CK_INS, cTL(protocolSchemeList), getCValueProtocolScheme(), - "PROTOCOL_SCHEME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolSchemeList The collection of protocolScheme as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_NotInScope( - final Collection<String> protocolSchemeList) { - doSetProtocolScheme_NotInScope(protocolSchemeList); - } - - public void doSetProtocolScheme_NotInScope( - final Collection<String> protocolSchemeList) { - regINS(CK_NINS, cTL(protocolSchemeList), getCValueProtocolScheme(), - "PROTOCOL_SCHEME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_PrefixSearch(final String protocolScheme) { - setProtocolScheme_LikeSearch(protocolScheme, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} <br /> - * <pre>e.g. setProtocolScheme_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param protocolScheme The value of protocolScheme as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setProtocolScheme_LikeSearch(final String protocolScheme, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(protocolScheme), getCValueProtocolScheme(), - "PROTOCOL_SCHEME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setProtocolScheme_NotLikeSearch(final String protocolScheme, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(protocolScheme), getCValueProtocolScheme(), - "PROTOCOL_SCHEME", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - */ - public void setProtocolScheme_IsNull() { - regProtocolScheme(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - */ - public void setProtocolScheme_IsNullOrEmpty() { - regProtocolScheme(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - */ - public void setProtocolScheme_IsNotNull() { - regProtocolScheme(CK_ISNN, DOBJ); - } - - protected void regProtocolScheme(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueProtocolScheme(), "PROTOCOL_SCHEME"); - } - - protected abstract ConditionValue getCValueProtocolScheme(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_Equal(final String username) { - doSetUsername_Equal(fRES(username)); - } - - protected void doSetUsername_Equal(final String username) { - regUsername(CK_EQ, username); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_NotEqual(final String username) { - doSetUsername_NotEqual(fRES(username)); - } - - protected void doSetUsername_NotEqual(final String username) { - regUsername(CK_NES, username); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_GreaterThan(final String username) { - regUsername(CK_GT, fRES(username)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_LessThan(final String username) { - regUsername(CK_LT, fRES(username)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_GreaterEqual(final String username) { - regUsername(CK_GE, fRES(username)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_LessEqual(final String username) { - regUsername(CK_LE, fRES(username)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param usernameList The collection of username as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_InScope(final Collection<String> usernameList) { - doSetUsername_InScope(usernameList); - } - - public void doSetUsername_InScope(final Collection<String> usernameList) { - regINS(CK_INS, cTL(usernameList), getCValueUsername(), "USERNAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param usernameList The collection of username as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_NotInScope(final Collection<String> usernameList) { - doSetUsername_NotInScope(usernameList); - } - - public void doSetUsername_NotInScope(final Collection<String> usernameList) { - regINS(CK_NINS, cTL(usernameList), getCValueUsername(), "USERNAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_PrefixSearch(final String username) { - setUsername_LikeSearch(username, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setUsername_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param username The value of username as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUsername_LikeSearch(final String username, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(username), getCValueUsername(), "USERNAME", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUsername_NotLikeSearch(final String username, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(username), getCValueUsername(), "USERNAME", - likeSearchOption); - } - - protected void regUsername(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUsername(), "USERNAME"); - } - - protected abstract ConditionValue getCValueUsername(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_Equal(final String password) { - doSetPassword_Equal(fRES(password)); - } - - protected void doSetPassword_Equal(final String password) { - regPassword(CK_EQ, password); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_NotEqual(final String password) { - doSetPassword_NotEqual(fRES(password)); - } - - protected void doSetPassword_NotEqual(final String password) { - regPassword(CK_NES, password); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_GreaterThan(final String password) { - regPassword(CK_GT, fRES(password)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_LessThan(final String password) { - regPassword(CK_LT, fRES(password)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_GreaterEqual(final String password) { - regPassword(CK_GE, fRES(password)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_LessEqual(final String password) { - regPassword(CK_LE, fRES(password)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param passwordList The collection of password as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_InScope(final Collection<String> passwordList) { - doSetPassword_InScope(passwordList); - } - - public void doSetPassword_InScope(final Collection<String> passwordList) { - regINS(CK_INS, cTL(passwordList), getCValuePassword(), "PASSWORD"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param passwordList The collection of password as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_NotInScope(final Collection<String> passwordList) { - doSetPassword_NotInScope(passwordList); - } - - public void doSetPassword_NotInScope(final Collection<String> passwordList) { - regINS(CK_NINS, cTL(passwordList), getCValuePassword(), "PASSWORD"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_PrefixSearch(final String password) { - setPassword_LikeSearch(password, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PASSWORD: {VARCHAR(100)} <br /> - * <pre>e.g. setPassword_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param password The value of password as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setPassword_LikeSearch(final String password, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(password), getCValuePassword(), "PASSWORD", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setPassword_NotLikeSearch(final String password, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(password), getCValuePassword(), "PASSWORD", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - */ - public void setPassword_IsNull() { - regPassword(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - */ - public void setPassword_IsNullOrEmpty() { - regPassword(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - */ - public void setPassword_IsNotNull() { - regPassword(CK_ISNN, DOBJ); - } - - protected void regPassword(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValuePassword(), "PASSWORD"); - } - - protected abstract ConditionValue getCValuePassword(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_Equal(final String parameters) { - doSetParameters_Equal(fRES(parameters)); - } - - protected void doSetParameters_Equal(final String parameters) { - regParameters(CK_EQ, parameters); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_NotEqual(final String parameters) { - doSetParameters_NotEqual(fRES(parameters)); - } - - protected void doSetParameters_NotEqual(final String parameters) { - regParameters(CK_NES, parameters); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_GreaterThan(final String parameters) { - regParameters(CK_GT, fRES(parameters)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_LessThan(final String parameters) { - regParameters(CK_LT, fRES(parameters)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_GreaterEqual(final String parameters) { - regParameters(CK_GE, fRES(parameters)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_LessEqual(final String parameters) { - regParameters(CK_LE, fRES(parameters)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parametersList The collection of parameters as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_InScope(final Collection<String> parametersList) { - doSetParameters_InScope(parametersList); - } - - public void doSetParameters_InScope(final Collection<String> parametersList) { - regINS(CK_INS, cTL(parametersList), getCValueParameters(), "PARAMETERS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parametersList The collection of parameters as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_NotInScope(final Collection<String> parametersList) { - doSetParameters_NotInScope(parametersList); - } - - public void doSetParameters_NotInScope( - final Collection<String> parametersList) { - regINS(CK_NINS, cTL(parametersList), getCValueParameters(), - "PARAMETERS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_PrefixSearch(final String parameters) { - setParameters_LikeSearch(parameters, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} <br /> - * <pre>e.g. setParameters_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param parameters The value of parameters as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setParameters_LikeSearch(final String parameters, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(parameters), getCValueParameters(), "PARAMETERS", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setParameters_NotLikeSearch(final String parameters, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(parameters), getCValueParameters(), "PARAMETERS", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - */ - public void setParameters_IsNull() { - regParameters(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - */ - public void setParameters_IsNullOrEmpty() { - regParameters(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - */ - public void setParameters_IsNotNull() { - regParameters(CK_ISNN, DOBJ); - } - - protected void regParameters(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueParameters(), "PARAMETERS"); - } - - protected abstract ConditionValue getCValueParameters(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileCrawlingConfigId The value of fileCrawlingConfigId as equal. (NullAllowed: if null, no condition) - */ - public void setFileCrawlingConfigId_Equal(final Long fileCrawlingConfigId) { - doSetFileCrawlingConfigId_Equal(fileCrawlingConfigId); - } - - protected void doSetFileCrawlingConfigId_Equal( - final Long fileCrawlingConfigId) { - regFileCrawlingConfigId(CK_EQ, fileCrawlingConfigId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileCrawlingConfigId The value of fileCrawlingConfigId as notEqual. (NullAllowed: if null, no condition) - */ - public void setFileCrawlingConfigId_NotEqual(final Long fileCrawlingConfigId) { - doSetFileCrawlingConfigId_NotEqual(fileCrawlingConfigId); - } - - protected void doSetFileCrawlingConfigId_NotEqual( - final Long fileCrawlingConfigId) { - regFileCrawlingConfigId(CK_NES, fileCrawlingConfigId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileCrawlingConfigId The value of fileCrawlingConfigId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setFileCrawlingConfigId_GreaterThan( - final Long fileCrawlingConfigId) { - regFileCrawlingConfigId(CK_GT, fileCrawlingConfigId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileCrawlingConfigId The value of fileCrawlingConfigId as lessThan. (NullAllowed: if null, no condition) - */ - public void setFileCrawlingConfigId_LessThan(final Long fileCrawlingConfigId) { - regFileCrawlingConfigId(CK_LT, fileCrawlingConfigId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileCrawlingConfigId The value of fileCrawlingConfigId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setFileCrawlingConfigId_GreaterEqual( - final Long fileCrawlingConfigId) { - regFileCrawlingConfigId(CK_GE, fileCrawlingConfigId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileCrawlingConfigId The value of fileCrawlingConfigId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setFileCrawlingConfigId_LessEqual( - final Long fileCrawlingConfigId) { - regFileCrawlingConfigId(CK_LE, fileCrawlingConfigId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param minNumber The min number of fileCrawlingConfigId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of fileCrawlingConfigId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setFileCrawlingConfigId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueFileCrawlingConfigId(), - "FILE_CRAWLING_CONFIG_ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileCrawlingConfigIdList The collection of fileCrawlingConfigId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setFileCrawlingConfigId_InScope( - final Collection<Long> fileCrawlingConfigIdList) { - doSetFileCrawlingConfigId_InScope(fileCrawlingConfigIdList); - } - - protected void doSetFileCrawlingConfigId_InScope( - final Collection<Long> fileCrawlingConfigIdList) { - regINS(CK_INS, cTL(fileCrawlingConfigIdList), - getCValueFileCrawlingConfigId(), "FILE_CRAWLING_CONFIG_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileCrawlingConfigIdList The collection of fileCrawlingConfigId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setFileCrawlingConfigId_NotInScope( - final Collection<Long> fileCrawlingConfigIdList) { - doSetFileCrawlingConfigId_NotInScope(fileCrawlingConfigIdList); - } - - protected void doSetFileCrawlingConfigId_NotInScope( - final Collection<Long> fileCrawlingConfigIdList) { - regINS(CK_NINS, cTL(fileCrawlingConfigIdList), - getCValueFileCrawlingConfigId(), "FILE_CRAWLING_CONFIG_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select FILE_CRAWLING_CONFIG_ID from FILE_CRAWLING_CONFIG where ...)} <br /> - * FILE_CRAWLING_CONFIG by my FILE_CRAWLING_CONFIG_ID, named 'fileCrawlingConfig'. - * @param subQuery The sub-query of FileCrawlingConfig for 'in-scope'. (NotNull) - */ - public void inScopeFileCrawlingConfig( - final SubQuery<FileCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepFileCrawlingConfigId_InScopeRelation_FileCrawlingConfig(cb - .query()); - registerInScopeRelation(cb.query(), "FILE_CRAWLING_CONFIG_ID", "ID", - pp, "fileCrawlingConfig"); - } - - public abstract String keepFileCrawlingConfigId_InScopeRelation_FileCrawlingConfig( - FileCrawlingConfigCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select FILE_CRAWLING_CONFIG_ID from FILE_CRAWLING_CONFIG where ...)} <br /> - * FILE_CRAWLING_CONFIG by my FILE_CRAWLING_CONFIG_ID, named 'fileCrawlingConfig'. - * @param subQuery The sub-query of FileCrawlingConfig for 'not in-scope'. (NotNull) - */ - public void notInScopeFileCrawlingConfig( - final SubQuery<FileCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepFileCrawlingConfigId_NotInScopeRelation_FileCrawlingConfig(cb - .query()); - registerNotInScopeRelation(cb.query(), "FILE_CRAWLING_CONFIG_ID", "ID", - pp, "fileCrawlingConfig"); - } - - public abstract String keepFileCrawlingConfigId_NotInScopeRelation_FileCrawlingConfig( - FileCrawlingConfigCQ sq); - - protected void regFileCrawlingConfigId(final ConditionKey ky, - final Object vl) { - regQ(ky, vl, getCValueFileCrawlingConfigId(), "FILE_CRAWLING_CONFIG_ID"); - } - - protected abstract ConditionValue getCValueFileCrawlingConfigId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileAuthenticationCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, FileAuthenticationCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileAuthenticationCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, FileAuthenticationCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileAuthenticationCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, FileAuthenticationCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileAuthenticationCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, FileAuthenticationCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileAuthenticationCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, FileAuthenticationCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileAuthenticationCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, FileAuthenticationCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final FileAuthenticationCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(FileAuthenticationCQ sq); - - protected FileAuthenticationCB xcreateScalarConditionCB() { - final FileAuthenticationCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected FileAuthenticationCB xcreateScalarConditionPartitionByCB() { - final FileAuthenticationCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<FileAuthenticationCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(FileAuthenticationCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<FileAuthenticationCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(FileAuthenticationCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(FileAuthenticationCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<FileAuthenticationCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(FileAuthenticationCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<FileAuthenticationCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(FileAuthenticationCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected FileAuthenticationCB newMyCB() { - return new FileAuthenticationCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return FileAuthenticationCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileConfigToLabelTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileConfigToLabelTypeMappingCQ.java deleted file mode 100644 index e742668f6..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileConfigToLabelTypeMappingCQ.java +++ /dev/null @@ -1,865 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.cq.FileConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of FILE_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsFileConfigToLabelTypeMappingCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsFileConfigToLabelTypeMappingCQ( - final ConditionQuery referrerQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "FILE_CONFIG_TO_LABEL_TYPE_MAPPING"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigId The value of fileConfigId as equal. (NullAllowed: if null, no condition) - */ - public void setFileConfigId_Equal(final Long fileConfigId) { - doSetFileConfigId_Equal(fileConfigId); - } - - protected void doSetFileConfigId_Equal(final Long fileConfigId) { - regFileConfigId(CK_EQ, fileConfigId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigId The value of fileConfigId as notEqual. (NullAllowed: if null, no condition) - */ - public void setFileConfigId_NotEqual(final Long fileConfigId) { - doSetFileConfigId_NotEqual(fileConfigId); - } - - protected void doSetFileConfigId_NotEqual(final Long fileConfigId) { - regFileConfigId(CK_NES, fileConfigId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigId The value of fileConfigId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setFileConfigId_GreaterThan(final Long fileConfigId) { - regFileConfigId(CK_GT, fileConfigId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigId The value of fileConfigId as lessThan. (NullAllowed: if null, no condition) - */ - public void setFileConfigId_LessThan(final Long fileConfigId) { - regFileConfigId(CK_LT, fileConfigId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigId The value of fileConfigId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setFileConfigId_GreaterEqual(final Long fileConfigId) { - regFileConfigId(CK_GE, fileConfigId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigId The value of fileConfigId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setFileConfigId_LessEqual(final Long fileConfigId) { - regFileConfigId(CK_LE, fileConfigId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param minNumber The min number of fileConfigId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of fileConfigId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setFileConfigId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueFileConfigId(), "FILE_CONFIG_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigIdList The collection of fileConfigId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setFileConfigId_InScope(final Collection<Long> fileConfigIdList) { - doSetFileConfigId_InScope(fileConfigIdList); - } - - protected void doSetFileConfigId_InScope( - final Collection<Long> fileConfigIdList) { - regINS(CK_INS, cTL(fileConfigIdList), getCValueFileConfigId(), - "FILE_CONFIG_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigIdList The collection of fileConfigId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setFileConfigId_NotInScope( - final Collection<Long> fileConfigIdList) { - doSetFileConfigId_NotInScope(fileConfigIdList); - } - - protected void doSetFileConfigId_NotInScope( - final Collection<Long> fileConfigIdList) { - regINS(CK_NINS, cTL(fileConfigIdList), getCValueFileConfigId(), - "FILE_CONFIG_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select FILE_CONFIG_ID from FILE_CRAWLING_CONFIG where ...)} <br /> - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @param subQuery The sub-query of FileCrawlingConfig for 'in-scope'. (NotNull) - */ - public void inScopeFileCrawlingConfig( - final SubQuery<FileCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepFileConfigId_InScopeRelation_FileCrawlingConfig(cb - .query()); - registerInScopeRelation(cb.query(), "FILE_CONFIG_ID", "ID", pp, - "fileCrawlingConfig"); - } - - public abstract String keepFileConfigId_InScopeRelation_FileCrawlingConfig( - FileCrawlingConfigCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select FILE_CONFIG_ID from FILE_CRAWLING_CONFIG where ...)} <br /> - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @param subQuery The sub-query of FileCrawlingConfig for 'not in-scope'. (NotNull) - */ - public void notInScopeFileCrawlingConfig( - final SubQuery<FileCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepFileConfigId_NotInScopeRelation_FileCrawlingConfig(cb - .query()); - registerNotInScopeRelation(cb.query(), "FILE_CONFIG_ID", "ID", pp, - "fileCrawlingConfig"); - } - - public abstract String keepFileConfigId_NotInScopeRelation_FileCrawlingConfig( - FileCrawlingConfigCQ sq); - - protected void regFileConfigId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueFileConfigId(), "FILE_CONFIG_ID"); - } - - protected abstract ConditionValue getCValueFileConfigId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as equal. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_Equal(final Long labelTypeId) { - doSetLabelTypeId_Equal(labelTypeId); - } - - protected void doSetLabelTypeId_Equal(final Long labelTypeId) { - regLabelTypeId(CK_EQ, labelTypeId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as notEqual. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_NotEqual(final Long labelTypeId) { - doSetLabelTypeId_NotEqual(labelTypeId); - } - - protected void doSetLabelTypeId_NotEqual(final Long labelTypeId) { - regLabelTypeId(CK_NES, labelTypeId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_GreaterThan(final Long labelTypeId) { - regLabelTypeId(CK_GT, labelTypeId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as lessThan. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_LessThan(final Long labelTypeId) { - regLabelTypeId(CK_LT, labelTypeId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_GreaterEqual(final Long labelTypeId) { - regLabelTypeId(CK_GE, labelTypeId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_LessEqual(final Long labelTypeId) { - regLabelTypeId(CK_LE, labelTypeId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param minNumber The min number of labelTypeId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of labelTypeId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setLabelTypeId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueLabelTypeId(), "LABEL_TYPE_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeIdList The collection of labelTypeId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setLabelTypeId_InScope(final Collection<Long> labelTypeIdList) { - doSetLabelTypeId_InScope(labelTypeIdList); - } - - protected void doSetLabelTypeId_InScope( - final Collection<Long> labelTypeIdList) { - regINS(CK_INS, cTL(labelTypeIdList), getCValueLabelTypeId(), - "LABEL_TYPE_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeIdList The collection of labelTypeId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setLabelTypeId_NotInScope(final Collection<Long> labelTypeIdList) { - doSetLabelTypeId_NotInScope(labelTypeIdList); - } - - protected void doSetLabelTypeId_NotInScope( - final Collection<Long> labelTypeIdList) { - regINS(CK_NINS, cTL(labelTypeIdList), getCValueLabelTypeId(), - "LABEL_TYPE_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select LABEL_TYPE_ID from LABEL_TYPE where ...)} <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @param subQuery The sub-query of LabelType for 'in-scope'. (NotNull) - */ - public void inScopeLabelType(final SubQuery<LabelTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepLabelTypeId_InScopeRelation_LabelType(cb.query()); - registerInScopeRelation(cb.query(), "LABEL_TYPE_ID", "ID", pp, - "labelType"); - } - - public abstract String keepLabelTypeId_InScopeRelation_LabelType( - LabelTypeCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select LABEL_TYPE_ID from LABEL_TYPE where ...)} <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @param subQuery The sub-query of LabelType for 'not in-scope'. (NotNull) - */ - public void notInScopeLabelType(final SubQuery<LabelTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepLabelTypeId_NotInScopeRelation_LabelType(cb - .query()); - registerNotInScopeRelation(cb.query(), "LABEL_TYPE_ID", "ID", pp, - "labelType"); - } - - public abstract String keepLabelTypeId_NotInScopeRelation_LabelType( - LabelTypeCQ sq); - - protected void regLabelTypeId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueLabelTypeId(), "LABEL_TYPE_ID"); - } - - protected abstract ConditionValue getCValueLabelTypeId(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileConfigToLabelTypeMappingCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, FileConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileConfigToLabelTypeMappingCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, FileConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileConfigToLabelTypeMappingCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, FileConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileConfigToLabelTypeMappingCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, FileConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileConfigToLabelTypeMappingCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, FileConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileConfigToLabelTypeMappingCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, FileConfigToLabelTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToLabelTypeMappingCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(FileConfigToLabelTypeMappingCQ sq); - - protected FileConfigToLabelTypeMappingCB xcreateScalarConditionCB() { - final FileConfigToLabelTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected FileConfigToLabelTypeMappingCB xcreateScalarConditionPartitionByCB() { - final FileConfigToLabelTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<FileConfigToLabelTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived( - FileConfigToLabelTypeMappingCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<FileConfigToLabelTypeMappingCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(FileConfigToLabelTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived( - FileConfigToLabelTypeMappingCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists( - final SubQuery<FileConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(FileConfigToLabelTypeMappingCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope( - final SubQuery<FileConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(FileConfigToLabelTypeMappingCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected FileConfigToLabelTypeMappingCB newMyCB() { - return new FileConfigToLabelTypeMappingCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return FileConfigToLabelTypeMappingCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileConfigToRoleTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileConfigToRoleTypeMappingCQ.java deleted file mode 100644 index e3a2f4995..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileConfigToRoleTypeMappingCQ.java +++ /dev/null @@ -1,862 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.cq.FileConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of FILE_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsFileConfigToRoleTypeMappingCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsFileConfigToRoleTypeMappingCQ( - final ConditionQuery referrerQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "FILE_CONFIG_TO_ROLE_TYPE_MAPPING"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigId The value of fileConfigId as equal. (NullAllowed: if null, no condition) - */ - public void setFileConfigId_Equal(final Long fileConfigId) { - doSetFileConfigId_Equal(fileConfigId); - } - - protected void doSetFileConfigId_Equal(final Long fileConfigId) { - regFileConfigId(CK_EQ, fileConfigId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigId The value of fileConfigId as notEqual. (NullAllowed: if null, no condition) - */ - public void setFileConfigId_NotEqual(final Long fileConfigId) { - doSetFileConfigId_NotEqual(fileConfigId); - } - - protected void doSetFileConfigId_NotEqual(final Long fileConfigId) { - regFileConfigId(CK_NES, fileConfigId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigId The value of fileConfigId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setFileConfigId_GreaterThan(final Long fileConfigId) { - regFileConfigId(CK_GT, fileConfigId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigId The value of fileConfigId as lessThan. (NullAllowed: if null, no condition) - */ - public void setFileConfigId_LessThan(final Long fileConfigId) { - regFileConfigId(CK_LT, fileConfigId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigId The value of fileConfigId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setFileConfigId_GreaterEqual(final Long fileConfigId) { - regFileConfigId(CK_GE, fileConfigId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigId The value of fileConfigId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setFileConfigId_LessEqual(final Long fileConfigId) { - regFileConfigId(CK_LE, fileConfigId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param minNumber The min number of fileConfigId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of fileConfigId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setFileConfigId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueFileConfigId(), "FILE_CONFIG_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigIdList The collection of fileConfigId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setFileConfigId_InScope(final Collection<Long> fileConfigIdList) { - doSetFileConfigId_InScope(fileConfigIdList); - } - - protected void doSetFileConfigId_InScope( - final Collection<Long> fileConfigIdList) { - regINS(CK_INS, cTL(fileConfigIdList), getCValueFileConfigId(), - "FILE_CONFIG_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @param fileConfigIdList The collection of fileConfigId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setFileConfigId_NotInScope( - final Collection<Long> fileConfigIdList) { - doSetFileConfigId_NotInScope(fileConfigIdList); - } - - protected void doSetFileConfigId_NotInScope( - final Collection<Long> fileConfigIdList) { - regINS(CK_NINS, cTL(fileConfigIdList), getCValueFileConfigId(), - "FILE_CONFIG_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select FILE_CONFIG_ID from FILE_CRAWLING_CONFIG where ...)} <br /> - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @param subQuery The sub-query of FileCrawlingConfig for 'in-scope'. (NotNull) - */ - public void inScopeFileCrawlingConfig( - final SubQuery<FileCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepFileConfigId_InScopeRelation_FileCrawlingConfig(cb - .query()); - registerInScopeRelation(cb.query(), "FILE_CONFIG_ID", "ID", pp, - "fileCrawlingConfig"); - } - - public abstract String keepFileConfigId_InScopeRelation_FileCrawlingConfig( - FileCrawlingConfigCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select FILE_CONFIG_ID from FILE_CRAWLING_CONFIG where ...)} <br /> - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @param subQuery The sub-query of FileCrawlingConfig for 'not in-scope'. (NotNull) - */ - public void notInScopeFileCrawlingConfig( - final SubQuery<FileCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepFileConfigId_NotInScopeRelation_FileCrawlingConfig(cb - .query()); - registerNotInScopeRelation(cb.query(), "FILE_CONFIG_ID", "ID", pp, - "fileCrawlingConfig"); - } - - public abstract String keepFileConfigId_NotInScopeRelation_FileCrawlingConfig( - FileCrawlingConfigCQ sq); - - protected void regFileConfigId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueFileConfigId(), "FILE_CONFIG_ID"); - } - - protected abstract ConditionValue getCValueFileConfigId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as equal. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_Equal(final Long roleTypeId) { - doSetRoleTypeId_Equal(roleTypeId); - } - - protected void doSetRoleTypeId_Equal(final Long roleTypeId) { - regRoleTypeId(CK_EQ, roleTypeId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as notEqual. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_NotEqual(final Long roleTypeId) { - doSetRoleTypeId_NotEqual(roleTypeId); - } - - protected void doSetRoleTypeId_NotEqual(final Long roleTypeId) { - regRoleTypeId(CK_NES, roleTypeId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_GreaterThan(final Long roleTypeId) { - regRoleTypeId(CK_GT, roleTypeId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as lessThan. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_LessThan(final Long roleTypeId) { - regRoleTypeId(CK_LT, roleTypeId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_GreaterEqual(final Long roleTypeId) { - regRoleTypeId(CK_GE, roleTypeId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_LessEqual(final Long roleTypeId) { - regRoleTypeId(CK_LE, roleTypeId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param minNumber The min number of roleTypeId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of roleTypeId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setRoleTypeId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueRoleTypeId(), "ROLE_TYPE_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeIdList The collection of roleTypeId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setRoleTypeId_InScope(final Collection<Long> roleTypeIdList) { - doSetRoleTypeId_InScope(roleTypeIdList); - } - - protected void doSetRoleTypeId_InScope(final Collection<Long> roleTypeIdList) { - regINS(CK_INS, cTL(roleTypeIdList), getCValueRoleTypeId(), - "ROLE_TYPE_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeIdList The collection of roleTypeId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setRoleTypeId_NotInScope(final Collection<Long> roleTypeIdList) { - doSetRoleTypeId_NotInScope(roleTypeIdList); - } - - protected void doSetRoleTypeId_NotInScope( - final Collection<Long> roleTypeIdList) { - regINS(CK_NINS, cTL(roleTypeIdList), getCValueRoleTypeId(), - "ROLE_TYPE_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select ROLE_TYPE_ID from ROLE_TYPE where ...)} <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @param subQuery The sub-query of RoleType for 'in-scope'. (NotNull) - */ - public void inScopeRoleType(final SubQuery<RoleTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepRoleTypeId_InScopeRelation_RoleType(cb.query()); - registerInScopeRelation(cb.query(), "ROLE_TYPE_ID", "ID", pp, - "roleType"); - } - - public abstract String keepRoleTypeId_InScopeRelation_RoleType(RoleTypeCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select ROLE_TYPE_ID from ROLE_TYPE where ...)} <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @param subQuery The sub-query of RoleType for 'not in-scope'. (NotNull) - */ - public void notInScopeRoleType(final SubQuery<RoleTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepRoleTypeId_NotInScopeRelation_RoleType(cb.query()); - registerNotInScopeRelation(cb.query(), "ROLE_TYPE_ID", "ID", pp, - "roleType"); - } - - public abstract String keepRoleTypeId_NotInScopeRelation_RoleType( - RoleTypeCQ sq); - - protected void regRoleTypeId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueRoleTypeId(), "ROLE_TYPE_ID"); - } - - protected abstract ConditionValue getCValueRoleTypeId(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileConfigToRoleTypeMappingCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, FileConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileConfigToRoleTypeMappingCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, FileConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileConfigToRoleTypeMappingCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, FileConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileConfigToRoleTypeMappingCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, FileConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileConfigToRoleTypeMappingCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, FileConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileConfigToRoleTypeMappingCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, FileConfigToRoleTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToRoleTypeMappingCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(FileConfigToRoleTypeMappingCQ sq); - - protected FileConfigToRoleTypeMappingCB xcreateScalarConditionCB() { - final FileConfigToRoleTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected FileConfigToRoleTypeMappingCB xcreateScalarConditionPartitionByCB() { - final FileConfigToRoleTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<FileConfigToRoleTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived( - FileConfigToRoleTypeMappingCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<FileConfigToRoleTypeMappingCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(FileConfigToRoleTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived( - FileConfigToRoleTypeMappingCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists( - final SubQuery<FileConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(FileConfigToRoleTypeMappingCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope( - final SubQuery<FileConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(FileConfigToRoleTypeMappingCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected FileConfigToRoleTypeMappingCB newMyCB() { - return new FileConfigToRoleTypeMappingCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return FileConfigToRoleTypeMappingCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileCrawlingConfigCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileCrawlingConfigCQ.java deleted file mode 100644 index 798872f31..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsFileCrawlingConfigCQ.java +++ /dev/null @@ -1,3845 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.FileAuthenticationCB; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.FileAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.FileConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpQDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of FILE_CRAWLING_CONFIG. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsFileCrawlingConfigCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsFileCrawlingConfigCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "FILE_CRAWLING_CONFIG"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select FILE_CRAWLING_CONFIG_ID from FILE_AUTHENTICATION where ...)} <br /> - * FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsFileAuthenticationList</span>(new SubQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of FileAuthenticationList for 'exists'. (NotNull) - */ - public void existsFileAuthenticationList( - final SubQuery<FileAuthenticationCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_FileAuthenticationList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "FILE_CRAWLING_CONFIG_ID", pp, - "fileAuthenticationList"); - } - - public abstract String keepId_ExistsReferrer_FileAuthenticationList( - FileAuthenticationCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select FILE_CONFIG_ID from FILE_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsFileConfigToLabelTypeMappingList</span>(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of FileConfigToLabelTypeMappingList for 'exists'. (NotNull) - */ - public void existsFileConfigToLabelTypeMappingList( - final SubQuery<FileConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_FileConfigToLabelTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "FILE_CONFIG_ID", pp, - "fileConfigToLabelTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_FileConfigToLabelTypeMappingList( - FileConfigToLabelTypeMappingCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select FILE_CONFIG_ID from FILE_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsFileConfigToRoleTypeMappingList</span>(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of FileConfigToRoleTypeMappingList for 'exists'. (NotNull) - */ - public void existsFileConfigToRoleTypeMappingList( - final SubQuery<FileConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_FileConfigToRoleTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "FILE_CONFIG_ID", pp, - "fileConfigToRoleTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_FileConfigToRoleTypeMappingList( - FileConfigToRoleTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select FILE_CRAWLING_CONFIG_ID from FILE_AUTHENTICATION where ...)} <br /> - * FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsFileAuthenticationList</span>(new SubQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_FileAuthenticationList for 'not exists'. (NotNull) - */ - public void notExistsFileAuthenticationList( - final SubQuery<FileAuthenticationCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_FileAuthenticationList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "FILE_CRAWLING_CONFIG_ID", - pp, "fileAuthenticationList"); - } - - public abstract String keepId_NotExistsReferrer_FileAuthenticationList( - FileAuthenticationCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select FILE_CONFIG_ID from FILE_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsFileConfigToLabelTypeMappingList</span>(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_FileConfigToLabelTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsFileConfigToLabelTypeMappingList( - final SubQuery<FileConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_FileConfigToLabelTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "FILE_CONFIG_ID", pp, - "fileConfigToLabelTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_FileConfigToLabelTypeMappingList( - FileConfigToLabelTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select FILE_CONFIG_ID from FILE_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsFileConfigToRoleTypeMappingList</span>(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_FileConfigToRoleTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsFileConfigToRoleTypeMappingList( - final SubQuery<FileConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_FileConfigToRoleTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "FILE_CONFIG_ID", pp, - "fileConfigToRoleTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_FileConfigToRoleTypeMappingList( - FileConfigToRoleTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select FILE_CRAWLING_CONFIG_ID from FILE_AUTHENTICATION where ...)} <br /> - * FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationAsOne'. - * @param subQuery The sub-query of FileAuthenticationList for 'in-scope'. (NotNull) - */ - public void inScopeFileAuthenticationList( - final SubQuery<FileAuthenticationCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_FileAuthenticationList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "FILE_CRAWLING_CONFIG_ID", - pp, "fileAuthenticationList"); - } - - public abstract String keepId_InScopeRelation_FileAuthenticationList( - FileAuthenticationCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select FILE_CONFIG_ID from FILE_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingAsOne'. - * @param subQuery The sub-query of FileConfigToLabelTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeFileConfigToLabelTypeMappingList( - final SubQuery<FileConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_FileConfigToLabelTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "FILE_CONFIG_ID", pp, - "fileConfigToLabelTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_FileConfigToLabelTypeMappingList( - FileConfigToLabelTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select FILE_CONFIG_ID from FILE_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of FileConfigToRoleTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeFileConfigToRoleTypeMappingList( - final SubQuery<FileConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_FileConfigToRoleTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "FILE_CONFIG_ID", pp, - "fileConfigToRoleTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_FileConfigToRoleTypeMappingList( - FileConfigToRoleTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select FILE_CRAWLING_CONFIG_ID from FILE_AUTHENTICATION where ...)} <br /> - * FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationAsOne'. - * @param subQuery The sub-query of FileAuthenticationList for 'not in-scope'. (NotNull) - */ - public void notInScopeFileAuthenticationList( - final SubQuery<FileAuthenticationCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_FileAuthenticationList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "FILE_CRAWLING_CONFIG_ID", - pp, "fileAuthenticationList"); - } - - public abstract String keepId_NotInScopeRelation_FileAuthenticationList( - FileAuthenticationCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select FILE_CONFIG_ID from FILE_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingAsOne'. - * @param subQuery The sub-query of FileConfigToLabelTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeFileConfigToLabelTypeMappingList( - final SubQuery<FileConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_FileConfigToLabelTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "FILE_CONFIG_ID", pp, - "fileConfigToLabelTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_FileConfigToLabelTypeMappingList( - FileConfigToLabelTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select FILE_CONFIG_ID from FILE_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of FileConfigToRoleTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeFileConfigToRoleTypeMappingList( - final SubQuery<FileConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_FileConfigToRoleTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "FILE_CONFIG_ID", pp, - "fileConfigToRoleTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_FileConfigToRoleTypeMappingList( - FileConfigToRoleTypeMappingCQ sq); - - public void xsderiveFileAuthenticationList(final String fn, - final SubQuery<FileAuthenticationCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_FileAuthenticationList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", - "FILE_CRAWLING_CONFIG_ID", pp, "fileAuthenticationList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_FileAuthenticationList( - FileAuthenticationCQ sq); - - public void xsderiveFileConfigToLabelTypeMappingList(final String fn, - final SubQuery<FileConfigToLabelTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "FILE_CONFIG_ID", - pp, "fileConfigToLabelTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList( - FileConfigToLabelTypeMappingCQ sq); - - public void xsderiveFileConfigToRoleTypeMappingList(final String fn, - final SubQuery<FileConfigToRoleTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "FILE_CONFIG_ID", - pp, "fileConfigToRoleTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList( - FileConfigToRoleTypeMappingCQ sq); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from FILE_AUTHENTICATION where ...)} <br /> - * FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedFileAuthenticationList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<FileAuthenticationCB>() { - * public void query(FileAuthenticationCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<FileAuthenticationCB> derivedFileAuthenticationList() { - return xcreateQDRFunctionFileAuthenticationList(); - } - - protected HpQDRFunction<FileAuthenticationCB> xcreateQDRFunctionFileAuthenticationList() { - return new HpQDRFunction<FileAuthenticationCB>( - new HpQDRSetupper<FileAuthenticationCB>() { - @Override - public void setup(final String fn, - final SubQuery<FileAuthenticationCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveFileAuthenticationList(fn, sq, rd, vl, op); - } - }); - } - - public void xqderiveFileAuthenticationList(final String fn, - final SubQuery<FileAuthenticationCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_FileAuthenticationList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_FileAuthenticationListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", - "FILE_CRAWLING_CONFIG_ID", sqpp, "fileAuthenticationList", rd, - vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_FileAuthenticationList( - FileAuthenticationCQ sq); - - public abstract String keepId_QueryDerivedReferrer_FileAuthenticationListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from FILE_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedFileConfigToLabelTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<FileConfigToLabelTypeMappingCB> derivedFileConfigToLabelTypeMappingList() { - return xcreateQDRFunctionFileConfigToLabelTypeMappingList(); - } - - protected HpQDRFunction<FileConfigToLabelTypeMappingCB> xcreateQDRFunctionFileConfigToLabelTypeMappingList() { - return new HpQDRFunction<FileConfigToLabelTypeMappingCB>( - new HpQDRSetupper<FileConfigToLabelTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<FileConfigToLabelTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveFileConfigToLabelTypeMappingList(fn, sq, rd, - vl, op); - } - }); - } - - public void xqderiveFileConfigToLabelTypeMappingList(final String fn, - final SubQuery<FileConfigToLabelTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "FILE_CONFIG_ID", - sqpp, "fileConfigToLabelTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingList( - FileConfigToLabelTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from FILE_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedFileConfigToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<FileConfigToRoleTypeMappingCB> derivedFileConfigToRoleTypeMappingList() { - return xcreateQDRFunctionFileConfigToRoleTypeMappingList(); - } - - protected HpQDRFunction<FileConfigToRoleTypeMappingCB> xcreateQDRFunctionFileConfigToRoleTypeMappingList() { - return new HpQDRFunction<FileConfigToRoleTypeMappingCB>( - new HpQDRSetupper<FileConfigToRoleTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<FileConfigToRoleTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveFileConfigToRoleTypeMappingList(fn, sq, rd, vl, - op); - } - }); - } - - public void xqderiveFileConfigToRoleTypeMappingList(final String fn, - final SubQuery<FileConfigToRoleTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "FILE_CONFIG_ID", - sqpp, "fileConfigToRoleTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingList( - FileConfigToRoleTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingListParameter( - Object vl); - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setName_Equal(final String name) { - doSetName_Equal(fRES(name)); - } - - protected void doSetName_Equal(final String name) { - regName(CK_EQ, name); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotEqual(final String name) { - doSetName_NotEqual(fRES(name)); - } - - protected void doSetName_NotEqual(final String name) { - regName(CK_NES, name); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterThan(final String name) { - regName(CK_GT, fRES(name)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessThan(final String name) { - regName(CK_LT, fRES(name)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterEqual(final String name) { - regName(CK_GE, fRES(name)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessEqual(final String name) { - regName(CK_LE, fRES(name)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param nameList The collection of name as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_InScope(final Collection<String> nameList) { - doSetName_InScope(nameList); - } - - public void doSetName_InScope(final Collection<String> nameList) { - regINS(CK_INS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param nameList The collection of name as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotInScope(final Collection<String> nameList) { - doSetName_NotInScope(nameList); - } - - public void doSetName_NotInScope(final Collection<String> nameList) { - regINS(CK_NINS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setName_PrefixSearch(final String name) { - setName_LikeSearch(name, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} <br /> - * <pre>e.g. setName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param name The value of name as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setName_LikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setName_NotLikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - protected void regName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueName(), "NAME"); - } - - protected abstract ConditionValue getCValueName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PATHS: {NotNull, VARCHAR(4000)} - * @param paths The value of paths as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setPaths_Equal(final String paths) { - doSetPaths_Equal(fRES(paths)); - } - - protected void doSetPaths_Equal(final String paths) { - regPaths(CK_EQ, paths); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PATHS: {NotNull, VARCHAR(4000)} - * @param paths The value of paths as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setPaths_NotEqual(final String paths) { - doSetPaths_NotEqual(fRES(paths)); - } - - protected void doSetPaths_NotEqual(final String paths) { - regPaths(CK_NES, paths); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PATHS: {NotNull, VARCHAR(4000)} - * @param paths The value of paths as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setPaths_GreaterThan(final String paths) { - regPaths(CK_GT, fRES(paths)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PATHS: {NotNull, VARCHAR(4000)} - * @param paths The value of paths as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setPaths_LessThan(final String paths) { - regPaths(CK_LT, fRES(paths)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PATHS: {NotNull, VARCHAR(4000)} - * @param paths The value of paths as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setPaths_GreaterEqual(final String paths) { - regPaths(CK_GE, fRES(paths)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PATHS: {NotNull, VARCHAR(4000)} - * @param paths The value of paths as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setPaths_LessEqual(final String paths) { - regPaths(CK_LE, fRES(paths)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PATHS: {NotNull, VARCHAR(4000)} - * @param pathsList The collection of paths as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setPaths_InScope(final Collection<String> pathsList) { - doSetPaths_InScope(pathsList); - } - - public void doSetPaths_InScope(final Collection<String> pathsList) { - regINS(CK_INS, cTL(pathsList), getCValuePaths(), "PATHS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PATHS: {NotNull, VARCHAR(4000)} - * @param pathsList The collection of paths as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setPaths_NotInScope(final Collection<String> pathsList) { - doSetPaths_NotInScope(pathsList); - } - - public void doSetPaths_NotInScope(final Collection<String> pathsList) { - regINS(CK_NINS, cTL(pathsList), getCValuePaths(), "PATHS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PATHS: {NotNull, VARCHAR(4000)} - * @param paths The value of paths as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setPaths_PrefixSearch(final String paths) { - setPaths_LikeSearch(paths, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PATHS: {NotNull, VARCHAR(4000)} <br /> - * <pre>e.g. setPaths_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param paths The value of paths as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setPaths_LikeSearch(final String paths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(paths), getCValuePaths(), "PATHS", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PATHS: {NotNull, VARCHAR(4000)} - * @param paths The value of paths as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setPaths_NotLikeSearch(final String paths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(paths), getCValuePaths(), "PATHS", likeSearchOption); - } - - protected void regPaths(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValuePaths(), "PATHS"); - } - - protected abstract ConditionValue getCValuePaths(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_Equal(final String includedPaths) { - doSetIncludedPaths_Equal(fRES(includedPaths)); - } - - protected void doSetIncludedPaths_Equal(final String includedPaths) { - regIncludedPaths(CK_EQ, includedPaths); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_NotEqual(final String includedPaths) { - doSetIncludedPaths_NotEqual(fRES(includedPaths)); - } - - protected void doSetIncludedPaths_NotEqual(final String includedPaths) { - regIncludedPaths(CK_NES, includedPaths); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_GreaterThan(final String includedPaths) { - regIncludedPaths(CK_GT, fRES(includedPaths)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_LessThan(final String includedPaths) { - regIncludedPaths(CK_LT, fRES(includedPaths)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_GreaterEqual(final String includedPaths) { - regIncludedPaths(CK_GE, fRES(includedPaths)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_LessEqual(final String includedPaths) { - regIncludedPaths(CK_LE, fRES(includedPaths)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPathsList The collection of includedPaths as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_InScope( - final Collection<String> includedPathsList) { - doSetIncludedPaths_InScope(includedPathsList); - } - - public void doSetIncludedPaths_InScope( - final Collection<String> includedPathsList) { - regINS(CK_INS, cTL(includedPathsList), getCValueIncludedPaths(), - "INCLUDED_PATHS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPathsList The collection of includedPaths as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_NotInScope( - final Collection<String> includedPathsList) { - doSetIncludedPaths_NotInScope(includedPathsList); - } - - public void doSetIncludedPaths_NotInScope( - final Collection<String> includedPathsList) { - regINS(CK_NINS, cTL(includedPathsList), getCValueIncludedPaths(), - "INCLUDED_PATHS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_PrefixSearch(final String includedPaths) { - setIncludedPaths_LikeSearch(includedPaths, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} <br /> - * <pre>e.g. setIncludedPaths_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param includedPaths The value of includedPaths as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setIncludedPaths_LikeSearch(final String includedPaths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(includedPaths), getCValueIncludedPaths(), - "INCLUDED_PATHS", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setIncludedPaths_NotLikeSearch(final String includedPaths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(includedPaths), getCValueIncludedPaths(), - "INCLUDED_PATHS", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - */ - public void setIncludedPaths_IsNull() { - regIncludedPaths(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - */ - public void setIncludedPaths_IsNullOrEmpty() { - regIncludedPaths(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - */ - public void setIncludedPaths_IsNotNull() { - regIncludedPaths(CK_ISNN, DOBJ); - } - - protected void regIncludedPaths(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueIncludedPaths(), "INCLUDED_PATHS"); - } - - protected abstract ConditionValue getCValueIncludedPaths(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_Equal(final String excludedPaths) { - doSetExcludedPaths_Equal(fRES(excludedPaths)); - } - - protected void doSetExcludedPaths_Equal(final String excludedPaths) { - regExcludedPaths(CK_EQ, excludedPaths); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_NotEqual(final String excludedPaths) { - doSetExcludedPaths_NotEqual(fRES(excludedPaths)); - } - - protected void doSetExcludedPaths_NotEqual(final String excludedPaths) { - regExcludedPaths(CK_NES, excludedPaths); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_GreaterThan(final String excludedPaths) { - regExcludedPaths(CK_GT, fRES(excludedPaths)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_LessThan(final String excludedPaths) { - regExcludedPaths(CK_LT, fRES(excludedPaths)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_GreaterEqual(final String excludedPaths) { - regExcludedPaths(CK_GE, fRES(excludedPaths)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_LessEqual(final String excludedPaths) { - regExcludedPaths(CK_LE, fRES(excludedPaths)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPathsList The collection of excludedPaths as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_InScope( - final Collection<String> excludedPathsList) { - doSetExcludedPaths_InScope(excludedPathsList); - } - - public void doSetExcludedPaths_InScope( - final Collection<String> excludedPathsList) { - regINS(CK_INS, cTL(excludedPathsList), getCValueExcludedPaths(), - "EXCLUDED_PATHS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPathsList The collection of excludedPaths as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_NotInScope( - final Collection<String> excludedPathsList) { - doSetExcludedPaths_NotInScope(excludedPathsList); - } - - public void doSetExcludedPaths_NotInScope( - final Collection<String> excludedPathsList) { - regINS(CK_NINS, cTL(excludedPathsList), getCValueExcludedPaths(), - "EXCLUDED_PATHS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_PrefixSearch(final String excludedPaths) { - setExcludedPaths_LikeSearch(excludedPaths, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} <br /> - * <pre>e.g. setExcludedPaths_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param excludedPaths The value of excludedPaths as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setExcludedPaths_LikeSearch(final String excludedPaths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(excludedPaths), getCValueExcludedPaths(), - "EXCLUDED_PATHS", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setExcludedPaths_NotLikeSearch(final String excludedPaths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(excludedPaths), getCValueExcludedPaths(), - "EXCLUDED_PATHS", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - */ - public void setExcludedPaths_IsNull() { - regExcludedPaths(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - */ - public void setExcludedPaths_IsNullOrEmpty() { - regExcludedPaths(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - */ - public void setExcludedPaths_IsNotNull() { - regExcludedPaths(CK_ISNN, DOBJ); - } - - protected void regExcludedPaths(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueExcludedPaths(), "EXCLUDED_PATHS"); - } - - protected abstract ConditionValue getCValueExcludedPaths(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param includedDocPaths The value of includedDocPaths as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocPaths_Equal(final String includedDocPaths) { - doSetIncludedDocPaths_Equal(fRES(includedDocPaths)); - } - - protected void doSetIncludedDocPaths_Equal(final String includedDocPaths) { - regIncludedDocPaths(CK_EQ, includedDocPaths); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param includedDocPaths The value of includedDocPaths as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocPaths_NotEqual(final String includedDocPaths) { - doSetIncludedDocPaths_NotEqual(fRES(includedDocPaths)); - } - - protected void doSetIncludedDocPaths_NotEqual(final String includedDocPaths) { - regIncludedDocPaths(CK_NES, includedDocPaths); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param includedDocPaths The value of includedDocPaths as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocPaths_GreaterThan(final String includedDocPaths) { - regIncludedDocPaths(CK_GT, fRES(includedDocPaths)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param includedDocPaths The value of includedDocPaths as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocPaths_LessThan(final String includedDocPaths) { - regIncludedDocPaths(CK_LT, fRES(includedDocPaths)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param includedDocPaths The value of includedDocPaths as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocPaths_GreaterEqual(final String includedDocPaths) { - regIncludedDocPaths(CK_GE, fRES(includedDocPaths)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param includedDocPaths The value of includedDocPaths as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocPaths_LessEqual(final String includedDocPaths) { - regIncludedDocPaths(CK_LE, fRES(includedDocPaths)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param includedDocPathsList The collection of includedDocPaths as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocPaths_InScope( - final Collection<String> includedDocPathsList) { - doSetIncludedDocPaths_InScope(includedDocPathsList); - } - - public void doSetIncludedDocPaths_InScope( - final Collection<String> includedDocPathsList) { - regINS(CK_INS, cTL(includedDocPathsList), getCValueIncludedDocPaths(), - "INCLUDED_DOC_PATHS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param includedDocPathsList The collection of includedDocPaths as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocPaths_NotInScope( - final Collection<String> includedDocPathsList) { - doSetIncludedDocPaths_NotInScope(includedDocPathsList); - } - - public void doSetIncludedDocPaths_NotInScope( - final Collection<String> includedDocPathsList) { - regINS(CK_NINS, cTL(includedDocPathsList), getCValueIncludedDocPaths(), - "INCLUDED_DOC_PATHS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param includedDocPaths The value of includedDocPaths as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocPaths_PrefixSearch(final String includedDocPaths) { - setIncludedDocPaths_LikeSearch(includedDocPaths, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} <br /> - * <pre>e.g. setIncludedDocPaths_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param includedDocPaths The value of includedDocPaths as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setIncludedDocPaths_LikeSearch(final String includedDocPaths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(includedDocPaths), getCValueIncludedDocPaths(), - "INCLUDED_DOC_PATHS", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param includedDocPaths The value of includedDocPaths as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setIncludedDocPaths_NotLikeSearch( - final String includedDocPaths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(includedDocPaths), getCValueIncludedDocPaths(), - "INCLUDED_DOC_PATHS", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - */ - public void setIncludedDocPaths_IsNull() { - regIncludedDocPaths(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - */ - public void setIncludedDocPaths_IsNullOrEmpty() { - regIncludedDocPaths(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - */ - public void setIncludedDocPaths_IsNotNull() { - regIncludedDocPaths(CK_ISNN, DOBJ); - } - - protected void regIncludedDocPaths(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueIncludedDocPaths(), "INCLUDED_DOC_PATHS"); - } - - protected abstract ConditionValue getCValueIncludedDocPaths(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param excludedDocPaths The value of excludedDocPaths as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocPaths_Equal(final String excludedDocPaths) { - doSetExcludedDocPaths_Equal(fRES(excludedDocPaths)); - } - - protected void doSetExcludedDocPaths_Equal(final String excludedDocPaths) { - regExcludedDocPaths(CK_EQ, excludedDocPaths); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param excludedDocPaths The value of excludedDocPaths as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocPaths_NotEqual(final String excludedDocPaths) { - doSetExcludedDocPaths_NotEqual(fRES(excludedDocPaths)); - } - - protected void doSetExcludedDocPaths_NotEqual(final String excludedDocPaths) { - regExcludedDocPaths(CK_NES, excludedDocPaths); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param excludedDocPaths The value of excludedDocPaths as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocPaths_GreaterThan(final String excludedDocPaths) { - regExcludedDocPaths(CK_GT, fRES(excludedDocPaths)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param excludedDocPaths The value of excludedDocPaths as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocPaths_LessThan(final String excludedDocPaths) { - regExcludedDocPaths(CK_LT, fRES(excludedDocPaths)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param excludedDocPaths The value of excludedDocPaths as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocPaths_GreaterEqual(final String excludedDocPaths) { - regExcludedDocPaths(CK_GE, fRES(excludedDocPaths)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param excludedDocPaths The value of excludedDocPaths as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocPaths_LessEqual(final String excludedDocPaths) { - regExcludedDocPaths(CK_LE, fRES(excludedDocPaths)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param excludedDocPathsList The collection of excludedDocPaths as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocPaths_InScope( - final Collection<String> excludedDocPathsList) { - doSetExcludedDocPaths_InScope(excludedDocPathsList); - } - - public void doSetExcludedDocPaths_InScope( - final Collection<String> excludedDocPathsList) { - regINS(CK_INS, cTL(excludedDocPathsList), getCValueExcludedDocPaths(), - "EXCLUDED_DOC_PATHS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param excludedDocPathsList The collection of excludedDocPaths as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocPaths_NotInScope( - final Collection<String> excludedDocPathsList) { - doSetExcludedDocPaths_NotInScope(excludedDocPathsList); - } - - public void doSetExcludedDocPaths_NotInScope( - final Collection<String> excludedDocPathsList) { - regINS(CK_NINS, cTL(excludedDocPathsList), getCValueExcludedDocPaths(), - "EXCLUDED_DOC_PATHS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param excludedDocPaths The value of excludedDocPaths as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocPaths_PrefixSearch(final String excludedDocPaths) { - setExcludedDocPaths_LikeSearch(excludedDocPaths, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} <br /> - * <pre>e.g. setExcludedDocPaths_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param excludedDocPaths The value of excludedDocPaths as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setExcludedDocPaths_LikeSearch(final String excludedDocPaths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(excludedDocPaths), getCValueExcludedDocPaths(), - "EXCLUDED_DOC_PATHS", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @param excludedDocPaths The value of excludedDocPaths as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setExcludedDocPaths_NotLikeSearch( - final String excludedDocPaths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(excludedDocPaths), getCValueExcludedDocPaths(), - "EXCLUDED_DOC_PATHS", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - */ - public void setExcludedDocPaths_IsNull() { - regExcludedDocPaths(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - */ - public void setExcludedDocPaths_IsNullOrEmpty() { - regExcludedDocPaths(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - */ - public void setExcludedDocPaths_IsNotNull() { - regExcludedDocPaths(CK_ISNN, DOBJ); - } - - protected void regExcludedDocPaths(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueExcludedDocPaths(), "EXCLUDED_DOC_PATHS"); - } - - protected abstract ConditionValue getCValueExcludedDocPaths(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_Equal(final String configParameter) { - doSetConfigParameter_Equal(fRES(configParameter)); - } - - protected void doSetConfigParameter_Equal(final String configParameter) { - regConfigParameter(CK_EQ, configParameter); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_NotEqual(final String configParameter) { - doSetConfigParameter_NotEqual(fRES(configParameter)); - } - - protected void doSetConfigParameter_NotEqual(final String configParameter) { - regConfigParameter(CK_NES, configParameter); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_GreaterThan(final String configParameter) { - regConfigParameter(CK_GT, fRES(configParameter)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_LessThan(final String configParameter) { - regConfigParameter(CK_LT, fRES(configParameter)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_GreaterEqual(final String configParameter) { - regConfigParameter(CK_GE, fRES(configParameter)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_LessEqual(final String configParameter) { - regConfigParameter(CK_LE, fRES(configParameter)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameterList The collection of configParameter as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_InScope( - final Collection<String> configParameterList) { - doSetConfigParameter_InScope(configParameterList); - } - - public void doSetConfigParameter_InScope( - final Collection<String> configParameterList) { - regINS(CK_INS, cTL(configParameterList), getCValueConfigParameter(), - "CONFIG_PARAMETER"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameterList The collection of configParameter as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_NotInScope( - final Collection<String> configParameterList) { - doSetConfigParameter_NotInScope(configParameterList); - } - - public void doSetConfigParameter_NotInScope( - final Collection<String> configParameterList) { - regINS(CK_NINS, cTL(configParameterList), getCValueConfigParameter(), - "CONFIG_PARAMETER"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_PrefixSearch(final String configParameter) { - setConfigParameter_LikeSearch(configParameter, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} <br /> - * <pre>e.g. setConfigParameter_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param configParameter The value of configParameter as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setConfigParameter_LikeSearch(final String configParameter, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(configParameter), getCValueConfigParameter(), - "CONFIG_PARAMETER", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setConfigParameter_NotLikeSearch(final String configParameter, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(configParameter), getCValueConfigParameter(), - "CONFIG_PARAMETER", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - */ - public void setConfigParameter_IsNull() { - regConfigParameter(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - */ - public void setConfigParameter_IsNullOrEmpty() { - regConfigParameter(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - */ - public void setConfigParameter_IsNotNull() { - regConfigParameter(CK_ISNN, DOBJ); - } - - protected void regConfigParameter(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueConfigParameter(), "CONFIG_PARAMETER"); - } - - protected abstract ConditionValue getCValueConfigParameter(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depth The value of depth as equal. (NullAllowed: if null, no condition) - */ - public void setDepth_Equal(final Integer depth) { - doSetDepth_Equal(depth); - } - - protected void doSetDepth_Equal(final Integer depth) { - regDepth(CK_EQ, depth); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depth The value of depth as notEqual. (NullAllowed: if null, no condition) - */ - public void setDepth_NotEqual(final Integer depth) { - doSetDepth_NotEqual(depth); - } - - protected void doSetDepth_NotEqual(final Integer depth) { - regDepth(CK_NES, depth); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depth The value of depth as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDepth_GreaterThan(final Integer depth) { - regDepth(CK_GT, depth); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depth The value of depth as lessThan. (NullAllowed: if null, no condition) - */ - public void setDepth_LessThan(final Integer depth) { - regDepth(CK_LT, depth); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depth The value of depth as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDepth_GreaterEqual(final Integer depth) { - regDepth(CK_GE, depth); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depth The value of depth as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDepth_LessEqual(final Integer depth) { - regDepth(CK_LE, depth); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param minNumber The min number of depth. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of depth. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setDepth_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueDepth(), "DEPTH", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depthList The collection of depth as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDepth_InScope(final Collection<Integer> depthList) { - doSetDepth_InScope(depthList); - } - - protected void doSetDepth_InScope(final Collection<Integer> depthList) { - regINS(CK_INS, cTL(depthList), getCValueDepth(), "DEPTH"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depthList The collection of depth as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDepth_NotInScope(final Collection<Integer> depthList) { - doSetDepth_NotInScope(depthList); - } - - protected void doSetDepth_NotInScope(final Collection<Integer> depthList) { - regINS(CK_NINS, cTL(depthList), getCValueDepth(), "DEPTH"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - */ - public void setDepth_IsNull() { - regDepth(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - */ - public void setDepth_IsNotNull() { - regDepth(CK_ISNN, DOBJ); - } - - protected void regDepth(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDepth(), "DEPTH"); - } - - protected abstract ConditionValue getCValueDepth(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCount The value of maxAccessCount as equal. (NullAllowed: if null, no condition) - */ - public void setMaxAccessCount_Equal(final Long maxAccessCount) { - doSetMaxAccessCount_Equal(maxAccessCount); - } - - protected void doSetMaxAccessCount_Equal(final Long maxAccessCount) { - regMaxAccessCount(CK_EQ, maxAccessCount); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCount The value of maxAccessCount as notEqual. (NullAllowed: if null, no condition) - */ - public void setMaxAccessCount_NotEqual(final Long maxAccessCount) { - doSetMaxAccessCount_NotEqual(maxAccessCount); - } - - protected void doSetMaxAccessCount_NotEqual(final Long maxAccessCount) { - regMaxAccessCount(CK_NES, maxAccessCount); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCount The value of maxAccessCount as greaterThan. (NullAllowed: if null, no condition) - */ - public void setMaxAccessCount_GreaterThan(final Long maxAccessCount) { - regMaxAccessCount(CK_GT, maxAccessCount); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCount The value of maxAccessCount as lessThan. (NullAllowed: if null, no condition) - */ - public void setMaxAccessCount_LessThan(final Long maxAccessCount) { - regMaxAccessCount(CK_LT, maxAccessCount); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCount The value of maxAccessCount as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setMaxAccessCount_GreaterEqual(final Long maxAccessCount) { - regMaxAccessCount(CK_GE, maxAccessCount); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCount The value of maxAccessCount as lessEqual. (NullAllowed: if null, no condition) - */ - public void setMaxAccessCount_LessEqual(final Long maxAccessCount) { - regMaxAccessCount(CK_LE, maxAccessCount); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param minNumber The min number of maxAccessCount. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of maxAccessCount. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setMaxAccessCount_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueMaxAccessCount(), - "MAX_ACCESS_COUNT", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCountList The collection of maxAccessCount as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setMaxAccessCount_InScope( - final Collection<Long> maxAccessCountList) { - doSetMaxAccessCount_InScope(maxAccessCountList); - } - - protected void doSetMaxAccessCount_InScope( - final Collection<Long> maxAccessCountList) { - regINS(CK_INS, cTL(maxAccessCountList), getCValueMaxAccessCount(), - "MAX_ACCESS_COUNT"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCountList The collection of maxAccessCount as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setMaxAccessCount_NotInScope( - final Collection<Long> maxAccessCountList) { - doSetMaxAccessCount_NotInScope(maxAccessCountList); - } - - protected void doSetMaxAccessCount_NotInScope( - final Collection<Long> maxAccessCountList) { - regINS(CK_NINS, cTL(maxAccessCountList), getCValueMaxAccessCount(), - "MAX_ACCESS_COUNT"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - */ - public void setMaxAccessCount_IsNull() { - regMaxAccessCount(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - */ - public void setMaxAccessCount_IsNotNull() { - regMaxAccessCount(CK_ISNN, DOBJ); - } - - protected void regMaxAccessCount(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueMaxAccessCount(), "MAX_ACCESS_COUNT"); - } - - protected abstract ConditionValue getCValueMaxAccessCount(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThread The value of numOfThread as equal. (NullAllowed: if null, no condition) - */ - public void setNumOfThread_Equal(final Integer numOfThread) { - doSetNumOfThread_Equal(numOfThread); - } - - protected void doSetNumOfThread_Equal(final Integer numOfThread) { - regNumOfThread(CK_EQ, numOfThread); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThread The value of numOfThread as notEqual. (NullAllowed: if null, no condition) - */ - public void setNumOfThread_NotEqual(final Integer numOfThread) { - doSetNumOfThread_NotEqual(numOfThread); - } - - protected void doSetNumOfThread_NotEqual(final Integer numOfThread) { - regNumOfThread(CK_NES, numOfThread); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThread The value of numOfThread as greaterThan. (NullAllowed: if null, no condition) - */ - public void setNumOfThread_GreaterThan(final Integer numOfThread) { - regNumOfThread(CK_GT, numOfThread); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThread The value of numOfThread as lessThan. (NullAllowed: if null, no condition) - */ - public void setNumOfThread_LessThan(final Integer numOfThread) { - regNumOfThread(CK_LT, numOfThread); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThread The value of numOfThread as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setNumOfThread_GreaterEqual(final Integer numOfThread) { - regNumOfThread(CK_GE, numOfThread); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThread The value of numOfThread as lessEqual. (NullAllowed: if null, no condition) - */ - public void setNumOfThread_LessEqual(final Integer numOfThread) { - regNumOfThread(CK_LE, numOfThread); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param minNumber The min number of numOfThread. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of numOfThread. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setNumOfThread_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueNumOfThread(), "NUM_OF_THREAD", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThreadList The collection of numOfThread as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setNumOfThread_InScope(final Collection<Integer> numOfThreadList) { - doSetNumOfThread_InScope(numOfThreadList); - } - - protected void doSetNumOfThread_InScope( - final Collection<Integer> numOfThreadList) { - regINS(CK_INS, cTL(numOfThreadList), getCValueNumOfThread(), - "NUM_OF_THREAD"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThreadList The collection of numOfThread as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setNumOfThread_NotInScope( - final Collection<Integer> numOfThreadList) { - doSetNumOfThread_NotInScope(numOfThreadList); - } - - protected void doSetNumOfThread_NotInScope( - final Collection<Integer> numOfThreadList) { - regINS(CK_NINS, cTL(numOfThreadList), getCValueNumOfThread(), - "NUM_OF_THREAD"); - } - - protected void regNumOfThread(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueNumOfThread(), "NUM_OF_THREAD"); - } - - protected abstract ConditionValue getCValueNumOfThread(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTime The value of intervalTime as equal. (NullAllowed: if null, no condition) - */ - public void setIntervalTime_Equal(final Integer intervalTime) { - doSetIntervalTime_Equal(intervalTime); - } - - protected void doSetIntervalTime_Equal(final Integer intervalTime) { - regIntervalTime(CK_EQ, intervalTime); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTime The value of intervalTime as notEqual. (NullAllowed: if null, no condition) - */ - public void setIntervalTime_NotEqual(final Integer intervalTime) { - doSetIntervalTime_NotEqual(intervalTime); - } - - protected void doSetIntervalTime_NotEqual(final Integer intervalTime) { - regIntervalTime(CK_NES, intervalTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTime The value of intervalTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setIntervalTime_GreaterThan(final Integer intervalTime) { - regIntervalTime(CK_GT, intervalTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTime The value of intervalTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setIntervalTime_LessThan(final Integer intervalTime) { - regIntervalTime(CK_LT, intervalTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTime The value of intervalTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setIntervalTime_GreaterEqual(final Integer intervalTime) { - regIntervalTime(CK_GE, intervalTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTime The value of intervalTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setIntervalTime_LessEqual(final Integer intervalTime) { - regIntervalTime(CK_LE, intervalTime); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param minNumber The min number of intervalTime. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of intervalTime. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setIntervalTime_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueIntervalTime(), "INTERVAL_TIME", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTimeList The collection of intervalTime as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIntervalTime_InScope( - final Collection<Integer> intervalTimeList) { - doSetIntervalTime_InScope(intervalTimeList); - } - - protected void doSetIntervalTime_InScope( - final Collection<Integer> intervalTimeList) { - regINS(CK_INS, cTL(intervalTimeList), getCValueIntervalTime(), - "INTERVAL_TIME"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTimeList The collection of intervalTime as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIntervalTime_NotInScope( - final Collection<Integer> intervalTimeList) { - doSetIntervalTime_NotInScope(intervalTimeList); - } - - protected void doSetIntervalTime_NotInScope( - final Collection<Integer> intervalTimeList) { - regINS(CK_NINS, cTL(intervalTimeList), getCValueIntervalTime(), - "INTERVAL_TIME"); - } - - protected void regIntervalTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueIntervalTime(), "INTERVAL_TIME"); - } - - protected abstract ConditionValue getCValueIntervalTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as equal. (NullAllowed: if null, no condition) - */ - public void setBoost_Equal(final java.math.BigDecimal boost) { - doSetBoost_Equal(boost); - } - - protected void doSetBoost_Equal(final java.math.BigDecimal boost) { - regBoost(CK_EQ, boost); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as notEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_NotEqual(final java.math.BigDecimal boost) { - doSetBoost_NotEqual(boost); - } - - protected void doSetBoost_NotEqual(final java.math.BigDecimal boost) { - regBoost(CK_NES, boost); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as greaterThan. (NullAllowed: if null, no condition) - */ - public void setBoost_GreaterThan(final java.math.BigDecimal boost) { - regBoost(CK_GT, boost); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as lessThan. (NullAllowed: if null, no condition) - */ - public void setBoost_LessThan(final java.math.BigDecimal boost) { - regBoost(CK_LT, boost); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_GreaterEqual(final java.math.BigDecimal boost) { - regBoost(CK_GE, boost); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as lessEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_LessEqual(final java.math.BigDecimal boost) { - regBoost(CK_LE, boost); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param minNumber The min number of boost. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of boost. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setBoost_RangeOf(final java.math.BigDecimal minNumber, - final java.math.BigDecimal maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueBoost(), "BOOST", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boostList The collection of boost as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setBoost_InScope( - final Collection<java.math.BigDecimal> boostList) { - doSetBoost_InScope(boostList); - } - - protected void doSetBoost_InScope( - final Collection<java.math.BigDecimal> boostList) { - regINS(CK_INS, cTL(boostList), getCValueBoost(), "BOOST"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boostList The collection of boost as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setBoost_NotInScope( - final Collection<java.math.BigDecimal> boostList) { - doSetBoost_NotInScope(boostList); - } - - protected void doSetBoost_NotInScope( - final Collection<java.math.BigDecimal> boostList) { - regINS(CK_NINS, cTL(boostList), getCValueBoost(), "BOOST"); - } - - protected void regBoost(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueBoost(), "BOOST"); - } - - protected abstract ConditionValue getCValueBoost(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_Equal(final String available) { - doSetAvailable_Equal(fRES(available)); - } - - protected void doSetAvailable_Equal(final String available) { - regAvailable(CK_EQ, available); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_NotEqual(final String available) { - doSetAvailable_NotEqual(fRES(available)); - } - - protected void doSetAvailable_NotEqual(final String available) { - regAvailable(CK_NES, available); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_GreaterThan(final String available) { - regAvailable(CK_GT, fRES(available)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_LessThan(final String available) { - regAvailable(CK_LT, fRES(available)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_GreaterEqual(final String available) { - regAvailable(CK_GE, fRES(available)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_LessEqual(final String available) { - regAvailable(CK_LE, fRES(available)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param availableList The collection of available as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_InScope(final Collection<String> availableList) { - doSetAvailable_InScope(availableList); - } - - public void doSetAvailable_InScope(final Collection<String> availableList) { - regINS(CK_INS, cTL(availableList), getCValueAvailable(), "AVAILABLE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param availableList The collection of available as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_NotInScope(final Collection<String> availableList) { - doSetAvailable_NotInScope(availableList); - } - - public void doSetAvailable_NotInScope(final Collection<String> availableList) { - regINS(CK_NINS, cTL(availableList), getCValueAvailable(), "AVAILABLE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_PrefixSearch(final String available) { - setAvailable_LikeSearch(available, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} <br /> - * <pre>e.g. setAvailable_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param available The value of available as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setAvailable_LikeSearch(final String available, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(available), getCValueAvailable(), "AVAILABLE", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setAvailable_NotLikeSearch(final String available, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(available), getCValueAvailable(), "AVAILABLE", - likeSearchOption); - } - - protected void regAvailable(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueAvailable(), "AVAILABLE"); - } - - protected abstract ConditionValue getCValueAvailable(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as equal. (NullAllowed: if null, no condition) - */ - public void setSortOrder_Equal(final Integer sortOrder) { - doSetSortOrder_Equal(sortOrder); - } - - protected void doSetSortOrder_Equal(final Integer sortOrder) { - regSortOrder(CK_EQ, sortOrder); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as notEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_NotEqual(final Integer sortOrder) { - doSetSortOrder_NotEqual(sortOrder); - } - - protected void doSetSortOrder_NotEqual(final Integer sortOrder) { - regSortOrder(CK_NES, sortOrder); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterThan(final Integer sortOrder) { - regSortOrder(CK_GT, sortOrder); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessThan(final Integer sortOrder) { - regSortOrder(CK_LT, sortOrder); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterEqual(final Integer sortOrder) { - regSortOrder(CK_GE, sortOrder); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessEqual(final Integer sortOrder) { - regSortOrder(CK_LE, sortOrder); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param minNumber The min number of sortOrder. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of sortOrder. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setSortOrder_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueSortOrder(), "SORT_ORDER", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_InScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_InScope(sortOrderList); - } - - protected void doSetSortOrder_InScope( - final Collection<Integer> sortOrderList) { - regINS(CK_INS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_NotInScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_NotInScope(sortOrderList); - } - - protected void doSetSortOrder_NotInScope( - final Collection<Integer> sortOrderList) { - regINS(CK_NINS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - protected void regSortOrder(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSortOrder(), "SORT_ORDER"); - } - - protected abstract ConditionValue getCValueSortOrder(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileCrawlingConfigCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, FileCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileCrawlingConfigCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, FileCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileCrawlingConfigCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, FileCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileCrawlingConfigCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, FileCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileCrawlingConfigCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, FileCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<FileCrawlingConfigCB>() { - * public void query(FileCrawlingConfigCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<FileCrawlingConfigCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, FileCrawlingConfigCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final FileCrawlingConfigCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(FileCrawlingConfigCQ sq); - - protected FileCrawlingConfigCB xcreateScalarConditionCB() { - final FileCrawlingConfigCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected FileCrawlingConfigCB xcreateScalarConditionPartitionByCB() { - final FileCrawlingConfigCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<FileCrawlingConfigCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(FileCrawlingConfigCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<FileCrawlingConfigCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(FileCrawlingConfigCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(FileCrawlingConfigCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<FileCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(FileCrawlingConfigCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<FileCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(FileCrawlingConfigCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected FileCrawlingConfigCB newMyCB() { - return new FileCrawlingConfigCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return FileCrawlingConfigCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsJobLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsJobLogCQ.java deleted file mode 100644 index 3069947d3..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsJobLogCQ.java +++ /dev/null @@ -1,1546 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.JobLogCB; -import jp.sf.fess.db.cbean.cq.JobLogCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of JOB_LOG. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsJobLogCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsJobLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "JOB_LOG"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} - * @param jobName The value of jobName as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setJobName_Equal(final String jobName) { - doSetJobName_Equal(fRES(jobName)); - } - - protected void doSetJobName_Equal(final String jobName) { - regJobName(CK_EQ, jobName); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} - * @param jobName The value of jobName as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setJobName_NotEqual(final String jobName) { - doSetJobName_NotEqual(fRES(jobName)); - } - - protected void doSetJobName_NotEqual(final String jobName) { - regJobName(CK_NES, jobName); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} - * @param jobName The value of jobName as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setJobName_GreaterThan(final String jobName) { - regJobName(CK_GT, fRES(jobName)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} - * @param jobName The value of jobName as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setJobName_LessThan(final String jobName) { - regJobName(CK_LT, fRES(jobName)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} - * @param jobName The value of jobName as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setJobName_GreaterEqual(final String jobName) { - regJobName(CK_GE, fRES(jobName)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} - * @param jobName The value of jobName as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setJobName_LessEqual(final String jobName) { - regJobName(CK_LE, fRES(jobName)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} - * @param jobNameList The collection of jobName as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setJobName_InScope(final Collection<String> jobNameList) { - doSetJobName_InScope(jobNameList); - } - - public void doSetJobName_InScope(final Collection<String> jobNameList) { - regINS(CK_INS, cTL(jobNameList), getCValueJobName(), "JOB_NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} - * @param jobNameList The collection of jobName as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setJobName_NotInScope(final Collection<String> jobNameList) { - doSetJobName_NotInScope(jobNameList); - } - - public void doSetJobName_NotInScope(final Collection<String> jobNameList) { - regINS(CK_NINS, cTL(jobNameList), getCValueJobName(), "JOB_NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} - * @param jobName The value of jobName as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setJobName_PrefixSearch(final String jobName) { - setJobName_LikeSearch(jobName, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setJobName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param jobName The value of jobName as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setJobName_LikeSearch(final String jobName, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(jobName), getCValueJobName(), "JOB_NAME", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} - * @param jobName The value of jobName as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setJobName_NotLikeSearch(final String jobName, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(jobName), getCValueJobName(), "JOB_NAME", - likeSearchOption); - } - - protected void regJobName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueJobName(), "JOB_NAME"); - } - - protected abstract ConditionValue getCValueJobName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @param jobStatus The value of jobStatus as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setJobStatus_Equal(final String jobStatus) { - doSetJobStatus_Equal(fRES(jobStatus)); - } - - protected void doSetJobStatus_Equal(final String jobStatus) { - regJobStatus(CK_EQ, jobStatus); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @param jobStatus The value of jobStatus as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setJobStatus_NotEqual(final String jobStatus) { - doSetJobStatus_NotEqual(fRES(jobStatus)); - } - - protected void doSetJobStatus_NotEqual(final String jobStatus) { - regJobStatus(CK_NES, jobStatus); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @param jobStatus The value of jobStatus as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setJobStatus_GreaterThan(final String jobStatus) { - regJobStatus(CK_GT, fRES(jobStatus)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @param jobStatus The value of jobStatus as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setJobStatus_LessThan(final String jobStatus) { - regJobStatus(CK_LT, fRES(jobStatus)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @param jobStatus The value of jobStatus as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setJobStatus_GreaterEqual(final String jobStatus) { - regJobStatus(CK_GE, fRES(jobStatus)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @param jobStatus The value of jobStatus as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setJobStatus_LessEqual(final String jobStatus) { - regJobStatus(CK_LE, fRES(jobStatus)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @param jobStatusList The collection of jobStatus as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setJobStatus_InScope(final Collection<String> jobStatusList) { - doSetJobStatus_InScope(jobStatusList); - } - - public void doSetJobStatus_InScope(final Collection<String> jobStatusList) { - regINS(CK_INS, cTL(jobStatusList), getCValueJobStatus(), "JOB_STATUS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @param jobStatusList The collection of jobStatus as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setJobStatus_NotInScope(final Collection<String> jobStatusList) { - doSetJobStatus_NotInScope(jobStatusList); - } - - public void doSetJobStatus_NotInScope(final Collection<String> jobStatusList) { - regINS(CK_NINS, cTL(jobStatusList), getCValueJobStatus(), "JOB_STATUS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @param jobStatus The value of jobStatus as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setJobStatus_PrefixSearch(final String jobStatus) { - setJobStatus_LikeSearch(jobStatus, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} <br /> - * <pre>e.g. setJobStatus_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param jobStatus The value of jobStatus as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setJobStatus_LikeSearch(final String jobStatus, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(jobStatus), getCValueJobStatus(), "JOB_STATUS", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @param jobStatus The value of jobStatus as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setJobStatus_NotLikeSearch(final String jobStatus, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(jobStatus), getCValueJobStatus(), "JOB_STATUS", - likeSearchOption); - } - - protected void regJobStatus(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueJobStatus(), "JOB_STATUS"); - } - - protected abstract ConditionValue getCValueJobStatus(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_Equal(final String target) { - doSetTarget_Equal(fRES(target)); - } - - protected void doSetTarget_Equal(final String target) { - regTarget(CK_EQ, target); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_NotEqual(final String target) { - doSetTarget_NotEqual(fRES(target)); - } - - protected void doSetTarget_NotEqual(final String target) { - regTarget(CK_NES, target); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_GreaterThan(final String target) { - regTarget(CK_GT, fRES(target)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_LessThan(final String target) { - regTarget(CK_LT, fRES(target)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_GreaterEqual(final String target) { - regTarget(CK_GE, fRES(target)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_LessEqual(final String target) { - regTarget(CK_LE, fRES(target)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param targetList The collection of target as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_InScope(final Collection<String> targetList) { - doSetTarget_InScope(targetList); - } - - public void doSetTarget_InScope(final Collection<String> targetList) { - regINS(CK_INS, cTL(targetList), getCValueTarget(), "TARGET"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param targetList The collection of target as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_NotInScope(final Collection<String> targetList) { - doSetTarget_NotInScope(targetList); - } - - public void doSetTarget_NotInScope(final Collection<String> targetList) { - regINS(CK_NINS, cTL(targetList), getCValueTarget(), "TARGET"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_PrefixSearch(final String target) { - setTarget_LikeSearch(target, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setTarget_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param target The value of target as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setTarget_LikeSearch(final String target, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(target), getCValueTarget(), "TARGET", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setTarget_NotLikeSearch(final String target, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(target), getCValueTarget(), "TARGET", - likeSearchOption); - } - - protected void regTarget(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueTarget(), "TARGET"); - } - - protected abstract ConditionValue getCValueTarget(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_Equal(final String scriptType) { - doSetScriptType_Equal(fRES(scriptType)); - } - - protected void doSetScriptType_Equal(final String scriptType) { - regScriptType(CK_EQ, scriptType); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_NotEqual(final String scriptType) { - doSetScriptType_NotEqual(fRES(scriptType)); - } - - protected void doSetScriptType_NotEqual(final String scriptType) { - regScriptType(CK_NES, scriptType); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_GreaterThan(final String scriptType) { - regScriptType(CK_GT, fRES(scriptType)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_LessThan(final String scriptType) { - regScriptType(CK_LT, fRES(scriptType)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_GreaterEqual(final String scriptType) { - regScriptType(CK_GE, fRES(scriptType)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_LessEqual(final String scriptType) { - regScriptType(CK_LE, fRES(scriptType)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptTypeList The collection of scriptType as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_InScope(final Collection<String> scriptTypeList) { - doSetScriptType_InScope(scriptTypeList); - } - - public void doSetScriptType_InScope(final Collection<String> scriptTypeList) { - regINS(CK_INS, cTL(scriptTypeList), getCValueScriptType(), - "SCRIPT_TYPE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptTypeList The collection of scriptType as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_NotInScope(final Collection<String> scriptTypeList) { - doSetScriptType_NotInScope(scriptTypeList); - } - - public void doSetScriptType_NotInScope( - final Collection<String> scriptTypeList) { - regINS(CK_NINS, cTL(scriptTypeList), getCValueScriptType(), - "SCRIPT_TYPE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_PrefixSearch(final String scriptType) { - setScriptType_LikeSearch(scriptType, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setScriptType_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param scriptType The value of scriptType as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setScriptType_LikeSearch(final String scriptType, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(scriptType), getCValueScriptType(), "SCRIPT_TYPE", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setScriptType_NotLikeSearch(final String scriptType, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(scriptType), getCValueScriptType(), "SCRIPT_TYPE", - likeSearchOption); - } - - protected void regScriptType(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueScriptType(), "SCRIPT_TYPE"); - } - - protected abstract ConditionValue getCValueScriptType(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_Equal(final String scriptData) { - doSetScriptData_Equal(fRES(scriptData)); - } - - protected void doSetScriptData_Equal(final String scriptData) { - regScriptData(CK_EQ, scriptData); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_NotEqual(final String scriptData) { - doSetScriptData_NotEqual(fRES(scriptData)); - } - - protected void doSetScriptData_NotEqual(final String scriptData) { - regScriptData(CK_NES, scriptData); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_GreaterThan(final String scriptData) { - regScriptData(CK_GT, fRES(scriptData)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_LessThan(final String scriptData) { - regScriptData(CK_LT, fRES(scriptData)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_GreaterEqual(final String scriptData) { - regScriptData(CK_GE, fRES(scriptData)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_LessEqual(final String scriptData) { - regScriptData(CK_LE, fRES(scriptData)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptDataList The collection of scriptData as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_InScope(final Collection<String> scriptDataList) { - doSetScriptData_InScope(scriptDataList); - } - - public void doSetScriptData_InScope(final Collection<String> scriptDataList) { - regINS(CK_INS, cTL(scriptDataList), getCValueScriptData(), - "SCRIPT_DATA"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptDataList The collection of scriptData as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_NotInScope(final Collection<String> scriptDataList) { - doSetScriptData_NotInScope(scriptDataList); - } - - public void doSetScriptData_NotInScope( - final Collection<String> scriptDataList) { - regINS(CK_NINS, cTL(scriptDataList), getCValueScriptData(), - "SCRIPT_DATA"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_PrefixSearch(final String scriptData) { - setScriptData_LikeSearch(scriptData, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} <br /> - * <pre>e.g. setScriptData_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param scriptData The value of scriptData as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setScriptData_LikeSearch(final String scriptData, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(scriptData), getCValueScriptData(), "SCRIPT_DATA", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setScriptData_NotLikeSearch(final String scriptData, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(scriptData), getCValueScriptData(), "SCRIPT_DATA", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - */ - public void setScriptData_IsNull() { - regScriptData(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - */ - public void setScriptData_IsNullOrEmpty() { - regScriptData(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - */ - public void setScriptData_IsNotNull() { - regScriptData(CK_ISNN, DOBJ); - } - - protected void regScriptData(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueScriptData(), "SCRIPT_DATA"); - } - - protected abstract ConditionValue getCValueScriptData(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - * @param scriptResult The value of scriptResult as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptResult_Equal(final String scriptResult) { - doSetScriptResult_Equal(fRES(scriptResult)); - } - - protected void doSetScriptResult_Equal(final String scriptResult) { - regScriptResult(CK_EQ, scriptResult); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - * @param scriptResult The value of scriptResult as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptResult_NotEqual(final String scriptResult) { - doSetScriptResult_NotEqual(fRES(scriptResult)); - } - - protected void doSetScriptResult_NotEqual(final String scriptResult) { - regScriptResult(CK_NES, scriptResult); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - * @param scriptResult The value of scriptResult as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptResult_GreaterThan(final String scriptResult) { - regScriptResult(CK_GT, fRES(scriptResult)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - * @param scriptResult The value of scriptResult as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptResult_LessThan(final String scriptResult) { - regScriptResult(CK_LT, fRES(scriptResult)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - * @param scriptResult The value of scriptResult as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptResult_GreaterEqual(final String scriptResult) { - regScriptResult(CK_GE, fRES(scriptResult)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - * @param scriptResult The value of scriptResult as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptResult_LessEqual(final String scriptResult) { - regScriptResult(CK_LE, fRES(scriptResult)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - * @param scriptResultList The collection of scriptResult as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptResult_InScope( - final Collection<String> scriptResultList) { - doSetScriptResult_InScope(scriptResultList); - } - - public void doSetScriptResult_InScope( - final Collection<String> scriptResultList) { - regINS(CK_INS, cTL(scriptResultList), getCValueScriptResult(), - "SCRIPT_RESULT"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - * @param scriptResultList The collection of scriptResult as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptResult_NotInScope( - final Collection<String> scriptResultList) { - doSetScriptResult_NotInScope(scriptResultList); - } - - public void doSetScriptResult_NotInScope( - final Collection<String> scriptResultList) { - regINS(CK_NINS, cTL(scriptResultList), getCValueScriptResult(), - "SCRIPT_RESULT"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - * @param scriptResult The value of scriptResult as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptResult_PrefixSearch(final String scriptResult) { - setScriptResult_LikeSearch(scriptResult, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} <br /> - * <pre>e.g. setScriptResult_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param scriptResult The value of scriptResult as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setScriptResult_LikeSearch(final String scriptResult, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(scriptResult), getCValueScriptResult(), - "SCRIPT_RESULT", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - * @param scriptResult The value of scriptResult as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setScriptResult_NotLikeSearch(final String scriptResult, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(scriptResult), getCValueScriptResult(), - "SCRIPT_RESULT", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - */ - public void setScriptResult_IsNull() { - regScriptResult(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - */ - public void setScriptResult_IsNullOrEmpty() { - regScriptResult(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - */ - public void setScriptResult_IsNotNull() { - regScriptResult(CK_ISNN, DOBJ); - } - - protected void regScriptResult(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueScriptResult(), "SCRIPT_RESULT"); - } - - protected abstract ConditionValue getCValueScriptResult(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * START_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param startTime The value of startTime as equal. (NullAllowed: if null, no condition) - */ - public void setStartTime_Equal(final java.sql.Timestamp startTime) { - regStartTime(CK_EQ, startTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * START_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param startTime The value of startTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setStartTime_GreaterThan(final java.sql.Timestamp startTime) { - regStartTime(CK_GT, startTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * START_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param startTime The value of startTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setStartTime_LessThan(final java.sql.Timestamp startTime) { - regStartTime(CK_LT, startTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * START_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param startTime The value of startTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setStartTime_GreaterEqual(final java.sql.Timestamp startTime) { - regStartTime(CK_GE, startTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * START_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param startTime The value of startTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setStartTime_LessEqual(final java.sql.Timestamp startTime) { - regStartTime(CK_LE, startTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * START_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setStartTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of startTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of startTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setStartTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueStartTime(), "START_TIME", - fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * START_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of startTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of startTime. (NullAllowed: if null, no to-condition) - */ - public void setStartTime_DateFromTo(final Date fromDate, final Date toDate) { - setStartTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regStartTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueStartTime(), "START_TIME"); - } - - protected abstract ConditionValue getCValueStartTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * END_TIME: {TIMESTAMP(23, 10)} - * @param endTime The value of endTime as equal. (NullAllowed: if null, no condition) - */ - public void setEndTime_Equal(final java.sql.Timestamp endTime) { - regEndTime(CK_EQ, endTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * END_TIME: {TIMESTAMP(23, 10)} - * @param endTime The value of endTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setEndTime_GreaterThan(final java.sql.Timestamp endTime) { - regEndTime(CK_GT, endTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * END_TIME: {TIMESTAMP(23, 10)} - * @param endTime The value of endTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setEndTime_LessThan(final java.sql.Timestamp endTime) { - regEndTime(CK_LT, endTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * END_TIME: {TIMESTAMP(23, 10)} - * @param endTime The value of endTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setEndTime_GreaterEqual(final java.sql.Timestamp endTime) { - regEndTime(CK_GE, endTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * END_TIME: {TIMESTAMP(23, 10)} - * @param endTime The value of endTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setEndTime_LessEqual(final java.sql.Timestamp endTime) { - regEndTime(CK_LE, endTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * END_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setEndTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of endTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of endTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setEndTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueEndTime(), "END_TIME", - fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * END_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of endTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of endTime. (NullAllowed: if null, no to-condition) - */ - public void setEndTime_DateFromTo(final Date fromDate, final Date toDate) { - setEndTime_FromTo(fromDate, toDate, new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * END_TIME: {TIMESTAMP(23, 10)} - */ - public void setEndTime_IsNull() { - regEndTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * END_TIME: {TIMESTAMP(23, 10)} - */ - public void setEndTime_IsNotNull() { - regEndTime(CK_ISNN, DOBJ); - } - - protected void regEndTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueEndTime(), "END_TIME"); - } - - protected abstract ConditionValue getCValueEndTime(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<JobLogCB>() { - * public void query(JobLogCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<JobLogCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, JobLogCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<JobLogCB>() { - * public void query(JobLogCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<JobLogCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, JobLogCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<JobLogCB>() { - * public void query(JobLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<JobLogCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, JobLogCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<JobLogCB>() { - * public void query(JobLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<JobLogCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, JobLogCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<JobLogCB>() { - * public void query(JobLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<JobLogCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, JobLogCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<JobLogCB>() { - * public void query(JobLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<JobLogCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, JobLogCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final JobLogCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(JobLogCQ sq); - - protected JobLogCB xcreateScalarConditionCB() { - final JobLogCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected JobLogCB xcreateScalarConditionPartitionByCB() { - final JobLogCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, final SubQuery<JobLogCB> sq, - final String al, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final JobLogCB cb = new JobLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(JobLogCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<JobLogCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(JobLogCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final JobLogCB cb = new JobLogCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(JobLogCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<JobLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final JobLogCB cb = new JobLogCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(JobLogCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<JobLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final JobLogCB cb = new JobLogCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(JobLogCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected JobLogCB newMyCB() { - return new JobLogCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return JobLogCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsKeyMatchCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsKeyMatchCQ.java deleted file mode 100644 index 29b91cf2c..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsKeyMatchCQ.java +++ /dev/null @@ -1,1836 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.KeyMatchCB; -import jp.sf.fess.db.cbean.cq.KeyMatchCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of KEY_MATCH. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsKeyMatchCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsKeyMatchCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "KEY_MATCH"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TERM: {NotNull, VARCHAR(200)} - * @param term The value of term as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setTerm_Equal(final String term) { - doSetTerm_Equal(fRES(term)); - } - - protected void doSetTerm_Equal(final String term) { - regTerm(CK_EQ, term); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TERM: {NotNull, VARCHAR(200)} - * @param term The value of term as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTerm_NotEqual(final String term) { - doSetTerm_NotEqual(fRES(term)); - } - - protected void doSetTerm_NotEqual(final String term) { - regTerm(CK_NES, term); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TERM: {NotNull, VARCHAR(200)} - * @param term The value of term as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTerm_GreaterThan(final String term) { - regTerm(CK_GT, fRES(term)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TERM: {NotNull, VARCHAR(200)} - * @param term The value of term as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTerm_LessThan(final String term) { - regTerm(CK_LT, fRES(term)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TERM: {NotNull, VARCHAR(200)} - * @param term The value of term as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTerm_GreaterEqual(final String term) { - regTerm(CK_GE, fRES(term)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TERM: {NotNull, VARCHAR(200)} - * @param term The value of term as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTerm_LessEqual(final String term) { - regTerm(CK_LE, fRES(term)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TERM: {NotNull, VARCHAR(200)} - * @param termList The collection of term as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTerm_InScope(final Collection<String> termList) { - doSetTerm_InScope(termList); - } - - public void doSetTerm_InScope(final Collection<String> termList) { - regINS(CK_INS, cTL(termList), getCValueTerm(), "TERM"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TERM: {NotNull, VARCHAR(200)} - * @param termList The collection of term as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTerm_NotInScope(final Collection<String> termList) { - doSetTerm_NotInScope(termList); - } - - public void doSetTerm_NotInScope(final Collection<String> termList) { - regINS(CK_NINS, cTL(termList), getCValueTerm(), "TERM"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TERM: {NotNull, VARCHAR(200)} - * @param term The value of term as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setTerm_PrefixSearch(final String term) { - setTerm_LikeSearch(term, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TERM: {NotNull, VARCHAR(200)} <br /> - * <pre>e.g. setTerm_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param term The value of term as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setTerm_LikeSearch(final String term, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(term), getCValueTerm(), "TERM", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TERM: {NotNull, VARCHAR(200)} - * @param term The value of term as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setTerm_NotLikeSearch(final String term, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(term), getCValueTerm(), "TERM", likeSearchOption); - } - - protected void regTerm(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueTerm(), "TERM"); - } - - protected abstract ConditionValue getCValueTerm(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * QUERY: {NotNull, VARCHAR(4000)} - * @param query The value of query as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setQuery_Equal(final String query) { - doSetQuery_Equal(fRES(query)); - } - - protected void doSetQuery_Equal(final String query) { - regQuery(CK_EQ, query); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * QUERY: {NotNull, VARCHAR(4000)} - * @param query The value of query as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setQuery_NotEqual(final String query) { - doSetQuery_NotEqual(fRES(query)); - } - - protected void doSetQuery_NotEqual(final String query) { - regQuery(CK_NES, query); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * QUERY: {NotNull, VARCHAR(4000)} - * @param query The value of query as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setQuery_GreaterThan(final String query) { - regQuery(CK_GT, fRES(query)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * QUERY: {NotNull, VARCHAR(4000)} - * @param query The value of query as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setQuery_LessThan(final String query) { - regQuery(CK_LT, fRES(query)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * QUERY: {NotNull, VARCHAR(4000)} - * @param query The value of query as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setQuery_GreaterEqual(final String query) { - regQuery(CK_GE, fRES(query)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * QUERY: {NotNull, VARCHAR(4000)} - * @param query The value of query as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setQuery_LessEqual(final String query) { - regQuery(CK_LE, fRES(query)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * QUERY: {NotNull, VARCHAR(4000)} - * @param queryList The collection of query as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setQuery_InScope(final Collection<String> queryList) { - doSetQuery_InScope(queryList); - } - - public void doSetQuery_InScope(final Collection<String> queryList) { - regINS(CK_INS, cTL(queryList), getCValueQuery(), "QUERY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * QUERY: {NotNull, VARCHAR(4000)} - * @param queryList The collection of query as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setQuery_NotInScope(final Collection<String> queryList) { - doSetQuery_NotInScope(queryList); - } - - public void doSetQuery_NotInScope(final Collection<String> queryList) { - regINS(CK_NINS, cTL(queryList), getCValueQuery(), "QUERY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * QUERY: {NotNull, VARCHAR(4000)} - * @param query The value of query as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setQuery_PrefixSearch(final String query) { - setQuery_LikeSearch(query, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * QUERY: {NotNull, VARCHAR(4000)} <br /> - * <pre>e.g. setQuery_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param query The value of query as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setQuery_LikeSearch(final String query, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(query), getCValueQuery(), "QUERY", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * QUERY: {NotNull, VARCHAR(4000)} - * @param query The value of query as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setQuery_NotLikeSearch(final String query, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(query), getCValueQuery(), "QUERY", likeSearchOption); - } - - protected void regQuery(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueQuery(), "QUERY"); - } - - protected abstract ConditionValue getCValueQuery(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_SIZE: {NotNull, INTEGER(10)} - * @param maxSize The value of maxSize as equal. (NullAllowed: if null, no condition) - */ - public void setMaxSize_Equal(final Integer maxSize) { - doSetMaxSize_Equal(maxSize); - } - - protected void doSetMaxSize_Equal(final Integer maxSize) { - regMaxSize(CK_EQ, maxSize); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_SIZE: {NotNull, INTEGER(10)} - * @param maxSize The value of maxSize as notEqual. (NullAllowed: if null, no condition) - */ - public void setMaxSize_NotEqual(final Integer maxSize) { - doSetMaxSize_NotEqual(maxSize); - } - - protected void doSetMaxSize_NotEqual(final Integer maxSize) { - regMaxSize(CK_NES, maxSize); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_SIZE: {NotNull, INTEGER(10)} - * @param maxSize The value of maxSize as greaterThan. (NullAllowed: if null, no condition) - */ - public void setMaxSize_GreaterThan(final Integer maxSize) { - regMaxSize(CK_GT, maxSize); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_SIZE: {NotNull, INTEGER(10)} - * @param maxSize The value of maxSize as lessThan. (NullAllowed: if null, no condition) - */ - public void setMaxSize_LessThan(final Integer maxSize) { - regMaxSize(CK_LT, maxSize); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_SIZE: {NotNull, INTEGER(10)} - * @param maxSize The value of maxSize as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setMaxSize_GreaterEqual(final Integer maxSize) { - regMaxSize(CK_GE, maxSize); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_SIZE: {NotNull, INTEGER(10)} - * @param maxSize The value of maxSize as lessEqual. (NullAllowed: if null, no condition) - */ - public void setMaxSize_LessEqual(final Integer maxSize) { - regMaxSize(CK_LE, maxSize); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_SIZE: {NotNull, INTEGER(10)} - * @param minNumber The min number of maxSize. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of maxSize. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setMaxSize_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueMaxSize(), "MAX_SIZE", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * MAX_SIZE: {NotNull, INTEGER(10)} - * @param maxSizeList The collection of maxSize as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setMaxSize_InScope(final Collection<Integer> maxSizeList) { - doSetMaxSize_InScope(maxSizeList); - } - - protected void doSetMaxSize_InScope(final Collection<Integer> maxSizeList) { - regINS(CK_INS, cTL(maxSizeList), getCValueMaxSize(), "MAX_SIZE"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * MAX_SIZE: {NotNull, INTEGER(10)} - * @param maxSizeList The collection of maxSize as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setMaxSize_NotInScope(final Collection<Integer> maxSizeList) { - doSetMaxSize_NotInScope(maxSizeList); - } - - protected void doSetMaxSize_NotInScope(final Collection<Integer> maxSizeList) { - regINS(CK_NINS, cTL(maxSizeList), getCValueMaxSize(), "MAX_SIZE"); - } - - protected void regMaxSize(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueMaxSize(), "MAX_SIZE"); - } - - protected abstract ConditionValue getCValueMaxSize(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as equal. (NullAllowed: if null, no condition) - */ - public void setBoost_Equal(final java.math.BigDecimal boost) { - doSetBoost_Equal(boost); - } - - protected void doSetBoost_Equal(final java.math.BigDecimal boost) { - regBoost(CK_EQ, boost); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as notEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_NotEqual(final java.math.BigDecimal boost) { - doSetBoost_NotEqual(boost); - } - - protected void doSetBoost_NotEqual(final java.math.BigDecimal boost) { - regBoost(CK_NES, boost); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as greaterThan. (NullAllowed: if null, no condition) - */ - public void setBoost_GreaterThan(final java.math.BigDecimal boost) { - regBoost(CK_GT, boost); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as lessThan. (NullAllowed: if null, no condition) - */ - public void setBoost_LessThan(final java.math.BigDecimal boost) { - regBoost(CK_LT, boost); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_GreaterEqual(final java.math.BigDecimal boost) { - regBoost(CK_GE, boost); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as lessEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_LessEqual(final java.math.BigDecimal boost) { - regBoost(CK_LE, boost); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param minNumber The min number of boost. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of boost. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setBoost_RangeOf(final java.math.BigDecimal minNumber, - final java.math.BigDecimal maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueBoost(), "BOOST", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boostList The collection of boost as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setBoost_InScope( - final Collection<java.math.BigDecimal> boostList) { - doSetBoost_InScope(boostList); - } - - protected void doSetBoost_InScope( - final Collection<java.math.BigDecimal> boostList) { - regINS(CK_INS, cTL(boostList), getCValueBoost(), "BOOST"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boostList The collection of boost as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setBoost_NotInScope( - final Collection<java.math.BigDecimal> boostList) { - doSetBoost_NotInScope(boostList); - } - - protected void doSetBoost_NotInScope( - final Collection<java.math.BigDecimal> boostList) { - regINS(CK_NINS, cTL(boostList), getCValueBoost(), "BOOST"); - } - - protected void regBoost(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueBoost(), "BOOST"); - } - - protected abstract ConditionValue getCValueBoost(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<KeyMatchCB>() { - * public void query(KeyMatchCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<KeyMatchCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, KeyMatchCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<KeyMatchCB>() { - * public void query(KeyMatchCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<KeyMatchCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, KeyMatchCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<KeyMatchCB>() { - * public void query(KeyMatchCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<KeyMatchCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, KeyMatchCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<KeyMatchCB>() { - * public void query(KeyMatchCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<KeyMatchCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, KeyMatchCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<KeyMatchCB>() { - * public void query(KeyMatchCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<KeyMatchCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, KeyMatchCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<KeyMatchCB>() { - * public void query(KeyMatchCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<KeyMatchCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, KeyMatchCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final KeyMatchCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(KeyMatchCQ sq); - - protected KeyMatchCB xcreateScalarConditionCB() { - final KeyMatchCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected KeyMatchCB xcreateScalarConditionPartitionByCB() { - final KeyMatchCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, final SubQuery<KeyMatchCB> sq, - final String al, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final KeyMatchCB cb = new KeyMatchCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(KeyMatchCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<KeyMatchCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(KeyMatchCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final KeyMatchCB cb = new KeyMatchCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(KeyMatchCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<KeyMatchCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final KeyMatchCB cb = new KeyMatchCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(KeyMatchCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<KeyMatchCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final KeyMatchCB cb = new KeyMatchCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(KeyMatchCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected KeyMatchCB newMyCB() { - return new KeyMatchCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return KeyMatchCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsLabelTypeCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsLabelTypeCQ.java deleted file mode 100644 index b23f182e6..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsLabelTypeCQ.java +++ /dev/null @@ -1,2836 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.cq.DataConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToLabelTypeMappingCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpQDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of LABEL_TYPE. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsLabelTypeCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsLabelTypeCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "LABEL_TYPE"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select LABEL_TYPE_ID from DATA_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'dataConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsDataConfigToLabelTypeMappingList</span>(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of DataConfigToLabelTypeMappingList for 'exists'. (NotNull) - */ - public void existsDataConfigToLabelTypeMappingList( - final SubQuery<DataConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_DataConfigToLabelTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "dataConfigToLabelTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_DataConfigToLabelTypeMappingList( - DataConfigToLabelTypeMappingCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select LABEL_TYPE_ID from FILE_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'fileConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsFileConfigToLabelTypeMappingList</span>(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of FileConfigToLabelTypeMappingList for 'exists'. (NotNull) - */ - public void existsFileConfigToLabelTypeMappingList( - final SubQuery<FileConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_FileConfigToLabelTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "fileConfigToLabelTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_FileConfigToLabelTypeMappingList( - FileConfigToLabelTypeMappingCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select LABEL_TYPE_ID from LABEL_TYPE_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by LABEL_TYPE_ID, named 'labelTypeToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsLabelTypeToRoleTypeMappingList</span>(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of LabelTypeToRoleTypeMappingList for 'exists'. (NotNull) - */ - public void existsLabelTypeToRoleTypeMappingList( - final SubQuery<LabelTypeToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_LabelTypeToRoleTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "labelTypeToRoleTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_LabelTypeToRoleTypeMappingList( - LabelTypeToRoleTypeMappingCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select LABEL_TYPE_ID from WEB_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'webConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsWebConfigToLabelTypeMappingList</span>(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of WebConfigToLabelTypeMappingList for 'exists'. (NotNull) - */ - public void existsWebConfigToLabelTypeMappingList( - final SubQuery<WebConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_WebConfigToLabelTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "webConfigToLabelTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_WebConfigToLabelTypeMappingList( - WebConfigToLabelTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select LABEL_TYPE_ID from DATA_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'dataConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsDataConfigToLabelTypeMappingList</span>(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_DataConfigToLabelTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsDataConfigToLabelTypeMappingList( - final SubQuery<DataConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_DataConfigToLabelTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "dataConfigToLabelTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_DataConfigToLabelTypeMappingList( - DataConfigToLabelTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select LABEL_TYPE_ID from FILE_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'fileConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsFileConfigToLabelTypeMappingList</span>(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_FileConfigToLabelTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsFileConfigToLabelTypeMappingList( - final SubQuery<FileConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_FileConfigToLabelTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "fileConfigToLabelTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_FileConfigToLabelTypeMappingList( - FileConfigToLabelTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select LABEL_TYPE_ID from LABEL_TYPE_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by LABEL_TYPE_ID, named 'labelTypeToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsLabelTypeToRoleTypeMappingList</span>(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_LabelTypeToRoleTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsLabelTypeToRoleTypeMappingList( - final SubQuery<LabelTypeToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_LabelTypeToRoleTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "labelTypeToRoleTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_LabelTypeToRoleTypeMappingList( - LabelTypeToRoleTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select LABEL_TYPE_ID from WEB_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'webConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsWebConfigToLabelTypeMappingList</span>(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_WebConfigToLabelTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsWebConfigToLabelTypeMappingList( - final SubQuery<WebConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_WebConfigToLabelTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "webConfigToLabelTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_WebConfigToLabelTypeMappingList( - WebConfigToLabelTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select LABEL_TYPE_ID from DATA_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'dataConfigToLabelTypeMappingAsOne'. - * @param subQuery The sub-query of DataConfigToLabelTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeDataConfigToLabelTypeMappingList( - final SubQuery<DataConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_DataConfigToLabelTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "dataConfigToLabelTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_DataConfigToLabelTypeMappingList( - DataConfigToLabelTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select LABEL_TYPE_ID from FILE_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'fileConfigToLabelTypeMappingAsOne'. - * @param subQuery The sub-query of FileConfigToLabelTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeFileConfigToLabelTypeMappingList( - final SubQuery<FileConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_FileConfigToLabelTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "fileConfigToLabelTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_FileConfigToLabelTypeMappingList( - FileConfigToLabelTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select LABEL_TYPE_ID from LABEL_TYPE_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by LABEL_TYPE_ID, named 'labelTypeToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of LabelTypeToRoleTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeLabelTypeToRoleTypeMappingList( - final SubQuery<LabelTypeToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_LabelTypeToRoleTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "labelTypeToRoleTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_LabelTypeToRoleTypeMappingList( - LabelTypeToRoleTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select LABEL_TYPE_ID from WEB_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'webConfigToLabelTypeMappingAsOne'. - * @param subQuery The sub-query of WebConfigToLabelTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeWebConfigToLabelTypeMappingList( - final SubQuery<WebConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_WebConfigToLabelTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "webConfigToLabelTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_WebConfigToLabelTypeMappingList( - WebConfigToLabelTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select LABEL_TYPE_ID from DATA_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'dataConfigToLabelTypeMappingAsOne'. - * @param subQuery The sub-query of DataConfigToLabelTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeDataConfigToLabelTypeMappingList( - final SubQuery<DataConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_DataConfigToLabelTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "dataConfigToLabelTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_DataConfigToLabelTypeMappingList( - DataConfigToLabelTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select LABEL_TYPE_ID from FILE_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'fileConfigToLabelTypeMappingAsOne'. - * @param subQuery The sub-query of FileConfigToLabelTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeFileConfigToLabelTypeMappingList( - final SubQuery<FileConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_FileConfigToLabelTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "fileConfigToLabelTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_FileConfigToLabelTypeMappingList( - FileConfigToLabelTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select LABEL_TYPE_ID from LABEL_TYPE_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by LABEL_TYPE_ID, named 'labelTypeToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of LabelTypeToRoleTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeLabelTypeToRoleTypeMappingList( - final SubQuery<LabelTypeToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_LabelTypeToRoleTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "labelTypeToRoleTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_LabelTypeToRoleTypeMappingList( - LabelTypeToRoleTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select LABEL_TYPE_ID from WEB_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'webConfigToLabelTypeMappingAsOne'. - * @param subQuery The sub-query of WebConfigToLabelTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeWebConfigToLabelTypeMappingList( - final SubQuery<WebConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_WebConfigToLabelTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "LABEL_TYPE_ID", pp, - "webConfigToLabelTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_WebConfigToLabelTypeMappingList( - WebConfigToLabelTypeMappingCQ sq); - - public void xsderiveDataConfigToLabelTypeMappingList(final String fn, - final SubQuery<DataConfigToLabelTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "LABEL_TYPE_ID", - pp, "dataConfigToLabelTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList( - DataConfigToLabelTypeMappingCQ sq); - - public void xsderiveFileConfigToLabelTypeMappingList(final String fn, - final SubQuery<FileConfigToLabelTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "LABEL_TYPE_ID", - pp, "fileConfigToLabelTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList( - FileConfigToLabelTypeMappingCQ sq); - - public void xsderiveLabelTypeToRoleTypeMappingList(final String fn, - final SubQuery<LabelTypeToRoleTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "LABEL_TYPE_ID", - pp, "labelTypeToRoleTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList( - LabelTypeToRoleTypeMappingCQ sq); - - public void xsderiveWebConfigToLabelTypeMappingList(final String fn, - final SubQuery<WebConfigToLabelTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "LABEL_TYPE_ID", - pp, "webConfigToLabelTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList( - WebConfigToLabelTypeMappingCQ sq); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from DATA_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'dataConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedDataConfigToLabelTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<DataConfigToLabelTypeMappingCB>() { - * public void query(DataConfigToLabelTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<DataConfigToLabelTypeMappingCB> derivedDataConfigToLabelTypeMappingList() { - return xcreateQDRFunctionDataConfigToLabelTypeMappingList(); - } - - protected HpQDRFunction<DataConfigToLabelTypeMappingCB> xcreateQDRFunctionDataConfigToLabelTypeMappingList() { - return new HpQDRFunction<DataConfigToLabelTypeMappingCB>( - new HpQDRSetupper<DataConfigToLabelTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<DataConfigToLabelTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveDataConfigToLabelTypeMappingList(fn, sq, rd, - vl, op); - } - }); - } - - public void xqderiveDataConfigToLabelTypeMappingList(final String fn, - final SubQuery<DataConfigToLabelTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "LABEL_TYPE_ID", - sqpp, "dataConfigToLabelTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingList( - DataConfigToLabelTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from FILE_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'fileConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedFileConfigToLabelTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<FileConfigToLabelTypeMappingCB>() { - * public void query(FileConfigToLabelTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<FileConfigToLabelTypeMappingCB> derivedFileConfigToLabelTypeMappingList() { - return xcreateQDRFunctionFileConfigToLabelTypeMappingList(); - } - - protected HpQDRFunction<FileConfigToLabelTypeMappingCB> xcreateQDRFunctionFileConfigToLabelTypeMappingList() { - return new HpQDRFunction<FileConfigToLabelTypeMappingCB>( - new HpQDRSetupper<FileConfigToLabelTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<FileConfigToLabelTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveFileConfigToLabelTypeMappingList(fn, sq, rd, - vl, op); - } - }); - } - - public void xqderiveFileConfigToLabelTypeMappingList(final String fn, - final SubQuery<FileConfigToLabelTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "LABEL_TYPE_ID", - sqpp, "fileConfigToLabelTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingList( - FileConfigToLabelTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from LABEL_TYPE_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by LABEL_TYPE_ID, named 'labelTypeToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedLabelTypeToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<LabelTypeToRoleTypeMappingCB> derivedLabelTypeToRoleTypeMappingList() { - return xcreateQDRFunctionLabelTypeToRoleTypeMappingList(); - } - - protected HpQDRFunction<LabelTypeToRoleTypeMappingCB> xcreateQDRFunctionLabelTypeToRoleTypeMappingList() { - return new HpQDRFunction<LabelTypeToRoleTypeMappingCB>( - new HpQDRSetupper<LabelTypeToRoleTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<LabelTypeToRoleTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveLabelTypeToRoleTypeMappingList(fn, sq, rd, vl, - op); - } - }); - } - - public void xqderiveLabelTypeToRoleTypeMappingList(final String fn, - final SubQuery<LabelTypeToRoleTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "LABEL_TYPE_ID", - sqpp, "labelTypeToRoleTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList( - LabelTypeToRoleTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from WEB_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by LABEL_TYPE_ID, named 'webConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedWebConfigToLabelTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<WebConfigToLabelTypeMappingCB> derivedWebConfigToLabelTypeMappingList() { - return xcreateQDRFunctionWebConfigToLabelTypeMappingList(); - } - - protected HpQDRFunction<WebConfigToLabelTypeMappingCB> xcreateQDRFunctionWebConfigToLabelTypeMappingList() { - return new HpQDRFunction<WebConfigToLabelTypeMappingCB>( - new HpQDRSetupper<WebConfigToLabelTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<WebConfigToLabelTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveWebConfigToLabelTypeMappingList(fn, sq, rd, vl, - op); - } - }); - } - - public void xqderiveWebConfigToLabelTypeMappingList(final String fn, - final SubQuery<WebConfigToLabelTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "LABEL_TYPE_ID", - sqpp, "webConfigToLabelTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingList( - WebConfigToLabelTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingListParameter( - Object vl); - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setName_Equal(final String name) { - doSetName_Equal(fRES(name)); - } - - protected void doSetName_Equal(final String name) { - regName(CK_EQ, name); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotEqual(final String name) { - doSetName_NotEqual(fRES(name)); - } - - protected void doSetName_NotEqual(final String name) { - regName(CK_NES, name); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterThan(final String name) { - regName(CK_GT, fRES(name)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessThan(final String name) { - regName(CK_LT, fRES(name)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterEqual(final String name) { - regName(CK_GE, fRES(name)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessEqual(final String name) { - regName(CK_LE, fRES(name)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param nameList The collection of name as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_InScope(final Collection<String> nameList) { - doSetName_InScope(nameList); - } - - public void doSetName_InScope(final Collection<String> nameList) { - regINS(CK_INS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param nameList The collection of name as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotInScope(final Collection<String> nameList) { - doSetName_NotInScope(nameList); - } - - public void doSetName_NotInScope(final Collection<String> nameList) { - regINS(CK_NINS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setName_PrefixSearch(final String name) { - setName_LikeSearch(name, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param name The value of name as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setName_LikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setName_NotLikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - protected void regName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueName(), "NAME"); - } - - protected abstract ConditionValue getCValueName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_Equal(final String value) { - doSetValue_Equal(fRES(value)); - } - - protected void doSetValue_Equal(final String value) { - regValue(CK_EQ, value); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_NotEqual(final String value) { - doSetValue_NotEqual(fRES(value)); - } - - protected void doSetValue_NotEqual(final String value) { - regValue(CK_NES, value); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_GreaterThan(final String value) { - regValue(CK_GT, fRES(value)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_LessThan(final String value) { - regValue(CK_LT, fRES(value)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_GreaterEqual(final String value) { - regValue(CK_GE, fRES(value)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_LessEqual(final String value) { - regValue(CK_LE, fRES(value)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param valueList The collection of value as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_InScope(final Collection<String> valueList) { - doSetValue_InScope(valueList); - } - - public void doSetValue_InScope(final Collection<String> valueList) { - regINS(CK_INS, cTL(valueList), getCValueValue(), "VALUE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param valueList The collection of value as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_NotInScope(final Collection<String> valueList) { - doSetValue_NotInScope(valueList); - } - - public void doSetValue_NotInScope(final Collection<String> valueList) { - regINS(CK_NINS, cTL(valueList), getCValueValue(), "VALUE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_PrefixSearch(final String value) { - setValue_LikeSearch(value, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} <br /> - * <pre>e.g. setValue_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param value The value of value as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setValue_LikeSearch(final String value, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(value), getCValueValue(), "VALUE", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setValue_NotLikeSearch(final String value, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(value), getCValueValue(), "VALUE", likeSearchOption); - } - - protected void regValue(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueValue(), "VALUE"); - } - - protected abstract ConditionValue getCValueValue(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_Equal(final String includedPaths) { - doSetIncludedPaths_Equal(fRES(includedPaths)); - } - - protected void doSetIncludedPaths_Equal(final String includedPaths) { - regIncludedPaths(CK_EQ, includedPaths); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_NotEqual(final String includedPaths) { - doSetIncludedPaths_NotEqual(fRES(includedPaths)); - } - - protected void doSetIncludedPaths_NotEqual(final String includedPaths) { - regIncludedPaths(CK_NES, includedPaths); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_GreaterThan(final String includedPaths) { - regIncludedPaths(CK_GT, fRES(includedPaths)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_LessThan(final String includedPaths) { - regIncludedPaths(CK_LT, fRES(includedPaths)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_GreaterEqual(final String includedPaths) { - regIncludedPaths(CK_GE, fRES(includedPaths)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_LessEqual(final String includedPaths) { - regIncludedPaths(CK_LE, fRES(includedPaths)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPathsList The collection of includedPaths as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_InScope( - final Collection<String> includedPathsList) { - doSetIncludedPaths_InScope(includedPathsList); - } - - public void doSetIncludedPaths_InScope( - final Collection<String> includedPathsList) { - regINS(CK_INS, cTL(includedPathsList), getCValueIncludedPaths(), - "INCLUDED_PATHS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPathsList The collection of includedPaths as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_NotInScope( - final Collection<String> includedPathsList) { - doSetIncludedPaths_NotInScope(includedPathsList); - } - - public void doSetIncludedPaths_NotInScope( - final Collection<String> includedPathsList) { - regINS(CK_NINS, cTL(includedPathsList), getCValueIncludedPaths(), - "INCLUDED_PATHS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedPaths_PrefixSearch(final String includedPaths) { - setIncludedPaths_LikeSearch(includedPaths, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} <br /> - * <pre>e.g. setIncludedPaths_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param includedPaths The value of includedPaths as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setIncludedPaths_LikeSearch(final String includedPaths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(includedPaths), getCValueIncludedPaths(), - "INCLUDED_PATHS", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @param includedPaths The value of includedPaths as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setIncludedPaths_NotLikeSearch(final String includedPaths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(includedPaths), getCValueIncludedPaths(), - "INCLUDED_PATHS", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - */ - public void setIncludedPaths_IsNull() { - regIncludedPaths(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - */ - public void setIncludedPaths_IsNullOrEmpty() { - regIncludedPaths(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - */ - public void setIncludedPaths_IsNotNull() { - regIncludedPaths(CK_ISNN, DOBJ); - } - - protected void regIncludedPaths(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueIncludedPaths(), "INCLUDED_PATHS"); - } - - protected abstract ConditionValue getCValueIncludedPaths(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_Equal(final String excludedPaths) { - doSetExcludedPaths_Equal(fRES(excludedPaths)); - } - - protected void doSetExcludedPaths_Equal(final String excludedPaths) { - regExcludedPaths(CK_EQ, excludedPaths); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_NotEqual(final String excludedPaths) { - doSetExcludedPaths_NotEqual(fRES(excludedPaths)); - } - - protected void doSetExcludedPaths_NotEqual(final String excludedPaths) { - regExcludedPaths(CK_NES, excludedPaths); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_GreaterThan(final String excludedPaths) { - regExcludedPaths(CK_GT, fRES(excludedPaths)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_LessThan(final String excludedPaths) { - regExcludedPaths(CK_LT, fRES(excludedPaths)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_GreaterEqual(final String excludedPaths) { - regExcludedPaths(CK_GE, fRES(excludedPaths)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_LessEqual(final String excludedPaths) { - regExcludedPaths(CK_LE, fRES(excludedPaths)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPathsList The collection of excludedPaths as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_InScope( - final Collection<String> excludedPathsList) { - doSetExcludedPaths_InScope(excludedPathsList); - } - - public void doSetExcludedPaths_InScope( - final Collection<String> excludedPathsList) { - regINS(CK_INS, cTL(excludedPathsList), getCValueExcludedPaths(), - "EXCLUDED_PATHS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPathsList The collection of excludedPaths as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_NotInScope( - final Collection<String> excludedPathsList) { - doSetExcludedPaths_NotInScope(excludedPathsList); - } - - public void doSetExcludedPaths_NotInScope( - final Collection<String> excludedPathsList) { - regINS(CK_NINS, cTL(excludedPathsList), getCValueExcludedPaths(), - "EXCLUDED_PATHS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedPaths_PrefixSearch(final String excludedPaths) { - setExcludedPaths_LikeSearch(excludedPaths, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} <br /> - * <pre>e.g. setExcludedPaths_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param excludedPaths The value of excludedPaths as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setExcludedPaths_LikeSearch(final String excludedPaths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(excludedPaths), getCValueExcludedPaths(), - "EXCLUDED_PATHS", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @param excludedPaths The value of excludedPaths as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setExcludedPaths_NotLikeSearch(final String excludedPaths, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(excludedPaths), getCValueExcludedPaths(), - "EXCLUDED_PATHS", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - */ - public void setExcludedPaths_IsNull() { - regExcludedPaths(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - */ - public void setExcludedPaths_IsNullOrEmpty() { - regExcludedPaths(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - */ - public void setExcludedPaths_IsNotNull() { - regExcludedPaths(CK_ISNN, DOBJ); - } - - protected void regExcludedPaths(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueExcludedPaths(), "EXCLUDED_PATHS"); - } - - protected abstract ConditionValue getCValueExcludedPaths(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as equal. (NullAllowed: if null, no condition) - */ - public void setSortOrder_Equal(final Integer sortOrder) { - doSetSortOrder_Equal(sortOrder); - } - - protected void doSetSortOrder_Equal(final Integer sortOrder) { - regSortOrder(CK_EQ, sortOrder); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as notEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_NotEqual(final Integer sortOrder) { - doSetSortOrder_NotEqual(sortOrder); - } - - protected void doSetSortOrder_NotEqual(final Integer sortOrder) { - regSortOrder(CK_NES, sortOrder); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterThan(final Integer sortOrder) { - regSortOrder(CK_GT, sortOrder); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessThan(final Integer sortOrder) { - regSortOrder(CK_LT, sortOrder); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterEqual(final Integer sortOrder) { - regSortOrder(CK_GE, sortOrder); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessEqual(final Integer sortOrder) { - regSortOrder(CK_LE, sortOrder); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param minNumber The min number of sortOrder. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of sortOrder. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setSortOrder_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueSortOrder(), "SORT_ORDER", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_InScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_InScope(sortOrderList); - } - - protected void doSetSortOrder_InScope( - final Collection<Integer> sortOrderList) { - regINS(CK_INS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_NotInScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_NotInScope(sortOrderList); - } - - protected void doSetSortOrder_NotInScope( - final Collection<Integer> sortOrderList) { - regINS(CK_NINS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - protected void regSortOrder(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSortOrder(), "SORT_ORDER"); - } - - protected abstract ConditionValue getCValueSortOrder(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<LabelTypeCB>() { - * public void query(LabelTypeCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<LabelTypeCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, LabelTypeCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<LabelTypeCB>() { - * public void query(LabelTypeCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<LabelTypeCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, LabelTypeCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<LabelTypeCB>() { - * public void query(LabelTypeCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<LabelTypeCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, LabelTypeCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<LabelTypeCB>() { - * public void query(LabelTypeCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<LabelTypeCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, LabelTypeCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<LabelTypeCB>() { - * public void query(LabelTypeCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<LabelTypeCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, LabelTypeCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<LabelTypeCB>() { - * public void query(LabelTypeCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<LabelTypeCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, LabelTypeCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final LabelTypeCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(LabelTypeCQ sq); - - protected LabelTypeCB xcreateScalarConditionCB() { - final LabelTypeCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected LabelTypeCB xcreateScalarConditionPartitionByCB() { - final LabelTypeCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, final SubQuery<LabelTypeCB> sq, - final String al, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(LabelTypeCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<LabelTypeCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(LabelTypeCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(LabelTypeCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<LabelTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(LabelTypeCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<LabelTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(LabelTypeCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected LabelTypeCB newMyCB() { - return new LabelTypeCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return LabelTypeCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsLabelTypeToRoleTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsLabelTypeToRoleTypeMappingCQ.java deleted file mode 100644 index 9c25b630c..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsLabelTypeToRoleTypeMappingCQ.java +++ /dev/null @@ -1,858 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of LABEL_TYPE_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsLabelTypeToRoleTypeMappingCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsLabelTypeToRoleTypeMappingCQ( - final ConditionQuery referrerQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "LABEL_TYPE_TO_ROLE_TYPE_MAPPING"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as equal. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_Equal(final Long labelTypeId) { - doSetLabelTypeId_Equal(labelTypeId); - } - - protected void doSetLabelTypeId_Equal(final Long labelTypeId) { - regLabelTypeId(CK_EQ, labelTypeId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as notEqual. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_NotEqual(final Long labelTypeId) { - doSetLabelTypeId_NotEqual(labelTypeId); - } - - protected void doSetLabelTypeId_NotEqual(final Long labelTypeId) { - regLabelTypeId(CK_NES, labelTypeId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_GreaterThan(final Long labelTypeId) { - regLabelTypeId(CK_GT, labelTypeId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as lessThan. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_LessThan(final Long labelTypeId) { - regLabelTypeId(CK_LT, labelTypeId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_GreaterEqual(final Long labelTypeId) { - regLabelTypeId(CK_GE, labelTypeId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_LessEqual(final Long labelTypeId) { - regLabelTypeId(CK_LE, labelTypeId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param minNumber The min number of labelTypeId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of labelTypeId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setLabelTypeId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueLabelTypeId(), "LABEL_TYPE_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeIdList The collection of labelTypeId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setLabelTypeId_InScope(final Collection<Long> labelTypeIdList) { - doSetLabelTypeId_InScope(labelTypeIdList); - } - - protected void doSetLabelTypeId_InScope( - final Collection<Long> labelTypeIdList) { - regINS(CK_INS, cTL(labelTypeIdList), getCValueLabelTypeId(), - "LABEL_TYPE_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeIdList The collection of labelTypeId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setLabelTypeId_NotInScope(final Collection<Long> labelTypeIdList) { - doSetLabelTypeId_NotInScope(labelTypeIdList); - } - - protected void doSetLabelTypeId_NotInScope( - final Collection<Long> labelTypeIdList) { - regINS(CK_NINS, cTL(labelTypeIdList), getCValueLabelTypeId(), - "LABEL_TYPE_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select LABEL_TYPE_ID from LABEL_TYPE where ...)} <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @param subQuery The sub-query of LabelType for 'in-scope'. (NotNull) - */ - public void inScopeLabelType(final SubQuery<LabelTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepLabelTypeId_InScopeRelation_LabelType(cb.query()); - registerInScopeRelation(cb.query(), "LABEL_TYPE_ID", "ID", pp, - "labelType"); - } - - public abstract String keepLabelTypeId_InScopeRelation_LabelType( - LabelTypeCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select LABEL_TYPE_ID from LABEL_TYPE where ...)} <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @param subQuery The sub-query of LabelType for 'not in-scope'. (NotNull) - */ - public void notInScopeLabelType(final SubQuery<LabelTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepLabelTypeId_NotInScopeRelation_LabelType(cb - .query()); - registerNotInScopeRelation(cb.query(), "LABEL_TYPE_ID", "ID", pp, - "labelType"); - } - - public abstract String keepLabelTypeId_NotInScopeRelation_LabelType( - LabelTypeCQ sq); - - protected void regLabelTypeId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueLabelTypeId(), "LABEL_TYPE_ID"); - } - - protected abstract ConditionValue getCValueLabelTypeId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as equal. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_Equal(final Long roleTypeId) { - doSetRoleTypeId_Equal(roleTypeId); - } - - protected void doSetRoleTypeId_Equal(final Long roleTypeId) { - regRoleTypeId(CK_EQ, roleTypeId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as notEqual. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_NotEqual(final Long roleTypeId) { - doSetRoleTypeId_NotEqual(roleTypeId); - } - - protected void doSetRoleTypeId_NotEqual(final Long roleTypeId) { - regRoleTypeId(CK_NES, roleTypeId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_GreaterThan(final Long roleTypeId) { - regRoleTypeId(CK_GT, roleTypeId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as lessThan. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_LessThan(final Long roleTypeId) { - regRoleTypeId(CK_LT, roleTypeId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_GreaterEqual(final Long roleTypeId) { - regRoleTypeId(CK_GE, roleTypeId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_LessEqual(final Long roleTypeId) { - regRoleTypeId(CK_LE, roleTypeId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param minNumber The min number of roleTypeId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of roleTypeId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setRoleTypeId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueRoleTypeId(), "ROLE_TYPE_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeIdList The collection of roleTypeId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setRoleTypeId_InScope(final Collection<Long> roleTypeIdList) { - doSetRoleTypeId_InScope(roleTypeIdList); - } - - protected void doSetRoleTypeId_InScope(final Collection<Long> roleTypeIdList) { - regINS(CK_INS, cTL(roleTypeIdList), getCValueRoleTypeId(), - "ROLE_TYPE_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeIdList The collection of roleTypeId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setRoleTypeId_NotInScope(final Collection<Long> roleTypeIdList) { - doSetRoleTypeId_NotInScope(roleTypeIdList); - } - - protected void doSetRoleTypeId_NotInScope( - final Collection<Long> roleTypeIdList) { - regINS(CK_NINS, cTL(roleTypeIdList), getCValueRoleTypeId(), - "ROLE_TYPE_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select ROLE_TYPE_ID from ROLE_TYPE where ...)} <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @param subQuery The sub-query of RoleType for 'in-scope'. (NotNull) - */ - public void inScopeRoleType(final SubQuery<RoleTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepRoleTypeId_InScopeRelation_RoleType(cb.query()); - registerInScopeRelation(cb.query(), "ROLE_TYPE_ID", "ID", pp, - "roleType"); - } - - public abstract String keepRoleTypeId_InScopeRelation_RoleType(RoleTypeCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select ROLE_TYPE_ID from ROLE_TYPE where ...)} <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @param subQuery The sub-query of RoleType for 'not in-scope'. (NotNull) - */ - public void notInScopeRoleType(final SubQuery<RoleTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepRoleTypeId_NotInScopeRelation_RoleType(cb.query()); - registerNotInScopeRelation(cb.query(), "ROLE_TYPE_ID", "ID", pp, - "roleType"); - } - - public abstract String keepRoleTypeId_NotInScopeRelation_RoleType( - RoleTypeCQ sq); - - protected void regRoleTypeId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueRoleTypeId(), "ROLE_TYPE_ID"); - } - - protected abstract ConditionValue getCValueRoleTypeId(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<LabelTypeToRoleTypeMappingCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, LabelTypeToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<LabelTypeToRoleTypeMappingCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, LabelTypeToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<LabelTypeToRoleTypeMappingCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, LabelTypeToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<LabelTypeToRoleTypeMappingCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, LabelTypeToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<LabelTypeToRoleTypeMappingCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, LabelTypeToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<LabelTypeToRoleTypeMappingCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, LabelTypeToRoleTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final LabelTypeToRoleTypeMappingCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(LabelTypeToRoleTypeMappingCQ sq); - - protected LabelTypeToRoleTypeMappingCB xcreateScalarConditionCB() { - final LabelTypeToRoleTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected LabelTypeToRoleTypeMappingCB xcreateScalarConditionPartitionByCB() { - final LabelTypeToRoleTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<LabelTypeToRoleTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived( - LabelTypeToRoleTypeMappingCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<LabelTypeToRoleTypeMappingCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(LabelTypeToRoleTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived( - LabelTypeToRoleTypeMappingCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists( - final SubQuery<LabelTypeToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(LabelTypeToRoleTypeMappingCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope( - final SubQuery<LabelTypeToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(LabelTypeToRoleTypeMappingCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected LabelTypeToRoleTypeMappingCB newMyCB() { - return new LabelTypeToRoleTypeMappingCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return LabelTypeToRoleTypeMappingCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsOverlappingHostCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsOverlappingHostCQ.java deleted file mode 100644 index 4836ee076..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsOverlappingHostCQ.java +++ /dev/null @@ -1,1742 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.OverlappingHostCB; -import jp.sf.fess.db.cbean.cq.OverlappingHostCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of OVERLAPPING_HOST. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsOverlappingHostCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsOverlappingHostCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "OVERLAPPING_HOST"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @param regularName The value of regularName as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setRegularName_Equal(final String regularName) { - doSetRegularName_Equal(fRES(regularName)); - } - - protected void doSetRegularName_Equal(final String regularName) { - regRegularName(CK_EQ, regularName); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @param regularName The value of regularName as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setRegularName_NotEqual(final String regularName) { - doSetRegularName_NotEqual(fRES(regularName)); - } - - protected void doSetRegularName_NotEqual(final String regularName) { - regRegularName(CK_NES, regularName); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @param regularName The value of regularName as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setRegularName_GreaterThan(final String regularName) { - regRegularName(CK_GT, fRES(regularName)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @param regularName The value of regularName as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setRegularName_LessThan(final String regularName) { - regRegularName(CK_LT, fRES(regularName)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @param regularName The value of regularName as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setRegularName_GreaterEqual(final String regularName) { - regRegularName(CK_GE, fRES(regularName)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @param regularName The value of regularName as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setRegularName_LessEqual(final String regularName) { - regRegularName(CK_LE, fRES(regularName)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @param regularNameList The collection of regularName as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setRegularName_InScope(final Collection<String> regularNameList) { - doSetRegularName_InScope(regularNameList); - } - - public void doSetRegularName_InScope( - final Collection<String> regularNameList) { - regINS(CK_INS, cTL(regularNameList), getCValueRegularName(), - "REGULAR_NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @param regularNameList The collection of regularName as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setRegularName_NotInScope( - final Collection<String> regularNameList) { - doSetRegularName_NotInScope(regularNameList); - } - - public void doSetRegularName_NotInScope( - final Collection<String> regularNameList) { - regINS(CK_NINS, cTL(regularNameList), getCValueRegularName(), - "REGULAR_NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @param regularName The value of regularName as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setRegularName_PrefixSearch(final String regularName) { - setRegularName_LikeSearch(regularName, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} <br /> - * <pre>e.g. setRegularName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param regularName The value of regularName as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setRegularName_LikeSearch(final String regularName, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(regularName), getCValueRegularName(), - "REGULAR_NAME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @param regularName The value of regularName as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setRegularName_NotLikeSearch(final String regularName, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(regularName), getCValueRegularName(), - "REGULAR_NAME", likeSearchOption); - } - - protected void regRegularName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueRegularName(), "REGULAR_NAME"); - } - - protected abstract ConditionValue getCValueRegularName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @param overlappingName The value of overlappingName as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setOverlappingName_Equal(final String overlappingName) { - doSetOverlappingName_Equal(fRES(overlappingName)); - } - - protected void doSetOverlappingName_Equal(final String overlappingName) { - regOverlappingName(CK_EQ, overlappingName); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @param overlappingName The value of overlappingName as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setOverlappingName_NotEqual(final String overlappingName) { - doSetOverlappingName_NotEqual(fRES(overlappingName)); - } - - protected void doSetOverlappingName_NotEqual(final String overlappingName) { - regOverlappingName(CK_NES, overlappingName); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @param overlappingName The value of overlappingName as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setOverlappingName_GreaterThan(final String overlappingName) { - regOverlappingName(CK_GT, fRES(overlappingName)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @param overlappingName The value of overlappingName as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setOverlappingName_LessThan(final String overlappingName) { - regOverlappingName(CK_LT, fRES(overlappingName)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @param overlappingName The value of overlappingName as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setOverlappingName_GreaterEqual(final String overlappingName) { - regOverlappingName(CK_GE, fRES(overlappingName)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @param overlappingName The value of overlappingName as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setOverlappingName_LessEqual(final String overlappingName) { - regOverlappingName(CK_LE, fRES(overlappingName)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @param overlappingNameList The collection of overlappingName as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setOverlappingName_InScope( - final Collection<String> overlappingNameList) { - doSetOverlappingName_InScope(overlappingNameList); - } - - public void doSetOverlappingName_InScope( - final Collection<String> overlappingNameList) { - regINS(CK_INS, cTL(overlappingNameList), getCValueOverlappingName(), - "OVERLAPPING_NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @param overlappingNameList The collection of overlappingName as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setOverlappingName_NotInScope( - final Collection<String> overlappingNameList) { - doSetOverlappingName_NotInScope(overlappingNameList); - } - - public void doSetOverlappingName_NotInScope( - final Collection<String> overlappingNameList) { - regINS(CK_NINS, cTL(overlappingNameList), getCValueOverlappingName(), - "OVERLAPPING_NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @param overlappingName The value of overlappingName as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setOverlappingName_PrefixSearch(final String overlappingName) { - setOverlappingName_LikeSearch(overlappingName, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} <br /> - * <pre>e.g. setOverlappingName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param overlappingName The value of overlappingName as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setOverlappingName_LikeSearch(final String overlappingName, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(overlappingName), getCValueOverlappingName(), - "OVERLAPPING_NAME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @param overlappingName The value of overlappingName as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setOverlappingName_NotLikeSearch(final String overlappingName, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(overlappingName), getCValueOverlappingName(), - "OVERLAPPING_NAME", likeSearchOption); - } - - protected void regOverlappingName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueOverlappingName(), "OVERLAPPING_NAME"); - } - - protected abstract ConditionValue getCValueOverlappingName(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as equal. (NullAllowed: if null, no condition) - */ - public void setSortOrder_Equal(final Integer sortOrder) { - doSetSortOrder_Equal(sortOrder); - } - - protected void doSetSortOrder_Equal(final Integer sortOrder) { - regSortOrder(CK_EQ, sortOrder); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as notEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_NotEqual(final Integer sortOrder) { - doSetSortOrder_NotEqual(sortOrder); - } - - protected void doSetSortOrder_NotEqual(final Integer sortOrder) { - regSortOrder(CK_NES, sortOrder); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterThan(final Integer sortOrder) { - regSortOrder(CK_GT, sortOrder); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessThan(final Integer sortOrder) { - regSortOrder(CK_LT, sortOrder); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterEqual(final Integer sortOrder) { - regSortOrder(CK_GE, sortOrder); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessEqual(final Integer sortOrder) { - regSortOrder(CK_LE, sortOrder); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param minNumber The min number of sortOrder. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of sortOrder. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setSortOrder_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueSortOrder(), "SORT_ORDER", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_InScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_InScope(sortOrderList); - } - - protected void doSetSortOrder_InScope( - final Collection<Integer> sortOrderList) { - regINS(CK_INS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_NotInScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_NotInScope(sortOrderList); - } - - protected void doSetSortOrder_NotInScope( - final Collection<Integer> sortOrderList) { - regINS(CK_NINS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - protected void regSortOrder(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSortOrder(), "SORT_ORDER"); - } - - protected abstract ConditionValue getCValueSortOrder(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<OverlappingHostCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, OverlappingHostCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<OverlappingHostCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, OverlappingHostCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<OverlappingHostCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, OverlappingHostCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<OverlappingHostCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, OverlappingHostCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<OverlappingHostCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, OverlappingHostCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<OverlappingHostCB>() { - * public void query(OverlappingHostCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<OverlappingHostCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, OverlappingHostCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final OverlappingHostCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(OverlappingHostCQ sq); - - protected OverlappingHostCB xcreateScalarConditionCB() { - final OverlappingHostCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected OverlappingHostCB xcreateScalarConditionPartitionByCB() { - final OverlappingHostCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<OverlappingHostCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final OverlappingHostCB cb = new OverlappingHostCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(OverlappingHostCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<OverlappingHostCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(OverlappingHostCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final OverlappingHostCB cb = new OverlappingHostCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(OverlappingHostCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<OverlappingHostCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final OverlappingHostCB cb = new OverlappingHostCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(OverlappingHostCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<OverlappingHostCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final OverlappingHostCB cb = new OverlappingHostCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(OverlappingHostCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected OverlappingHostCB newMyCB() { - return new OverlappingHostCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return OverlappingHostCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsPathMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsPathMappingCQ.java deleted file mode 100644 index b83e60d52..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsPathMappingCQ.java +++ /dev/null @@ -1,1888 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.CDef; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.PathMappingCB; -import jp.sf.fess.db.cbean.cq.PathMappingCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of PATH_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsPathMappingCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsPathMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "PATH_MAPPING"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REGEX: {NotNull, VARCHAR(1000)} - * @param regex The value of regex as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setRegex_Equal(final String regex) { - doSetRegex_Equal(fRES(regex)); - } - - protected void doSetRegex_Equal(final String regex) { - regRegex(CK_EQ, regex); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REGEX: {NotNull, VARCHAR(1000)} - * @param regex The value of regex as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setRegex_NotEqual(final String regex) { - doSetRegex_NotEqual(fRES(regex)); - } - - protected void doSetRegex_NotEqual(final String regex) { - regRegex(CK_NES, regex); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REGEX: {NotNull, VARCHAR(1000)} - * @param regex The value of regex as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setRegex_GreaterThan(final String regex) { - regRegex(CK_GT, fRES(regex)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REGEX: {NotNull, VARCHAR(1000)} - * @param regex The value of regex as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setRegex_LessThan(final String regex) { - regRegex(CK_LT, fRES(regex)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REGEX: {NotNull, VARCHAR(1000)} - * @param regex The value of regex as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setRegex_GreaterEqual(final String regex) { - regRegex(CK_GE, fRES(regex)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REGEX: {NotNull, VARCHAR(1000)} - * @param regex The value of regex as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setRegex_LessEqual(final String regex) { - regRegex(CK_LE, fRES(regex)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * REGEX: {NotNull, VARCHAR(1000)} - * @param regexList The collection of regex as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setRegex_InScope(final Collection<String> regexList) { - doSetRegex_InScope(regexList); - } - - public void doSetRegex_InScope(final Collection<String> regexList) { - regINS(CK_INS, cTL(regexList), getCValueRegex(), "REGEX"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * REGEX: {NotNull, VARCHAR(1000)} - * @param regexList The collection of regex as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setRegex_NotInScope(final Collection<String> regexList) { - doSetRegex_NotInScope(regexList); - } - - public void doSetRegex_NotInScope(final Collection<String> regexList) { - regINS(CK_NINS, cTL(regexList), getCValueRegex(), "REGEX"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * REGEX: {NotNull, VARCHAR(1000)} - * @param regex The value of regex as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setRegex_PrefixSearch(final String regex) { - setRegex_LikeSearch(regex, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * REGEX: {NotNull, VARCHAR(1000)} <br /> - * <pre>e.g. setRegex_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param regex The value of regex as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setRegex_LikeSearch(final String regex, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(regex), getCValueRegex(), "REGEX", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * REGEX: {NotNull, VARCHAR(1000)} - * @param regex The value of regex as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setRegex_NotLikeSearch(final String regex, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(regex), getCValueRegex(), "REGEX", likeSearchOption); - } - - protected void regRegex(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueRegex(), "REGEX"); - } - - protected abstract ConditionValue getCValueRegex(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @param replacement The value of replacement as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setReplacement_Equal(final String replacement) { - doSetReplacement_Equal(fRES(replacement)); - } - - protected void doSetReplacement_Equal(final String replacement) { - regReplacement(CK_EQ, replacement); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @param replacement The value of replacement as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setReplacement_NotEqual(final String replacement) { - doSetReplacement_NotEqual(fRES(replacement)); - } - - protected void doSetReplacement_NotEqual(final String replacement) { - regReplacement(CK_NES, replacement); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @param replacement The value of replacement as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setReplacement_GreaterThan(final String replacement) { - regReplacement(CK_GT, fRES(replacement)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @param replacement The value of replacement as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setReplacement_LessThan(final String replacement) { - regReplacement(CK_LT, fRES(replacement)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @param replacement The value of replacement as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setReplacement_GreaterEqual(final String replacement) { - regReplacement(CK_GE, fRES(replacement)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @param replacement The value of replacement as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setReplacement_LessEqual(final String replacement) { - regReplacement(CK_LE, fRES(replacement)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @param replacementList The collection of replacement as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setReplacement_InScope(final Collection<String> replacementList) { - doSetReplacement_InScope(replacementList); - } - - public void doSetReplacement_InScope( - final Collection<String> replacementList) { - regINS(CK_INS, cTL(replacementList), getCValueReplacement(), - "REPLACEMENT"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @param replacementList The collection of replacement as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setReplacement_NotInScope( - final Collection<String> replacementList) { - doSetReplacement_NotInScope(replacementList); - } - - public void doSetReplacement_NotInScope( - final Collection<String> replacementList) { - regINS(CK_NINS, cTL(replacementList), getCValueReplacement(), - "REPLACEMENT"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @param replacement The value of replacement as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setReplacement_PrefixSearch(final String replacement) { - setReplacement_LikeSearch(replacement, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} <br /> - * <pre>e.g. setReplacement_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param replacement The value of replacement as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setReplacement_LikeSearch(final String replacement, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(replacement), getCValueReplacement(), "REPLACEMENT", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @param replacement The value of replacement as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setReplacement_NotLikeSearch(final String replacement, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(replacement), getCValueReplacement(), - "REPLACEMENT", likeSearchOption); - } - - protected void regReplacement(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueReplacement(), "REPLACEMENT"); - } - - protected abstract ConditionValue getCValueReplacement(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} - * @param processType The value of processType as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setProcessType_Equal(final String processType) { - doSetProcessType_Equal(fRES(processType)); - } - - /** - * Equal(=). As ProcessType. And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} <br /> - * Processing Type - * @param cdef The instance of classification definition (as ENUM type). (NullAllowed: if null, no condition) - */ - public void setProcessType_Equal_AsProcessType(final CDef.ProcessType cdef) { - doSetProcessType_Equal(cdef != null ? cdef.code() : null); - } - - /** - * Equal(=). As Crawling (C). And OnlyOnceRegistered. <br /> - * Crawling: Process When Crawling - */ - public void setProcessType_Equal_Crawling() { - setProcessType_Equal_AsProcessType(CDef.ProcessType.Crawling); - } - - /** - * Equal(=). As Displaying (D). And OnlyOnceRegistered. <br /> - * Displaying: Process When Displaying - */ - public void setProcessType_Equal_Displaying() { - setProcessType_Equal_AsProcessType(CDef.ProcessType.Displaying); - } - - /** - * Equal(=). As Both (B). And OnlyOnceRegistered. <br /> - * Both: Process When Crawling/Displaying - */ - public void setProcessType_Equal_Both() { - setProcessType_Equal_AsProcessType(CDef.ProcessType.Both); - } - - protected void doSetProcessType_Equal(final String processType) { - regProcessType(CK_EQ, processType); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} - * @param processType The value of processType as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setProcessType_NotEqual(final String processType) { - doSetProcessType_NotEqual(fRES(processType)); - } - - /** - * NotEqual(<>). As ProcessType. And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} <br /> - * Processing Type - * @param cdef The instance of classification definition (as ENUM type). (NullAllowed: if null, no condition) - */ - public void setProcessType_NotEqual_AsProcessType( - final CDef.ProcessType cdef) { - doSetProcessType_NotEqual(cdef != null ? cdef.code() : null); - } - - /** - * NotEqual(<>). As Crawling (C). And OnlyOnceRegistered. <br /> - * Crawling: Process When Crawling - */ - public void setProcessType_NotEqual_Crawling() { - setProcessType_NotEqual_AsProcessType(CDef.ProcessType.Crawling); - } - - /** - * NotEqual(<>). As Displaying (D). And OnlyOnceRegistered. <br /> - * Displaying: Process When Displaying - */ - public void setProcessType_NotEqual_Displaying() { - setProcessType_NotEqual_AsProcessType(CDef.ProcessType.Displaying); - } - - /** - * NotEqual(<>). As Both (B). And OnlyOnceRegistered. <br /> - * Both: Process When Crawling/Displaying - */ - public void setProcessType_NotEqual_Both() { - setProcessType_NotEqual_AsProcessType(CDef.ProcessType.Both); - } - - protected void doSetProcessType_NotEqual(final String processType) { - regProcessType(CK_NES, processType); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} - * @param processTypeList The collection of processType as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setProcessType_InScope(final Collection<String> processTypeList) { - doSetProcessType_InScope(processTypeList); - } - - /** - * InScope {in ('a', 'b')}. As ProcessType. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} <br /> - * Processing Type - * @param cdefList The list of classification definition (as ENUM type). (NullAllowed: if null (or empty), no condition) - */ - public void setProcessType_InScope_AsProcessType( - final Collection<CDef.ProcessType> cdefList) { - doSetProcessType_InScope(cTStrL(cdefList)); - } - - public void doSetProcessType_InScope( - final Collection<String> processTypeList) { - regINS(CK_INS, cTL(processTypeList), getCValueProcessType(), - "PROCESS_TYPE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} - * @param processTypeList The collection of processType as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setProcessType_NotInScope( - final Collection<String> processTypeList) { - doSetProcessType_NotInScope(processTypeList); - } - - /** - * NotInScope {not in ('a', 'b')}. As ProcessType. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} <br /> - * Processing Type - * @param cdefList The list of classification definition (as ENUM type). (NullAllowed: if null (or empty), no condition) - */ - public void setProcessType_NotInScope_AsProcessType( - final Collection<CDef.ProcessType> cdefList) { - doSetProcessType_NotInScope(cTStrL(cdefList)); - } - - public void doSetProcessType_NotInScope( - final Collection<String> processTypeList) { - regINS(CK_NINS, cTL(processTypeList), getCValueProcessType(), - "PROCESS_TYPE"); - } - - protected void regProcessType(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueProcessType(), "PROCESS_TYPE"); - } - - protected abstract ConditionValue getCValueProcessType(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as equal. (NullAllowed: if null, no condition) - */ - public void setSortOrder_Equal(final Integer sortOrder) { - doSetSortOrder_Equal(sortOrder); - } - - protected void doSetSortOrder_Equal(final Integer sortOrder) { - regSortOrder(CK_EQ, sortOrder); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as notEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_NotEqual(final Integer sortOrder) { - doSetSortOrder_NotEqual(sortOrder); - } - - protected void doSetSortOrder_NotEqual(final Integer sortOrder) { - regSortOrder(CK_NES, sortOrder); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterThan(final Integer sortOrder) { - regSortOrder(CK_GT, sortOrder); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessThan(final Integer sortOrder) { - regSortOrder(CK_LT, sortOrder); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterEqual(final Integer sortOrder) { - regSortOrder(CK_GE, sortOrder); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessEqual(final Integer sortOrder) { - regSortOrder(CK_LE, sortOrder); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param minNumber The min number of sortOrder. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of sortOrder. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setSortOrder_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueSortOrder(), "SORT_ORDER", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_InScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_InScope(sortOrderList); - } - - protected void doSetSortOrder_InScope( - final Collection<Integer> sortOrderList) { - regINS(CK_INS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_NotInScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_NotInScope(sortOrderList); - } - - protected void doSetSortOrder_NotInScope( - final Collection<Integer> sortOrderList) { - regINS(CK_NINS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - protected void regSortOrder(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSortOrder(), "SORT_ORDER"); - } - - protected abstract ConditionValue getCValueSortOrder(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<PathMappingCB>() { - * public void query(PathMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<PathMappingCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, PathMappingCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<PathMappingCB>() { - * public void query(PathMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<PathMappingCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, PathMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<PathMappingCB>() { - * public void query(PathMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<PathMappingCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, PathMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<PathMappingCB>() { - * public void query(PathMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<PathMappingCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, PathMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<PathMappingCB>() { - * public void query(PathMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<PathMappingCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, PathMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<PathMappingCB>() { - * public void query(PathMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<PathMappingCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, PathMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final PathMappingCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(PathMappingCQ sq); - - protected PathMappingCB xcreateScalarConditionCB() { - final PathMappingCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected PathMappingCB xcreateScalarConditionPartitionByCB() { - final PathMappingCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<PathMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final PathMappingCB cb = new PathMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(PathMappingCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<PathMappingCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(PathMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final PathMappingCB cb = new PathMappingCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(PathMappingCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<PathMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final PathMappingCB cb = new PathMappingCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(PathMappingCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<PathMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final PathMappingCB cb = new PathMappingCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(PathMappingCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected PathMappingCB newMyCB() { - return new PathMappingCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return PathMappingCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsRequestHeaderCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsRequestHeaderCQ.java deleted file mode 100644 index 30ac329d6..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsRequestHeaderCQ.java +++ /dev/null @@ -1,1787 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.RequestHeaderCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.RequestHeaderCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of REQUEST_HEADER. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsRequestHeaderCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsRequestHeaderCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "REQUEST_HEADER"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setName_Equal(final String name) { - doSetName_Equal(fRES(name)); - } - - protected void doSetName_Equal(final String name) { - regName(CK_EQ, name); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotEqual(final String name) { - doSetName_NotEqual(fRES(name)); - } - - protected void doSetName_NotEqual(final String name) { - regName(CK_NES, name); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterThan(final String name) { - regName(CK_GT, fRES(name)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessThan(final String name) { - regName(CK_LT, fRES(name)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterEqual(final String name) { - regName(CK_GE, fRES(name)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessEqual(final String name) { - regName(CK_LE, fRES(name)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param nameList The collection of name as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_InScope(final Collection<String> nameList) { - doSetName_InScope(nameList); - } - - public void doSetName_InScope(final Collection<String> nameList) { - regINS(CK_INS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param nameList The collection of name as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotInScope(final Collection<String> nameList) { - doSetName_NotInScope(nameList); - } - - public void doSetName_NotInScope(final Collection<String> nameList) { - regINS(CK_NINS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setName_PrefixSearch(final String name) { - setName_LikeSearch(name, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param name The value of name as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setName_LikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setName_NotLikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - protected void regName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueName(), "NAME"); - } - - protected abstract ConditionValue getCValueName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_Equal(final String value) { - doSetValue_Equal(fRES(value)); - } - - protected void doSetValue_Equal(final String value) { - regValue(CK_EQ, value); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_NotEqual(final String value) { - doSetValue_NotEqual(fRES(value)); - } - - protected void doSetValue_NotEqual(final String value) { - regValue(CK_NES, value); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_GreaterThan(final String value) { - regValue(CK_GT, fRES(value)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_LessThan(final String value) { - regValue(CK_LT, fRES(value)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_GreaterEqual(final String value) { - regValue(CK_GE, fRES(value)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_LessEqual(final String value) { - regValue(CK_LE, fRES(value)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param valueList The collection of value as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_InScope(final Collection<String> valueList) { - doSetValue_InScope(valueList); - } - - public void doSetValue_InScope(final Collection<String> valueList) { - regINS(CK_INS, cTL(valueList), getCValueValue(), "VALUE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param valueList The collection of value as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_NotInScope(final Collection<String> valueList) { - doSetValue_NotInScope(valueList); - } - - public void doSetValue_NotInScope(final Collection<String> valueList) { - regINS(CK_NINS, cTL(valueList), getCValueValue(), "VALUE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_PrefixSearch(final String value) { - setValue_LikeSearch(value, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} <br /> - * <pre>e.g. setValue_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param value The value of value as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setValue_LikeSearch(final String value, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(value), getCValueValue(), "VALUE", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setValue_NotLikeSearch(final String value, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(value), getCValueValue(), "VALUE", likeSearchOption); - } - - protected void regValue(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueValue(), "VALUE"); - } - - protected abstract ConditionValue getCValueValue(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigId The value of webCrawlingConfigId as equal. (NullAllowed: if null, no condition) - */ - public void setWebCrawlingConfigId_Equal(final Long webCrawlingConfigId) { - doSetWebCrawlingConfigId_Equal(webCrawlingConfigId); - } - - protected void doSetWebCrawlingConfigId_Equal(final Long webCrawlingConfigId) { - regWebCrawlingConfigId(CK_EQ, webCrawlingConfigId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigId The value of webCrawlingConfigId as notEqual. (NullAllowed: if null, no condition) - */ - public void setWebCrawlingConfigId_NotEqual(final Long webCrawlingConfigId) { - doSetWebCrawlingConfigId_NotEqual(webCrawlingConfigId); - } - - protected void doSetWebCrawlingConfigId_NotEqual( - final Long webCrawlingConfigId) { - regWebCrawlingConfigId(CK_NES, webCrawlingConfigId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigId The value of webCrawlingConfigId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setWebCrawlingConfigId_GreaterThan( - final Long webCrawlingConfigId) { - regWebCrawlingConfigId(CK_GT, webCrawlingConfigId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigId The value of webCrawlingConfigId as lessThan. (NullAllowed: if null, no condition) - */ - public void setWebCrawlingConfigId_LessThan(final Long webCrawlingConfigId) { - regWebCrawlingConfigId(CK_LT, webCrawlingConfigId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigId The value of webCrawlingConfigId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setWebCrawlingConfigId_GreaterEqual( - final Long webCrawlingConfigId) { - regWebCrawlingConfigId(CK_GE, webCrawlingConfigId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigId The value of webCrawlingConfigId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setWebCrawlingConfigId_LessEqual(final Long webCrawlingConfigId) { - regWebCrawlingConfigId(CK_LE, webCrawlingConfigId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param minNumber The min number of webCrawlingConfigId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of webCrawlingConfigId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setWebCrawlingConfigId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueWebCrawlingConfigId(), - "WEB_CRAWLING_CONFIG_ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigIdList The collection of webCrawlingConfigId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setWebCrawlingConfigId_InScope( - final Collection<Long> webCrawlingConfigIdList) { - doSetWebCrawlingConfigId_InScope(webCrawlingConfigIdList); - } - - protected void doSetWebCrawlingConfigId_InScope( - final Collection<Long> webCrawlingConfigIdList) { - regINS(CK_INS, cTL(webCrawlingConfigIdList), - getCValueWebCrawlingConfigId(), "WEB_CRAWLING_CONFIG_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigIdList The collection of webCrawlingConfigId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setWebCrawlingConfigId_NotInScope( - final Collection<Long> webCrawlingConfigIdList) { - doSetWebCrawlingConfigId_NotInScope(webCrawlingConfigIdList); - } - - protected void doSetWebCrawlingConfigId_NotInScope( - final Collection<Long> webCrawlingConfigIdList) { - regINS(CK_NINS, cTL(webCrawlingConfigIdList), - getCValueWebCrawlingConfigId(), "WEB_CRAWLING_CONFIG_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select WEB_CRAWLING_CONFIG_ID from WEB_CRAWLING_CONFIG where ...)} <br /> - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @param subQuery The sub-query of WebCrawlingConfig for 'in-scope'. (NotNull) - */ - public void inScopeWebCrawlingConfig( - final SubQuery<WebCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepWebCrawlingConfigId_InScopeRelation_WebCrawlingConfig(cb - .query()); - registerInScopeRelation(cb.query(), "WEB_CRAWLING_CONFIG_ID", "ID", pp, - "webCrawlingConfig"); - } - - public abstract String keepWebCrawlingConfigId_InScopeRelation_WebCrawlingConfig( - WebCrawlingConfigCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select WEB_CRAWLING_CONFIG_ID from WEB_CRAWLING_CONFIG where ...)} <br /> - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @param subQuery The sub-query of WebCrawlingConfig for 'not in-scope'. (NotNull) - */ - public void notInScopeWebCrawlingConfig( - final SubQuery<WebCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepWebCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig(cb - .query()); - registerNotInScopeRelation(cb.query(), "WEB_CRAWLING_CONFIG_ID", "ID", - pp, "webCrawlingConfig"); - } - - public abstract String keepWebCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig( - WebCrawlingConfigCQ sq); - - protected void regWebCrawlingConfigId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueWebCrawlingConfigId(), "WEB_CRAWLING_CONFIG_ID"); - } - - protected abstract ConditionValue getCValueWebCrawlingConfigId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<RequestHeaderCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, RequestHeaderCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<RequestHeaderCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, RequestHeaderCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<RequestHeaderCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, RequestHeaderCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<RequestHeaderCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, RequestHeaderCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<RequestHeaderCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, RequestHeaderCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<RequestHeaderCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, RequestHeaderCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final RequestHeaderCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(RequestHeaderCQ sq); - - protected RequestHeaderCB xcreateScalarConditionCB() { - final RequestHeaderCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected RequestHeaderCB xcreateScalarConditionPartitionByCB() { - final RequestHeaderCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<RequestHeaderCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(RequestHeaderCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<RequestHeaderCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(RequestHeaderCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(RequestHeaderCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<RequestHeaderCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(RequestHeaderCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<RequestHeaderCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(RequestHeaderCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected RequestHeaderCB newMyCB() { - return new RequestHeaderCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return RequestHeaderCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsRoleTypeCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsRoleTypeCQ.java deleted file mode 100644 index 1d72b8d47..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsRoleTypeCQ.java +++ /dev/null @@ -1,2518 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.cq.DataConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpQDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of ROLE_TYPE. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsRoleTypeCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsRoleTypeCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "ROLE_TYPE"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select ROLE_TYPE_ID from DATA_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'dataConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsDataConfigToRoleTypeMappingList</span>(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of DataConfigToRoleTypeMappingList for 'exists'. (NotNull) - */ - public void existsDataConfigToRoleTypeMappingList( - final SubQuery<DataConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_DataConfigToRoleTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "dataConfigToRoleTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_DataConfigToRoleTypeMappingList( - DataConfigToRoleTypeMappingCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select ROLE_TYPE_ID from FILE_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'fileConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsFileConfigToRoleTypeMappingList</span>(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of FileConfigToRoleTypeMappingList for 'exists'. (NotNull) - */ - public void existsFileConfigToRoleTypeMappingList( - final SubQuery<FileConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_FileConfigToRoleTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "fileConfigToRoleTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_FileConfigToRoleTypeMappingList( - FileConfigToRoleTypeMappingCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select ROLE_TYPE_ID from LABEL_TYPE_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'labelTypeToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsLabelTypeToRoleTypeMappingList</span>(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of LabelTypeToRoleTypeMappingList for 'exists'. (NotNull) - */ - public void existsLabelTypeToRoleTypeMappingList( - final SubQuery<LabelTypeToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_LabelTypeToRoleTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "labelTypeToRoleTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_LabelTypeToRoleTypeMappingList( - LabelTypeToRoleTypeMappingCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select ROLE_TYPE_ID from WEB_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'webConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsWebConfigToRoleTypeMappingList</span>(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of WebConfigToRoleTypeMappingList for 'exists'. (NotNull) - */ - public void existsWebConfigToRoleTypeMappingList( - final SubQuery<WebConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_WebConfigToRoleTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "webConfigToRoleTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_WebConfigToRoleTypeMappingList( - WebConfigToRoleTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select ROLE_TYPE_ID from DATA_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'dataConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsDataConfigToRoleTypeMappingList</span>(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_DataConfigToRoleTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsDataConfigToRoleTypeMappingList( - final SubQuery<DataConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_DataConfigToRoleTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "dataConfigToRoleTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_DataConfigToRoleTypeMappingList( - DataConfigToRoleTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select ROLE_TYPE_ID from FILE_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'fileConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsFileConfigToRoleTypeMappingList</span>(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_FileConfigToRoleTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsFileConfigToRoleTypeMappingList( - final SubQuery<FileConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_FileConfigToRoleTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "fileConfigToRoleTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_FileConfigToRoleTypeMappingList( - FileConfigToRoleTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select ROLE_TYPE_ID from LABEL_TYPE_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'labelTypeToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsLabelTypeToRoleTypeMappingList</span>(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_LabelTypeToRoleTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsLabelTypeToRoleTypeMappingList( - final SubQuery<LabelTypeToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_LabelTypeToRoleTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "labelTypeToRoleTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_LabelTypeToRoleTypeMappingList( - LabelTypeToRoleTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select ROLE_TYPE_ID from WEB_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'webConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsWebConfigToRoleTypeMappingList</span>(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_WebConfigToRoleTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsWebConfigToRoleTypeMappingList( - final SubQuery<WebConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_WebConfigToRoleTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "webConfigToRoleTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_WebConfigToRoleTypeMappingList( - WebConfigToRoleTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select ROLE_TYPE_ID from DATA_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'dataConfigToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of DataConfigToRoleTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeDataConfigToRoleTypeMappingList( - final SubQuery<DataConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_DataConfigToRoleTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "dataConfigToRoleTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_DataConfigToRoleTypeMappingList( - DataConfigToRoleTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select ROLE_TYPE_ID from FILE_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'fileConfigToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of FileConfigToRoleTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeFileConfigToRoleTypeMappingList( - final SubQuery<FileConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_FileConfigToRoleTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "fileConfigToRoleTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_FileConfigToRoleTypeMappingList( - FileConfigToRoleTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select ROLE_TYPE_ID from LABEL_TYPE_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'labelTypeToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of LabelTypeToRoleTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeLabelTypeToRoleTypeMappingList( - final SubQuery<LabelTypeToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_LabelTypeToRoleTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "labelTypeToRoleTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_LabelTypeToRoleTypeMappingList( - LabelTypeToRoleTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select ROLE_TYPE_ID from WEB_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'webConfigToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of WebConfigToRoleTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeWebConfigToRoleTypeMappingList( - final SubQuery<WebConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_WebConfigToRoleTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "webConfigToRoleTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_WebConfigToRoleTypeMappingList( - WebConfigToRoleTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select ROLE_TYPE_ID from DATA_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'dataConfigToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of DataConfigToRoleTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeDataConfigToRoleTypeMappingList( - final SubQuery<DataConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_DataConfigToRoleTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "dataConfigToRoleTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_DataConfigToRoleTypeMappingList( - DataConfigToRoleTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select ROLE_TYPE_ID from FILE_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'fileConfigToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of FileConfigToRoleTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeFileConfigToRoleTypeMappingList( - final SubQuery<FileConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_FileConfigToRoleTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "fileConfigToRoleTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_FileConfigToRoleTypeMappingList( - FileConfigToRoleTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select ROLE_TYPE_ID from LABEL_TYPE_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'labelTypeToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of LabelTypeToRoleTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeLabelTypeToRoleTypeMappingList( - final SubQuery<LabelTypeToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_LabelTypeToRoleTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "labelTypeToRoleTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_LabelTypeToRoleTypeMappingList( - LabelTypeToRoleTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select ROLE_TYPE_ID from WEB_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'webConfigToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of WebConfigToRoleTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeWebConfigToRoleTypeMappingList( - final SubQuery<WebConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_WebConfigToRoleTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "ROLE_TYPE_ID", pp, - "webConfigToRoleTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_WebConfigToRoleTypeMappingList( - WebConfigToRoleTypeMappingCQ sq); - - public void xsderiveDataConfigToRoleTypeMappingList(final String fn, - final SubQuery<DataConfigToRoleTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "ROLE_TYPE_ID", - pp, "dataConfigToRoleTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList( - DataConfigToRoleTypeMappingCQ sq); - - public void xsderiveFileConfigToRoleTypeMappingList(final String fn, - final SubQuery<FileConfigToRoleTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "ROLE_TYPE_ID", - pp, "fileConfigToRoleTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList( - FileConfigToRoleTypeMappingCQ sq); - - public void xsderiveLabelTypeToRoleTypeMappingList(final String fn, - final SubQuery<LabelTypeToRoleTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "ROLE_TYPE_ID", - pp, "labelTypeToRoleTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList( - LabelTypeToRoleTypeMappingCQ sq); - - public void xsderiveWebConfigToRoleTypeMappingList(final String fn, - final SubQuery<WebConfigToRoleTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "ROLE_TYPE_ID", - pp, "webConfigToRoleTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList( - WebConfigToRoleTypeMappingCQ sq); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from DATA_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * DATA_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'dataConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedDataConfigToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<DataConfigToRoleTypeMappingCB>() { - * public void query(DataConfigToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<DataConfigToRoleTypeMappingCB> derivedDataConfigToRoleTypeMappingList() { - return xcreateQDRFunctionDataConfigToRoleTypeMappingList(); - } - - protected HpQDRFunction<DataConfigToRoleTypeMappingCB> xcreateQDRFunctionDataConfigToRoleTypeMappingList() { - return new HpQDRFunction<DataConfigToRoleTypeMappingCB>( - new HpQDRSetupper<DataConfigToRoleTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<DataConfigToRoleTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveDataConfigToRoleTypeMappingList(fn, sq, rd, vl, - op); - } - }); - } - - public void xqderiveDataConfigToRoleTypeMappingList(final String fn, - final SubQuery<DataConfigToRoleTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "ROLE_TYPE_ID", - sqpp, "dataConfigToRoleTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingList( - DataConfigToRoleTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from FILE_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'fileConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedFileConfigToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<FileConfigToRoleTypeMappingCB>() { - * public void query(FileConfigToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<FileConfigToRoleTypeMappingCB> derivedFileConfigToRoleTypeMappingList() { - return xcreateQDRFunctionFileConfigToRoleTypeMappingList(); - } - - protected HpQDRFunction<FileConfigToRoleTypeMappingCB> xcreateQDRFunctionFileConfigToRoleTypeMappingList() { - return new HpQDRFunction<FileConfigToRoleTypeMappingCB>( - new HpQDRSetupper<FileConfigToRoleTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<FileConfigToRoleTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveFileConfigToRoleTypeMappingList(fn, sq, rd, vl, - op); - } - }); - } - - public void xqderiveFileConfigToRoleTypeMappingList(final String fn, - final SubQuery<FileConfigToRoleTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "ROLE_TYPE_ID", - sqpp, "fileConfigToRoleTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingList( - FileConfigToRoleTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from LABEL_TYPE_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * LABEL_TYPE_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'labelTypeToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedLabelTypeToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<LabelTypeToRoleTypeMappingCB>() { - * public void query(LabelTypeToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<LabelTypeToRoleTypeMappingCB> derivedLabelTypeToRoleTypeMappingList() { - return xcreateQDRFunctionLabelTypeToRoleTypeMappingList(); - } - - protected HpQDRFunction<LabelTypeToRoleTypeMappingCB> xcreateQDRFunctionLabelTypeToRoleTypeMappingList() { - return new HpQDRFunction<LabelTypeToRoleTypeMappingCB>( - new HpQDRSetupper<LabelTypeToRoleTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<LabelTypeToRoleTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveLabelTypeToRoleTypeMappingList(fn, sq, rd, vl, - op); - } - }); - } - - public void xqderiveLabelTypeToRoleTypeMappingList(final String fn, - final SubQuery<LabelTypeToRoleTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "ROLE_TYPE_ID", - sqpp, "labelTypeToRoleTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList( - LabelTypeToRoleTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from WEB_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by ROLE_TYPE_ID, named 'webConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedWebConfigToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<WebConfigToRoleTypeMappingCB> derivedWebConfigToRoleTypeMappingList() { - return xcreateQDRFunctionWebConfigToRoleTypeMappingList(); - } - - protected HpQDRFunction<WebConfigToRoleTypeMappingCB> xcreateQDRFunctionWebConfigToRoleTypeMappingList() { - return new HpQDRFunction<WebConfigToRoleTypeMappingCB>( - new HpQDRSetupper<WebConfigToRoleTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<WebConfigToRoleTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveWebConfigToRoleTypeMappingList(fn, sq, rd, vl, - op); - } - }); - } - - public void xqderiveWebConfigToRoleTypeMappingList(final String fn, - final SubQuery<WebConfigToRoleTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "ROLE_TYPE_ID", - sqpp, "webConfigToRoleTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingList( - WebConfigToRoleTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingListParameter( - Object vl); - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setName_Equal(final String name) { - doSetName_Equal(fRES(name)); - } - - protected void doSetName_Equal(final String name) { - regName(CK_EQ, name); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotEqual(final String name) { - doSetName_NotEqual(fRES(name)); - } - - protected void doSetName_NotEqual(final String name) { - regName(CK_NES, name); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterThan(final String name) { - regName(CK_GT, fRES(name)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessThan(final String name) { - regName(CK_LT, fRES(name)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterEqual(final String name) { - regName(CK_GE, fRES(name)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessEqual(final String name) { - regName(CK_LE, fRES(name)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param nameList The collection of name as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_InScope(final Collection<String> nameList) { - doSetName_InScope(nameList); - } - - public void doSetName_InScope(final Collection<String> nameList) { - regINS(CK_INS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param nameList The collection of name as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotInScope(final Collection<String> nameList) { - doSetName_NotInScope(nameList); - } - - public void doSetName_NotInScope(final Collection<String> nameList) { - regINS(CK_NINS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setName_PrefixSearch(final String name) { - setName_LikeSearch(name, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param name The value of name as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setName_LikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setName_NotLikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - protected void regName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueName(), "NAME"); - } - - protected abstract ConditionValue getCValueName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_Equal(final String value) { - doSetValue_Equal(fRES(value)); - } - - protected void doSetValue_Equal(final String value) { - regValue(CK_EQ, value); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_NotEqual(final String value) { - doSetValue_NotEqual(fRES(value)); - } - - protected void doSetValue_NotEqual(final String value) { - regValue(CK_NES, value); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_GreaterThan(final String value) { - regValue(CK_GT, fRES(value)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_LessThan(final String value) { - regValue(CK_LT, fRES(value)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_GreaterEqual(final String value) { - regValue(CK_GE, fRES(value)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_LessEqual(final String value) { - regValue(CK_LE, fRES(value)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param valueList The collection of value as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_InScope(final Collection<String> valueList) { - doSetValue_InScope(valueList); - } - - public void doSetValue_InScope(final Collection<String> valueList) { - regINS(CK_INS, cTL(valueList), getCValueValue(), "VALUE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param valueList The collection of value as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_NotInScope(final Collection<String> valueList) { - doSetValue_NotInScope(valueList); - } - - public void doSetValue_NotInScope(final Collection<String> valueList) { - regINS(CK_NINS, cTL(valueList), getCValueValue(), "VALUE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_PrefixSearch(final String value) { - setValue_LikeSearch(value, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} <br /> - * <pre>e.g. setValue_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param value The value of value as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setValue_LikeSearch(final String value, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(value), getCValueValue(), "VALUE", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @param value The value of value as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setValue_NotLikeSearch(final String value, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(value), getCValueValue(), "VALUE", likeSearchOption); - } - - protected void regValue(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueValue(), "VALUE"); - } - - protected abstract ConditionValue getCValueValue(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as equal. (NullAllowed: if null, no condition) - */ - public void setSortOrder_Equal(final Integer sortOrder) { - doSetSortOrder_Equal(sortOrder); - } - - protected void doSetSortOrder_Equal(final Integer sortOrder) { - regSortOrder(CK_EQ, sortOrder); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as notEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_NotEqual(final Integer sortOrder) { - doSetSortOrder_NotEqual(sortOrder); - } - - protected void doSetSortOrder_NotEqual(final Integer sortOrder) { - regSortOrder(CK_NES, sortOrder); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterThan(final Integer sortOrder) { - regSortOrder(CK_GT, sortOrder); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessThan(final Integer sortOrder) { - regSortOrder(CK_LT, sortOrder); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterEqual(final Integer sortOrder) { - regSortOrder(CK_GE, sortOrder); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessEqual(final Integer sortOrder) { - regSortOrder(CK_LE, sortOrder); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param minNumber The min number of sortOrder. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of sortOrder. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setSortOrder_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueSortOrder(), "SORT_ORDER", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_InScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_InScope(sortOrderList); - } - - protected void doSetSortOrder_InScope( - final Collection<Integer> sortOrderList) { - regINS(CK_INS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_NotInScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_NotInScope(sortOrderList); - } - - protected void doSetSortOrder_NotInScope( - final Collection<Integer> sortOrderList) { - regINS(CK_NINS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - protected void regSortOrder(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSortOrder(), "SORT_ORDER"); - } - - protected abstract ConditionValue getCValueSortOrder(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<RoleTypeCB>() { - * public void query(RoleTypeCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<RoleTypeCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, RoleTypeCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<RoleTypeCB>() { - * public void query(RoleTypeCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<RoleTypeCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, RoleTypeCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<RoleTypeCB>() { - * public void query(RoleTypeCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<RoleTypeCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, RoleTypeCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<RoleTypeCB>() { - * public void query(RoleTypeCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<RoleTypeCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, RoleTypeCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<RoleTypeCB>() { - * public void query(RoleTypeCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<RoleTypeCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, RoleTypeCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<RoleTypeCB>() { - * public void query(RoleTypeCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<RoleTypeCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, RoleTypeCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final RoleTypeCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(RoleTypeCQ sq); - - protected RoleTypeCB xcreateScalarConditionCB() { - final RoleTypeCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected RoleTypeCB xcreateScalarConditionPartitionByCB() { - final RoleTypeCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, final SubQuery<RoleTypeCB> sq, - final String al, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(RoleTypeCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<RoleTypeCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(RoleTypeCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(RoleTypeCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<RoleTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(RoleTypeCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<RoleTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(RoleTypeCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected RoleTypeCB newMyCB() { - return new RoleTypeCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return RoleTypeCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsScheduledJobCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsScheduledJobCQ.java deleted file mode 100644 index c619a8b84..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsScheduledJobCQ.java +++ /dev/null @@ -1,2541 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.ScheduledJobCB; -import jp.sf.fess.db.cbean.cq.ScheduledJobCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of SCHEDULED_JOB. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsScheduledJobCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsScheduledJobCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "SCHEDULED_JOB"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setName_Equal(final String name) { - doSetName_Equal(fRES(name)); - } - - protected void doSetName_Equal(final String name) { - regName(CK_EQ, name); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotEqual(final String name) { - doSetName_NotEqual(fRES(name)); - } - - protected void doSetName_NotEqual(final String name) { - regName(CK_NES, name); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterThan(final String name) { - regName(CK_GT, fRES(name)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessThan(final String name) { - regName(CK_LT, fRES(name)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterEqual(final String name) { - regName(CK_GE, fRES(name)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessEqual(final String name) { - regName(CK_LE, fRES(name)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param nameList The collection of name as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_InScope(final Collection<String> nameList) { - doSetName_InScope(nameList); - } - - public void doSetName_InScope(final Collection<String> nameList) { - regINS(CK_INS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param nameList The collection of name as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotInScope(final Collection<String> nameList) { - doSetName_NotInScope(nameList); - } - - public void doSetName_NotInScope(final Collection<String> nameList) { - regINS(CK_NINS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setName_PrefixSearch(final String name) { - setName_LikeSearch(name, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param name The value of name as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setName_LikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @param name The value of name as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setName_NotLikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - protected void regName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueName(), "NAME"); - } - - protected abstract ConditionValue getCValueName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_Equal(final String target) { - doSetTarget_Equal(fRES(target)); - } - - protected void doSetTarget_Equal(final String target) { - regTarget(CK_EQ, target); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_NotEqual(final String target) { - doSetTarget_NotEqual(fRES(target)); - } - - protected void doSetTarget_NotEqual(final String target) { - regTarget(CK_NES, target); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_GreaterThan(final String target) { - regTarget(CK_GT, fRES(target)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_LessThan(final String target) { - regTarget(CK_LT, fRES(target)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_GreaterEqual(final String target) { - regTarget(CK_GE, fRES(target)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_LessEqual(final String target) { - regTarget(CK_LE, fRES(target)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param targetList The collection of target as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_InScope(final Collection<String> targetList) { - doSetTarget_InScope(targetList); - } - - public void doSetTarget_InScope(final Collection<String> targetList) { - regINS(CK_INS, cTL(targetList), getCValueTarget(), "TARGET"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param targetList The collection of target as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_NotInScope(final Collection<String> targetList) { - doSetTarget_NotInScope(targetList); - } - - public void doSetTarget_NotInScope(final Collection<String> targetList) { - regINS(CK_NINS, cTL(targetList), getCValueTarget(), "TARGET"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setTarget_PrefixSearch(final String target) { - setTarget_LikeSearch(target, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setTarget_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param target The value of target as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setTarget_LikeSearch(final String target, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(target), getCValueTarget(), "TARGET", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @param target The value of target as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setTarget_NotLikeSearch(final String target, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(target), getCValueTarget(), "TARGET", - likeSearchOption); - } - - protected void regTarget(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueTarget(), "TARGET"); - } - - protected abstract ConditionValue getCValueTarget(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @param cronExpression The value of cronExpression as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCronExpression_Equal(final String cronExpression) { - doSetCronExpression_Equal(fRES(cronExpression)); - } - - protected void doSetCronExpression_Equal(final String cronExpression) { - regCronExpression(CK_EQ, cronExpression); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @param cronExpression The value of cronExpression as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCronExpression_NotEqual(final String cronExpression) { - doSetCronExpression_NotEqual(fRES(cronExpression)); - } - - protected void doSetCronExpression_NotEqual(final String cronExpression) { - regCronExpression(CK_NES, cronExpression); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @param cronExpression The value of cronExpression as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCronExpression_GreaterThan(final String cronExpression) { - regCronExpression(CK_GT, fRES(cronExpression)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @param cronExpression The value of cronExpression as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCronExpression_LessThan(final String cronExpression) { - regCronExpression(CK_LT, fRES(cronExpression)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @param cronExpression The value of cronExpression as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCronExpression_GreaterEqual(final String cronExpression) { - regCronExpression(CK_GE, fRES(cronExpression)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @param cronExpression The value of cronExpression as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCronExpression_LessEqual(final String cronExpression) { - regCronExpression(CK_LE, fRES(cronExpression)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @param cronExpressionList The collection of cronExpression as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCronExpression_InScope( - final Collection<String> cronExpressionList) { - doSetCronExpression_InScope(cronExpressionList); - } - - public void doSetCronExpression_InScope( - final Collection<String> cronExpressionList) { - regINS(CK_INS, cTL(cronExpressionList), getCValueCronExpression(), - "CRON_EXPRESSION"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @param cronExpressionList The collection of cronExpression as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCronExpression_NotInScope( - final Collection<String> cronExpressionList) { - doSetCronExpression_NotInScope(cronExpressionList); - } - - public void doSetCronExpression_NotInScope( - final Collection<String> cronExpressionList) { - regINS(CK_NINS, cTL(cronExpressionList), getCValueCronExpression(), - "CRON_EXPRESSION"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @param cronExpression The value of cronExpression as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCronExpression_PrefixSearch(final String cronExpression) { - setCronExpression_LikeSearch(cronExpression, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setCronExpression_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param cronExpression The value of cronExpression as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCronExpression_LikeSearch(final String cronExpression, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(cronExpression), getCValueCronExpression(), - "CRON_EXPRESSION", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @param cronExpression The value of cronExpression as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCronExpression_NotLikeSearch(final String cronExpression, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(cronExpression), getCValueCronExpression(), - "CRON_EXPRESSION", likeSearchOption); - } - - protected void regCronExpression(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCronExpression(), "CRON_EXPRESSION"); - } - - protected abstract ConditionValue getCValueCronExpression(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_Equal(final String scriptType) { - doSetScriptType_Equal(fRES(scriptType)); - } - - protected void doSetScriptType_Equal(final String scriptType) { - regScriptType(CK_EQ, scriptType); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_NotEqual(final String scriptType) { - doSetScriptType_NotEqual(fRES(scriptType)); - } - - protected void doSetScriptType_NotEqual(final String scriptType) { - regScriptType(CK_NES, scriptType); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_GreaterThan(final String scriptType) { - regScriptType(CK_GT, fRES(scriptType)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_LessThan(final String scriptType) { - regScriptType(CK_LT, fRES(scriptType)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_GreaterEqual(final String scriptType) { - regScriptType(CK_GE, fRES(scriptType)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_LessEqual(final String scriptType) { - regScriptType(CK_LE, fRES(scriptType)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptTypeList The collection of scriptType as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_InScope(final Collection<String> scriptTypeList) { - doSetScriptType_InScope(scriptTypeList); - } - - public void doSetScriptType_InScope(final Collection<String> scriptTypeList) { - regINS(CK_INS, cTL(scriptTypeList), getCValueScriptType(), - "SCRIPT_TYPE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptTypeList The collection of scriptType as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_NotInScope(final Collection<String> scriptTypeList) { - doSetScriptType_NotInScope(scriptTypeList); - } - - public void doSetScriptType_NotInScope( - final Collection<String> scriptTypeList) { - regINS(CK_NINS, cTL(scriptTypeList), getCValueScriptType(), - "SCRIPT_TYPE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptType_PrefixSearch(final String scriptType) { - setScriptType_LikeSearch(scriptType, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setScriptType_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param scriptType The value of scriptType as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setScriptType_LikeSearch(final String scriptType, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(scriptType), getCValueScriptType(), "SCRIPT_TYPE", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @param scriptType The value of scriptType as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setScriptType_NotLikeSearch(final String scriptType, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(scriptType), getCValueScriptType(), "SCRIPT_TYPE", - likeSearchOption); - } - - protected void regScriptType(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueScriptType(), "SCRIPT_TYPE"); - } - - protected abstract ConditionValue getCValueScriptType(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_Equal(final String scriptData) { - doSetScriptData_Equal(fRES(scriptData)); - } - - protected void doSetScriptData_Equal(final String scriptData) { - regScriptData(CK_EQ, scriptData); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_NotEqual(final String scriptData) { - doSetScriptData_NotEqual(fRES(scriptData)); - } - - protected void doSetScriptData_NotEqual(final String scriptData) { - regScriptData(CK_NES, scriptData); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_GreaterThan(final String scriptData) { - regScriptData(CK_GT, fRES(scriptData)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_LessThan(final String scriptData) { - regScriptData(CK_LT, fRES(scriptData)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_GreaterEqual(final String scriptData) { - regScriptData(CK_GE, fRES(scriptData)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_LessEqual(final String scriptData) { - regScriptData(CK_LE, fRES(scriptData)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptDataList The collection of scriptData as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_InScope(final Collection<String> scriptDataList) { - doSetScriptData_InScope(scriptDataList); - } - - public void doSetScriptData_InScope(final Collection<String> scriptDataList) { - regINS(CK_INS, cTL(scriptDataList), getCValueScriptData(), - "SCRIPT_DATA"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptDataList The collection of scriptData as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_NotInScope(final Collection<String> scriptDataList) { - doSetScriptData_NotInScope(scriptDataList); - } - - public void doSetScriptData_NotInScope( - final Collection<String> scriptDataList) { - regINS(CK_NINS, cTL(scriptDataList), getCValueScriptData(), - "SCRIPT_DATA"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setScriptData_PrefixSearch(final String scriptData) { - setScriptData_LikeSearch(scriptData, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} <br /> - * <pre>e.g. setScriptData_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param scriptData The value of scriptData as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setScriptData_LikeSearch(final String scriptData, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(scriptData), getCValueScriptData(), "SCRIPT_DATA", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @param scriptData The value of scriptData as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setScriptData_NotLikeSearch(final String scriptData, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(scriptData), getCValueScriptData(), "SCRIPT_DATA", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - */ - public void setScriptData_IsNull() { - regScriptData(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - */ - public void setScriptData_IsNullOrEmpty() { - regScriptData(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - */ - public void setScriptData_IsNotNull() { - regScriptData(CK_ISNN, DOBJ); - } - - protected void regScriptData(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueScriptData(), "SCRIPT_DATA"); - } - - protected abstract ConditionValue getCValueScriptData(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} - * @param crawler The value of crawler as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCrawler_Equal(final String crawler) { - doSetCrawler_Equal(fRES(crawler)); - } - - protected void doSetCrawler_Equal(final String crawler) { - regCrawler(CK_EQ, crawler); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} - * @param crawler The value of crawler as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCrawler_NotEqual(final String crawler) { - doSetCrawler_NotEqual(fRES(crawler)); - } - - protected void doSetCrawler_NotEqual(final String crawler) { - regCrawler(CK_NES, crawler); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} - * @param crawler The value of crawler as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCrawler_GreaterThan(final String crawler) { - regCrawler(CK_GT, fRES(crawler)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} - * @param crawler The value of crawler as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCrawler_LessThan(final String crawler) { - regCrawler(CK_LT, fRES(crawler)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} - * @param crawler The value of crawler as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCrawler_GreaterEqual(final String crawler) { - regCrawler(CK_GE, fRES(crawler)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} - * @param crawler The value of crawler as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCrawler_LessEqual(final String crawler) { - regCrawler(CK_LE, fRES(crawler)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} - * @param crawlerList The collection of crawler as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCrawler_InScope(final Collection<String> crawlerList) { - doSetCrawler_InScope(crawlerList); - } - - public void doSetCrawler_InScope(final Collection<String> crawlerList) { - regINS(CK_INS, cTL(crawlerList), getCValueCrawler(), "CRAWLER"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} - * @param crawlerList The collection of crawler as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCrawler_NotInScope(final Collection<String> crawlerList) { - doSetCrawler_NotInScope(crawlerList); - } - - public void doSetCrawler_NotInScope(final Collection<String> crawlerList) { - regINS(CK_NINS, cTL(crawlerList), getCValueCrawler(), "CRAWLER"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} - * @param crawler The value of crawler as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCrawler_PrefixSearch(final String crawler) { - setCrawler_LikeSearch(crawler, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} <br /> - * <pre>e.g. setCrawler_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param crawler The value of crawler as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCrawler_LikeSearch(final String crawler, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(crawler), getCValueCrawler(), "CRAWLER", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} - * @param crawler The value of crawler as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCrawler_NotLikeSearch(final String crawler, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(crawler), getCValueCrawler(), "CRAWLER", - likeSearchOption); - } - - protected void regCrawler(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCrawler(), "CRAWLER"); - } - - protected abstract ConditionValue getCValueCrawler(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @param jobLogging The value of jobLogging as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setJobLogging_Equal(final String jobLogging) { - doSetJobLogging_Equal(fRES(jobLogging)); - } - - protected void doSetJobLogging_Equal(final String jobLogging) { - regJobLogging(CK_EQ, jobLogging); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @param jobLogging The value of jobLogging as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setJobLogging_NotEqual(final String jobLogging) { - doSetJobLogging_NotEqual(fRES(jobLogging)); - } - - protected void doSetJobLogging_NotEqual(final String jobLogging) { - regJobLogging(CK_NES, jobLogging); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @param jobLogging The value of jobLogging as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setJobLogging_GreaterThan(final String jobLogging) { - regJobLogging(CK_GT, fRES(jobLogging)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @param jobLogging The value of jobLogging as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setJobLogging_LessThan(final String jobLogging) { - regJobLogging(CK_LT, fRES(jobLogging)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @param jobLogging The value of jobLogging as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setJobLogging_GreaterEqual(final String jobLogging) { - regJobLogging(CK_GE, fRES(jobLogging)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @param jobLogging The value of jobLogging as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setJobLogging_LessEqual(final String jobLogging) { - regJobLogging(CK_LE, fRES(jobLogging)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @param jobLoggingList The collection of jobLogging as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setJobLogging_InScope(final Collection<String> jobLoggingList) { - doSetJobLogging_InScope(jobLoggingList); - } - - public void doSetJobLogging_InScope(final Collection<String> jobLoggingList) { - regINS(CK_INS, cTL(jobLoggingList), getCValueJobLogging(), - "JOB_LOGGING"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @param jobLoggingList The collection of jobLogging as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setJobLogging_NotInScope(final Collection<String> jobLoggingList) { - doSetJobLogging_NotInScope(jobLoggingList); - } - - public void doSetJobLogging_NotInScope( - final Collection<String> jobLoggingList) { - regINS(CK_NINS, cTL(jobLoggingList), getCValueJobLogging(), - "JOB_LOGGING"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @param jobLogging The value of jobLogging as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setJobLogging_PrefixSearch(final String jobLogging) { - setJobLogging_LikeSearch(jobLogging, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} <br /> - * <pre>e.g. setJobLogging_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param jobLogging The value of jobLogging as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setJobLogging_LikeSearch(final String jobLogging, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(jobLogging), getCValueJobLogging(), "JOB_LOGGING", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @param jobLogging The value of jobLogging as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setJobLogging_NotLikeSearch(final String jobLogging, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(jobLogging), getCValueJobLogging(), "JOB_LOGGING", - likeSearchOption); - } - - protected void regJobLogging(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueJobLogging(), "JOB_LOGGING"); - } - - protected abstract ConditionValue getCValueJobLogging(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_Equal(final String available) { - doSetAvailable_Equal(fRES(available)); - } - - protected void doSetAvailable_Equal(final String available) { - regAvailable(CK_EQ, available); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_NotEqual(final String available) { - doSetAvailable_NotEqual(fRES(available)); - } - - protected void doSetAvailable_NotEqual(final String available) { - regAvailable(CK_NES, available); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_GreaterThan(final String available) { - regAvailable(CK_GT, fRES(available)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_LessThan(final String available) { - regAvailable(CK_LT, fRES(available)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_GreaterEqual(final String available) { - regAvailable(CK_GE, fRES(available)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_LessEqual(final String available) { - regAvailable(CK_LE, fRES(available)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param availableList The collection of available as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_InScope(final Collection<String> availableList) { - doSetAvailable_InScope(availableList); - } - - public void doSetAvailable_InScope(final Collection<String> availableList) { - regINS(CK_INS, cTL(availableList), getCValueAvailable(), "AVAILABLE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param availableList The collection of available as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_NotInScope(final Collection<String> availableList) { - doSetAvailable_NotInScope(availableList); - } - - public void doSetAvailable_NotInScope(final Collection<String> availableList) { - regINS(CK_NINS, cTL(availableList), getCValueAvailable(), "AVAILABLE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_PrefixSearch(final String available) { - setAvailable_LikeSearch(available, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} <br /> - * <pre>e.g. setAvailable_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param available The value of available as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setAvailable_LikeSearch(final String available, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(available), getCValueAvailable(), "AVAILABLE", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setAvailable_NotLikeSearch(final String available, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(available), getCValueAvailable(), "AVAILABLE", - likeSearchOption); - } - - protected void regAvailable(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueAvailable(), "AVAILABLE"); - } - - protected abstract ConditionValue getCValueAvailable(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as equal. (NullAllowed: if null, no condition) - */ - public void setSortOrder_Equal(final Integer sortOrder) { - doSetSortOrder_Equal(sortOrder); - } - - protected void doSetSortOrder_Equal(final Integer sortOrder) { - regSortOrder(CK_EQ, sortOrder); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as notEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_NotEqual(final Integer sortOrder) { - doSetSortOrder_NotEqual(sortOrder); - } - - protected void doSetSortOrder_NotEqual(final Integer sortOrder) { - regSortOrder(CK_NES, sortOrder); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterThan(final Integer sortOrder) { - regSortOrder(CK_GT, sortOrder); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessThan(final Integer sortOrder) { - regSortOrder(CK_LT, sortOrder); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterEqual(final Integer sortOrder) { - regSortOrder(CK_GE, sortOrder); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessEqual(final Integer sortOrder) { - regSortOrder(CK_LE, sortOrder); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param minNumber The min number of sortOrder. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of sortOrder. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setSortOrder_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueSortOrder(), "SORT_ORDER", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_InScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_InScope(sortOrderList); - } - - protected void doSetSortOrder_InScope( - final Collection<Integer> sortOrderList) { - regINS(CK_INS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_NotInScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_NotInScope(sortOrderList); - } - - protected void doSetSortOrder_NotInScope( - final Collection<Integer> sortOrderList) { - regINS(CK_NINS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - protected void regSortOrder(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSortOrder(), "SORT_ORDER"); - } - - protected abstract ConditionValue getCValueSortOrder(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<ScheduledJobCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, ScheduledJobCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<ScheduledJobCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, ScheduledJobCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<ScheduledJobCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, ScheduledJobCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<ScheduledJobCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, ScheduledJobCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<ScheduledJobCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, ScheduledJobCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<ScheduledJobCB>() { - * public void query(ScheduledJobCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<ScheduledJobCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, ScheduledJobCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final ScheduledJobCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(ScheduledJobCQ sq); - - protected ScheduledJobCB xcreateScalarConditionCB() { - final ScheduledJobCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected ScheduledJobCB xcreateScalarConditionPartitionByCB() { - final ScheduledJobCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<ScheduledJobCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final ScheduledJobCB cb = new ScheduledJobCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(ScheduledJobCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<ScheduledJobCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(ScheduledJobCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final ScheduledJobCB cb = new ScheduledJobCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(ScheduledJobCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<ScheduledJobCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final ScheduledJobCB cb = new ScheduledJobCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(ScheduledJobCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<ScheduledJobCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final ScheduledJobCB cb = new ScheduledJobCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(ScheduledJobCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected ScheduledJobCB newMyCB() { - return new ScheduledJobCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return ScheduledJobCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSearchFieldLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSearchFieldLogCQ.java deleted file mode 100644 index 7bc20ee0a..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSearchFieldLogCQ.java +++ /dev/null @@ -1,939 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.SearchFieldLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.cq.SearchFieldLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of SEARCH_FIELD_LOG. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsSearchFieldLogCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsSearchFieldLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "SEARCH_FIELD_LOG"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchId The value of searchId as equal. (NullAllowed: if null, no condition) - */ - public void setSearchId_Equal(final Long searchId) { - doSetSearchId_Equal(searchId); - } - - protected void doSetSearchId_Equal(final Long searchId) { - regSearchId(CK_EQ, searchId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchId The value of searchId as notEqual. (NullAllowed: if null, no condition) - */ - public void setSearchId_NotEqual(final Long searchId) { - doSetSearchId_NotEqual(searchId); - } - - protected void doSetSearchId_NotEqual(final Long searchId) { - regSearchId(CK_NES, searchId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchId The value of searchId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setSearchId_GreaterThan(final Long searchId) { - regSearchId(CK_GT, searchId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchId The value of searchId as lessThan. (NullAllowed: if null, no condition) - */ - public void setSearchId_LessThan(final Long searchId) { - regSearchId(CK_LT, searchId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchId The value of searchId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setSearchId_GreaterEqual(final Long searchId) { - regSearchId(CK_GE, searchId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchId The value of searchId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setSearchId_LessEqual(final Long searchId) { - regSearchId(CK_LE, searchId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param minNumber The min number of searchId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of searchId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setSearchId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueSearchId(), "SEARCH_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchIdList The collection of searchId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchId_InScope(final Collection<Long> searchIdList) { - doSetSearchId_InScope(searchIdList); - } - - protected void doSetSearchId_InScope(final Collection<Long> searchIdList) { - regINS(CK_INS, cTL(searchIdList), getCValueSearchId(), "SEARCH_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @param searchIdList The collection of searchId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchId_NotInScope(final Collection<Long> searchIdList) { - doSetSearchId_NotInScope(searchIdList); - } - - protected void doSetSearchId_NotInScope(final Collection<Long> searchIdList) { - regINS(CK_NINS, cTL(searchIdList), getCValueSearchId(), "SEARCH_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select SEARCH_ID from SEARCH_LOG where ...)} <br /> - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @param subQuery The sub-query of SearchLog for 'in-scope'. (NotNull) - */ - public void inScopeSearchLog(final SubQuery<SearchLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepSearchId_InScopeRelation_SearchLog(cb.query()); - registerInScopeRelation(cb.query(), "SEARCH_ID", "ID", pp, "searchLog"); - } - - public abstract String keepSearchId_InScopeRelation_SearchLog(SearchLogCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select SEARCH_ID from SEARCH_LOG where ...)} <br /> - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @param subQuery The sub-query of SearchLog for 'not in-scope'. (NotNull) - */ - public void notInScopeSearchLog(final SubQuery<SearchLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepSearchId_NotInScopeRelation_SearchLog(cb.query()); - registerNotInScopeRelation(cb.query(), "SEARCH_ID", "ID", pp, - "searchLog"); - } - - public abstract String keepSearchId_NotInScopeRelation_SearchLog( - SearchLogCQ sq); - - protected void regSearchId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSearchId(), "SEARCH_ID"); - } - - protected abstract ConditionValue getCValueSearchId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} - * @param name The value of name as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setName_Equal(final String name) { - doSetName_Equal(fRES(name)); - } - - protected void doSetName_Equal(final String name) { - regName(CK_EQ, name); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} - * @param name The value of name as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotEqual(final String name) { - doSetName_NotEqual(fRES(name)); - } - - protected void doSetName_NotEqual(final String name) { - regName(CK_NES, name); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} - * @param name The value of name as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterThan(final String name) { - regName(CK_GT, fRES(name)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} - * @param name The value of name as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessThan(final String name) { - regName(CK_LT, fRES(name)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} - * @param name The value of name as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterEqual(final String name) { - regName(CK_GE, fRES(name)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} - * @param name The value of name as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessEqual(final String name) { - regName(CK_LE, fRES(name)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} - * @param nameList The collection of name as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_InScope(final Collection<String> nameList) { - doSetName_InScope(nameList); - } - - public void doSetName_InScope(final Collection<String> nameList) { - regINS(CK_INS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} - * @param nameList The collection of name as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotInScope(final Collection<String> nameList) { - doSetName_NotInScope(nameList); - } - - public void doSetName_NotInScope(final Collection<String> nameList) { - regINS(CK_NINS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} - * @param name The value of name as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setName_PrefixSearch(final String name) { - setName_LikeSearch(name, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param name The value of name as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setName_LikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} - * @param name The value of name as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setName_NotLikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - protected void regName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueName(), "NAME"); - } - - protected abstract ConditionValue getCValueName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_Equal(final String value) { - doSetValue_Equal(fRES(value)); - } - - protected void doSetValue_Equal(final String value) { - regValue(CK_EQ, value); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_NotEqual(final String value) { - doSetValue_NotEqual(fRES(value)); - } - - protected void doSetValue_NotEqual(final String value) { - regValue(CK_NES, value); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_GreaterThan(final String value) { - regValue(CK_GT, fRES(value)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_LessThan(final String value) { - regValue(CK_LT, fRES(value)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_GreaterEqual(final String value) { - regValue(CK_GE, fRES(value)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_LessEqual(final String value) { - regValue(CK_LE, fRES(value)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param valueList The collection of value as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_InScope(final Collection<String> valueList) { - doSetValue_InScope(valueList); - } - - public void doSetValue_InScope(final Collection<String> valueList) { - regINS(CK_INS, cTL(valueList), getCValueValue(), "VALUE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param valueList The collection of value as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_NotInScope(final Collection<String> valueList) { - doSetValue_NotInScope(valueList); - } - - public void doSetValue_NotInScope(final Collection<String> valueList) { - regINS(CK_NINS, cTL(valueList), getCValueValue(), "VALUE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setValue_PrefixSearch(final String value) { - setValue_LikeSearch(value, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} <br /> - * <pre>e.g. setValue_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param value The value of value as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setValue_LikeSearch(final String value, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(value), getCValueValue(), "VALUE", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @param value The value of value as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setValue_NotLikeSearch(final String value, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(value), getCValueValue(), "VALUE", likeSearchOption); - } - - protected void regValue(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueValue(), "VALUE"); - } - - protected abstract ConditionValue getCValueValue(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SearchFieldLogCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, SearchFieldLogCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SearchFieldLogCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, SearchFieldLogCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SearchFieldLogCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, SearchFieldLogCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SearchFieldLogCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, SearchFieldLogCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SearchFieldLogCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, SearchFieldLogCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SearchFieldLogCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, SearchFieldLogCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final SearchFieldLogCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(SearchFieldLogCQ sq); - - protected SearchFieldLogCB xcreateScalarConditionCB() { - final SearchFieldLogCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected SearchFieldLogCB xcreateScalarConditionPartitionByCB() { - final SearchFieldLogCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<SearchFieldLogCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(SearchFieldLogCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<SearchFieldLogCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(SearchFieldLogCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(SearchFieldLogCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<SearchFieldLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(SearchFieldLogCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<SearchFieldLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(SearchFieldLogCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected SearchFieldLogCB newMyCB() { - return new SearchFieldLogCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return SearchFieldLogCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSearchLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSearchLogCQ.java deleted file mode 100644 index c67583516..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSearchLogCQ.java +++ /dev/null @@ -1,2559 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.CDef; -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.cbean.SearchFieldLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.cbean.cq.ClickLogCQ; -import jp.sf.fess.db.cbean.cq.SearchFieldLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.cq.UserInfoCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpQDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of SEARCH_LOG. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsSearchLogCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsSearchLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "SEARCH_LOG"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select SEARCH_ID from CLICK_LOG where ...)} <br /> - * CLICK_LOG by SEARCH_ID, named 'clickLogAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsClickLogList</span>(new SubQuery<ClickLogCB>() { - * public void query(ClickLogCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of ClickLogList for 'exists'. (NotNull) - */ - public void existsClickLogList(final SubQuery<ClickLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_ClickLogList(cb.query()); - registerExistsReferrer(cb.query(), "ID", "SEARCH_ID", pp, - "clickLogList"); - } - - public abstract String keepId_ExistsReferrer_ClickLogList(ClickLogCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select SEARCH_ID from SEARCH_FIELD_LOG where ...)} <br /> - * SEARCH_FIELD_LOG by SEARCH_ID, named 'searchFieldLogAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsSearchFieldLogList</span>(new SubQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of SearchFieldLogList for 'exists'. (NotNull) - */ - public void existsSearchFieldLogList( - final SubQuery<SearchFieldLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_SearchFieldLogList(cb.query()); - registerExistsReferrer(cb.query(), "ID", "SEARCH_ID", pp, - "searchFieldLogList"); - } - - public abstract String keepId_ExistsReferrer_SearchFieldLogList( - SearchFieldLogCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select SEARCH_ID from CLICK_LOG where ...)} <br /> - * CLICK_LOG by SEARCH_ID, named 'clickLogAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsClickLogList</span>(new SubQuery<ClickLogCB>() { - * public void query(ClickLogCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_ClickLogList for 'not exists'. (NotNull) - */ - public void notExistsClickLogList(final SubQuery<ClickLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_ClickLogList(cb.query()); - registerNotExistsReferrer(cb.query(), "ID", "SEARCH_ID", pp, - "clickLogList"); - } - - public abstract String keepId_NotExistsReferrer_ClickLogList(ClickLogCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select SEARCH_ID from SEARCH_FIELD_LOG where ...)} <br /> - * SEARCH_FIELD_LOG by SEARCH_ID, named 'searchFieldLogAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsSearchFieldLogList</span>(new SubQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_SearchFieldLogList for 'not exists'. (NotNull) - */ - public void notExistsSearchFieldLogList( - final SubQuery<SearchFieldLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_SearchFieldLogList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "SEARCH_ID", pp, - "searchFieldLogList"); - } - - public abstract String keepId_NotExistsReferrer_SearchFieldLogList( - SearchFieldLogCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select SEARCH_ID from CLICK_LOG where ...)} <br /> - * CLICK_LOG by SEARCH_ID, named 'clickLogAsOne'. - * @param subQuery The sub-query of ClickLogList for 'in-scope'. (NotNull) - */ - public void inScopeClickLogList(final SubQuery<ClickLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_ClickLogList(cb.query()); - registerInScopeRelation(cb.query(), "ID", "SEARCH_ID", pp, - "clickLogList"); - } - - public abstract String keepId_InScopeRelation_ClickLogList(ClickLogCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select SEARCH_ID from SEARCH_FIELD_LOG where ...)} <br /> - * SEARCH_FIELD_LOG by SEARCH_ID, named 'searchFieldLogAsOne'. - * @param subQuery The sub-query of SearchFieldLogList for 'in-scope'. (NotNull) - */ - public void inScopeSearchFieldLogList( - final SubQuery<SearchFieldLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_SearchFieldLogList(cb.query()); - registerInScopeRelation(cb.query(), "ID", "SEARCH_ID", pp, - "searchFieldLogList"); - } - - public abstract String keepId_InScopeRelation_SearchFieldLogList( - SearchFieldLogCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select SEARCH_ID from CLICK_LOG where ...)} <br /> - * CLICK_LOG by SEARCH_ID, named 'clickLogAsOne'. - * @param subQuery The sub-query of ClickLogList for 'not in-scope'. (NotNull) - */ - public void notInScopeClickLogList(final SubQuery<ClickLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_ClickLogList(cb.query()); - registerNotInScopeRelation(cb.query(), "ID", "SEARCH_ID", pp, - "clickLogList"); - } - - public abstract String keepId_NotInScopeRelation_ClickLogList(ClickLogCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select SEARCH_ID from SEARCH_FIELD_LOG where ...)} <br /> - * SEARCH_FIELD_LOG by SEARCH_ID, named 'searchFieldLogAsOne'. - * @param subQuery The sub-query of SearchFieldLogList for 'not in-scope'. (NotNull) - */ - public void notInScopeSearchFieldLogList( - final SubQuery<SearchFieldLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_SearchFieldLogList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "SEARCH_ID", pp, - "searchFieldLogList"); - } - - public abstract String keepId_NotInScopeRelation_SearchFieldLogList( - SearchFieldLogCQ sq); - - public void xsderiveClickLogList(final String fn, - final SubQuery<ClickLogCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_ClickLogList(cb.query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "SEARCH_ID", pp, - "clickLogList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_ClickLogList( - ClickLogCQ sq); - - public void xsderiveSearchFieldLogList(final String fn, - final SubQuery<SearchFieldLogCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_SearchFieldLogList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "SEARCH_ID", pp, - "searchFieldLogList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_SearchFieldLogList( - SearchFieldLogCQ sq); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from CLICK_LOG where ...)} <br /> - * CLICK_LOG by SEARCH_ID, named 'clickLogAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedClickLogList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<ClickLogCB>() { - * public void query(ClickLogCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<ClickLogCB> derivedClickLogList() { - return xcreateQDRFunctionClickLogList(); - } - - protected HpQDRFunction<ClickLogCB> xcreateQDRFunctionClickLogList() { - return new HpQDRFunction<ClickLogCB>(new HpQDRSetupper<ClickLogCB>() { - @Override - public void setup(final String fn, final SubQuery<ClickLogCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveClickLogList(fn, sq, rd, vl, op); - } - }); - } - - public void xqderiveClickLogList(final String fn, - final SubQuery<ClickLogCB> sq, final String rd, final Object vl, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final ClickLogCB cb = new ClickLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_ClickLogList(cb.query()); - final String prpp = keepId_QueryDerivedReferrer_ClickLogListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "SEARCH_ID", sqpp, - "clickLogList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_ClickLogList( - ClickLogCQ sq); - - public abstract String keepId_QueryDerivedReferrer_ClickLogListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from SEARCH_FIELD_LOG where ...)} <br /> - * SEARCH_FIELD_LOG by SEARCH_ID, named 'searchFieldLogAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedSearchFieldLogList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<SearchFieldLogCB>() { - * public void query(SearchFieldLogCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<SearchFieldLogCB> derivedSearchFieldLogList() { - return xcreateQDRFunctionSearchFieldLogList(); - } - - protected HpQDRFunction<SearchFieldLogCB> xcreateQDRFunctionSearchFieldLogList() { - return new HpQDRFunction<SearchFieldLogCB>( - new HpQDRSetupper<SearchFieldLogCB>() { - @Override - public void setup(final String fn, - final SubQuery<SearchFieldLogCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveSearchFieldLogList(fn, sq, rd, vl, op); - } - }); - } - - public void xqderiveSearchFieldLogList(final String fn, - final SubQuery<SearchFieldLogCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_SearchFieldLogList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_SearchFieldLogListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "SEARCH_ID", sqpp, - "searchFieldLogList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_SearchFieldLogList( - SearchFieldLogCQ sq); - - public abstract String keepId_QueryDerivedReferrer_SearchFieldLogListParameter( - Object vl); - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @param searchWord The value of searchWord as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchWord_Equal(final String searchWord) { - doSetSearchWord_Equal(fRES(searchWord)); - } - - protected void doSetSearchWord_Equal(final String searchWord) { - regSearchWord(CK_EQ, searchWord); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @param searchWord The value of searchWord as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchWord_NotEqual(final String searchWord) { - doSetSearchWord_NotEqual(fRES(searchWord)); - } - - protected void doSetSearchWord_NotEqual(final String searchWord) { - regSearchWord(CK_NES, searchWord); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @param searchWord The value of searchWord as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchWord_GreaterThan(final String searchWord) { - regSearchWord(CK_GT, fRES(searchWord)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @param searchWord The value of searchWord as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchWord_LessThan(final String searchWord) { - regSearchWord(CK_LT, fRES(searchWord)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @param searchWord The value of searchWord as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchWord_GreaterEqual(final String searchWord) { - regSearchWord(CK_GE, fRES(searchWord)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @param searchWord The value of searchWord as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchWord_LessEqual(final String searchWord) { - regSearchWord(CK_LE, fRES(searchWord)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @param searchWordList The collection of searchWord as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchWord_InScope(final Collection<String> searchWordList) { - doSetSearchWord_InScope(searchWordList); - } - - public void doSetSearchWord_InScope(final Collection<String> searchWordList) { - regINS(CK_INS, cTL(searchWordList), getCValueSearchWord(), - "SEARCH_WORD"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @param searchWordList The collection of searchWord as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchWord_NotInScope(final Collection<String> searchWordList) { - doSetSearchWord_NotInScope(searchWordList); - } - - public void doSetSearchWord_NotInScope( - final Collection<String> searchWordList) { - regINS(CK_NINS, cTL(searchWordList), getCValueSearchWord(), - "SEARCH_WORD"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @param searchWord The value of searchWord as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setSearchWord_PrefixSearch(final String searchWord) { - setSearchWord_LikeSearch(searchWord, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} <br /> - * <pre>e.g. setSearchWord_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param searchWord The value of searchWord as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setSearchWord_LikeSearch(final String searchWord, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(searchWord), getCValueSearchWord(), "SEARCH_WORD", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @param searchWord The value of searchWord as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setSearchWord_NotLikeSearch(final String searchWord, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(searchWord), getCValueSearchWord(), "SEARCH_WORD", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - */ - public void setSearchWord_IsNull() { - regSearchWord(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - */ - public void setSearchWord_IsNullOrEmpty() { - regSearchWord(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - */ - public void setSearchWord_IsNotNull() { - regSearchWord(CK_ISNN, DOBJ); - } - - protected void regSearchWord(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSearchWord(), "SEARCH_WORD"); - } - - protected abstract ConditionValue getCValueSearchWord(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} - * @param requestedTime The value of requestedTime as equal. (NullAllowed: if null, no condition) - */ - public void setRequestedTime_Equal(final java.sql.Timestamp requestedTime) { - regRequestedTime(CK_EQ, requestedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} - * @param requestedTime The value of requestedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setRequestedTime_GreaterThan( - final java.sql.Timestamp requestedTime) { - regRequestedTime(CK_GT, requestedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} - * @param requestedTime The value of requestedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setRequestedTime_LessThan(final java.sql.Timestamp requestedTime) { - regRequestedTime(CK_LT, requestedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} - * @param requestedTime The value of requestedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setRequestedTime_GreaterEqual( - final java.sql.Timestamp requestedTime) { - regRequestedTime(CK_GE, requestedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} - * @param requestedTime The value of requestedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setRequestedTime_LessEqual( - final java.sql.Timestamp requestedTime) { - regRequestedTime(CK_LE, requestedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setRequestedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of requestedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of requestedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setRequestedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueRequestedTime(), - "REQUESTED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of requestedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of requestedTime. (NullAllowed: if null, no to-condition) - */ - public void setRequestedTime_DateFromTo(final Date fromDate, - final Date toDate) { - setRequestedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regRequestedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueRequestedTime(), "REQUESTED_TIME"); - } - - protected abstract ConditionValue getCValueRequestedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @param responseTime The value of responseTime as equal. (NullAllowed: if null, no condition) - */ - public void setResponseTime_Equal(final Integer responseTime) { - doSetResponseTime_Equal(responseTime); - } - - protected void doSetResponseTime_Equal(final Integer responseTime) { - regResponseTime(CK_EQ, responseTime); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @param responseTime The value of responseTime as notEqual. (NullAllowed: if null, no condition) - */ - public void setResponseTime_NotEqual(final Integer responseTime) { - doSetResponseTime_NotEqual(responseTime); - } - - protected void doSetResponseTime_NotEqual(final Integer responseTime) { - regResponseTime(CK_NES, responseTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @param responseTime The value of responseTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setResponseTime_GreaterThan(final Integer responseTime) { - regResponseTime(CK_GT, responseTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @param responseTime The value of responseTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setResponseTime_LessThan(final Integer responseTime) { - regResponseTime(CK_LT, responseTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @param responseTime The value of responseTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setResponseTime_GreaterEqual(final Integer responseTime) { - regResponseTime(CK_GE, responseTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @param responseTime The value of responseTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setResponseTime_LessEqual(final Integer responseTime) { - regResponseTime(CK_LE, responseTime); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @param minNumber The min number of responseTime. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of responseTime. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setResponseTime_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueResponseTime(), "RESPONSE_TIME", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @param responseTimeList The collection of responseTime as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setResponseTime_InScope( - final Collection<Integer> responseTimeList) { - doSetResponseTime_InScope(responseTimeList); - } - - protected void doSetResponseTime_InScope( - final Collection<Integer> responseTimeList) { - regINS(CK_INS, cTL(responseTimeList), getCValueResponseTime(), - "RESPONSE_TIME"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @param responseTimeList The collection of responseTime as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setResponseTime_NotInScope( - final Collection<Integer> responseTimeList) { - doSetResponseTime_NotInScope(responseTimeList); - } - - protected void doSetResponseTime_NotInScope( - final Collection<Integer> responseTimeList) { - regINS(CK_NINS, cTL(responseTimeList), getCValueResponseTime(), - "RESPONSE_TIME"); - } - - protected void regResponseTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueResponseTime(), "RESPONSE_TIME"); - } - - protected abstract ConditionValue getCValueResponseTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @param hitCount The value of hitCount as equal. (NullAllowed: if null, no condition) - */ - public void setHitCount_Equal(final Long hitCount) { - doSetHitCount_Equal(hitCount); - } - - protected void doSetHitCount_Equal(final Long hitCount) { - regHitCount(CK_EQ, hitCount); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @param hitCount The value of hitCount as notEqual. (NullAllowed: if null, no condition) - */ - public void setHitCount_NotEqual(final Long hitCount) { - doSetHitCount_NotEqual(hitCount); - } - - protected void doSetHitCount_NotEqual(final Long hitCount) { - regHitCount(CK_NES, hitCount); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @param hitCount The value of hitCount as greaterThan. (NullAllowed: if null, no condition) - */ - public void setHitCount_GreaterThan(final Long hitCount) { - regHitCount(CK_GT, hitCount); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @param hitCount The value of hitCount as lessThan. (NullAllowed: if null, no condition) - */ - public void setHitCount_LessThan(final Long hitCount) { - regHitCount(CK_LT, hitCount); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @param hitCount The value of hitCount as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setHitCount_GreaterEqual(final Long hitCount) { - regHitCount(CK_GE, hitCount); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @param hitCount The value of hitCount as lessEqual. (NullAllowed: if null, no condition) - */ - public void setHitCount_LessEqual(final Long hitCount) { - regHitCount(CK_LE, hitCount); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @param minNumber The min number of hitCount. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of hitCount. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setHitCount_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueHitCount(), "HIT_COUNT", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @param hitCountList The collection of hitCount as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setHitCount_InScope(final Collection<Long> hitCountList) { - doSetHitCount_InScope(hitCountList); - } - - protected void doSetHitCount_InScope(final Collection<Long> hitCountList) { - regINS(CK_INS, cTL(hitCountList), getCValueHitCount(), "HIT_COUNT"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @param hitCountList The collection of hitCount as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setHitCount_NotInScope(final Collection<Long> hitCountList) { - doSetHitCount_NotInScope(hitCountList); - } - - protected void doSetHitCount_NotInScope(final Collection<Long> hitCountList) { - regINS(CK_NINS, cTL(hitCountList), getCValueHitCount(), "HIT_COUNT"); - } - - protected void regHitCount(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueHitCount(), "HIT_COUNT"); - } - - protected abstract ConditionValue getCValueHitCount(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @param queryOffset The value of queryOffset as equal. (NullAllowed: if null, no condition) - */ - public void setQueryOffset_Equal(final Integer queryOffset) { - doSetQueryOffset_Equal(queryOffset); - } - - protected void doSetQueryOffset_Equal(final Integer queryOffset) { - regQueryOffset(CK_EQ, queryOffset); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @param queryOffset The value of queryOffset as notEqual. (NullAllowed: if null, no condition) - */ - public void setQueryOffset_NotEqual(final Integer queryOffset) { - doSetQueryOffset_NotEqual(queryOffset); - } - - protected void doSetQueryOffset_NotEqual(final Integer queryOffset) { - regQueryOffset(CK_NES, queryOffset); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @param queryOffset The value of queryOffset as greaterThan. (NullAllowed: if null, no condition) - */ - public void setQueryOffset_GreaterThan(final Integer queryOffset) { - regQueryOffset(CK_GT, queryOffset); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @param queryOffset The value of queryOffset as lessThan. (NullAllowed: if null, no condition) - */ - public void setQueryOffset_LessThan(final Integer queryOffset) { - regQueryOffset(CK_LT, queryOffset); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @param queryOffset The value of queryOffset as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setQueryOffset_GreaterEqual(final Integer queryOffset) { - regQueryOffset(CK_GE, queryOffset); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @param queryOffset The value of queryOffset as lessEqual. (NullAllowed: if null, no condition) - */ - public void setQueryOffset_LessEqual(final Integer queryOffset) { - regQueryOffset(CK_LE, queryOffset); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @param minNumber The min number of queryOffset. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of queryOffset. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setQueryOffset_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueQueryOffset(), "QUERY_OFFSET", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @param queryOffsetList The collection of queryOffset as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setQueryOffset_InScope(final Collection<Integer> queryOffsetList) { - doSetQueryOffset_InScope(queryOffsetList); - } - - protected void doSetQueryOffset_InScope( - final Collection<Integer> queryOffsetList) { - regINS(CK_INS, cTL(queryOffsetList), getCValueQueryOffset(), - "QUERY_OFFSET"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @param queryOffsetList The collection of queryOffset as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setQueryOffset_NotInScope( - final Collection<Integer> queryOffsetList) { - doSetQueryOffset_NotInScope(queryOffsetList); - } - - protected void doSetQueryOffset_NotInScope( - final Collection<Integer> queryOffsetList) { - regINS(CK_NINS, cTL(queryOffsetList), getCValueQueryOffset(), - "QUERY_OFFSET"); - } - - protected void regQueryOffset(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueQueryOffset(), "QUERY_OFFSET"); - } - - protected abstract ConditionValue getCValueQueryOffset(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @param queryPageSize The value of queryPageSize as equal. (NullAllowed: if null, no condition) - */ - public void setQueryPageSize_Equal(final Integer queryPageSize) { - doSetQueryPageSize_Equal(queryPageSize); - } - - protected void doSetQueryPageSize_Equal(final Integer queryPageSize) { - regQueryPageSize(CK_EQ, queryPageSize); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @param queryPageSize The value of queryPageSize as notEqual. (NullAllowed: if null, no condition) - */ - public void setQueryPageSize_NotEqual(final Integer queryPageSize) { - doSetQueryPageSize_NotEqual(queryPageSize); - } - - protected void doSetQueryPageSize_NotEqual(final Integer queryPageSize) { - regQueryPageSize(CK_NES, queryPageSize); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @param queryPageSize The value of queryPageSize as greaterThan. (NullAllowed: if null, no condition) - */ - public void setQueryPageSize_GreaterThan(final Integer queryPageSize) { - regQueryPageSize(CK_GT, queryPageSize); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @param queryPageSize The value of queryPageSize as lessThan. (NullAllowed: if null, no condition) - */ - public void setQueryPageSize_LessThan(final Integer queryPageSize) { - regQueryPageSize(CK_LT, queryPageSize); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @param queryPageSize The value of queryPageSize as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setQueryPageSize_GreaterEqual(final Integer queryPageSize) { - regQueryPageSize(CK_GE, queryPageSize); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @param queryPageSize The value of queryPageSize as lessEqual. (NullAllowed: if null, no condition) - */ - public void setQueryPageSize_LessEqual(final Integer queryPageSize) { - regQueryPageSize(CK_LE, queryPageSize); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @param minNumber The min number of queryPageSize. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of queryPageSize. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setQueryPageSize_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueQueryPageSize(), - "QUERY_PAGE_SIZE", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @param queryPageSizeList The collection of queryPageSize as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setQueryPageSize_InScope( - final Collection<Integer> queryPageSizeList) { - doSetQueryPageSize_InScope(queryPageSizeList); - } - - protected void doSetQueryPageSize_InScope( - final Collection<Integer> queryPageSizeList) { - regINS(CK_INS, cTL(queryPageSizeList), getCValueQueryPageSize(), - "QUERY_PAGE_SIZE"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @param queryPageSizeList The collection of queryPageSize as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setQueryPageSize_NotInScope( - final Collection<Integer> queryPageSizeList) { - doSetQueryPageSize_NotInScope(queryPageSizeList); - } - - protected void doSetQueryPageSize_NotInScope( - final Collection<Integer> queryPageSizeList) { - regINS(CK_NINS, cTL(queryPageSizeList), getCValueQueryPageSize(), - "QUERY_PAGE_SIZE"); - } - - protected void regQueryPageSize(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueQueryPageSize(), "QUERY_PAGE_SIZE"); - } - - protected abstract ConditionValue getCValueQueryPageSize(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - * @param userAgent The value of userAgent as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_Equal(final String userAgent) { - doSetUserAgent_Equal(fRES(userAgent)); - } - - protected void doSetUserAgent_Equal(final String userAgent) { - regUserAgent(CK_EQ, userAgent); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - * @param userAgent The value of userAgent as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_NotEqual(final String userAgent) { - doSetUserAgent_NotEqual(fRES(userAgent)); - } - - protected void doSetUserAgent_NotEqual(final String userAgent) { - regUserAgent(CK_NES, userAgent); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - * @param userAgent The value of userAgent as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_GreaterThan(final String userAgent) { - regUserAgent(CK_GT, fRES(userAgent)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - * @param userAgent The value of userAgent as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_LessThan(final String userAgent) { - regUserAgent(CK_LT, fRES(userAgent)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - * @param userAgent The value of userAgent as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_GreaterEqual(final String userAgent) { - regUserAgent(CK_GE, fRES(userAgent)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - * @param userAgent The value of userAgent as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_LessEqual(final String userAgent) { - regUserAgent(CK_LE, fRES(userAgent)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - * @param userAgentList The collection of userAgent as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_InScope(final Collection<String> userAgentList) { - doSetUserAgent_InScope(userAgentList); - } - - public void doSetUserAgent_InScope(final Collection<String> userAgentList) { - regINS(CK_INS, cTL(userAgentList), getCValueUserAgent(), "USER_AGENT"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - * @param userAgentList The collection of userAgent as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_NotInScope(final Collection<String> userAgentList) { - doSetUserAgent_NotInScope(userAgentList); - } - - public void doSetUserAgent_NotInScope(final Collection<String> userAgentList) { - regINS(CK_NINS, cTL(userAgentList), getCValueUserAgent(), "USER_AGENT"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - * @param userAgent The value of userAgent as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_PrefixSearch(final String userAgent) { - setUserAgent_LikeSearch(userAgent, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} <br /> - * <pre>e.g. setUserAgent_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param userAgent The value of userAgent as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUserAgent_LikeSearch(final String userAgent, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(userAgent), getCValueUserAgent(), "USER_AGENT", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - * @param userAgent The value of userAgent as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUserAgent_NotLikeSearch(final String userAgent, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(userAgent), getCValueUserAgent(), "USER_AGENT", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - */ - public void setUserAgent_IsNull() { - regUserAgent(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - */ - public void setUserAgent_IsNullOrEmpty() { - regUserAgent(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * USER_AGENT: {VARCHAR(255)} - */ - public void setUserAgent_IsNotNull() { - regUserAgent(CK_ISNN, DOBJ); - } - - protected void regUserAgent(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUserAgent(), "USER_AGENT"); - } - - protected abstract ConditionValue getCValueUserAgent(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REFERER: {VARCHAR(1000)} - * @param referer The value of referer as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setReferer_Equal(final String referer) { - doSetReferer_Equal(fRES(referer)); - } - - protected void doSetReferer_Equal(final String referer) { - regReferer(CK_EQ, referer); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REFERER: {VARCHAR(1000)} - * @param referer The value of referer as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setReferer_NotEqual(final String referer) { - doSetReferer_NotEqual(fRES(referer)); - } - - protected void doSetReferer_NotEqual(final String referer) { - regReferer(CK_NES, referer); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REFERER: {VARCHAR(1000)} - * @param referer The value of referer as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setReferer_GreaterThan(final String referer) { - regReferer(CK_GT, fRES(referer)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REFERER: {VARCHAR(1000)} - * @param referer The value of referer as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setReferer_LessThan(final String referer) { - regReferer(CK_LT, fRES(referer)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REFERER: {VARCHAR(1000)} - * @param referer The value of referer as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setReferer_GreaterEqual(final String referer) { - regReferer(CK_GE, fRES(referer)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * REFERER: {VARCHAR(1000)} - * @param referer The value of referer as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setReferer_LessEqual(final String referer) { - regReferer(CK_LE, fRES(referer)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * REFERER: {VARCHAR(1000)} - * @param refererList The collection of referer as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setReferer_InScope(final Collection<String> refererList) { - doSetReferer_InScope(refererList); - } - - public void doSetReferer_InScope(final Collection<String> refererList) { - regINS(CK_INS, cTL(refererList), getCValueReferer(), "REFERER"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * REFERER: {VARCHAR(1000)} - * @param refererList The collection of referer as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setReferer_NotInScope(final Collection<String> refererList) { - doSetReferer_NotInScope(refererList); - } - - public void doSetReferer_NotInScope(final Collection<String> refererList) { - regINS(CK_NINS, cTL(refererList), getCValueReferer(), "REFERER"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * REFERER: {VARCHAR(1000)} - * @param referer The value of referer as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setReferer_PrefixSearch(final String referer) { - setReferer_LikeSearch(referer, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * REFERER: {VARCHAR(1000)} <br /> - * <pre>e.g. setReferer_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param referer The value of referer as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setReferer_LikeSearch(final String referer, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(referer), getCValueReferer(), "REFERER", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * REFERER: {VARCHAR(1000)} - * @param referer The value of referer as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setReferer_NotLikeSearch(final String referer, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(referer), getCValueReferer(), "REFERER", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * REFERER: {VARCHAR(1000)} - */ - public void setReferer_IsNull() { - regReferer(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * REFERER: {VARCHAR(1000)} - */ - public void setReferer_IsNullOrEmpty() { - regReferer(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * REFERER: {VARCHAR(1000)} - */ - public void setReferer_IsNotNull() { - regReferer(CK_ISNN, DOBJ); - } - - protected void regReferer(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueReferer(), "REFERER"); - } - - protected abstract ConditionValue getCValueReferer(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - * @param clientIp The value of clientIp as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setClientIp_Equal(final String clientIp) { - doSetClientIp_Equal(fRES(clientIp)); - } - - protected void doSetClientIp_Equal(final String clientIp) { - regClientIp(CK_EQ, clientIp); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - * @param clientIp The value of clientIp as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setClientIp_NotEqual(final String clientIp) { - doSetClientIp_NotEqual(fRES(clientIp)); - } - - protected void doSetClientIp_NotEqual(final String clientIp) { - regClientIp(CK_NES, clientIp); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - * @param clientIp The value of clientIp as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setClientIp_GreaterThan(final String clientIp) { - regClientIp(CK_GT, fRES(clientIp)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - * @param clientIp The value of clientIp as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setClientIp_LessThan(final String clientIp) { - regClientIp(CK_LT, fRES(clientIp)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - * @param clientIp The value of clientIp as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setClientIp_GreaterEqual(final String clientIp) { - regClientIp(CK_GE, fRES(clientIp)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - * @param clientIp The value of clientIp as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setClientIp_LessEqual(final String clientIp) { - regClientIp(CK_LE, fRES(clientIp)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - * @param clientIpList The collection of clientIp as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setClientIp_InScope(final Collection<String> clientIpList) { - doSetClientIp_InScope(clientIpList); - } - - public void doSetClientIp_InScope(final Collection<String> clientIpList) { - regINS(CK_INS, cTL(clientIpList), getCValueClientIp(), "CLIENT_IP"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - * @param clientIpList The collection of clientIp as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setClientIp_NotInScope(final Collection<String> clientIpList) { - doSetClientIp_NotInScope(clientIpList); - } - - public void doSetClientIp_NotInScope(final Collection<String> clientIpList) { - regINS(CK_NINS, cTL(clientIpList), getCValueClientIp(), "CLIENT_IP"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - * @param clientIp The value of clientIp as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setClientIp_PrefixSearch(final String clientIp) { - setClientIp_LikeSearch(clientIp, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} <br /> - * <pre>e.g. setClientIp_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param clientIp The value of clientIp as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setClientIp_LikeSearch(final String clientIp, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(clientIp), getCValueClientIp(), "CLIENT_IP", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - * @param clientIp The value of clientIp as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setClientIp_NotLikeSearch(final String clientIp, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(clientIp), getCValueClientIp(), "CLIENT_IP", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - */ - public void setClientIp_IsNull() { - regClientIp(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - */ - public void setClientIp_IsNullOrEmpty() { - regClientIp(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * CLIENT_IP: {VARCHAR(50)} - */ - public void setClientIp_IsNotNull() { - regClientIp(CK_ISNN, DOBJ); - } - - protected void regClientIp(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueClientIp(), "CLIENT_IP"); - } - - protected abstract ConditionValue getCValueClientIp(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - * @param userSessionId The value of userSessionId as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUserSessionId_Equal(final String userSessionId) { - doSetUserSessionId_Equal(fRES(userSessionId)); - } - - protected void doSetUserSessionId_Equal(final String userSessionId) { - regUserSessionId(CK_EQ, userSessionId); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - * @param userSessionId The value of userSessionId as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUserSessionId_NotEqual(final String userSessionId) { - doSetUserSessionId_NotEqual(fRES(userSessionId)); - } - - protected void doSetUserSessionId_NotEqual(final String userSessionId) { - regUserSessionId(CK_NES, userSessionId); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - * @param userSessionId The value of userSessionId as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUserSessionId_GreaterThan(final String userSessionId) { - regUserSessionId(CK_GT, fRES(userSessionId)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - * @param userSessionId The value of userSessionId as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUserSessionId_LessThan(final String userSessionId) { - regUserSessionId(CK_LT, fRES(userSessionId)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - * @param userSessionId The value of userSessionId as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUserSessionId_GreaterEqual(final String userSessionId) { - regUserSessionId(CK_GE, fRES(userSessionId)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - * @param userSessionId The value of userSessionId as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUserSessionId_LessEqual(final String userSessionId) { - regUserSessionId(CK_LE, fRES(userSessionId)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - * @param userSessionIdList The collection of userSessionId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUserSessionId_InScope( - final Collection<String> userSessionIdList) { - doSetUserSessionId_InScope(userSessionIdList); - } - - public void doSetUserSessionId_InScope( - final Collection<String> userSessionIdList) { - regINS(CK_INS, cTL(userSessionIdList), getCValueUserSessionId(), - "USER_SESSION_ID"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - * @param userSessionIdList The collection of userSessionId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUserSessionId_NotInScope( - final Collection<String> userSessionIdList) { - doSetUserSessionId_NotInScope(userSessionIdList); - } - - public void doSetUserSessionId_NotInScope( - final Collection<String> userSessionIdList) { - regINS(CK_NINS, cTL(userSessionIdList), getCValueUserSessionId(), - "USER_SESSION_ID"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - * @param userSessionId The value of userSessionId as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUserSessionId_PrefixSearch(final String userSessionId) { - setUserSessionId_LikeSearch(userSessionId, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} <br /> - * <pre>e.g. setUserSessionId_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param userSessionId The value of userSessionId as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUserSessionId_LikeSearch(final String userSessionId, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(userSessionId), getCValueUserSessionId(), - "USER_SESSION_ID", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - * @param userSessionId The value of userSessionId as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUserSessionId_NotLikeSearch(final String userSessionId, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(userSessionId), getCValueUserSessionId(), - "USER_SESSION_ID", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - */ - public void setUserSessionId_IsNull() { - regUserSessionId(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - */ - public void setUserSessionId_IsNullOrEmpty() { - regUserSessionId(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - */ - public void setUserSessionId_IsNotNull() { - regUserSessionId(CK_ISNN, DOBJ); - } - - protected void regUserSessionId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUserSessionId(), "USER_SESSION_ID"); - } - - protected abstract ConditionValue getCValueUserSessionId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} - * @param accessType The value of accessType as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setAccessType_Equal(final String accessType) { - doSetAccessType_Equal(fRES(accessType)); - } - - /** - * Equal(=). As AccessType. And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} <br /> - * Access Type - * @param cdef The instance of classification definition (as ENUM type). (NullAllowed: if null, no condition) - */ - public void setAccessType_Equal_AsAccessType(final CDef.AccessType cdef) { - doSetAccessType_Equal(cdef != null ? cdef.code() : null); - } - - /** - * Equal(=). As Web (W). And OnlyOnceRegistered. <br /> - * Web: Web - */ - public void setAccessType_Equal_Web() { - setAccessType_Equal_AsAccessType(CDef.AccessType.Web); - } - - /** - * Equal(=). As Xml (X). And OnlyOnceRegistered. <br /> - * Xml: Xml - */ - public void setAccessType_Equal_Xml() { - setAccessType_Equal_AsAccessType(CDef.AccessType.Xml); - } - - /** - * Equal(=). As Json (J). And OnlyOnceRegistered. <br /> - * Json: Json - */ - public void setAccessType_Equal_Json() { - setAccessType_Equal_AsAccessType(CDef.AccessType.Json); - } - - /** - * Equal(=). As Others (O). And OnlyOnceRegistered. <br /> - * Others: Others - */ - public void setAccessType_Equal_Others() { - setAccessType_Equal_AsAccessType(CDef.AccessType.Others); - } - - protected void doSetAccessType_Equal(final String accessType) { - regAccessType(CK_EQ, accessType); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} - * @param accessType The value of accessType as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAccessType_NotEqual(final String accessType) { - doSetAccessType_NotEqual(fRES(accessType)); - } - - /** - * NotEqual(<>). As AccessType. And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} <br /> - * Access Type - * @param cdef The instance of classification definition (as ENUM type). (NullAllowed: if null, no condition) - */ - public void setAccessType_NotEqual_AsAccessType(final CDef.AccessType cdef) { - doSetAccessType_NotEqual(cdef != null ? cdef.code() : null); - } - - /** - * NotEqual(<>). As Web (W). And OnlyOnceRegistered. <br /> - * Web: Web - */ - public void setAccessType_NotEqual_Web() { - setAccessType_NotEqual_AsAccessType(CDef.AccessType.Web); - } - - /** - * NotEqual(<>). As Xml (X). And OnlyOnceRegistered. <br /> - * Xml: Xml - */ - public void setAccessType_NotEqual_Xml() { - setAccessType_NotEqual_AsAccessType(CDef.AccessType.Xml); - } - - /** - * NotEqual(<>). As Json (J). And OnlyOnceRegistered. <br /> - * Json: Json - */ - public void setAccessType_NotEqual_Json() { - setAccessType_NotEqual_AsAccessType(CDef.AccessType.Json); - } - - /** - * NotEqual(<>). As Others (O). And OnlyOnceRegistered. <br /> - * Others: Others - */ - public void setAccessType_NotEqual_Others() { - setAccessType_NotEqual_AsAccessType(CDef.AccessType.Others); - } - - protected void doSetAccessType_NotEqual(final String accessType) { - regAccessType(CK_NES, accessType); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} - * @param accessTypeList The collection of accessType as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setAccessType_InScope(final Collection<String> accessTypeList) { - doSetAccessType_InScope(accessTypeList); - } - - /** - * InScope {in ('a', 'b')}. As AccessType. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} <br /> - * Access Type - * @param cdefList The list of classification definition (as ENUM type). (NullAllowed: if null (or empty), no condition) - */ - public void setAccessType_InScope_AsAccessType( - final Collection<CDef.AccessType> cdefList) { - doSetAccessType_InScope(cTStrL(cdefList)); - } - - public void doSetAccessType_InScope(final Collection<String> accessTypeList) { - regINS(CK_INS, cTL(accessTypeList), getCValueAccessType(), - "ACCESS_TYPE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} - * @param accessTypeList The collection of accessType as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setAccessType_NotInScope(final Collection<String> accessTypeList) { - doSetAccessType_NotInScope(accessTypeList); - } - - /** - * NotInScope {not in ('a', 'b')}. As AccessType. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} <br /> - * Access Type - * @param cdefList The list of classification definition (as ENUM type). (NullAllowed: if null (or empty), no condition) - */ - public void setAccessType_NotInScope_AsAccessType( - final Collection<CDef.AccessType> cdefList) { - doSetAccessType_NotInScope(cTStrL(cdefList)); - } - - public void doSetAccessType_NotInScope( - final Collection<String> accessTypeList) { - regINS(CK_NINS, cTL(accessTypeList), getCValueAccessType(), - "ACCESS_TYPE"); - } - - protected void regAccessType(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueAccessType(), "ACCESS_TYPE"); - } - - protected abstract ConditionValue getCValueAccessType(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @param userId The value of userId as equal. (NullAllowed: if null, no condition) - */ - public void setUserId_Equal(final Long userId) { - doSetUserId_Equal(userId); - } - - protected void doSetUserId_Equal(final Long userId) { - regUserId(CK_EQ, userId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @param userId The value of userId as notEqual. (NullAllowed: if null, no condition) - */ - public void setUserId_NotEqual(final Long userId) { - doSetUserId_NotEqual(userId); - } - - protected void doSetUserId_NotEqual(final Long userId) { - regUserId(CK_NES, userId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @param userId The value of userId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUserId_GreaterThan(final Long userId) { - regUserId(CK_GT, userId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @param userId The value of userId as lessThan. (NullAllowed: if null, no condition) - */ - public void setUserId_LessThan(final Long userId) { - regUserId(CK_LT, userId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @param userId The value of userId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUserId_GreaterEqual(final Long userId) { - regUserId(CK_GE, userId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @param userId The value of userId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUserId_LessEqual(final Long userId) { - regUserId(CK_LE, userId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @param minNumber The min number of userId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of userId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setUserId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueUserId(), "USER_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @param userIdList The collection of userId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUserId_InScope(final Collection<Long> userIdList) { - doSetUserId_InScope(userIdList); - } - - protected void doSetUserId_InScope(final Collection<Long> userIdList) { - regINS(CK_INS, cTL(userIdList), getCValueUserId(), "USER_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @param userIdList The collection of userId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUserId_NotInScope(final Collection<Long> userIdList) { - doSetUserId_NotInScope(userIdList); - } - - protected void doSetUserId_NotInScope(final Collection<Long> userIdList) { - regINS(CK_NINS, cTL(userIdList), getCValueUserId(), "USER_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select USER_ID from USER_INFO where ...)} <br /> - * USER_INFO by my USER_ID, named 'userInfo'. - * @param subQuery The sub-query of UserInfo for 'in-scope'. (NotNull) - */ - public void inScopeUserInfo(final SubQuery<UserInfoCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final UserInfoCB cb = new UserInfoCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepUserId_InScopeRelation_UserInfo(cb.query()); - registerInScopeRelation(cb.query(), "USER_ID", "ID", pp, "userInfo"); - } - - public abstract String keepUserId_InScopeRelation_UserInfo(UserInfoCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select USER_ID from USER_INFO where ...)} <br /> - * USER_INFO by my USER_ID, named 'userInfo'. - * @param subQuery The sub-query of UserInfo for 'not in-scope'. (NotNull) - */ - public void notInScopeUserInfo(final SubQuery<UserInfoCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final UserInfoCB cb = new UserInfoCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepUserId_NotInScopeRelation_UserInfo(cb.query()); - registerNotInScopeRelation(cb.query(), "USER_ID", "ID", pp, "userInfo"); - } - - public abstract String keepUserId_NotInScopeRelation_UserInfo(UserInfoCQ sq); - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - */ - public void setUserId_IsNull() { - regUserId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - */ - public void setUserId_IsNotNull() { - regUserId(CK_ISNN, DOBJ); - } - - protected void regUserId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUserId(), "USER_ID"); - } - - protected abstract ConditionValue getCValueUserId(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<SearchLogCB>() { - * public void query(SearchLogCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SearchLogCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, SearchLogCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<SearchLogCB>() { - * public void query(SearchLogCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SearchLogCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, SearchLogCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<SearchLogCB>() { - * public void query(SearchLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SearchLogCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, SearchLogCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<SearchLogCB>() { - * public void query(SearchLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SearchLogCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, SearchLogCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<SearchLogCB>() { - * public void query(SearchLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SearchLogCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, SearchLogCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<SearchLogCB>() { - * public void query(SearchLogCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SearchLogCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, SearchLogCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final SearchLogCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(SearchLogCQ sq); - - protected SearchLogCB xcreateScalarConditionCB() { - final SearchLogCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected SearchLogCB xcreateScalarConditionPartitionByCB() { - final SearchLogCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, final SubQuery<SearchLogCB> sq, - final String al, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(SearchLogCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<SearchLogCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(SearchLogCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(SearchLogCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<SearchLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(SearchLogCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<SearchLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(SearchLogCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected SearchLogCB newMyCB() { - return new SearchLogCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return SearchLogCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSuggestBadWordCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSuggestBadWordCQ.java deleted file mode 100644 index 5c5e7d17c..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSuggestBadWordCQ.java +++ /dev/null @@ -1,1809 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.SuggestBadWordCB; -import jp.sf.fess.db.cbean.cq.SuggestBadWordCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of SUGGEST_BAD_WORD. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsSuggestBadWordCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsSuggestBadWordCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "SUGGEST_BAD_WORD"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_Equal(final String suggestWord) { - doSetSuggestWord_Equal(fRES(suggestWord)); - } - - protected void doSetSuggestWord_Equal(final String suggestWord) { - regSuggestWord(CK_EQ, suggestWord); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_NotEqual(final String suggestWord) { - doSetSuggestWord_NotEqual(fRES(suggestWord)); - } - - protected void doSetSuggestWord_NotEqual(final String suggestWord) { - regSuggestWord(CK_NES, suggestWord); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_GreaterThan(final String suggestWord) { - regSuggestWord(CK_GT, fRES(suggestWord)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_LessThan(final String suggestWord) { - regSuggestWord(CK_LT, fRES(suggestWord)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_GreaterEqual(final String suggestWord) { - regSuggestWord(CK_GE, fRES(suggestWord)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_LessEqual(final String suggestWord) { - regSuggestWord(CK_LE, fRES(suggestWord)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWordList The collection of suggestWord as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_InScope(final Collection<String> suggestWordList) { - doSetSuggestWord_InScope(suggestWordList); - } - - public void doSetSuggestWord_InScope( - final Collection<String> suggestWordList) { - regINS(CK_INS, cTL(suggestWordList), getCValueSuggestWord(), - "SUGGEST_WORD"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWordList The collection of suggestWord as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_NotInScope( - final Collection<String> suggestWordList) { - doSetSuggestWord_NotInScope(suggestWordList); - } - - public void doSetSuggestWord_NotInScope( - final Collection<String> suggestWordList) { - regINS(CK_NINS, cTL(suggestWordList), getCValueSuggestWord(), - "SUGGEST_WORD"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_PrefixSearch(final String suggestWord) { - setSuggestWord_LikeSearch(suggestWord, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setSuggestWord_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param suggestWord The value of suggestWord as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setSuggestWord_LikeSearch(final String suggestWord, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(suggestWord), getCValueSuggestWord(), - "SUGGEST_WORD", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setSuggestWord_NotLikeSearch(final String suggestWord, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(suggestWord), getCValueSuggestWord(), - "SUGGEST_WORD", likeSearchOption); - } - - protected void regSuggestWord(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSuggestWord(), "SUGGEST_WORD"); - } - - protected abstract ConditionValue getCValueSuggestWord(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_Equal(final String targetRole) { - doSetTargetRole_Equal(fRES(targetRole)); - } - - protected void doSetTargetRole_Equal(final String targetRole) { - regTargetRole(CK_EQ, targetRole); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_NotEqual(final String targetRole) { - doSetTargetRole_NotEqual(fRES(targetRole)); - } - - protected void doSetTargetRole_NotEqual(final String targetRole) { - regTargetRole(CK_NES, targetRole); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_GreaterThan(final String targetRole) { - regTargetRole(CK_GT, fRES(targetRole)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_LessThan(final String targetRole) { - regTargetRole(CK_LT, fRES(targetRole)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_GreaterEqual(final String targetRole) { - regTargetRole(CK_GE, fRES(targetRole)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_LessEqual(final String targetRole) { - regTargetRole(CK_LE, fRES(targetRole)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRoleList The collection of targetRole as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_InScope(final Collection<String> targetRoleList) { - doSetTargetRole_InScope(targetRoleList); - } - - public void doSetTargetRole_InScope(final Collection<String> targetRoleList) { - regINS(CK_INS, cTL(targetRoleList), getCValueTargetRole(), - "TARGET_ROLE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRoleList The collection of targetRole as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_NotInScope(final Collection<String> targetRoleList) { - doSetTargetRole_NotInScope(targetRoleList); - } - - public void doSetTargetRole_NotInScope( - final Collection<String> targetRoleList) { - regINS(CK_NINS, cTL(targetRoleList), getCValueTargetRole(), - "TARGET_ROLE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_PrefixSearch(final String targetRole) { - setTargetRole_LikeSearch(targetRole, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} <br /> - * <pre>e.g. setTargetRole_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param targetRole The value of targetRole as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setTargetRole_LikeSearch(final String targetRole, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(targetRole), getCValueTargetRole(), "TARGET_ROLE", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setTargetRole_NotLikeSearch(final String targetRole, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(targetRole), getCValueTargetRole(), "TARGET_ROLE", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - */ - public void setTargetRole_IsNull() { - regTargetRole(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - */ - public void setTargetRole_IsNullOrEmpty() { - regTargetRole(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - */ - public void setTargetRole_IsNotNull() { - regTargetRole(CK_ISNN, DOBJ); - } - - protected void regTargetRole(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueTargetRole(), "TARGET_ROLE"); - } - - protected abstract ConditionValue getCValueTargetRole(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_Equal(final String targetLabel) { - doSetTargetLabel_Equal(fRES(targetLabel)); - } - - protected void doSetTargetLabel_Equal(final String targetLabel) { - regTargetLabel(CK_EQ, targetLabel); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_NotEqual(final String targetLabel) { - doSetTargetLabel_NotEqual(fRES(targetLabel)); - } - - protected void doSetTargetLabel_NotEqual(final String targetLabel) { - regTargetLabel(CK_NES, targetLabel); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_GreaterThan(final String targetLabel) { - regTargetLabel(CK_GT, fRES(targetLabel)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_LessThan(final String targetLabel) { - regTargetLabel(CK_LT, fRES(targetLabel)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_GreaterEqual(final String targetLabel) { - regTargetLabel(CK_GE, fRES(targetLabel)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_LessEqual(final String targetLabel) { - regTargetLabel(CK_LE, fRES(targetLabel)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabelList The collection of targetLabel as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_InScope(final Collection<String> targetLabelList) { - doSetTargetLabel_InScope(targetLabelList); - } - - public void doSetTargetLabel_InScope( - final Collection<String> targetLabelList) { - regINS(CK_INS, cTL(targetLabelList), getCValueTargetLabel(), - "TARGET_LABEL"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabelList The collection of targetLabel as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_NotInScope( - final Collection<String> targetLabelList) { - doSetTargetLabel_NotInScope(targetLabelList); - } - - public void doSetTargetLabel_NotInScope( - final Collection<String> targetLabelList) { - regINS(CK_NINS, cTL(targetLabelList), getCValueTargetLabel(), - "TARGET_LABEL"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_PrefixSearch(final String targetLabel) { - setTargetLabel_LikeSearch(targetLabel, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} <br /> - * <pre>e.g. setTargetLabel_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param targetLabel The value of targetLabel as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setTargetLabel_LikeSearch(final String targetLabel, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(targetLabel), getCValueTargetLabel(), - "TARGET_LABEL", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setTargetLabel_NotLikeSearch(final String targetLabel, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(targetLabel), getCValueTargetLabel(), - "TARGET_LABEL", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - */ - public void setTargetLabel_IsNull() { - regTargetLabel(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - */ - public void setTargetLabel_IsNullOrEmpty() { - regTargetLabel(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - */ - public void setTargetLabel_IsNotNull() { - regTargetLabel(CK_ISNN, DOBJ); - } - - protected void regTargetLabel(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueTargetLabel(), "TARGET_LABEL"); - } - - protected abstract ConditionValue getCValueTargetLabel(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SuggestBadWordCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, SuggestBadWordCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SuggestBadWordCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, SuggestBadWordCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SuggestBadWordCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, SuggestBadWordCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SuggestBadWordCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, SuggestBadWordCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SuggestBadWordCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, SuggestBadWordCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<SuggestBadWordCB>() { - * public void query(SuggestBadWordCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SuggestBadWordCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, SuggestBadWordCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final SuggestBadWordCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(SuggestBadWordCQ sq); - - protected SuggestBadWordCB xcreateScalarConditionCB() { - final SuggestBadWordCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected SuggestBadWordCB xcreateScalarConditionPartitionByCB() { - final SuggestBadWordCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<SuggestBadWordCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(SuggestBadWordCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<SuggestBadWordCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(SuggestBadWordCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(SuggestBadWordCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<SuggestBadWordCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(SuggestBadWordCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<SuggestBadWordCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(SuggestBadWordCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected SuggestBadWordCB newMyCB() { - return new SuggestBadWordCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return SuggestBadWordCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSuggestElevateWordCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSuggestElevateWordCQ.java deleted file mode 100644 index 3a5f25bf0..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsSuggestElevateWordCQ.java +++ /dev/null @@ -1,2076 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.SuggestElevateWordCB; -import jp.sf.fess.db.cbean.cq.SuggestElevateWordCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of SUGGEST_ELEVATE_WORD. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsSuggestElevateWordCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsSuggestElevateWordCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "SUGGEST_ELEVATE_WORD"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_Equal(final String suggestWord) { - doSetSuggestWord_Equal(fRES(suggestWord)); - } - - protected void doSetSuggestWord_Equal(final String suggestWord) { - regSuggestWord(CK_EQ, suggestWord); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_NotEqual(final String suggestWord) { - doSetSuggestWord_NotEqual(fRES(suggestWord)); - } - - protected void doSetSuggestWord_NotEqual(final String suggestWord) { - regSuggestWord(CK_NES, suggestWord); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_GreaterThan(final String suggestWord) { - regSuggestWord(CK_GT, fRES(suggestWord)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_LessThan(final String suggestWord) { - regSuggestWord(CK_LT, fRES(suggestWord)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_GreaterEqual(final String suggestWord) { - regSuggestWord(CK_GE, fRES(suggestWord)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_LessEqual(final String suggestWord) { - regSuggestWord(CK_LE, fRES(suggestWord)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWordList The collection of suggestWord as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_InScope(final Collection<String> suggestWordList) { - doSetSuggestWord_InScope(suggestWordList); - } - - public void doSetSuggestWord_InScope( - final Collection<String> suggestWordList) { - regINS(CK_INS, cTL(suggestWordList), getCValueSuggestWord(), - "SUGGEST_WORD"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWordList The collection of suggestWord as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_NotInScope( - final Collection<String> suggestWordList) { - doSetSuggestWord_NotInScope(suggestWordList); - } - - public void doSetSuggestWord_NotInScope( - final Collection<String> suggestWordList) { - regINS(CK_NINS, cTL(suggestWordList), getCValueSuggestWord(), - "SUGGEST_WORD"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setSuggestWord_PrefixSearch(final String suggestWord) { - setSuggestWord_LikeSearch(suggestWord, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setSuggestWord_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param suggestWord The value of suggestWord as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setSuggestWord_LikeSearch(final String suggestWord, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(suggestWord), getCValueSuggestWord(), - "SUGGEST_WORD", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @param suggestWord The value of suggestWord as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setSuggestWord_NotLikeSearch(final String suggestWord, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(suggestWord), getCValueSuggestWord(), - "SUGGEST_WORD", likeSearchOption); - } - - protected void regSuggestWord(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSuggestWord(), "SUGGEST_WORD"); - } - - protected abstract ConditionValue getCValueSuggestWord(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * READING: {VARCHAR(255)} - * @param reading The value of reading as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setReading_Equal(final String reading) { - doSetReading_Equal(fRES(reading)); - } - - protected void doSetReading_Equal(final String reading) { - regReading(CK_EQ, reading); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * READING: {VARCHAR(255)} - * @param reading The value of reading as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setReading_NotEqual(final String reading) { - doSetReading_NotEqual(fRES(reading)); - } - - protected void doSetReading_NotEqual(final String reading) { - regReading(CK_NES, reading); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * READING: {VARCHAR(255)} - * @param reading The value of reading as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setReading_GreaterThan(final String reading) { - regReading(CK_GT, fRES(reading)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * READING: {VARCHAR(255)} - * @param reading The value of reading as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setReading_LessThan(final String reading) { - regReading(CK_LT, fRES(reading)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * READING: {VARCHAR(255)} - * @param reading The value of reading as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setReading_GreaterEqual(final String reading) { - regReading(CK_GE, fRES(reading)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * READING: {VARCHAR(255)} - * @param reading The value of reading as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setReading_LessEqual(final String reading) { - regReading(CK_LE, fRES(reading)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * READING: {VARCHAR(255)} - * @param readingList The collection of reading as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setReading_InScope(final Collection<String> readingList) { - doSetReading_InScope(readingList); - } - - public void doSetReading_InScope(final Collection<String> readingList) { - regINS(CK_INS, cTL(readingList), getCValueReading(), "READING"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * READING: {VARCHAR(255)} - * @param readingList The collection of reading as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setReading_NotInScope(final Collection<String> readingList) { - doSetReading_NotInScope(readingList); - } - - public void doSetReading_NotInScope(final Collection<String> readingList) { - regINS(CK_NINS, cTL(readingList), getCValueReading(), "READING"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * READING: {VARCHAR(255)} - * @param reading The value of reading as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setReading_PrefixSearch(final String reading) { - setReading_LikeSearch(reading, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * READING: {VARCHAR(255)} <br /> - * <pre>e.g. setReading_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param reading The value of reading as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setReading_LikeSearch(final String reading, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(reading), getCValueReading(), "READING", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * READING: {VARCHAR(255)} - * @param reading The value of reading as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setReading_NotLikeSearch(final String reading, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(reading), getCValueReading(), "READING", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * READING: {VARCHAR(255)} - */ - public void setReading_IsNull() { - regReading(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * READING: {VARCHAR(255)} - */ - public void setReading_IsNullOrEmpty() { - regReading(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * READING: {VARCHAR(255)} - */ - public void setReading_IsNotNull() { - regReading(CK_ISNN, DOBJ); - } - - protected void regReading(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueReading(), "READING"); - } - - protected abstract ConditionValue getCValueReading(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_Equal(final String targetRole) { - doSetTargetRole_Equal(fRES(targetRole)); - } - - protected void doSetTargetRole_Equal(final String targetRole) { - regTargetRole(CK_EQ, targetRole); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_NotEqual(final String targetRole) { - doSetTargetRole_NotEqual(fRES(targetRole)); - } - - protected void doSetTargetRole_NotEqual(final String targetRole) { - regTargetRole(CK_NES, targetRole); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_GreaterThan(final String targetRole) { - regTargetRole(CK_GT, fRES(targetRole)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_LessThan(final String targetRole) { - regTargetRole(CK_LT, fRES(targetRole)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_GreaterEqual(final String targetRole) { - regTargetRole(CK_GE, fRES(targetRole)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_LessEqual(final String targetRole) { - regTargetRole(CK_LE, fRES(targetRole)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRoleList The collection of targetRole as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_InScope(final Collection<String> targetRoleList) { - doSetTargetRole_InScope(targetRoleList); - } - - public void doSetTargetRole_InScope(final Collection<String> targetRoleList) { - regINS(CK_INS, cTL(targetRoleList), getCValueTargetRole(), - "TARGET_ROLE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRoleList The collection of targetRole as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_NotInScope(final Collection<String> targetRoleList) { - doSetTargetRole_NotInScope(targetRoleList); - } - - public void doSetTargetRole_NotInScope( - final Collection<String> targetRoleList) { - regINS(CK_NINS, cTL(targetRoleList), getCValueTargetRole(), - "TARGET_ROLE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetRole_PrefixSearch(final String targetRole) { - setTargetRole_LikeSearch(targetRole, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} <br /> - * <pre>e.g. setTargetRole_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param targetRole The value of targetRole as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setTargetRole_LikeSearch(final String targetRole, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(targetRole), getCValueTargetRole(), "TARGET_ROLE", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @param targetRole The value of targetRole as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setTargetRole_NotLikeSearch(final String targetRole, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(targetRole), getCValueTargetRole(), "TARGET_ROLE", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - */ - public void setTargetRole_IsNull() { - regTargetRole(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - */ - public void setTargetRole_IsNullOrEmpty() { - regTargetRole(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * TARGET_ROLE: {VARCHAR(255)} - */ - public void setTargetRole_IsNotNull() { - regTargetRole(CK_ISNN, DOBJ); - } - - protected void regTargetRole(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueTargetRole(), "TARGET_ROLE"); - } - - protected abstract ConditionValue getCValueTargetRole(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_Equal(final String targetLabel) { - doSetTargetLabel_Equal(fRES(targetLabel)); - } - - protected void doSetTargetLabel_Equal(final String targetLabel) { - regTargetLabel(CK_EQ, targetLabel); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_NotEqual(final String targetLabel) { - doSetTargetLabel_NotEqual(fRES(targetLabel)); - } - - protected void doSetTargetLabel_NotEqual(final String targetLabel) { - regTargetLabel(CK_NES, targetLabel); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_GreaterThan(final String targetLabel) { - regTargetLabel(CK_GT, fRES(targetLabel)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_LessThan(final String targetLabel) { - regTargetLabel(CK_LT, fRES(targetLabel)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_GreaterEqual(final String targetLabel) { - regTargetLabel(CK_GE, fRES(targetLabel)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_LessEqual(final String targetLabel) { - regTargetLabel(CK_LE, fRES(targetLabel)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabelList The collection of targetLabel as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_InScope(final Collection<String> targetLabelList) { - doSetTargetLabel_InScope(targetLabelList); - } - - public void doSetTargetLabel_InScope( - final Collection<String> targetLabelList) { - regINS(CK_INS, cTL(targetLabelList), getCValueTargetLabel(), - "TARGET_LABEL"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabelList The collection of targetLabel as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_NotInScope( - final Collection<String> targetLabelList) { - doSetTargetLabel_NotInScope(targetLabelList); - } - - public void doSetTargetLabel_NotInScope( - final Collection<String> targetLabelList) { - regINS(CK_NINS, cTL(targetLabelList), getCValueTargetLabel(), - "TARGET_LABEL"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setTargetLabel_PrefixSearch(final String targetLabel) { - setTargetLabel_LikeSearch(targetLabel, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} <br /> - * <pre>e.g. setTargetLabel_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param targetLabel The value of targetLabel as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setTargetLabel_LikeSearch(final String targetLabel, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(targetLabel), getCValueTargetLabel(), - "TARGET_LABEL", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @param targetLabel The value of targetLabel as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setTargetLabel_NotLikeSearch(final String targetLabel, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(targetLabel), getCValueTargetLabel(), - "TARGET_LABEL", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - */ - public void setTargetLabel_IsNull() { - regTargetLabel(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - */ - public void setTargetLabel_IsNullOrEmpty() { - regTargetLabel(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * TARGET_LABEL: {VARCHAR(255)} - */ - public void setTargetLabel_IsNotNull() { - regTargetLabel(CK_ISNN, DOBJ); - } - - protected void regTargetLabel(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueTargetLabel(), "TARGET_LABEL"); - } - - protected abstract ConditionValue getCValueTargetLabel(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as equal. (NullAllowed: if null, no condition) - */ - public void setBoost_Equal(final java.math.BigDecimal boost) { - doSetBoost_Equal(boost); - } - - protected void doSetBoost_Equal(final java.math.BigDecimal boost) { - regBoost(CK_EQ, boost); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as notEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_NotEqual(final java.math.BigDecimal boost) { - doSetBoost_NotEqual(boost); - } - - protected void doSetBoost_NotEqual(final java.math.BigDecimal boost) { - regBoost(CK_NES, boost); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as greaterThan. (NullAllowed: if null, no condition) - */ - public void setBoost_GreaterThan(final java.math.BigDecimal boost) { - regBoost(CK_GT, boost); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as lessThan. (NullAllowed: if null, no condition) - */ - public void setBoost_LessThan(final java.math.BigDecimal boost) { - regBoost(CK_LT, boost); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_GreaterEqual(final java.math.BigDecimal boost) { - regBoost(CK_GE, boost); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as lessEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_LessEqual(final java.math.BigDecimal boost) { - regBoost(CK_LE, boost); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param minNumber The min number of boost. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of boost. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setBoost_RangeOf(final java.math.BigDecimal minNumber, - final java.math.BigDecimal maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueBoost(), "BOOST", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boostList The collection of boost as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setBoost_InScope( - final Collection<java.math.BigDecimal> boostList) { - doSetBoost_InScope(boostList); - } - - protected void doSetBoost_InScope( - final Collection<java.math.BigDecimal> boostList) { - regINS(CK_INS, cTL(boostList), getCValueBoost(), "BOOST"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boostList The collection of boost as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setBoost_NotInScope( - final Collection<java.math.BigDecimal> boostList) { - doSetBoost_NotInScope(boostList); - } - - protected void doSetBoost_NotInScope( - final Collection<java.math.BigDecimal> boostList) { - regINS(CK_NINS, cTL(boostList), getCValueBoost(), "BOOST"); - } - - protected void regBoost(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueBoost(), "BOOST"); - } - - protected abstract ConditionValue getCValueBoost(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SuggestElevateWordCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, SuggestElevateWordCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SuggestElevateWordCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, SuggestElevateWordCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SuggestElevateWordCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, SuggestElevateWordCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SuggestElevateWordCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, SuggestElevateWordCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SuggestElevateWordCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, SuggestElevateWordCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<SuggestElevateWordCB>() { - * public void query(SuggestElevateWordCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<SuggestElevateWordCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, SuggestElevateWordCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final SuggestElevateWordCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(SuggestElevateWordCQ sq); - - protected SuggestElevateWordCB xcreateScalarConditionCB() { - final SuggestElevateWordCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected SuggestElevateWordCB xcreateScalarConditionPartitionByCB() { - final SuggestElevateWordCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<SuggestElevateWordCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(SuggestElevateWordCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<SuggestElevateWordCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(SuggestElevateWordCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(SuggestElevateWordCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<SuggestElevateWordCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(SuggestElevateWordCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<SuggestElevateWordCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(SuggestElevateWordCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected SuggestElevateWordCB newMyCB() { - return new SuggestElevateWordCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return SuggestElevateWordCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsUserInfoCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsUserInfoCQ.java deleted file mode 100644 index bc659911d..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsUserInfoCQ.java +++ /dev/null @@ -1,1196 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.FavoriteLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.cbean.cq.FavoriteLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.cq.UserInfoCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpQDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of USER_INFO. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsUserInfoCQ extends AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsUserInfoCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "USER_INFO"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select USER_ID from FAVORITE_LOG where ...)} <br /> - * FAVORITE_LOG by USER_ID, named 'favoriteLogAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsFavoriteLogList</span>(new SubQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of FavoriteLogList for 'exists'. (NotNull) - */ - public void existsFavoriteLogList(final SubQuery<FavoriteLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_FavoriteLogList(cb.query()); - registerExistsReferrer(cb.query(), "ID", "USER_ID", pp, - "favoriteLogList"); - } - - public abstract String keepId_ExistsReferrer_FavoriteLogList( - FavoriteLogCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select USER_ID from SEARCH_LOG where ...)} <br /> - * SEARCH_LOG by USER_ID, named 'searchLogAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsSearchLogList</span>(new SubQuery<SearchLogCB>() { - * public void query(SearchLogCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of SearchLogList for 'exists'. (NotNull) - */ - public void existsSearchLogList(final SubQuery<SearchLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_SearchLogList(cb.query()); - registerExistsReferrer(cb.query(), "ID", "USER_ID", pp, "searchLogList"); - } - - public abstract String keepId_ExistsReferrer_SearchLogList(SearchLogCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select USER_ID from FAVORITE_LOG where ...)} <br /> - * FAVORITE_LOG by USER_ID, named 'favoriteLogAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsFavoriteLogList</span>(new SubQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_FavoriteLogList for 'not exists'. (NotNull) - */ - public void notExistsFavoriteLogList(final SubQuery<FavoriteLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_FavoriteLogList(cb.query()); - registerNotExistsReferrer(cb.query(), "ID", "USER_ID", pp, - "favoriteLogList"); - } - - public abstract String keepId_NotExistsReferrer_FavoriteLogList( - FavoriteLogCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select USER_ID from SEARCH_LOG where ...)} <br /> - * SEARCH_LOG by USER_ID, named 'searchLogAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsSearchLogList</span>(new SubQuery<SearchLogCB>() { - * public void query(SearchLogCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_SearchLogList for 'not exists'. (NotNull) - */ - public void notExistsSearchLogList(final SubQuery<SearchLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_SearchLogList(cb.query()); - registerNotExistsReferrer(cb.query(), "ID", "USER_ID", pp, - "searchLogList"); - } - - public abstract String keepId_NotExistsReferrer_SearchLogList(SearchLogCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select USER_ID from FAVORITE_LOG where ...)} <br /> - * FAVORITE_LOG by USER_ID, named 'favoriteLogAsOne'. - * @param subQuery The sub-query of FavoriteLogList for 'in-scope'. (NotNull) - */ - public void inScopeFavoriteLogList(final SubQuery<FavoriteLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_FavoriteLogList(cb.query()); - registerInScopeRelation(cb.query(), "ID", "USER_ID", pp, - "favoriteLogList"); - } - - public abstract String keepId_InScopeRelation_FavoriteLogList( - FavoriteLogCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select USER_ID from SEARCH_LOG where ...)} <br /> - * SEARCH_LOG by USER_ID, named 'searchLogAsOne'. - * @param subQuery The sub-query of SearchLogList for 'in-scope'. (NotNull) - */ - public void inScopeSearchLogList(final SubQuery<SearchLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_SearchLogList(cb.query()); - registerInScopeRelation(cb.query(), "ID", "USER_ID", pp, - "searchLogList"); - } - - public abstract String keepId_InScopeRelation_SearchLogList(SearchLogCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select USER_ID from FAVORITE_LOG where ...)} <br /> - * FAVORITE_LOG by USER_ID, named 'favoriteLogAsOne'. - * @param subQuery The sub-query of FavoriteLogList for 'not in-scope'. (NotNull) - */ - public void notInScopeFavoriteLogList(final SubQuery<FavoriteLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_FavoriteLogList(cb.query()); - registerNotInScopeRelation(cb.query(), "ID", "USER_ID", pp, - "favoriteLogList"); - } - - public abstract String keepId_NotInScopeRelation_FavoriteLogList( - FavoriteLogCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select USER_ID from SEARCH_LOG where ...)} <br /> - * SEARCH_LOG by USER_ID, named 'searchLogAsOne'. - * @param subQuery The sub-query of SearchLogList for 'not in-scope'. (NotNull) - */ - public void notInScopeSearchLogList(final SubQuery<SearchLogCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_SearchLogList(cb.query()); - registerNotInScopeRelation(cb.query(), "ID", "USER_ID", pp, - "searchLogList"); - } - - public abstract String keepId_NotInScopeRelation_SearchLogList( - SearchLogCQ sq); - - public void xsderiveFavoriteLogList(final String fn, - final SubQuery<FavoriteLogCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_FavoriteLogList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "USER_ID", pp, - "favoriteLogList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_FavoriteLogList( - FavoriteLogCQ sq); - - public void xsderiveSearchLogList(final String fn, - final SubQuery<SearchLogCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_SearchLogList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "USER_ID", pp, - "searchLogList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_SearchLogList( - SearchLogCQ sq); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from FAVORITE_LOG where ...)} <br /> - * FAVORITE_LOG by USER_ID, named 'favoriteLogAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedFavoriteLogList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<FavoriteLogCB>() { - * public void query(FavoriteLogCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<FavoriteLogCB> derivedFavoriteLogList() { - return xcreateQDRFunctionFavoriteLogList(); - } - - protected HpQDRFunction<FavoriteLogCB> xcreateQDRFunctionFavoriteLogList() { - return new HpQDRFunction<FavoriteLogCB>( - new HpQDRSetupper<FavoriteLogCB>() { - @Override - public void setup(final String fn, - final SubQuery<FavoriteLogCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - xqderiveFavoriteLogList(fn, sq, rd, vl, op); - } - }); - } - - public void xqderiveFavoriteLogList(final String fn, - final SubQuery<FavoriteLogCB> sq, final String rd, final Object vl, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final FavoriteLogCB cb = new FavoriteLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_FavoriteLogList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_FavoriteLogListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "USER_ID", sqpp, - "favoriteLogList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_FavoriteLogList( - FavoriteLogCQ sq); - - public abstract String keepId_QueryDerivedReferrer_FavoriteLogListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from SEARCH_LOG where ...)} <br /> - * SEARCH_LOG by USER_ID, named 'searchLogAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedSearchLogList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<SearchLogCB>() { - * public void query(SearchLogCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<SearchLogCB> derivedSearchLogList() { - return xcreateQDRFunctionSearchLogList(); - } - - protected HpQDRFunction<SearchLogCB> xcreateQDRFunctionSearchLogList() { - return new HpQDRFunction<SearchLogCB>(new HpQDRSetupper<SearchLogCB>() { - @Override - public void setup(final String fn, final SubQuery<SearchLogCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveSearchLogList(fn, sq, rd, vl, op); - } - }); - } - - public void xqderiveSearchLogList(final String fn, - final SubQuery<SearchLogCB> sq, final String rd, final Object vl, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final SearchLogCB cb = new SearchLogCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_SearchLogList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_SearchLogListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "USER_ID", sqpp, - "searchLogList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_SearchLogList( - SearchLogCQ sq); - - public abstract String keepId_QueryDerivedReferrer_SearchLogListParameter( - Object vl); - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CODE: {NotNull, VARCHAR(1000)} - * @param code The value of code as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCode_Equal(final String code) { - doSetCode_Equal(fRES(code)); - } - - protected void doSetCode_Equal(final String code) { - regCode(CK_EQ, code); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CODE: {NotNull, VARCHAR(1000)} - * @param code The value of code as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCode_NotEqual(final String code) { - doSetCode_NotEqual(fRES(code)); - } - - protected void doSetCode_NotEqual(final String code) { - regCode(CK_NES, code); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CODE: {NotNull, VARCHAR(1000)} - * @param code The value of code as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCode_GreaterThan(final String code) { - regCode(CK_GT, fRES(code)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CODE: {NotNull, VARCHAR(1000)} - * @param code The value of code as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCode_LessThan(final String code) { - regCode(CK_LT, fRES(code)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CODE: {NotNull, VARCHAR(1000)} - * @param code The value of code as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCode_GreaterEqual(final String code) { - regCode(CK_GE, fRES(code)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CODE: {NotNull, VARCHAR(1000)} - * @param code The value of code as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCode_LessEqual(final String code) { - regCode(CK_LE, fRES(code)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CODE: {NotNull, VARCHAR(1000)} - * @param codeList The collection of code as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCode_InScope(final Collection<String> codeList) { - doSetCode_InScope(codeList); - } - - public void doSetCode_InScope(final Collection<String> codeList) { - regINS(CK_INS, cTL(codeList), getCValueCode(), "CODE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CODE: {NotNull, VARCHAR(1000)} - * @param codeList The collection of code as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCode_NotInScope(final Collection<String> codeList) { - doSetCode_NotInScope(codeList); - } - - public void doSetCode_NotInScope(final Collection<String> codeList) { - regINS(CK_NINS, cTL(codeList), getCValueCode(), "CODE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CODE: {NotNull, VARCHAR(1000)} - * @param code The value of code as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCode_PrefixSearch(final String code) { - setCode_LikeSearch(code, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CODE: {NotNull, VARCHAR(1000)} <br /> - * <pre>e.g. setCode_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param code The value of code as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCode_LikeSearch(final String code, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(code), getCValueCode(), "CODE", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CODE: {NotNull, VARCHAR(1000)} - * @param code The value of code as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCode_NotLikeSearch(final String code, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(code), getCValueCode(), "CODE", likeSearchOption); - } - - protected void regCode(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCode(), "CODE"); - } - - protected abstract ConditionValue getCValueCode(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<UserInfoCB>() { - * public void query(UserInfoCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<UserInfoCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, UserInfoCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<UserInfoCB>() { - * public void query(UserInfoCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<UserInfoCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, UserInfoCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<UserInfoCB>() { - * public void query(UserInfoCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<UserInfoCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, UserInfoCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<UserInfoCB>() { - * public void query(UserInfoCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<UserInfoCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, UserInfoCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<UserInfoCB>() { - * public void query(UserInfoCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<UserInfoCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, UserInfoCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<UserInfoCB>() { - * public void query(UserInfoCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<UserInfoCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, UserInfoCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final UserInfoCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(UserInfoCQ sq); - - protected UserInfoCB xcreateScalarConditionCB() { - final UserInfoCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected UserInfoCB xcreateScalarConditionPartitionByCB() { - final UserInfoCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, final SubQuery<UserInfoCB> sq, - final String al, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final UserInfoCB cb = new UserInfoCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(UserInfoCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<UserInfoCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(UserInfoCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final UserInfoCB cb = new UserInfoCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(UserInfoCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<UserInfoCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final UserInfoCB cb = new UserInfoCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(UserInfoCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<UserInfoCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final UserInfoCB cb = new UserInfoCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(UserInfoCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected UserInfoCB newMyCB() { - return new UserInfoCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return UserInfoCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebAuthenticationCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebAuthenticationCQ.java deleted file mode 100644 index 2427b3aca..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebAuthenticationCQ.java +++ /dev/null @@ -1,2544 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.WebAuthenticationCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.WebAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of WEB_AUTHENTICATION. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsWebAuthenticationCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsWebAuthenticationCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "WEB_AUTHENTICATION"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - * @param hostname The value of hostname as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_Equal(final String hostname) { - doSetHostname_Equal(fRES(hostname)); - } - - protected void doSetHostname_Equal(final String hostname) { - regHostname(CK_EQ, hostname); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - * @param hostname The value of hostname as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_NotEqual(final String hostname) { - doSetHostname_NotEqual(fRES(hostname)); - } - - protected void doSetHostname_NotEqual(final String hostname) { - regHostname(CK_NES, hostname); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - * @param hostname The value of hostname as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_GreaterThan(final String hostname) { - regHostname(CK_GT, fRES(hostname)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - * @param hostname The value of hostname as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_LessThan(final String hostname) { - regHostname(CK_LT, fRES(hostname)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - * @param hostname The value of hostname as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_GreaterEqual(final String hostname) { - regHostname(CK_GE, fRES(hostname)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - * @param hostname The value of hostname as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_LessEqual(final String hostname) { - regHostname(CK_LE, fRES(hostname)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - * @param hostnameList The collection of hostname as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_InScope(final Collection<String> hostnameList) { - doSetHostname_InScope(hostnameList); - } - - public void doSetHostname_InScope(final Collection<String> hostnameList) { - regINS(CK_INS, cTL(hostnameList), getCValueHostname(), "HOSTNAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - * @param hostnameList The collection of hostname as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_NotInScope(final Collection<String> hostnameList) { - doSetHostname_NotInScope(hostnameList); - } - - public void doSetHostname_NotInScope(final Collection<String> hostnameList) { - regINS(CK_NINS, cTL(hostnameList), getCValueHostname(), "HOSTNAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - * @param hostname The value of hostname as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setHostname_PrefixSearch(final String hostname) { - setHostname_LikeSearch(hostname, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} <br /> - * <pre>e.g. setHostname_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param hostname The value of hostname as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setHostname_LikeSearch(final String hostname, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(hostname), getCValueHostname(), "HOSTNAME", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - * @param hostname The value of hostname as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setHostname_NotLikeSearch(final String hostname, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(hostname), getCValueHostname(), "HOSTNAME", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - */ - public void setHostname_IsNull() { - regHostname(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - */ - public void setHostname_IsNullOrEmpty() { - regHostname(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * HOSTNAME: {VARCHAR(100)} - */ - public void setHostname_IsNotNull() { - regHostname(CK_ISNN, DOBJ); - } - - protected void regHostname(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueHostname(), "HOSTNAME"); - } - - protected abstract ConditionValue getCValueHostname(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param port The value of port as equal. (NullAllowed: if null, no condition) - */ - public void setPort_Equal(final Integer port) { - doSetPort_Equal(port); - } - - protected void doSetPort_Equal(final Integer port) { - regPort(CK_EQ, port); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param port The value of port as notEqual. (NullAllowed: if null, no condition) - */ - public void setPort_NotEqual(final Integer port) { - doSetPort_NotEqual(port); - } - - protected void doSetPort_NotEqual(final Integer port) { - regPort(CK_NES, port); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param port The value of port as greaterThan. (NullAllowed: if null, no condition) - */ - public void setPort_GreaterThan(final Integer port) { - regPort(CK_GT, port); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param port The value of port as lessThan. (NullAllowed: if null, no condition) - */ - public void setPort_LessThan(final Integer port) { - regPort(CK_LT, port); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param port The value of port as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setPort_GreaterEqual(final Integer port) { - regPort(CK_GE, port); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param port The value of port as lessEqual. (NullAllowed: if null, no condition) - */ - public void setPort_LessEqual(final Integer port) { - regPort(CK_LE, port); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param minNumber The min number of port. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of port. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setPort_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValuePort(), "PORT", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param portList The collection of port as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setPort_InScope(final Collection<Integer> portList) { - doSetPort_InScope(portList); - } - - protected void doSetPort_InScope(final Collection<Integer> portList) { - regINS(CK_INS, cTL(portList), getCValuePort(), "PORT"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * PORT: {NotNull, INTEGER(10)} - * @param portList The collection of port as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setPort_NotInScope(final Collection<Integer> portList) { - doSetPort_NotInScope(portList); - } - - protected void doSetPort_NotInScope(final Collection<Integer> portList) { - regINS(CK_NINS, cTL(portList), getCValuePort(), "PORT"); - } - - protected void regPort(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValuePort(), "PORT"); - } - - protected abstract ConditionValue getCValuePort(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - * @param authRealm The value of authRealm as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setAuthRealm_Equal(final String authRealm) { - doSetAuthRealm_Equal(fRES(authRealm)); - } - - protected void doSetAuthRealm_Equal(final String authRealm) { - regAuthRealm(CK_EQ, authRealm); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - * @param authRealm The value of authRealm as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAuthRealm_NotEqual(final String authRealm) { - doSetAuthRealm_NotEqual(fRES(authRealm)); - } - - protected void doSetAuthRealm_NotEqual(final String authRealm) { - regAuthRealm(CK_NES, authRealm); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - * @param authRealm The value of authRealm as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setAuthRealm_GreaterThan(final String authRealm) { - regAuthRealm(CK_GT, fRES(authRealm)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - * @param authRealm The value of authRealm as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setAuthRealm_LessThan(final String authRealm) { - regAuthRealm(CK_LT, fRES(authRealm)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - * @param authRealm The value of authRealm as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAuthRealm_GreaterEqual(final String authRealm) { - regAuthRealm(CK_GE, fRES(authRealm)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - * @param authRealm The value of authRealm as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAuthRealm_LessEqual(final String authRealm) { - regAuthRealm(CK_LE, fRES(authRealm)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - * @param authRealmList The collection of authRealm as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setAuthRealm_InScope(final Collection<String> authRealmList) { - doSetAuthRealm_InScope(authRealmList); - } - - public void doSetAuthRealm_InScope(final Collection<String> authRealmList) { - regINS(CK_INS, cTL(authRealmList), getCValueAuthRealm(), "AUTH_REALM"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - * @param authRealmList The collection of authRealm as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setAuthRealm_NotInScope(final Collection<String> authRealmList) { - doSetAuthRealm_NotInScope(authRealmList); - } - - public void doSetAuthRealm_NotInScope(final Collection<String> authRealmList) { - regINS(CK_NINS, cTL(authRealmList), getCValueAuthRealm(), "AUTH_REALM"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - * @param authRealm The value of authRealm as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setAuthRealm_PrefixSearch(final String authRealm) { - setAuthRealm_LikeSearch(authRealm, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} <br /> - * <pre>e.g. setAuthRealm_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param authRealm The value of authRealm as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setAuthRealm_LikeSearch(final String authRealm, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(authRealm), getCValueAuthRealm(), "AUTH_REALM", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - * @param authRealm The value of authRealm as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setAuthRealm_NotLikeSearch(final String authRealm, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(authRealm), getCValueAuthRealm(), "AUTH_REALM", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - */ - public void setAuthRealm_IsNull() { - regAuthRealm(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - */ - public void setAuthRealm_IsNullOrEmpty() { - regAuthRealm(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * AUTH_REALM: {VARCHAR(100)} - */ - public void setAuthRealm_IsNotNull() { - regAuthRealm(CK_ISNN, DOBJ); - } - - protected void regAuthRealm(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueAuthRealm(), "AUTH_REALM"); - } - - protected abstract ConditionValue getCValueAuthRealm(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_Equal(final String protocolScheme) { - doSetProtocolScheme_Equal(fRES(protocolScheme)); - } - - protected void doSetProtocolScheme_Equal(final String protocolScheme) { - regProtocolScheme(CK_EQ, protocolScheme); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_NotEqual(final String protocolScheme) { - doSetProtocolScheme_NotEqual(fRES(protocolScheme)); - } - - protected void doSetProtocolScheme_NotEqual(final String protocolScheme) { - regProtocolScheme(CK_NES, protocolScheme); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_GreaterThan(final String protocolScheme) { - regProtocolScheme(CK_GT, fRES(protocolScheme)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_LessThan(final String protocolScheme) { - regProtocolScheme(CK_LT, fRES(protocolScheme)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_GreaterEqual(final String protocolScheme) { - regProtocolScheme(CK_GE, fRES(protocolScheme)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_LessEqual(final String protocolScheme) { - regProtocolScheme(CK_LE, fRES(protocolScheme)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolSchemeList The collection of protocolScheme as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_InScope( - final Collection<String> protocolSchemeList) { - doSetProtocolScheme_InScope(protocolSchemeList); - } - - public void doSetProtocolScheme_InScope( - final Collection<String> protocolSchemeList) { - regINS(CK_INS, cTL(protocolSchemeList), getCValueProtocolScheme(), - "PROTOCOL_SCHEME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolSchemeList The collection of protocolScheme as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_NotInScope( - final Collection<String> protocolSchemeList) { - doSetProtocolScheme_NotInScope(protocolSchemeList); - } - - public void doSetProtocolScheme_NotInScope( - final Collection<String> protocolSchemeList) { - regINS(CK_NINS, cTL(protocolSchemeList), getCValueProtocolScheme(), - "PROTOCOL_SCHEME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setProtocolScheme_PrefixSearch(final String protocolScheme) { - setProtocolScheme_LikeSearch(protocolScheme, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} <br /> - * <pre>e.g. setProtocolScheme_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param protocolScheme The value of protocolScheme as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setProtocolScheme_LikeSearch(final String protocolScheme, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(protocolScheme), getCValueProtocolScheme(), - "PROTOCOL_SCHEME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @param protocolScheme The value of protocolScheme as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setProtocolScheme_NotLikeSearch(final String protocolScheme, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(protocolScheme), getCValueProtocolScheme(), - "PROTOCOL_SCHEME", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - */ - public void setProtocolScheme_IsNull() { - regProtocolScheme(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - */ - public void setProtocolScheme_IsNullOrEmpty() { - regProtocolScheme(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - */ - public void setProtocolScheme_IsNotNull() { - regProtocolScheme(CK_ISNN, DOBJ); - } - - protected void regProtocolScheme(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueProtocolScheme(), "PROTOCOL_SCHEME"); - } - - protected abstract ConditionValue getCValueProtocolScheme(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_Equal(final String username) { - doSetUsername_Equal(fRES(username)); - } - - protected void doSetUsername_Equal(final String username) { - regUsername(CK_EQ, username); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_NotEqual(final String username) { - doSetUsername_NotEqual(fRES(username)); - } - - protected void doSetUsername_NotEqual(final String username) { - regUsername(CK_NES, username); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_GreaterThan(final String username) { - regUsername(CK_GT, fRES(username)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_LessThan(final String username) { - regUsername(CK_LT, fRES(username)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_GreaterEqual(final String username) { - regUsername(CK_GE, fRES(username)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_LessEqual(final String username) { - regUsername(CK_LE, fRES(username)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param usernameList The collection of username as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_InScope(final Collection<String> usernameList) { - doSetUsername_InScope(usernameList); - } - - public void doSetUsername_InScope(final Collection<String> usernameList) { - regINS(CK_INS, cTL(usernameList), getCValueUsername(), "USERNAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param usernameList The collection of username as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_NotInScope(final Collection<String> usernameList) { - doSetUsername_NotInScope(usernameList); - } - - public void doSetUsername_NotInScope(final Collection<String> usernameList) { - regINS(CK_NINS, cTL(usernameList), getCValueUsername(), "USERNAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUsername_PrefixSearch(final String username) { - setUsername_LikeSearch(username, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} <br /> - * <pre>e.g. setUsername_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param username The value of username as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUsername_LikeSearch(final String username, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(username), getCValueUsername(), "USERNAME", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @param username The value of username as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUsername_NotLikeSearch(final String username, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(username), getCValueUsername(), "USERNAME", - likeSearchOption); - } - - protected void regUsername(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUsername(), "USERNAME"); - } - - protected abstract ConditionValue getCValueUsername(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_Equal(final String password) { - doSetPassword_Equal(fRES(password)); - } - - protected void doSetPassword_Equal(final String password) { - regPassword(CK_EQ, password); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_NotEqual(final String password) { - doSetPassword_NotEqual(fRES(password)); - } - - protected void doSetPassword_NotEqual(final String password) { - regPassword(CK_NES, password); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_GreaterThan(final String password) { - regPassword(CK_GT, fRES(password)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_LessThan(final String password) { - regPassword(CK_LT, fRES(password)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_GreaterEqual(final String password) { - regPassword(CK_GE, fRES(password)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_LessEqual(final String password) { - regPassword(CK_LE, fRES(password)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param passwordList The collection of password as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_InScope(final Collection<String> passwordList) { - doSetPassword_InScope(passwordList); - } - - public void doSetPassword_InScope(final Collection<String> passwordList) { - regINS(CK_INS, cTL(passwordList), getCValuePassword(), "PASSWORD"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param passwordList The collection of password as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_NotInScope(final Collection<String> passwordList) { - doSetPassword_NotInScope(passwordList); - } - - public void doSetPassword_NotInScope(final Collection<String> passwordList) { - regINS(CK_NINS, cTL(passwordList), getCValuePassword(), "PASSWORD"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setPassword_PrefixSearch(final String password) { - setPassword_LikeSearch(password, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PASSWORD: {VARCHAR(100)} <br /> - * <pre>e.g. setPassword_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param password The value of password as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setPassword_LikeSearch(final String password, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(password), getCValuePassword(), "PASSWORD", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - * @param password The value of password as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setPassword_NotLikeSearch(final String password, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(password), getCValuePassword(), "PASSWORD", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - */ - public void setPassword_IsNull() { - regPassword(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - */ - public void setPassword_IsNullOrEmpty() { - regPassword(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * PASSWORD: {VARCHAR(100)} - */ - public void setPassword_IsNotNull() { - regPassword(CK_ISNN, DOBJ); - } - - protected void regPassword(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValuePassword(), "PASSWORD"); - } - - protected abstract ConditionValue getCValuePassword(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_Equal(final String parameters) { - doSetParameters_Equal(fRES(parameters)); - } - - protected void doSetParameters_Equal(final String parameters) { - regParameters(CK_EQ, parameters); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_NotEqual(final String parameters) { - doSetParameters_NotEqual(fRES(parameters)); - } - - protected void doSetParameters_NotEqual(final String parameters) { - regParameters(CK_NES, parameters); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_GreaterThan(final String parameters) { - regParameters(CK_GT, fRES(parameters)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_LessThan(final String parameters) { - regParameters(CK_LT, fRES(parameters)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_GreaterEqual(final String parameters) { - regParameters(CK_GE, fRES(parameters)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_LessEqual(final String parameters) { - regParameters(CK_LE, fRES(parameters)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parametersList The collection of parameters as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_InScope(final Collection<String> parametersList) { - doSetParameters_InScope(parametersList); - } - - public void doSetParameters_InScope(final Collection<String> parametersList) { - regINS(CK_INS, cTL(parametersList), getCValueParameters(), "PARAMETERS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parametersList The collection of parameters as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_NotInScope(final Collection<String> parametersList) { - doSetParameters_NotInScope(parametersList); - } - - public void doSetParameters_NotInScope( - final Collection<String> parametersList) { - regINS(CK_NINS, cTL(parametersList), getCValueParameters(), - "PARAMETERS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setParameters_PrefixSearch(final String parameters) { - setParameters_LikeSearch(parameters, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} <br /> - * <pre>e.g. setParameters_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param parameters The value of parameters as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setParameters_LikeSearch(final String parameters, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(parameters), getCValueParameters(), "PARAMETERS", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @param parameters The value of parameters as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setParameters_NotLikeSearch(final String parameters, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(parameters), getCValueParameters(), "PARAMETERS", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - */ - public void setParameters_IsNull() { - regParameters(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - */ - public void setParameters_IsNullOrEmpty() { - regParameters(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * PARAMETERS: {VARCHAR(1000)} - */ - public void setParameters_IsNotNull() { - regParameters(CK_ISNN, DOBJ); - } - - protected void regParameters(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueParameters(), "PARAMETERS"); - } - - protected abstract ConditionValue getCValueParameters(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigId The value of webCrawlingConfigId as equal. (NullAllowed: if null, no condition) - */ - public void setWebCrawlingConfigId_Equal(final Long webCrawlingConfigId) { - doSetWebCrawlingConfigId_Equal(webCrawlingConfigId); - } - - protected void doSetWebCrawlingConfigId_Equal(final Long webCrawlingConfigId) { - regWebCrawlingConfigId(CK_EQ, webCrawlingConfigId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigId The value of webCrawlingConfigId as notEqual. (NullAllowed: if null, no condition) - */ - public void setWebCrawlingConfigId_NotEqual(final Long webCrawlingConfigId) { - doSetWebCrawlingConfigId_NotEqual(webCrawlingConfigId); - } - - protected void doSetWebCrawlingConfigId_NotEqual( - final Long webCrawlingConfigId) { - regWebCrawlingConfigId(CK_NES, webCrawlingConfigId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigId The value of webCrawlingConfigId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setWebCrawlingConfigId_GreaterThan( - final Long webCrawlingConfigId) { - regWebCrawlingConfigId(CK_GT, webCrawlingConfigId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigId The value of webCrawlingConfigId as lessThan. (NullAllowed: if null, no condition) - */ - public void setWebCrawlingConfigId_LessThan(final Long webCrawlingConfigId) { - regWebCrawlingConfigId(CK_LT, webCrawlingConfigId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigId The value of webCrawlingConfigId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setWebCrawlingConfigId_GreaterEqual( - final Long webCrawlingConfigId) { - regWebCrawlingConfigId(CK_GE, webCrawlingConfigId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigId The value of webCrawlingConfigId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setWebCrawlingConfigId_LessEqual(final Long webCrawlingConfigId) { - regWebCrawlingConfigId(CK_LE, webCrawlingConfigId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param minNumber The min number of webCrawlingConfigId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of webCrawlingConfigId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setWebCrawlingConfigId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueWebCrawlingConfigId(), - "WEB_CRAWLING_CONFIG_ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigIdList The collection of webCrawlingConfigId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setWebCrawlingConfigId_InScope( - final Collection<Long> webCrawlingConfigIdList) { - doSetWebCrawlingConfigId_InScope(webCrawlingConfigIdList); - } - - protected void doSetWebCrawlingConfigId_InScope( - final Collection<Long> webCrawlingConfigIdList) { - regINS(CK_INS, cTL(webCrawlingConfigIdList), - getCValueWebCrawlingConfigId(), "WEB_CRAWLING_CONFIG_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webCrawlingConfigIdList The collection of webCrawlingConfigId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setWebCrawlingConfigId_NotInScope( - final Collection<Long> webCrawlingConfigIdList) { - doSetWebCrawlingConfigId_NotInScope(webCrawlingConfigIdList); - } - - protected void doSetWebCrawlingConfigId_NotInScope( - final Collection<Long> webCrawlingConfigIdList) { - regINS(CK_NINS, cTL(webCrawlingConfigIdList), - getCValueWebCrawlingConfigId(), "WEB_CRAWLING_CONFIG_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select WEB_CRAWLING_CONFIG_ID from WEB_CRAWLING_CONFIG where ...)} <br /> - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @param subQuery The sub-query of WebCrawlingConfig for 'in-scope'. (NotNull) - */ - public void inScopeWebCrawlingConfig( - final SubQuery<WebCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepWebCrawlingConfigId_InScopeRelation_WebCrawlingConfig(cb - .query()); - registerInScopeRelation(cb.query(), "WEB_CRAWLING_CONFIG_ID", "ID", pp, - "webCrawlingConfig"); - } - - public abstract String keepWebCrawlingConfigId_InScopeRelation_WebCrawlingConfig( - WebCrawlingConfigCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select WEB_CRAWLING_CONFIG_ID from WEB_CRAWLING_CONFIG where ...)} <br /> - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @param subQuery The sub-query of WebCrawlingConfig for 'not in-scope'. (NotNull) - */ - public void notInScopeWebCrawlingConfig( - final SubQuery<WebCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepWebCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig(cb - .query()); - registerNotInScopeRelation(cb.query(), "WEB_CRAWLING_CONFIG_ID", "ID", - pp, "webCrawlingConfig"); - } - - public abstract String keepWebCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig( - WebCrawlingConfigCQ sq); - - protected void regWebCrawlingConfigId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueWebCrawlingConfigId(), "WEB_CRAWLING_CONFIG_ID"); - } - - protected abstract ConditionValue getCValueWebCrawlingConfigId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebAuthenticationCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, WebAuthenticationCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebAuthenticationCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, WebAuthenticationCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebAuthenticationCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, WebAuthenticationCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebAuthenticationCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, WebAuthenticationCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebAuthenticationCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, WebAuthenticationCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebAuthenticationCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, WebAuthenticationCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final WebAuthenticationCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(WebAuthenticationCQ sq); - - protected WebAuthenticationCB xcreateScalarConditionCB() { - final WebAuthenticationCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected WebAuthenticationCB xcreateScalarConditionPartitionByCB() { - final WebAuthenticationCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<WebAuthenticationCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(WebAuthenticationCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<WebAuthenticationCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(WebAuthenticationCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(WebAuthenticationCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<WebAuthenticationCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(WebAuthenticationCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<WebAuthenticationCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(WebAuthenticationCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected WebAuthenticationCB newMyCB() { - return new WebAuthenticationCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return WebAuthenticationCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebConfigToLabelTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebConfigToLabelTypeMappingCQ.java deleted file mode 100644 index b917d0935..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebConfigToLabelTypeMappingCQ.java +++ /dev/null @@ -1,864 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of WEB_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsWebConfigToLabelTypeMappingCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsWebConfigToLabelTypeMappingCQ( - final ConditionQuery referrerQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "WEB_CONFIG_TO_LABEL_TYPE_MAPPING"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigId The value of webConfigId as equal. (NullAllowed: if null, no condition) - */ - public void setWebConfigId_Equal(final Long webConfigId) { - doSetWebConfigId_Equal(webConfigId); - } - - protected void doSetWebConfigId_Equal(final Long webConfigId) { - regWebConfigId(CK_EQ, webConfigId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigId The value of webConfigId as notEqual. (NullAllowed: if null, no condition) - */ - public void setWebConfigId_NotEqual(final Long webConfigId) { - doSetWebConfigId_NotEqual(webConfigId); - } - - protected void doSetWebConfigId_NotEqual(final Long webConfigId) { - regWebConfigId(CK_NES, webConfigId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigId The value of webConfigId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setWebConfigId_GreaterThan(final Long webConfigId) { - regWebConfigId(CK_GT, webConfigId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigId The value of webConfigId as lessThan. (NullAllowed: if null, no condition) - */ - public void setWebConfigId_LessThan(final Long webConfigId) { - regWebConfigId(CK_LT, webConfigId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigId The value of webConfigId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setWebConfigId_GreaterEqual(final Long webConfigId) { - regWebConfigId(CK_GE, webConfigId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigId The value of webConfigId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setWebConfigId_LessEqual(final Long webConfigId) { - regWebConfigId(CK_LE, webConfigId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param minNumber The min number of webConfigId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of webConfigId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setWebConfigId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueWebConfigId(), "WEB_CONFIG_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigIdList The collection of webConfigId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setWebConfigId_InScope(final Collection<Long> webConfigIdList) { - doSetWebConfigId_InScope(webConfigIdList); - } - - protected void doSetWebConfigId_InScope( - final Collection<Long> webConfigIdList) { - regINS(CK_INS, cTL(webConfigIdList), getCValueWebConfigId(), - "WEB_CONFIG_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigIdList The collection of webConfigId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setWebConfigId_NotInScope(final Collection<Long> webConfigIdList) { - doSetWebConfigId_NotInScope(webConfigIdList); - } - - protected void doSetWebConfigId_NotInScope( - final Collection<Long> webConfigIdList) { - regINS(CK_NINS, cTL(webConfigIdList), getCValueWebConfigId(), - "WEB_CONFIG_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select WEB_CONFIG_ID from WEB_CRAWLING_CONFIG where ...)} <br /> - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @param subQuery The sub-query of WebCrawlingConfig for 'in-scope'. (NotNull) - */ - public void inScopeWebCrawlingConfig( - final SubQuery<WebCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepWebConfigId_InScopeRelation_WebCrawlingConfig(cb - .query()); - registerInScopeRelation(cb.query(), "WEB_CONFIG_ID", "ID", pp, - "webCrawlingConfig"); - } - - public abstract String keepWebConfigId_InScopeRelation_WebCrawlingConfig( - WebCrawlingConfigCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select WEB_CONFIG_ID from WEB_CRAWLING_CONFIG where ...)} <br /> - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @param subQuery The sub-query of WebCrawlingConfig for 'not in-scope'. (NotNull) - */ - public void notInScopeWebCrawlingConfig( - final SubQuery<WebCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepWebConfigId_NotInScopeRelation_WebCrawlingConfig(cb - .query()); - registerNotInScopeRelation(cb.query(), "WEB_CONFIG_ID", "ID", pp, - "webCrawlingConfig"); - } - - public abstract String keepWebConfigId_NotInScopeRelation_WebCrawlingConfig( - WebCrawlingConfigCQ sq); - - protected void regWebConfigId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueWebConfigId(), "WEB_CONFIG_ID"); - } - - protected abstract ConditionValue getCValueWebConfigId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as equal. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_Equal(final Long labelTypeId) { - doSetLabelTypeId_Equal(labelTypeId); - } - - protected void doSetLabelTypeId_Equal(final Long labelTypeId) { - regLabelTypeId(CK_EQ, labelTypeId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as notEqual. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_NotEqual(final Long labelTypeId) { - doSetLabelTypeId_NotEqual(labelTypeId); - } - - protected void doSetLabelTypeId_NotEqual(final Long labelTypeId) { - regLabelTypeId(CK_NES, labelTypeId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_GreaterThan(final Long labelTypeId) { - regLabelTypeId(CK_GT, labelTypeId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as lessThan. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_LessThan(final Long labelTypeId) { - regLabelTypeId(CK_LT, labelTypeId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_GreaterEqual(final Long labelTypeId) { - regLabelTypeId(CK_GE, labelTypeId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeId The value of labelTypeId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setLabelTypeId_LessEqual(final Long labelTypeId) { - regLabelTypeId(CK_LE, labelTypeId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param minNumber The min number of labelTypeId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of labelTypeId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setLabelTypeId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueLabelTypeId(), "LABEL_TYPE_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeIdList The collection of labelTypeId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setLabelTypeId_InScope(final Collection<Long> labelTypeIdList) { - doSetLabelTypeId_InScope(labelTypeIdList); - } - - protected void doSetLabelTypeId_InScope( - final Collection<Long> labelTypeIdList) { - regINS(CK_INS, cTL(labelTypeIdList), getCValueLabelTypeId(), - "LABEL_TYPE_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @param labelTypeIdList The collection of labelTypeId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setLabelTypeId_NotInScope(final Collection<Long> labelTypeIdList) { - doSetLabelTypeId_NotInScope(labelTypeIdList); - } - - protected void doSetLabelTypeId_NotInScope( - final Collection<Long> labelTypeIdList) { - regINS(CK_NINS, cTL(labelTypeIdList), getCValueLabelTypeId(), - "LABEL_TYPE_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select LABEL_TYPE_ID from LABEL_TYPE where ...)} <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @param subQuery The sub-query of LabelType for 'in-scope'. (NotNull) - */ - public void inScopeLabelType(final SubQuery<LabelTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepLabelTypeId_InScopeRelation_LabelType(cb.query()); - registerInScopeRelation(cb.query(), "LABEL_TYPE_ID", "ID", pp, - "labelType"); - } - - public abstract String keepLabelTypeId_InScopeRelation_LabelType( - LabelTypeCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select LABEL_TYPE_ID from LABEL_TYPE where ...)} <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @param subQuery The sub-query of LabelType for 'not in-scope'. (NotNull) - */ - public void notInScopeLabelType(final SubQuery<LabelTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final LabelTypeCB cb = new LabelTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepLabelTypeId_NotInScopeRelation_LabelType(cb - .query()); - registerNotInScopeRelation(cb.query(), "LABEL_TYPE_ID", "ID", pp, - "labelType"); - } - - public abstract String keepLabelTypeId_NotInScopeRelation_LabelType( - LabelTypeCQ sq); - - protected void regLabelTypeId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueLabelTypeId(), "LABEL_TYPE_ID"); - } - - protected abstract ConditionValue getCValueLabelTypeId(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebConfigToLabelTypeMappingCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, WebConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebConfigToLabelTypeMappingCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, WebConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebConfigToLabelTypeMappingCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, WebConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebConfigToLabelTypeMappingCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, WebConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebConfigToLabelTypeMappingCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, WebConfigToLabelTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebConfigToLabelTypeMappingCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, WebConfigToLabelTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToLabelTypeMappingCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(WebConfigToLabelTypeMappingCQ sq); - - protected WebConfigToLabelTypeMappingCB xcreateScalarConditionCB() { - final WebConfigToLabelTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected WebConfigToLabelTypeMappingCB xcreateScalarConditionPartitionByCB() { - final WebConfigToLabelTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<WebConfigToLabelTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived( - WebConfigToLabelTypeMappingCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<WebConfigToLabelTypeMappingCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(WebConfigToLabelTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived( - WebConfigToLabelTypeMappingCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists( - final SubQuery<WebConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(WebConfigToLabelTypeMappingCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope( - final SubQuery<WebConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(WebConfigToLabelTypeMappingCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected WebConfigToLabelTypeMappingCB newMyCB() { - return new WebConfigToLabelTypeMappingCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return WebConfigToLabelTypeMappingCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebConfigToRoleTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebConfigToRoleTypeMappingCQ.java deleted file mode 100644 index 55c470527..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebConfigToRoleTypeMappingCQ.java +++ /dev/null @@ -1,861 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of WEB_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsWebConfigToRoleTypeMappingCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsWebConfigToRoleTypeMappingCQ( - final ConditionQuery referrerQuery, final SqlClause sqlClause, - final String aliasName, final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "WEB_CONFIG_TO_ROLE_TYPE_MAPPING"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigId The value of webConfigId as equal. (NullAllowed: if null, no condition) - */ - public void setWebConfigId_Equal(final Long webConfigId) { - doSetWebConfigId_Equal(webConfigId); - } - - protected void doSetWebConfigId_Equal(final Long webConfigId) { - regWebConfigId(CK_EQ, webConfigId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigId The value of webConfigId as notEqual. (NullAllowed: if null, no condition) - */ - public void setWebConfigId_NotEqual(final Long webConfigId) { - doSetWebConfigId_NotEqual(webConfigId); - } - - protected void doSetWebConfigId_NotEqual(final Long webConfigId) { - regWebConfigId(CK_NES, webConfigId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigId The value of webConfigId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setWebConfigId_GreaterThan(final Long webConfigId) { - regWebConfigId(CK_GT, webConfigId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigId The value of webConfigId as lessThan. (NullAllowed: if null, no condition) - */ - public void setWebConfigId_LessThan(final Long webConfigId) { - regWebConfigId(CK_LT, webConfigId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigId The value of webConfigId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setWebConfigId_GreaterEqual(final Long webConfigId) { - regWebConfigId(CK_GE, webConfigId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigId The value of webConfigId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setWebConfigId_LessEqual(final Long webConfigId) { - regWebConfigId(CK_LE, webConfigId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param minNumber The min number of webConfigId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of webConfigId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setWebConfigId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueWebConfigId(), "WEB_CONFIG_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigIdList The collection of webConfigId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setWebConfigId_InScope(final Collection<Long> webConfigIdList) { - doSetWebConfigId_InScope(webConfigIdList); - } - - protected void doSetWebConfigId_InScope( - final Collection<Long> webConfigIdList) { - regINS(CK_INS, cTL(webConfigIdList), getCValueWebConfigId(), - "WEB_CONFIG_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @param webConfigIdList The collection of webConfigId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setWebConfigId_NotInScope(final Collection<Long> webConfigIdList) { - doSetWebConfigId_NotInScope(webConfigIdList); - } - - protected void doSetWebConfigId_NotInScope( - final Collection<Long> webConfigIdList) { - regINS(CK_NINS, cTL(webConfigIdList), getCValueWebConfigId(), - "WEB_CONFIG_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select WEB_CONFIG_ID from WEB_CRAWLING_CONFIG where ...)} <br /> - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @param subQuery The sub-query of WebCrawlingConfig for 'in-scope'. (NotNull) - */ - public void inScopeWebCrawlingConfig( - final SubQuery<WebCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepWebConfigId_InScopeRelation_WebCrawlingConfig(cb - .query()); - registerInScopeRelation(cb.query(), "WEB_CONFIG_ID", "ID", pp, - "webCrawlingConfig"); - } - - public abstract String keepWebConfigId_InScopeRelation_WebCrawlingConfig( - WebCrawlingConfigCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select WEB_CONFIG_ID from WEB_CRAWLING_CONFIG where ...)} <br /> - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @param subQuery The sub-query of WebCrawlingConfig for 'not in-scope'. (NotNull) - */ - public void notInScopeWebCrawlingConfig( - final SubQuery<WebCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepWebConfigId_NotInScopeRelation_WebCrawlingConfig(cb - .query()); - registerNotInScopeRelation(cb.query(), "WEB_CONFIG_ID", "ID", pp, - "webCrawlingConfig"); - } - - public abstract String keepWebConfigId_NotInScopeRelation_WebCrawlingConfig( - WebCrawlingConfigCQ sq); - - protected void regWebConfigId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueWebConfigId(), "WEB_CONFIG_ID"); - } - - protected abstract ConditionValue getCValueWebConfigId(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as equal. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_Equal(final Long roleTypeId) { - doSetRoleTypeId_Equal(roleTypeId); - } - - protected void doSetRoleTypeId_Equal(final Long roleTypeId) { - regRoleTypeId(CK_EQ, roleTypeId); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as notEqual. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_NotEqual(final Long roleTypeId) { - doSetRoleTypeId_NotEqual(roleTypeId); - } - - protected void doSetRoleTypeId_NotEqual(final Long roleTypeId) { - regRoleTypeId(CK_NES, roleTypeId); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as greaterThan. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_GreaterThan(final Long roleTypeId) { - regRoleTypeId(CK_GT, roleTypeId); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as lessThan. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_LessThan(final Long roleTypeId) { - regRoleTypeId(CK_LT, roleTypeId); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_GreaterEqual(final Long roleTypeId) { - regRoleTypeId(CK_GE, roleTypeId); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeId The value of roleTypeId as lessEqual. (NullAllowed: if null, no condition) - */ - public void setRoleTypeId_LessEqual(final Long roleTypeId) { - regRoleTypeId(CK_LE, roleTypeId); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param minNumber The min number of roleTypeId. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of roleTypeId. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setRoleTypeId_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueRoleTypeId(), "ROLE_TYPE_ID", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeIdList The collection of roleTypeId as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setRoleTypeId_InScope(final Collection<Long> roleTypeIdList) { - doSetRoleTypeId_InScope(roleTypeIdList); - } - - protected void doSetRoleTypeId_InScope(final Collection<Long> roleTypeIdList) { - regINS(CK_INS, cTL(roleTypeIdList), getCValueRoleTypeId(), - "ROLE_TYPE_ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @param roleTypeIdList The collection of roleTypeId as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setRoleTypeId_NotInScope(final Collection<Long> roleTypeIdList) { - doSetRoleTypeId_NotInScope(roleTypeIdList); - } - - protected void doSetRoleTypeId_NotInScope( - final Collection<Long> roleTypeIdList) { - regINS(CK_NINS, cTL(roleTypeIdList), getCValueRoleTypeId(), - "ROLE_TYPE_ID"); - } - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select ROLE_TYPE_ID from ROLE_TYPE where ...)} <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @param subQuery The sub-query of RoleType for 'in-scope'. (NotNull) - */ - public void inScopeRoleType(final SubQuery<RoleTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepRoleTypeId_InScopeRelation_RoleType(cb.query()); - registerInScopeRelation(cb.query(), "ROLE_TYPE_ID", "ID", pp, - "roleType"); - } - - public abstract String keepRoleTypeId_InScopeRelation_RoleType(RoleTypeCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select ROLE_TYPE_ID from ROLE_TYPE where ...)} <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @param subQuery The sub-query of RoleType for 'not in-scope'. (NotNull) - */ - public void notInScopeRoleType(final SubQuery<RoleTypeCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RoleTypeCB cb = new RoleTypeCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepRoleTypeId_NotInScopeRelation_RoleType(cb.query()); - registerNotInScopeRelation(cb.query(), "ROLE_TYPE_ID", "ID", pp, - "roleType"); - } - - public abstract String keepRoleTypeId_NotInScopeRelation_RoleType( - RoleTypeCQ sq); - - protected void regRoleTypeId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueRoleTypeId(), "ROLE_TYPE_ID"); - } - - protected abstract ConditionValue getCValueRoleTypeId(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebConfigToRoleTypeMappingCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, WebConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebConfigToRoleTypeMappingCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, WebConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebConfigToRoleTypeMappingCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, WebConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebConfigToRoleTypeMappingCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, WebConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebConfigToRoleTypeMappingCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, WebConfigToRoleTypeMappingCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebConfigToRoleTypeMappingCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, WebConfigToRoleTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToRoleTypeMappingCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(WebConfigToRoleTypeMappingCQ sq); - - protected WebConfigToRoleTypeMappingCB xcreateScalarConditionCB() { - final WebConfigToRoleTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected WebConfigToRoleTypeMappingCB xcreateScalarConditionPartitionByCB() { - final WebConfigToRoleTypeMappingCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<WebConfigToRoleTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived( - WebConfigToRoleTypeMappingCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<WebConfigToRoleTypeMappingCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(WebConfigToRoleTypeMappingCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived( - WebConfigToRoleTypeMappingCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists( - final SubQuery<WebConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(WebConfigToRoleTypeMappingCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope( - final SubQuery<WebConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(WebConfigToRoleTypeMappingCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected WebConfigToRoleTypeMappingCB newMyCB() { - return new WebConfigToRoleTypeMappingCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return WebConfigToRoleTypeMappingCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebCrawlingConfigCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebCrawlingConfigCQ.java deleted file mode 100644 index c6b2b9872..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/AbstractBsWebCrawlingConfigCQ.java +++ /dev/null @@ -1,4166 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Collection; -import java.util.Date; -import java.util.List; - -import jp.sf.fess.db.allcommon.DBMetaInstanceHandler; -import jp.sf.fess.db.cbean.RequestHeaderCB; -import jp.sf.fess.db.cbean.WebAuthenticationCB; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.RequestHeaderCQ; -import jp.sf.fess.db.cbean.cq.WebAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.AbstractConditionQuery; -import org.seasar.dbflute.cbean.ConditionBean; -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ManualOrderBean; -import org.seasar.dbflute.cbean.SubQuery; -import org.seasar.dbflute.cbean.chelper.HpQDRFunction; -import org.seasar.dbflute.cbean.chelper.HpQDRSetupper; -import org.seasar.dbflute.cbean.chelper.HpSSQFunction; -import org.seasar.dbflute.cbean.chelper.HpSSQOption; -import org.seasar.dbflute.cbean.chelper.HpSSQSetupper; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.DerivedReferrerOption; -import org.seasar.dbflute.cbean.coption.FromToOption; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.dbflute.cbean.coption.RangeOfOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.dbmeta.DBMetaProvider; - -/** - * The abstract condition-query of WEB_CRAWLING_CONFIG. - * @author DBFlute(AutoGenerator) - */ -public abstract class AbstractBsWebCrawlingConfigCQ extends - AbstractConditionQuery { - - // =================================================================================== - // Constructor - // =========== - public AbstractBsWebCrawlingConfigCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // DBMeta Provider - // =============== - @Override - protected DBMetaProvider xgetDBMetaProvider() { - return DBMetaInstanceHandler.getProvider(); - } - - // =================================================================================== - // Table Name - // ========== - @Override - public String getTableDbName() { - return "WEB_CRAWLING_CONFIG"; - } - - // =================================================================================== - // Query - // ===== - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as equal. (NullAllowed: if null, no condition) - */ - public void setId_Equal(final Long id) { - doSetId_Equal(id); - } - - protected void doSetId_Equal(final Long id) { - regId(CK_EQ, id); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as notEqual. (NullAllowed: if null, no condition) - */ - public void setId_NotEqual(final Long id) { - doSetId_NotEqual(id); - } - - protected void doSetId_NotEqual(final Long id) { - regId(CK_NES, id); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterThan. (NullAllowed: if null, no condition) - */ - public void setId_GreaterThan(final Long id) { - regId(CK_GT, id); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessThan. (NullAllowed: if null, no condition) - */ - public void setId_LessThan(final Long id) { - regId(CK_LT, id); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setId_GreaterEqual(final Long id) { - regId(CK_GE, id); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param id The value of id as lessEqual. (NullAllowed: if null, no condition) - */ - public void setId_LessEqual(final Long id) { - regId(CK_LE, id); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param minNumber The min number of id. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of id. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setId_RangeOf(final Long minNumber, final Long maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueId(), "ID", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_InScope(final Collection<Long> idList) { - doSetId_InScope(idList); - } - - protected void doSetId_InScope(final Collection<Long> idList) { - regINS(CK_INS, cTL(idList), getCValueId(), "ID"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @param idList The collection of id as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setId_NotInScope(final Collection<Long> idList) { - doSetId_NotInScope(idList); - } - - protected void doSetId_NotInScope(final Collection<Long> idList) { - regINS(CK_NINS, cTL(idList), getCValueId(), "ID"); - } - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select WEB_CRAWLING_CONFIG_ID from REQUEST_HEADER where ...)} <br /> - * REQUEST_HEADER by WEB_CRAWLING_CONFIG_ID, named 'requestHeaderAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsRequestHeaderList</span>(new SubQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of RequestHeaderList for 'exists'. (NotNull) - */ - public void existsRequestHeaderList(final SubQuery<RequestHeaderCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_RequestHeaderList(cb.query()); - registerExistsReferrer(cb.query(), "ID", "WEB_CRAWLING_CONFIG_ID", pp, - "requestHeaderList"); - } - - public abstract String keepId_ExistsReferrer_RequestHeaderList( - RequestHeaderCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select WEB_CRAWLING_CONFIG_ID from WEB_AUTHENTICATION where ...)} <br /> - * WEB_AUTHENTICATION by WEB_CRAWLING_CONFIG_ID, named 'webAuthenticationAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsWebAuthenticationList</span>(new SubQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of WebAuthenticationList for 'exists'. (NotNull) - */ - public void existsWebAuthenticationList( - final SubQuery<WebAuthenticationCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_WebAuthenticationList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "WEB_CRAWLING_CONFIG_ID", pp, - "webAuthenticationList"); - } - - public abstract String keepId_ExistsReferrer_WebAuthenticationList( - WebAuthenticationCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select WEB_CONFIG_ID from WEB_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsWebConfigToLabelTypeMappingList</span>(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of WebConfigToLabelTypeMappingList for 'exists'. (NotNull) - */ - public void existsWebConfigToLabelTypeMappingList( - final SubQuery<WebConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_WebConfigToLabelTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "WEB_CONFIG_ID", pp, - "webConfigToLabelTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_WebConfigToLabelTypeMappingList( - WebConfigToLabelTypeMappingCQ sq); - - /** - * Set up ExistsReferrer (correlated sub-query). <br /> - * {exists (select WEB_CONFIG_ID from WEB_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">existsWebConfigToRoleTypeMappingList</span>(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of WebConfigToRoleTypeMappingList for 'exists'. (NotNull) - */ - public void existsWebConfigToRoleTypeMappingList( - final SubQuery<WebConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_ExistsReferrer_WebConfigToRoleTypeMappingList(cb - .query()); - registerExistsReferrer(cb.query(), "ID", "WEB_CONFIG_ID", pp, - "webConfigToRoleTypeMappingList"); - } - - public abstract String keepId_ExistsReferrer_WebConfigToRoleTypeMappingList( - WebConfigToRoleTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select WEB_CRAWLING_CONFIG_ID from REQUEST_HEADER where ...)} <br /> - * REQUEST_HEADER by WEB_CRAWLING_CONFIG_ID, named 'requestHeaderAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsRequestHeaderList</span>(new SubQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_RequestHeaderList for 'not exists'. (NotNull) - */ - public void notExistsRequestHeaderList( - final SubQuery<RequestHeaderCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_RequestHeaderList(cb.query()); - registerNotExistsReferrer(cb.query(), "ID", "WEB_CRAWLING_CONFIG_ID", - pp, "requestHeaderList"); - } - - public abstract String keepId_NotExistsReferrer_RequestHeaderList( - RequestHeaderCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select WEB_CRAWLING_CONFIG_ID from WEB_AUTHENTICATION where ...)} <br /> - * WEB_AUTHENTICATION by WEB_CRAWLING_CONFIG_ID, named 'webAuthenticationAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsWebAuthenticationList</span>(new SubQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_WebAuthenticationList for 'not exists'. (NotNull) - */ - public void notExistsWebAuthenticationList( - final SubQuery<WebAuthenticationCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_WebAuthenticationList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "WEB_CRAWLING_CONFIG_ID", - pp, "webAuthenticationList"); - } - - public abstract String keepId_NotExistsReferrer_WebAuthenticationList( - WebAuthenticationCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select WEB_CONFIG_ID from WEB_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsWebConfigToLabelTypeMappingList</span>(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_WebConfigToLabelTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsWebConfigToLabelTypeMappingList( - final SubQuery<WebConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_WebConfigToLabelTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "WEB_CONFIG_ID", pp, - "webConfigToLabelTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_WebConfigToLabelTypeMappingList( - WebConfigToLabelTypeMappingCQ sq); - - /** - * Set up NotExistsReferrer (correlated sub-query). <br /> - * {not exists (select WEB_CONFIG_ID from WEB_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">notExistsWebConfigToRoleTypeMappingList</span>(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.query().setXxx... - * } - * }); - * </pre> - * @param subQuery The sub-query of Id_NotExistsReferrer_WebConfigToRoleTypeMappingList for 'not exists'. (NotNull) - */ - public void notExistsWebConfigToRoleTypeMappingList( - final SubQuery<WebConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForExistsReferrer(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotExistsReferrer_WebConfigToRoleTypeMappingList(cb - .query()); - registerNotExistsReferrer(cb.query(), "ID", "WEB_CONFIG_ID", pp, - "webConfigToRoleTypeMappingList"); - } - - public abstract String keepId_NotExistsReferrer_WebConfigToRoleTypeMappingList( - WebConfigToRoleTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select WEB_CRAWLING_CONFIG_ID from REQUEST_HEADER where ...)} <br /> - * REQUEST_HEADER by WEB_CRAWLING_CONFIG_ID, named 'requestHeaderAsOne'. - * @param subQuery The sub-query of RequestHeaderList for 'in-scope'. (NotNull) - */ - public void inScopeRequestHeaderList( - final SubQuery<RequestHeaderCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_RequestHeaderList(cb.query()); - registerInScopeRelation(cb.query(), "ID", "WEB_CRAWLING_CONFIG_ID", pp, - "requestHeaderList"); - } - - public abstract String keepId_InScopeRelation_RequestHeaderList( - RequestHeaderCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select WEB_CRAWLING_CONFIG_ID from WEB_AUTHENTICATION where ...)} <br /> - * WEB_AUTHENTICATION by WEB_CRAWLING_CONFIG_ID, named 'webAuthenticationAsOne'. - * @param subQuery The sub-query of WebAuthenticationList for 'in-scope'. (NotNull) - */ - public void inScopeWebAuthenticationList( - final SubQuery<WebAuthenticationCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_WebAuthenticationList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "WEB_CRAWLING_CONFIG_ID", pp, - "webAuthenticationList"); - } - - public abstract String keepId_InScopeRelation_WebAuthenticationList( - WebAuthenticationCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select WEB_CONFIG_ID from WEB_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToLabelTypeMappingAsOne'. - * @param subQuery The sub-query of WebConfigToLabelTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeWebConfigToLabelTypeMappingList( - final SubQuery<WebConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_WebConfigToLabelTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "WEB_CONFIG_ID", pp, - "webConfigToLabelTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_WebConfigToLabelTypeMappingList( - WebConfigToLabelTypeMappingCQ sq); - - /** - * Set up InScopeRelation (sub-query). <br /> - * {in (select WEB_CONFIG_ID from WEB_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of WebConfigToRoleTypeMappingList for 'in-scope'. (NotNull) - */ - public void inScopeWebConfigToRoleTypeMappingList( - final SubQuery<WebConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_InScopeRelation_WebConfigToRoleTypeMappingList(cb - .query()); - registerInScopeRelation(cb.query(), "ID", "WEB_CONFIG_ID", pp, - "webConfigToRoleTypeMappingList"); - } - - public abstract String keepId_InScopeRelation_WebConfigToRoleTypeMappingList( - WebConfigToRoleTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select WEB_CRAWLING_CONFIG_ID from REQUEST_HEADER where ...)} <br /> - * REQUEST_HEADER by WEB_CRAWLING_CONFIG_ID, named 'requestHeaderAsOne'. - * @param subQuery The sub-query of RequestHeaderList for 'not in-scope'. (NotNull) - */ - public void notInScopeRequestHeaderList( - final SubQuery<RequestHeaderCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_RequestHeaderList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "WEB_CRAWLING_CONFIG_ID", - pp, "requestHeaderList"); - } - - public abstract String keepId_NotInScopeRelation_RequestHeaderList( - RequestHeaderCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select WEB_CRAWLING_CONFIG_ID from WEB_AUTHENTICATION where ...)} <br /> - * WEB_AUTHENTICATION by WEB_CRAWLING_CONFIG_ID, named 'webAuthenticationAsOne'. - * @param subQuery The sub-query of WebAuthenticationList for 'not in-scope'. (NotNull) - */ - public void notInScopeWebAuthenticationList( - final SubQuery<WebAuthenticationCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_WebAuthenticationList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "WEB_CRAWLING_CONFIG_ID", - pp, "webAuthenticationList"); - } - - public abstract String keepId_NotInScopeRelation_WebAuthenticationList( - WebAuthenticationCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select WEB_CONFIG_ID from WEB_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToLabelTypeMappingAsOne'. - * @param subQuery The sub-query of WebConfigToLabelTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeWebConfigToLabelTypeMappingList( - final SubQuery<WebConfigToLabelTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_WebConfigToLabelTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "WEB_CONFIG_ID", pp, - "webConfigToLabelTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_WebConfigToLabelTypeMappingList( - WebConfigToLabelTypeMappingCQ sq); - - /** - * Set up NotInScopeRelation (sub-query). <br /> - * {not in (select WEB_CONFIG_ID from WEB_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToRoleTypeMappingAsOne'. - * @param subQuery The sub-query of WebConfigToRoleTypeMappingList for 'not in-scope'. (NotNull) - */ - public void notInScopeWebConfigToRoleTypeMappingList( - final SubQuery<WebConfigToRoleTypeMappingCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForInScopeRelation(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepId_NotInScopeRelation_WebConfigToRoleTypeMappingList(cb - .query()); - registerNotInScopeRelation(cb.query(), "ID", "WEB_CONFIG_ID", pp, - "webConfigToRoleTypeMappingList"); - } - - public abstract String keepId_NotInScopeRelation_WebConfigToRoleTypeMappingList( - WebConfigToRoleTypeMappingCQ sq); - - public void xsderiveRequestHeaderList(final String fn, - final SubQuery<RequestHeaderCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_RequestHeaderList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", - "WEB_CRAWLING_CONFIG_ID", pp, "requestHeaderList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_RequestHeaderList( - RequestHeaderCQ sq); - - public void xsderiveWebAuthenticationList(final String fn, - final SubQuery<WebAuthenticationCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_WebAuthenticationList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", - "WEB_CRAWLING_CONFIG_ID", pp, "webAuthenticationList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_WebAuthenticationList( - WebAuthenticationCQ sq); - - public void xsderiveWebConfigToLabelTypeMappingList(final String fn, - final SubQuery<WebConfigToLabelTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "WEB_CONFIG_ID", - pp, "webConfigToLabelTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList( - WebConfigToLabelTypeMappingCQ sq); - - public void xsderiveWebConfigToRoleTypeMappingList(final String fn, - final SubQuery<WebConfigToRoleTypeMappingCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepId_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList(cb - .query()); - registerSpecifyDerivedReferrer(fn, cb.query(), "ID", "WEB_CONFIG_ID", - pp, "webConfigToRoleTypeMappingList", al, op); - } - - public abstract String keepId_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList( - WebConfigToRoleTypeMappingCQ sq); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from REQUEST_HEADER where ...)} <br /> - * REQUEST_HEADER by WEB_CRAWLING_CONFIG_ID, named 'requestHeaderAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedRequestHeaderList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<RequestHeaderCB>() { - * public void query(RequestHeaderCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<RequestHeaderCB> derivedRequestHeaderList() { - return xcreateQDRFunctionRequestHeaderList(); - } - - protected HpQDRFunction<RequestHeaderCB> xcreateQDRFunctionRequestHeaderList() { - return new HpQDRFunction<RequestHeaderCB>( - new HpQDRSetupper<RequestHeaderCB>() { - @Override - public void setup(final String fn, - final SubQuery<RequestHeaderCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveRequestHeaderList(fn, sq, rd, vl, op); - } - }); - } - - public void xqderiveRequestHeaderList(final String fn, - final SubQuery<RequestHeaderCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_RequestHeaderList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_RequestHeaderListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", - "WEB_CRAWLING_CONFIG_ID", sqpp, "requestHeaderList", rd, vl, - prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_RequestHeaderList( - RequestHeaderCQ sq); - - public abstract String keepId_QueryDerivedReferrer_RequestHeaderListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from WEB_AUTHENTICATION where ...)} <br /> - * WEB_AUTHENTICATION by WEB_CRAWLING_CONFIG_ID, named 'webAuthenticationAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedWebAuthenticationList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<WebAuthenticationCB>() { - * public void query(WebAuthenticationCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<WebAuthenticationCB> derivedWebAuthenticationList() { - return xcreateQDRFunctionWebAuthenticationList(); - } - - protected HpQDRFunction<WebAuthenticationCB> xcreateQDRFunctionWebAuthenticationList() { - return new HpQDRFunction<WebAuthenticationCB>( - new HpQDRSetupper<WebAuthenticationCB>() { - @Override - public void setup(final String fn, - final SubQuery<WebAuthenticationCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveWebAuthenticationList(fn, sq, rd, vl, op); - } - }); - } - - public void xqderiveWebAuthenticationList(final String fn, - final SubQuery<WebAuthenticationCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_WebAuthenticationList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_WebAuthenticationListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", - "WEB_CRAWLING_CONFIG_ID", sqpp, "webAuthenticationList", rd, - vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_WebAuthenticationList( - WebAuthenticationCQ sq); - - public abstract String keepId_QueryDerivedReferrer_WebAuthenticationListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from WEB_CONFIG_TO_LABEL_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_LABEL_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToLabelTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedWebConfigToLabelTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<WebConfigToLabelTypeMappingCB>() { - * public void query(WebConfigToLabelTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<WebConfigToLabelTypeMappingCB> derivedWebConfigToLabelTypeMappingList() { - return xcreateQDRFunctionWebConfigToLabelTypeMappingList(); - } - - protected HpQDRFunction<WebConfigToLabelTypeMappingCB> xcreateQDRFunctionWebConfigToLabelTypeMappingList() { - return new HpQDRFunction<WebConfigToLabelTypeMappingCB>( - new HpQDRSetupper<WebConfigToLabelTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<WebConfigToLabelTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveWebConfigToLabelTypeMappingList(fn, sq, rd, vl, - op); - } - }); - } - - public void xqderiveWebConfigToLabelTypeMappingList(final String fn, - final SubQuery<WebConfigToLabelTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "WEB_CONFIG_ID", - sqpp, "webConfigToLabelTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingList( - WebConfigToLabelTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingListParameter( - Object vl); - - /** - * Prepare for (Query)DerivedReferrer (correlated sub-query). <br /> - * {FOO <= (select max(BAR) from WEB_CONFIG_TO_ROLE_TYPE_MAPPING where ...)} <br /> - * WEB_CONFIG_TO_ROLE_TYPE_MAPPING by WEB_CONFIG_ID, named 'webConfigToRoleTypeMappingAsOne'. - * <pre> - * cb.query().<span style="color: #DD4747">derivedWebConfigToRoleTypeMappingList()</span>.<span style="color: #DD4747">max</span>(new SubQuery<WebConfigToRoleTypeMappingCB>() { - * public void query(WebConfigToRoleTypeMappingCB subCB) { - * subCB.specify().<span style="color: #DD4747">columnFoo...</span> <span style="color: #3F7E5E">// derived column by function</span> - * subCB.query().setBar... <span style="color: #3F7E5E">// referrer condition</span> - * } - * }).<span style="color: #DD4747">greaterEqual</span>(123); <span style="color: #3F7E5E">// condition to derived column</span> - * </pre> - * @return The object to set up a function for referrer table. (NotNull) - */ - public HpQDRFunction<WebConfigToRoleTypeMappingCB> derivedWebConfigToRoleTypeMappingList() { - return xcreateQDRFunctionWebConfigToRoleTypeMappingList(); - } - - protected HpQDRFunction<WebConfigToRoleTypeMappingCB> xcreateQDRFunctionWebConfigToRoleTypeMappingList() { - return new HpQDRFunction<WebConfigToRoleTypeMappingCB>( - new HpQDRSetupper<WebConfigToRoleTypeMappingCB>() { - @Override - public void setup(final String fn, - final SubQuery<WebConfigToRoleTypeMappingCB> sq, - final String rd, final Object vl, - final DerivedReferrerOption op) { - xqderiveWebConfigToRoleTypeMappingList(fn, sq, rd, vl, - op); - } - }); - } - - public void xqderiveWebConfigToRoleTypeMappingList(final String fn, - final SubQuery<WebConfigToRoleTypeMappingCB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String sqpp = keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingList(cb - .query()); - final String prpp = keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingListParameter(vl); - registerQueryDerivedReferrer(fn, cb.query(), "ID", "WEB_CONFIG_ID", - sqpp, "webConfigToRoleTypeMappingList", rd, vl, prpp, op); - } - - public abstract String keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingList( - WebConfigToRoleTypeMappingCQ sq); - - public abstract String keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingListParameter( - Object vl); - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNull() { - regId(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - */ - public void setId_IsNotNull() { - regId(CK_ISNN, DOBJ); - } - - protected void regId(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueId(), "ID"); - } - - protected abstract ConditionValue getCValueId(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setName_Equal(final String name) { - doSetName_Equal(fRES(name)); - } - - protected void doSetName_Equal(final String name) { - regName(CK_EQ, name); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotEqual(final String name) { - doSetName_NotEqual(fRES(name)); - } - - protected void doSetName_NotEqual(final String name) { - regName(CK_NES, name); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterThan(final String name) { - regName(CK_GT, fRES(name)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessThan(final String name) { - regName(CK_LT, fRES(name)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_GreaterEqual(final String name) { - regName(CK_GE, fRES(name)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setName_LessEqual(final String name) { - regName(CK_LE, fRES(name)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param nameList The collection of name as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_InScope(final Collection<String> nameList) { - doSetName_InScope(nameList); - } - - public void doSetName_InScope(final Collection<String> nameList) { - regINS(CK_INS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param nameList The collection of name as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setName_NotInScope(final Collection<String> nameList) { - doSetName_NotInScope(nameList); - } - - public void doSetName_NotInScope(final Collection<String> nameList) { - regINS(CK_NINS, cTL(nameList), getCValueName(), "NAME"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setName_PrefixSearch(final String name) { - setName_LikeSearch(name, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} <br /> - * <pre>e.g. setName_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param name The value of name as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setName_LikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @param name The value of name as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setName_NotLikeSearch(final String name, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(name), getCValueName(), "NAME", likeSearchOption); - } - - protected void regName(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueName(), "NAME"); - } - - protected abstract ConditionValue getCValueName(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URLS: {NotNull, VARCHAR(4000)} - * @param urls The value of urls as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUrls_Equal(final String urls) { - doSetUrls_Equal(fRES(urls)); - } - - protected void doSetUrls_Equal(final String urls) { - regUrls(CK_EQ, urls); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URLS: {NotNull, VARCHAR(4000)} - * @param urls The value of urls as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrls_NotEqual(final String urls) { - doSetUrls_NotEqual(fRES(urls)); - } - - protected void doSetUrls_NotEqual(final String urls) { - regUrls(CK_NES, urls); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URLS: {NotNull, VARCHAR(4000)} - * @param urls The value of urls as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUrls_GreaterThan(final String urls) { - regUrls(CK_GT, fRES(urls)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URLS: {NotNull, VARCHAR(4000)} - * @param urls The value of urls as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUrls_LessThan(final String urls) { - regUrls(CK_LT, fRES(urls)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URLS: {NotNull, VARCHAR(4000)} - * @param urls The value of urls as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrls_GreaterEqual(final String urls) { - regUrls(CK_GE, fRES(urls)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * URLS: {NotNull, VARCHAR(4000)} - * @param urls The value of urls as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUrls_LessEqual(final String urls) { - regUrls(CK_LE, fRES(urls)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * URLS: {NotNull, VARCHAR(4000)} - * @param urlsList The collection of urls as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUrls_InScope(final Collection<String> urlsList) { - doSetUrls_InScope(urlsList); - } - - public void doSetUrls_InScope(final Collection<String> urlsList) { - regINS(CK_INS, cTL(urlsList), getCValueUrls(), "URLS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * URLS: {NotNull, VARCHAR(4000)} - * @param urlsList The collection of urls as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUrls_NotInScope(final Collection<String> urlsList) { - doSetUrls_NotInScope(urlsList); - } - - public void doSetUrls_NotInScope(final Collection<String> urlsList) { - regINS(CK_NINS, cTL(urlsList), getCValueUrls(), "URLS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URLS: {NotNull, VARCHAR(4000)} - * @param urls The value of urls as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUrls_PrefixSearch(final String urls) { - setUrls_LikeSearch(urls, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URLS: {NotNull, VARCHAR(4000)} <br /> - * <pre>e.g. setUrls_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param urls The value of urls as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUrls_LikeSearch(final String urls, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(urls), getCValueUrls(), "URLS", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * URLS: {NotNull, VARCHAR(4000)} - * @param urls The value of urls as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUrls_NotLikeSearch(final String urls, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(urls), getCValueUrls(), "URLS", likeSearchOption); - } - - protected void regUrls(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUrls(), "URLS"); - } - - protected abstract ConditionValue getCValueUrls(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - * @param includedUrls The value of includedUrls as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedUrls_Equal(final String includedUrls) { - doSetIncludedUrls_Equal(fRES(includedUrls)); - } - - protected void doSetIncludedUrls_Equal(final String includedUrls) { - regIncludedUrls(CK_EQ, includedUrls); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - * @param includedUrls The value of includedUrls as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedUrls_NotEqual(final String includedUrls) { - doSetIncludedUrls_NotEqual(fRES(includedUrls)); - } - - protected void doSetIncludedUrls_NotEqual(final String includedUrls) { - regIncludedUrls(CK_NES, includedUrls); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - * @param includedUrls The value of includedUrls as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedUrls_GreaterThan(final String includedUrls) { - regIncludedUrls(CK_GT, fRES(includedUrls)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - * @param includedUrls The value of includedUrls as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedUrls_LessThan(final String includedUrls) { - regIncludedUrls(CK_LT, fRES(includedUrls)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - * @param includedUrls The value of includedUrls as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedUrls_GreaterEqual(final String includedUrls) { - regIncludedUrls(CK_GE, fRES(includedUrls)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - * @param includedUrls The value of includedUrls as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedUrls_LessEqual(final String includedUrls) { - regIncludedUrls(CK_LE, fRES(includedUrls)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - * @param includedUrlsList The collection of includedUrls as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedUrls_InScope( - final Collection<String> includedUrlsList) { - doSetIncludedUrls_InScope(includedUrlsList); - } - - public void doSetIncludedUrls_InScope( - final Collection<String> includedUrlsList) { - regINS(CK_INS, cTL(includedUrlsList), getCValueIncludedUrls(), - "INCLUDED_URLS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - * @param includedUrlsList The collection of includedUrls as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedUrls_NotInScope( - final Collection<String> includedUrlsList) { - doSetIncludedUrls_NotInScope(includedUrlsList); - } - - public void doSetIncludedUrls_NotInScope( - final Collection<String> includedUrlsList) { - regINS(CK_NINS, cTL(includedUrlsList), getCValueIncludedUrls(), - "INCLUDED_URLS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - * @param includedUrls The value of includedUrls as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedUrls_PrefixSearch(final String includedUrls) { - setIncludedUrls_LikeSearch(includedUrls, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} <br /> - * <pre>e.g. setIncludedUrls_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param includedUrls The value of includedUrls as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setIncludedUrls_LikeSearch(final String includedUrls, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(includedUrls), getCValueIncludedUrls(), - "INCLUDED_URLS", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - * @param includedUrls The value of includedUrls as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setIncludedUrls_NotLikeSearch(final String includedUrls, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(includedUrls), getCValueIncludedUrls(), - "INCLUDED_URLS", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - */ - public void setIncludedUrls_IsNull() { - regIncludedUrls(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - */ - public void setIncludedUrls_IsNullOrEmpty() { - regIncludedUrls(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - */ - public void setIncludedUrls_IsNotNull() { - regIncludedUrls(CK_ISNN, DOBJ); - } - - protected void regIncludedUrls(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueIncludedUrls(), "INCLUDED_URLS"); - } - - protected abstract ConditionValue getCValueIncludedUrls(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - * @param excludedUrls The value of excludedUrls as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedUrls_Equal(final String excludedUrls) { - doSetExcludedUrls_Equal(fRES(excludedUrls)); - } - - protected void doSetExcludedUrls_Equal(final String excludedUrls) { - regExcludedUrls(CK_EQ, excludedUrls); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - * @param excludedUrls The value of excludedUrls as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedUrls_NotEqual(final String excludedUrls) { - doSetExcludedUrls_NotEqual(fRES(excludedUrls)); - } - - protected void doSetExcludedUrls_NotEqual(final String excludedUrls) { - regExcludedUrls(CK_NES, excludedUrls); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - * @param excludedUrls The value of excludedUrls as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedUrls_GreaterThan(final String excludedUrls) { - regExcludedUrls(CK_GT, fRES(excludedUrls)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - * @param excludedUrls The value of excludedUrls as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedUrls_LessThan(final String excludedUrls) { - regExcludedUrls(CK_LT, fRES(excludedUrls)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - * @param excludedUrls The value of excludedUrls as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedUrls_GreaterEqual(final String excludedUrls) { - regExcludedUrls(CK_GE, fRES(excludedUrls)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - * @param excludedUrls The value of excludedUrls as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedUrls_LessEqual(final String excludedUrls) { - regExcludedUrls(CK_LE, fRES(excludedUrls)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - * @param excludedUrlsList The collection of excludedUrls as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedUrls_InScope( - final Collection<String> excludedUrlsList) { - doSetExcludedUrls_InScope(excludedUrlsList); - } - - public void doSetExcludedUrls_InScope( - final Collection<String> excludedUrlsList) { - regINS(CK_INS, cTL(excludedUrlsList), getCValueExcludedUrls(), - "EXCLUDED_URLS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - * @param excludedUrlsList The collection of excludedUrls as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedUrls_NotInScope( - final Collection<String> excludedUrlsList) { - doSetExcludedUrls_NotInScope(excludedUrlsList); - } - - public void doSetExcludedUrls_NotInScope( - final Collection<String> excludedUrlsList) { - regINS(CK_NINS, cTL(excludedUrlsList), getCValueExcludedUrls(), - "EXCLUDED_URLS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - * @param excludedUrls The value of excludedUrls as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedUrls_PrefixSearch(final String excludedUrls) { - setExcludedUrls_LikeSearch(excludedUrls, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} <br /> - * <pre>e.g. setExcludedUrls_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param excludedUrls The value of excludedUrls as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setExcludedUrls_LikeSearch(final String excludedUrls, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(excludedUrls), getCValueExcludedUrls(), - "EXCLUDED_URLS", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - * @param excludedUrls The value of excludedUrls as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setExcludedUrls_NotLikeSearch(final String excludedUrls, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(excludedUrls), getCValueExcludedUrls(), - "EXCLUDED_URLS", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - */ - public void setExcludedUrls_IsNull() { - regExcludedUrls(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - */ - public void setExcludedUrls_IsNullOrEmpty() { - regExcludedUrls(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - */ - public void setExcludedUrls_IsNotNull() { - regExcludedUrls(CK_ISNN, DOBJ); - } - - protected void regExcludedUrls(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueExcludedUrls(), "EXCLUDED_URLS"); - } - - protected abstract ConditionValue getCValueExcludedUrls(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param includedDocUrls The value of includedDocUrls as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocUrls_Equal(final String includedDocUrls) { - doSetIncludedDocUrls_Equal(fRES(includedDocUrls)); - } - - protected void doSetIncludedDocUrls_Equal(final String includedDocUrls) { - regIncludedDocUrls(CK_EQ, includedDocUrls); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param includedDocUrls The value of includedDocUrls as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocUrls_NotEqual(final String includedDocUrls) { - doSetIncludedDocUrls_NotEqual(fRES(includedDocUrls)); - } - - protected void doSetIncludedDocUrls_NotEqual(final String includedDocUrls) { - regIncludedDocUrls(CK_NES, includedDocUrls); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param includedDocUrls The value of includedDocUrls as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocUrls_GreaterThan(final String includedDocUrls) { - regIncludedDocUrls(CK_GT, fRES(includedDocUrls)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param includedDocUrls The value of includedDocUrls as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocUrls_LessThan(final String includedDocUrls) { - regIncludedDocUrls(CK_LT, fRES(includedDocUrls)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param includedDocUrls The value of includedDocUrls as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocUrls_GreaterEqual(final String includedDocUrls) { - regIncludedDocUrls(CK_GE, fRES(includedDocUrls)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param includedDocUrls The value of includedDocUrls as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocUrls_LessEqual(final String includedDocUrls) { - regIncludedDocUrls(CK_LE, fRES(includedDocUrls)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param includedDocUrlsList The collection of includedDocUrls as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocUrls_InScope( - final Collection<String> includedDocUrlsList) { - doSetIncludedDocUrls_InScope(includedDocUrlsList); - } - - public void doSetIncludedDocUrls_InScope( - final Collection<String> includedDocUrlsList) { - regINS(CK_INS, cTL(includedDocUrlsList), getCValueIncludedDocUrls(), - "INCLUDED_DOC_URLS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param includedDocUrlsList The collection of includedDocUrls as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocUrls_NotInScope( - final Collection<String> includedDocUrlsList) { - doSetIncludedDocUrls_NotInScope(includedDocUrlsList); - } - - public void doSetIncludedDocUrls_NotInScope( - final Collection<String> includedDocUrlsList) { - regINS(CK_NINS, cTL(includedDocUrlsList), getCValueIncludedDocUrls(), - "INCLUDED_DOC_URLS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param includedDocUrls The value of includedDocUrls as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setIncludedDocUrls_PrefixSearch(final String includedDocUrls) { - setIncludedDocUrls_LikeSearch(includedDocUrls, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} <br /> - * <pre>e.g. setIncludedDocUrls_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param includedDocUrls The value of includedDocUrls as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setIncludedDocUrls_LikeSearch(final String includedDocUrls, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(includedDocUrls), getCValueIncludedDocUrls(), - "INCLUDED_DOC_URLS", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param includedDocUrls The value of includedDocUrls as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setIncludedDocUrls_NotLikeSearch(final String includedDocUrls, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(includedDocUrls), getCValueIncludedDocUrls(), - "INCLUDED_DOC_URLS", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - */ - public void setIncludedDocUrls_IsNull() { - regIncludedDocUrls(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - */ - public void setIncludedDocUrls_IsNullOrEmpty() { - regIncludedDocUrls(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - */ - public void setIncludedDocUrls_IsNotNull() { - regIncludedDocUrls(CK_ISNN, DOBJ); - } - - protected void regIncludedDocUrls(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueIncludedDocUrls(), "INCLUDED_DOC_URLS"); - } - - protected abstract ConditionValue getCValueIncludedDocUrls(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param excludedDocUrls The value of excludedDocUrls as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocUrls_Equal(final String excludedDocUrls) { - doSetExcludedDocUrls_Equal(fRES(excludedDocUrls)); - } - - protected void doSetExcludedDocUrls_Equal(final String excludedDocUrls) { - regExcludedDocUrls(CK_EQ, excludedDocUrls); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param excludedDocUrls The value of excludedDocUrls as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocUrls_NotEqual(final String excludedDocUrls) { - doSetExcludedDocUrls_NotEqual(fRES(excludedDocUrls)); - } - - protected void doSetExcludedDocUrls_NotEqual(final String excludedDocUrls) { - regExcludedDocUrls(CK_NES, excludedDocUrls); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param excludedDocUrls The value of excludedDocUrls as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocUrls_GreaterThan(final String excludedDocUrls) { - regExcludedDocUrls(CK_GT, fRES(excludedDocUrls)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param excludedDocUrls The value of excludedDocUrls as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocUrls_LessThan(final String excludedDocUrls) { - regExcludedDocUrls(CK_LT, fRES(excludedDocUrls)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param excludedDocUrls The value of excludedDocUrls as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocUrls_GreaterEqual(final String excludedDocUrls) { - regExcludedDocUrls(CK_GE, fRES(excludedDocUrls)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param excludedDocUrls The value of excludedDocUrls as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocUrls_LessEqual(final String excludedDocUrls) { - regExcludedDocUrls(CK_LE, fRES(excludedDocUrls)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param excludedDocUrlsList The collection of excludedDocUrls as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocUrls_InScope( - final Collection<String> excludedDocUrlsList) { - doSetExcludedDocUrls_InScope(excludedDocUrlsList); - } - - public void doSetExcludedDocUrls_InScope( - final Collection<String> excludedDocUrlsList) { - regINS(CK_INS, cTL(excludedDocUrlsList), getCValueExcludedDocUrls(), - "EXCLUDED_DOC_URLS"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param excludedDocUrlsList The collection of excludedDocUrls as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocUrls_NotInScope( - final Collection<String> excludedDocUrlsList) { - doSetExcludedDocUrls_NotInScope(excludedDocUrlsList); - } - - public void doSetExcludedDocUrls_NotInScope( - final Collection<String> excludedDocUrlsList) { - regINS(CK_NINS, cTL(excludedDocUrlsList), getCValueExcludedDocUrls(), - "EXCLUDED_DOC_URLS"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param excludedDocUrls The value of excludedDocUrls as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setExcludedDocUrls_PrefixSearch(final String excludedDocUrls) { - setExcludedDocUrls_LikeSearch(excludedDocUrls, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} <br /> - * <pre>e.g. setExcludedDocUrls_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param excludedDocUrls The value of excludedDocUrls as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setExcludedDocUrls_LikeSearch(final String excludedDocUrls, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(excludedDocUrls), getCValueExcludedDocUrls(), - "EXCLUDED_DOC_URLS", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @param excludedDocUrls The value of excludedDocUrls as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setExcludedDocUrls_NotLikeSearch(final String excludedDocUrls, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(excludedDocUrls), getCValueExcludedDocUrls(), - "EXCLUDED_DOC_URLS", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - */ - public void setExcludedDocUrls_IsNull() { - regExcludedDocUrls(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - */ - public void setExcludedDocUrls_IsNullOrEmpty() { - regExcludedDocUrls(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - */ - public void setExcludedDocUrls_IsNotNull() { - regExcludedDocUrls(CK_ISNN, DOBJ); - } - - protected void regExcludedDocUrls(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueExcludedDocUrls(), "EXCLUDED_DOC_URLS"); - } - - protected abstract ConditionValue getCValueExcludedDocUrls(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_Equal(final String configParameter) { - doSetConfigParameter_Equal(fRES(configParameter)); - } - - protected void doSetConfigParameter_Equal(final String configParameter) { - regConfigParameter(CK_EQ, configParameter); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_NotEqual(final String configParameter) { - doSetConfigParameter_NotEqual(fRES(configParameter)); - } - - protected void doSetConfigParameter_NotEqual(final String configParameter) { - regConfigParameter(CK_NES, configParameter); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_GreaterThan(final String configParameter) { - regConfigParameter(CK_GT, fRES(configParameter)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_LessThan(final String configParameter) { - regConfigParameter(CK_LT, fRES(configParameter)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_GreaterEqual(final String configParameter) { - regConfigParameter(CK_GE, fRES(configParameter)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_LessEqual(final String configParameter) { - regConfigParameter(CK_LE, fRES(configParameter)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameterList The collection of configParameter as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_InScope( - final Collection<String> configParameterList) { - doSetConfigParameter_InScope(configParameterList); - } - - public void doSetConfigParameter_InScope( - final Collection<String> configParameterList) { - regINS(CK_INS, cTL(configParameterList), getCValueConfigParameter(), - "CONFIG_PARAMETER"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameterList The collection of configParameter as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_NotInScope( - final Collection<String> configParameterList) { - doSetConfigParameter_NotInScope(configParameterList); - } - - public void doSetConfigParameter_NotInScope( - final Collection<String> configParameterList) { - regINS(CK_NINS, cTL(configParameterList), getCValueConfigParameter(), - "CONFIG_PARAMETER"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setConfigParameter_PrefixSearch(final String configParameter) { - setConfigParameter_LikeSearch(configParameter, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} <br /> - * <pre>e.g. setConfigParameter_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param configParameter The value of configParameter as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setConfigParameter_LikeSearch(final String configParameter, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(configParameter), getCValueConfigParameter(), - "CONFIG_PARAMETER", likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @param configParameter The value of configParameter as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setConfigParameter_NotLikeSearch(final String configParameter, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(configParameter), getCValueConfigParameter(), - "CONFIG_PARAMETER", likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - */ - public void setConfigParameter_IsNull() { - regConfigParameter(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - */ - public void setConfigParameter_IsNullOrEmpty() { - regConfigParameter(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - */ - public void setConfigParameter_IsNotNull() { - regConfigParameter(CK_ISNN, DOBJ); - } - - protected void regConfigParameter(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueConfigParameter(), "CONFIG_PARAMETER"); - } - - protected abstract ConditionValue getCValueConfigParameter(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depth The value of depth as equal. (NullAllowed: if null, no condition) - */ - public void setDepth_Equal(final Integer depth) { - doSetDepth_Equal(depth); - } - - protected void doSetDepth_Equal(final Integer depth) { - regDepth(CK_EQ, depth); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depth The value of depth as notEqual. (NullAllowed: if null, no condition) - */ - public void setDepth_NotEqual(final Integer depth) { - doSetDepth_NotEqual(depth); - } - - protected void doSetDepth_NotEqual(final Integer depth) { - regDepth(CK_NES, depth); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depth The value of depth as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDepth_GreaterThan(final Integer depth) { - regDepth(CK_GT, depth); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depth The value of depth as lessThan. (NullAllowed: if null, no condition) - */ - public void setDepth_LessThan(final Integer depth) { - regDepth(CK_LT, depth); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depth The value of depth as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDepth_GreaterEqual(final Integer depth) { - regDepth(CK_GE, depth); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depth The value of depth as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDepth_LessEqual(final Integer depth) { - regDepth(CK_LE, depth); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param minNumber The min number of depth. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of depth. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setDepth_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueDepth(), "DEPTH", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depthList The collection of depth as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDepth_InScope(final Collection<Integer> depthList) { - doSetDepth_InScope(depthList); - } - - protected void doSetDepth_InScope(final Collection<Integer> depthList) { - regINS(CK_INS, cTL(depthList), getCValueDepth(), "DEPTH"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * DEPTH: {INTEGER(10)} - * @param depthList The collection of depth as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDepth_NotInScope(final Collection<Integer> depthList) { - doSetDepth_NotInScope(depthList); - } - - protected void doSetDepth_NotInScope(final Collection<Integer> depthList) { - regINS(CK_NINS, cTL(depthList), getCValueDepth(), "DEPTH"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - */ - public void setDepth_IsNull() { - regDepth(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DEPTH: {INTEGER(10)} - */ - public void setDepth_IsNotNull() { - regDepth(CK_ISNN, DOBJ); - } - - protected void regDepth(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDepth(), "DEPTH"); - } - - protected abstract ConditionValue getCValueDepth(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCount The value of maxAccessCount as equal. (NullAllowed: if null, no condition) - */ - public void setMaxAccessCount_Equal(final Long maxAccessCount) { - doSetMaxAccessCount_Equal(maxAccessCount); - } - - protected void doSetMaxAccessCount_Equal(final Long maxAccessCount) { - regMaxAccessCount(CK_EQ, maxAccessCount); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCount The value of maxAccessCount as notEqual. (NullAllowed: if null, no condition) - */ - public void setMaxAccessCount_NotEqual(final Long maxAccessCount) { - doSetMaxAccessCount_NotEqual(maxAccessCount); - } - - protected void doSetMaxAccessCount_NotEqual(final Long maxAccessCount) { - regMaxAccessCount(CK_NES, maxAccessCount); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCount The value of maxAccessCount as greaterThan. (NullAllowed: if null, no condition) - */ - public void setMaxAccessCount_GreaterThan(final Long maxAccessCount) { - regMaxAccessCount(CK_GT, maxAccessCount); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCount The value of maxAccessCount as lessThan. (NullAllowed: if null, no condition) - */ - public void setMaxAccessCount_LessThan(final Long maxAccessCount) { - regMaxAccessCount(CK_LT, maxAccessCount); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCount The value of maxAccessCount as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setMaxAccessCount_GreaterEqual(final Long maxAccessCount) { - regMaxAccessCount(CK_GE, maxAccessCount); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCount The value of maxAccessCount as lessEqual. (NullAllowed: if null, no condition) - */ - public void setMaxAccessCount_LessEqual(final Long maxAccessCount) { - regMaxAccessCount(CK_LE, maxAccessCount); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param minNumber The min number of maxAccessCount. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of maxAccessCount. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setMaxAccessCount_RangeOf(final Long minNumber, - final Long maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueMaxAccessCount(), - "MAX_ACCESS_COUNT", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCountList The collection of maxAccessCount as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setMaxAccessCount_InScope( - final Collection<Long> maxAccessCountList) { - doSetMaxAccessCount_InScope(maxAccessCountList); - } - - protected void doSetMaxAccessCount_InScope( - final Collection<Long> maxAccessCountList) { - regINS(CK_INS, cTL(maxAccessCountList), getCValueMaxAccessCount(), - "MAX_ACCESS_COUNT"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @param maxAccessCountList The collection of maxAccessCount as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setMaxAccessCount_NotInScope( - final Collection<Long> maxAccessCountList) { - doSetMaxAccessCount_NotInScope(maxAccessCountList); - } - - protected void doSetMaxAccessCount_NotInScope( - final Collection<Long> maxAccessCountList) { - regINS(CK_NINS, cTL(maxAccessCountList), getCValueMaxAccessCount(), - "MAX_ACCESS_COUNT"); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - */ - public void setMaxAccessCount_IsNull() { - regMaxAccessCount(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - */ - public void setMaxAccessCount_IsNotNull() { - regMaxAccessCount(CK_ISNN, DOBJ); - } - - protected void regMaxAccessCount(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueMaxAccessCount(), "MAX_ACCESS_COUNT"); - } - - protected abstract ConditionValue getCValueMaxAccessCount(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} - * @param userAgent The value of userAgent as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_Equal(final String userAgent) { - doSetUserAgent_Equal(fRES(userAgent)); - } - - protected void doSetUserAgent_Equal(final String userAgent) { - regUserAgent(CK_EQ, userAgent); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} - * @param userAgent The value of userAgent as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_NotEqual(final String userAgent) { - doSetUserAgent_NotEqual(fRES(userAgent)); - } - - protected void doSetUserAgent_NotEqual(final String userAgent) { - regUserAgent(CK_NES, userAgent); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} - * @param userAgent The value of userAgent as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_GreaterThan(final String userAgent) { - regUserAgent(CK_GT, fRES(userAgent)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} - * @param userAgent The value of userAgent as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_LessThan(final String userAgent) { - regUserAgent(CK_LT, fRES(userAgent)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} - * @param userAgent The value of userAgent as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_GreaterEqual(final String userAgent) { - regUserAgent(CK_GE, fRES(userAgent)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} - * @param userAgent The value of userAgent as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_LessEqual(final String userAgent) { - regUserAgent(CK_LE, fRES(userAgent)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} - * @param userAgentList The collection of userAgent as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_InScope(final Collection<String> userAgentList) { - doSetUserAgent_InScope(userAgentList); - } - - public void doSetUserAgent_InScope(final Collection<String> userAgentList) { - regINS(CK_INS, cTL(userAgentList), getCValueUserAgent(), "USER_AGENT"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} - * @param userAgentList The collection of userAgent as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_NotInScope(final Collection<String> userAgentList) { - doSetUserAgent_NotInScope(userAgentList); - } - - public void doSetUserAgent_NotInScope(final Collection<String> userAgentList) { - regINS(CK_NINS, cTL(userAgentList), getCValueUserAgent(), "USER_AGENT"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} - * @param userAgent The value of userAgent as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUserAgent_PrefixSearch(final String userAgent) { - setUserAgent_LikeSearch(userAgent, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} <br /> - * <pre>e.g. setUserAgent_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param userAgent The value of userAgent as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUserAgent_LikeSearch(final String userAgent, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(userAgent), getCValueUserAgent(), "USER_AGENT", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} - * @param userAgent The value of userAgent as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUserAgent_NotLikeSearch(final String userAgent, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(userAgent), getCValueUserAgent(), "USER_AGENT", - likeSearchOption); - } - - protected void regUserAgent(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUserAgent(), "USER_AGENT"); - } - - protected abstract ConditionValue getCValueUserAgent(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThread The value of numOfThread as equal. (NullAllowed: if null, no condition) - */ - public void setNumOfThread_Equal(final Integer numOfThread) { - doSetNumOfThread_Equal(numOfThread); - } - - protected void doSetNumOfThread_Equal(final Integer numOfThread) { - regNumOfThread(CK_EQ, numOfThread); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThread The value of numOfThread as notEqual. (NullAllowed: if null, no condition) - */ - public void setNumOfThread_NotEqual(final Integer numOfThread) { - doSetNumOfThread_NotEqual(numOfThread); - } - - protected void doSetNumOfThread_NotEqual(final Integer numOfThread) { - regNumOfThread(CK_NES, numOfThread); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThread The value of numOfThread as greaterThan. (NullAllowed: if null, no condition) - */ - public void setNumOfThread_GreaterThan(final Integer numOfThread) { - regNumOfThread(CK_GT, numOfThread); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThread The value of numOfThread as lessThan. (NullAllowed: if null, no condition) - */ - public void setNumOfThread_LessThan(final Integer numOfThread) { - regNumOfThread(CK_LT, numOfThread); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThread The value of numOfThread as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setNumOfThread_GreaterEqual(final Integer numOfThread) { - regNumOfThread(CK_GE, numOfThread); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThread The value of numOfThread as lessEqual. (NullAllowed: if null, no condition) - */ - public void setNumOfThread_LessEqual(final Integer numOfThread) { - regNumOfThread(CK_LE, numOfThread); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param minNumber The min number of numOfThread. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of numOfThread. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setNumOfThread_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueNumOfThread(), "NUM_OF_THREAD", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThreadList The collection of numOfThread as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setNumOfThread_InScope(final Collection<Integer> numOfThreadList) { - doSetNumOfThread_InScope(numOfThreadList); - } - - protected void doSetNumOfThread_InScope( - final Collection<Integer> numOfThreadList) { - regINS(CK_INS, cTL(numOfThreadList), getCValueNumOfThread(), - "NUM_OF_THREAD"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @param numOfThreadList The collection of numOfThread as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setNumOfThread_NotInScope( - final Collection<Integer> numOfThreadList) { - doSetNumOfThread_NotInScope(numOfThreadList); - } - - protected void doSetNumOfThread_NotInScope( - final Collection<Integer> numOfThreadList) { - regINS(CK_NINS, cTL(numOfThreadList), getCValueNumOfThread(), - "NUM_OF_THREAD"); - } - - protected void regNumOfThread(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueNumOfThread(), "NUM_OF_THREAD"); - } - - protected abstract ConditionValue getCValueNumOfThread(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTime The value of intervalTime as equal. (NullAllowed: if null, no condition) - */ - public void setIntervalTime_Equal(final Integer intervalTime) { - doSetIntervalTime_Equal(intervalTime); - } - - protected void doSetIntervalTime_Equal(final Integer intervalTime) { - regIntervalTime(CK_EQ, intervalTime); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTime The value of intervalTime as notEqual. (NullAllowed: if null, no condition) - */ - public void setIntervalTime_NotEqual(final Integer intervalTime) { - doSetIntervalTime_NotEqual(intervalTime); - } - - protected void doSetIntervalTime_NotEqual(final Integer intervalTime) { - regIntervalTime(CK_NES, intervalTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTime The value of intervalTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setIntervalTime_GreaterThan(final Integer intervalTime) { - regIntervalTime(CK_GT, intervalTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTime The value of intervalTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setIntervalTime_LessThan(final Integer intervalTime) { - regIntervalTime(CK_LT, intervalTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTime The value of intervalTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setIntervalTime_GreaterEqual(final Integer intervalTime) { - regIntervalTime(CK_GE, intervalTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTime The value of intervalTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setIntervalTime_LessEqual(final Integer intervalTime) { - regIntervalTime(CK_LE, intervalTime); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param minNumber The min number of intervalTime. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of intervalTime. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setIntervalTime_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueIntervalTime(), "INTERVAL_TIME", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTimeList The collection of intervalTime as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIntervalTime_InScope( - final Collection<Integer> intervalTimeList) { - doSetIntervalTime_InScope(intervalTimeList); - } - - protected void doSetIntervalTime_InScope( - final Collection<Integer> intervalTimeList) { - regINS(CK_INS, cTL(intervalTimeList), getCValueIntervalTime(), - "INTERVAL_TIME"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @param intervalTimeList The collection of intervalTime as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setIntervalTime_NotInScope( - final Collection<Integer> intervalTimeList) { - doSetIntervalTime_NotInScope(intervalTimeList); - } - - protected void doSetIntervalTime_NotInScope( - final Collection<Integer> intervalTimeList) { - regINS(CK_NINS, cTL(intervalTimeList), getCValueIntervalTime(), - "INTERVAL_TIME"); - } - - protected void regIntervalTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueIntervalTime(), "INTERVAL_TIME"); - } - - protected abstract ConditionValue getCValueIntervalTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as equal. (NullAllowed: if null, no condition) - */ - public void setBoost_Equal(final java.math.BigDecimal boost) { - doSetBoost_Equal(boost); - } - - protected void doSetBoost_Equal(final java.math.BigDecimal boost) { - regBoost(CK_EQ, boost); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as notEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_NotEqual(final java.math.BigDecimal boost) { - doSetBoost_NotEqual(boost); - } - - protected void doSetBoost_NotEqual(final java.math.BigDecimal boost) { - regBoost(CK_NES, boost); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as greaterThan. (NullAllowed: if null, no condition) - */ - public void setBoost_GreaterThan(final java.math.BigDecimal boost) { - regBoost(CK_GT, boost); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as lessThan. (NullAllowed: if null, no condition) - */ - public void setBoost_LessThan(final java.math.BigDecimal boost) { - regBoost(CK_LT, boost); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_GreaterEqual(final java.math.BigDecimal boost) { - regBoost(CK_GE, boost); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boost The value of boost as lessEqual. (NullAllowed: if null, no condition) - */ - public void setBoost_LessEqual(final java.math.BigDecimal boost) { - regBoost(CK_LE, boost); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param minNumber The min number of boost. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of boost. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setBoost_RangeOf(final java.math.BigDecimal minNumber, - final java.math.BigDecimal maxNumber, - final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueBoost(), "BOOST", rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boostList The collection of boost as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setBoost_InScope( - final Collection<java.math.BigDecimal> boostList) { - doSetBoost_InScope(boostList); - } - - protected void doSetBoost_InScope( - final Collection<java.math.BigDecimal> boostList) { - regINS(CK_INS, cTL(boostList), getCValueBoost(), "BOOST"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @param boostList The collection of boost as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setBoost_NotInScope( - final Collection<java.math.BigDecimal> boostList) { - doSetBoost_NotInScope(boostList); - } - - protected void doSetBoost_NotInScope( - final Collection<java.math.BigDecimal> boostList) { - regINS(CK_NINS, cTL(boostList), getCValueBoost(), "BOOST"); - } - - protected void regBoost(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueBoost(), "BOOST"); - } - - protected abstract ConditionValue getCValueBoost(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_Equal(final String available) { - doSetAvailable_Equal(fRES(available)); - } - - protected void doSetAvailable_Equal(final String available) { - regAvailable(CK_EQ, available); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_NotEqual(final String available) { - doSetAvailable_NotEqual(fRES(available)); - } - - protected void doSetAvailable_NotEqual(final String available) { - regAvailable(CK_NES, available); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_GreaterThan(final String available) { - regAvailable(CK_GT, fRES(available)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_LessThan(final String available) { - regAvailable(CK_LT, fRES(available)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_GreaterEqual(final String available) { - regAvailable(CK_GE, fRES(available)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_LessEqual(final String available) { - regAvailable(CK_LE, fRES(available)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param availableList The collection of available as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_InScope(final Collection<String> availableList) { - doSetAvailable_InScope(availableList); - } - - public void doSetAvailable_InScope(final Collection<String> availableList) { - regINS(CK_INS, cTL(availableList), getCValueAvailable(), "AVAILABLE"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param availableList The collection of available as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_NotInScope(final Collection<String> availableList) { - doSetAvailable_NotInScope(availableList); - } - - public void doSetAvailable_NotInScope(final Collection<String> availableList) { - regINS(CK_NINS, cTL(availableList), getCValueAvailable(), "AVAILABLE"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setAvailable_PrefixSearch(final String available) { - setAvailable_LikeSearch(available, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} <br /> - * <pre>e.g. setAvailable_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param available The value of available as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setAvailable_LikeSearch(final String available, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(available), getCValueAvailable(), "AVAILABLE", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @param available The value of available as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setAvailable_NotLikeSearch(final String available, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(available), getCValueAvailable(), "AVAILABLE", - likeSearchOption); - } - - protected void regAvailable(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueAvailable(), "AVAILABLE"); - } - - protected abstract ConditionValue getCValueAvailable(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as equal. (NullAllowed: if null, no condition) - */ - public void setSortOrder_Equal(final Integer sortOrder) { - doSetSortOrder_Equal(sortOrder); - } - - protected void doSetSortOrder_Equal(final Integer sortOrder) { - regSortOrder(CK_EQ, sortOrder); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as notEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_NotEqual(final Integer sortOrder) { - doSetSortOrder_NotEqual(sortOrder); - } - - protected void doSetSortOrder_NotEqual(final Integer sortOrder) { - regSortOrder(CK_NES, sortOrder); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterThan(final Integer sortOrder) { - regSortOrder(CK_GT, sortOrder); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessThan. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessThan(final Integer sortOrder) { - regSortOrder(CK_LT, sortOrder); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_GreaterEqual(final Integer sortOrder) { - regSortOrder(CK_GE, sortOrder); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrder The value of sortOrder as lessEqual. (NullAllowed: if null, no condition) - */ - public void setSortOrder_LessEqual(final Integer sortOrder) { - regSortOrder(CK_LE, sortOrder); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param minNumber The min number of sortOrder. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of sortOrder. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setSortOrder_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueSortOrder(), "SORT_ORDER", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_InScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_InScope(sortOrderList); - } - - protected void doSetSortOrder_InScope( - final Collection<Integer> sortOrderList) { - regINS(CK_INS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @param sortOrderList The collection of sortOrder as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setSortOrder_NotInScope(final Collection<Integer> sortOrderList) { - doSetSortOrder_NotInScope(sortOrderList); - } - - protected void doSetSortOrder_NotInScope( - final Collection<Integer> sortOrderList) { - regINS(CK_NINS, cTL(sortOrderList), getCValueSortOrder(), "SORT_ORDER"); - } - - protected void regSortOrder(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueSortOrder(), "SORT_ORDER"); - } - - protected abstract ConditionValue getCValueSortOrder(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_Equal(final String createdBy) { - doSetCreatedBy_Equal(fRES(createdBy)); - } - - protected void doSetCreatedBy_Equal(final String createdBy) { - regCreatedBy(CK_EQ, createdBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotEqual(final String createdBy) { - doSetCreatedBy_NotEqual(fRES(createdBy)); - } - - protected void doSetCreatedBy_NotEqual(final String createdBy) { - regCreatedBy(CK_NES, createdBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterThan(final String createdBy) { - regCreatedBy(CK_GT, fRES(createdBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessThan(final String createdBy) { - regCreatedBy(CK_LT, fRES(createdBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_GreaterEqual(final String createdBy) { - regCreatedBy(CK_GE, fRES(createdBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_LessEqual(final String createdBy) { - regCreatedBy(CK_LE, fRES(createdBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_InScope(final Collection<String> createdByList) { - doSetCreatedBy_InScope(createdByList); - } - - public void doSetCreatedBy_InScope(final Collection<String> createdByList) { - regINS(CK_INS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdByList The collection of createdBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_NotInScope(final Collection<String> createdByList) { - doSetCreatedBy_NotInScope(createdByList); - } - - public void doSetCreatedBy_NotInScope(final Collection<String> createdByList) { - regINS(CK_NINS, cTL(createdByList), getCValueCreatedBy(), "CREATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setCreatedBy_PrefixSearch(final String createdBy) { - setCreatedBy_LikeSearch(createdBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} <br /> - * <pre>e.g. setCreatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param createdBy The value of createdBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setCreatedBy_LikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @param createdBy The value of createdBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setCreatedBy_NotLikeSearch(final String createdBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(createdBy), getCValueCreatedBy(), "CREATED_BY", - likeSearchOption); - } - - protected void regCreatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedBy(), "CREATED_BY"); - } - - protected abstract ConditionValue getCValueCreatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as equal. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_Equal(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_EQ, createdTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GT, createdTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessThan(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LT, createdTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_GreaterEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_GE, createdTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @param createdTime The value of createdTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setCreatedTime_LessEqual(final java.sql.Timestamp createdTime) { - regCreatedTime(CK_LE, createdTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre>e.g. setCreatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of createdTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setCreatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueCreatedTime(), - "CREATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of createdTime. (NullAllowed: if null, no to-condition) - */ - public void setCreatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setCreatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - protected void regCreatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueCreatedTime(), "CREATED_TIME"); - } - - protected abstract ConditionValue getCValueCreatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_Equal(final String updatedBy) { - doSetUpdatedBy_Equal(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_Equal(final String updatedBy) { - regUpdatedBy(CK_EQ, updatedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotEqual(final String updatedBy) { - doSetUpdatedBy_NotEqual(fRES(updatedBy)); - } - - protected void doSetUpdatedBy_NotEqual(final String updatedBy) { - regUpdatedBy(CK_NES, updatedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterThan(final String updatedBy) { - regUpdatedBy(CK_GT, fRES(updatedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessThan(final String updatedBy) { - regUpdatedBy(CK_LT, fRES(updatedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_GreaterEqual(final String updatedBy) { - regUpdatedBy(CK_GE, fRES(updatedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_LessEqual(final String updatedBy) { - regUpdatedBy(CK_LE, fRES(updatedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_InScope(final Collection<String> updatedByList) { - doSetUpdatedBy_InScope(updatedByList); - } - - public void doSetUpdatedBy_InScope(final Collection<String> updatedByList) { - regINS(CK_INS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedByList The collection of updatedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_NotInScope(final Collection<String> updatedByList) { - doSetUpdatedBy_NotInScope(updatedByList); - } - - public void doSetUpdatedBy_NotInScope(final Collection<String> updatedByList) { - regINS(CK_NINS, cTL(updatedByList), getCValueUpdatedBy(), "UPDATED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setUpdatedBy_PrefixSearch(final String updatedBy) { - setUpdatedBy_LikeSearch(updatedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setUpdatedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param updatedBy The value of updatedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setUpdatedBy_LikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @param updatedBy The value of updatedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setUpdatedBy_NotLikeSearch(final String updatedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(updatedBy), getCValueUpdatedBy(), "UPDATED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNull() { - regUpdatedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNullOrEmpty() { - regUpdatedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_BY: {VARCHAR(255)} - */ - public void setUpdatedBy_IsNotNull() { - regUpdatedBy(CK_ISNN, DOBJ); - } - - protected void regUpdatedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedBy(), "UPDATED_BY"); - } - - protected abstract ConditionValue getCValueUpdatedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as equal. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_Equal(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_EQ, updatedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GT, updatedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessThan(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LT, updatedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_GreaterEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_GE, updatedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @param updatedTime The value of updatedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setUpdatedTime_LessEqual(final java.sql.Timestamp updatedTime) { - regUpdatedTime(CK_LE, updatedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setUpdatedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of updatedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setUpdatedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueUpdatedTime(), - "UPDATED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of updatedTime. (NullAllowed: if null, no to-condition) - */ - public void setUpdatedTime_DateFromTo(final Date fromDate, final Date toDate) { - setUpdatedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNull() { - regUpdatedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - */ - public void setUpdatedTime_IsNotNull() { - regUpdatedTime(CK_ISNN, DOBJ); - } - - protected void regUpdatedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueUpdatedTime(), "UPDATED_TIME"); - } - - protected abstract ConditionValue getCValueUpdatedTime(); - - /** - * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as equal. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_Equal(final String deletedBy) { - doSetDeletedBy_Equal(fRES(deletedBy)); - } - - protected void doSetDeletedBy_Equal(final String deletedBy) { - regDeletedBy(CK_EQ, deletedBy); - } - - /** - * NotEqual(<>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotEqual(final String deletedBy) { - doSetDeletedBy_NotEqual(fRES(deletedBy)); - } - - protected void doSetDeletedBy_NotEqual(final String deletedBy) { - regDeletedBy(CK_NES, deletedBy); - } - - /** - * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterThan(final String deletedBy) { - regDeletedBy(CK_GT, fRES(deletedBy)); - } - - /** - * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessThan. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessThan(final String deletedBy) { - regDeletedBy(CK_LT, fRES(deletedBy)); - } - - /** - * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as greaterEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_GreaterEqual(final String deletedBy) { - regDeletedBy(CK_GE, fRES(deletedBy)); - } - - /** - * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as lessEqual. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_LessEqual(final String deletedBy) { - regDeletedBy(CK_LE, fRES(deletedBy)); - } - - /** - * InScope {in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_InScope(final Collection<String> deletedByList) { - doSetDeletedBy_InScope(deletedByList); - } - - public void doSetDeletedBy_InScope(final Collection<String> deletedByList) { - regINS(CK_INS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * NotInScope {not in ('a', 'b')}. And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedByList The collection of deletedBy as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_NotInScope(final Collection<String> deletedByList) { - doSetDeletedBy_NotInScope(deletedByList); - } - - public void doSetDeletedBy_NotInScope(final Collection<String> deletedByList) { - regINS(CK_NINS, cTL(deletedByList), getCValueDeletedBy(), "DELETED_BY"); - } - - /** - * PrefixSearch {like 'xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as prefixSearch. (NullAllowed: if null (or empty), no condition) - */ - public void setDeletedBy_PrefixSearch(final String deletedBy) { - setDeletedBy_LikeSearch(deletedBy, cLSOP()); - } - - /** - * LikeSearch with various options. (versatile) {like '%xxx%' escape ...}. And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} <br /> - * <pre>e.g. setDeletedBy_LikeSearch("xxx", new <span style="color: #DD4747">LikeSearchOption</span>().likeContain());</pre> - * @param deletedBy The value of deletedBy as likeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setDeletedBy_LikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_LS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * NotLikeSearch with various options. (versatile) {not like 'xxx%' escape ...} <br /> - * And NullOrEmptyIgnored, SeveralRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - * @param deletedBy The value of deletedBy as notLikeSearch. (NullAllowed: if null (or empty), no condition) - * @param likeSearchOption The option of not-like-search. (NotNull) - */ - public void setDeletedBy_NotLikeSearch(final String deletedBy, - final LikeSearchOption likeSearchOption) { - regLSQ(CK_NLS, fRES(deletedBy), getCValueDeletedBy(), "DELETED_BY", - likeSearchOption); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNull() { - regDeletedBy(CK_ISN, DOBJ); - } - - /** - * IsNullOrEmpty {is null or empty}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNullOrEmpty() { - regDeletedBy(CK_ISNOE, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_BY: {VARCHAR(255)} - */ - public void setDeletedBy_IsNotNull() { - regDeletedBy(CK_ISNN, DOBJ); - } - - protected void regDeletedBy(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedBy(), "DELETED_BY"); - } - - protected abstract ConditionValue getCValueDeletedBy(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as equal. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_Equal(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_EQ, deletedTime); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GT, deletedTime); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessThan. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessThan(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LT, deletedTime); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_GreaterEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_GE, deletedTime); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @param deletedTime The value of deletedTime as lessEqual. (NullAllowed: if null, no condition) - */ - public void setDeletedTime_LessEqual(final java.sql.Timestamp deletedTime) { - regDeletedTime(CK_LE, deletedTime); - } - - /** - * FromTo with various options. (versatile) {(default) fromDatetime <= column <= toDatetime} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre>e.g. setDeletedTime_FromTo(fromDate, toDate, new <span style="color: #DD4747">FromToOption</span>().compareAsDate());</pre> - * @param fromDatetime The from-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDatetime The to-datetime(yyyy/MM/dd HH:mm:ss.SSS) of deletedTime. (NullAllowed: if null, no to-condition) - * @param fromToOption The option of from-to. (NotNull) - */ - public void setDeletedTime_FromTo(final Date fromDatetime, - final Date toDatetime, final FromToOption fromToOption) { - regFTQ(fromDatetime != null ? new java.sql.Timestamp( - fromDatetime.getTime()) : null, - toDatetime != null ? new java.sql.Timestamp(toDatetime - .getTime()) : null, getCValueDeletedTime(), - "DELETED_TIME", fromToOption); - } - - /** - * DateFromTo. (Date means yyyy/MM/dd) {fromDate <= column < toDate + 1 day} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * <pre> - * e.g. from:{2007/04/10 08:24:53} to:{2007/04/16 14:36:29} - * column >= '2007/04/10 00:00:00' and column <span style="color: #DD4747">< '2007/04/17 00:00:00'</span> - * </pre> - * @param fromDate The from-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no from-condition) - * @param toDate The to-date(yyyy/MM/dd) of deletedTime. (NullAllowed: if null, no to-condition) - */ - public void setDeletedTime_DateFromTo(final Date fromDate, final Date toDate) { - setDeletedTime_FromTo(fromDate, toDate, - new FromToOption().compareAsDate()); - } - - /** - * IsNull {is null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNull() { - regDeletedTime(CK_ISN, DOBJ); - } - - /** - * IsNotNull {is not null}. And OnlyOnceRegistered. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - */ - public void setDeletedTime_IsNotNull() { - regDeletedTime(CK_ISNN, DOBJ); - } - - protected void regDeletedTime(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueDeletedTime(), "DELETED_TIME"); - } - - protected abstract ConditionValue getCValueDeletedTime(); - - /** - * Equal(=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as equal. (NullAllowed: if null, no condition) - */ - public void setVersionNo_Equal(final Integer versionNo) { - doSetVersionNo_Equal(versionNo); - } - - protected void doSetVersionNo_Equal(final Integer versionNo) { - regVersionNo(CK_EQ, versionNo); - } - - /** - * NotEqual(<>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as notEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_NotEqual(final Integer versionNo) { - doSetVersionNo_NotEqual(versionNo); - } - - protected void doSetVersionNo_NotEqual(final Integer versionNo) { - regVersionNo(CK_NES, versionNo); - } - - /** - * GreaterThan(>). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterThan(final Integer versionNo) { - regVersionNo(CK_GT, versionNo); - } - - /** - * LessThan(<). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessThan. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessThan(final Integer versionNo) { - regVersionNo(CK_LT, versionNo); - } - - /** - * GreaterEqual(>=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as greaterEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_GreaterEqual(final Integer versionNo) { - regVersionNo(CK_GE, versionNo); - } - - /** - * LessEqual(<=). And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNo The value of versionNo as lessEqual. (NullAllowed: if null, no condition) - */ - public void setVersionNo_LessEqual(final Integer versionNo) { - regVersionNo(CK_LE, versionNo); - } - - /** - * RangeOf with various options. (versatile) <br /> - * {(default) minNumber <= column <= maxNumber} <br /> - * And NullIgnored, OnlyOnceRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param minNumber The min number of versionNo. (NullAllowed: if null, no from-condition) - * @param maxNumber The max number of versionNo. (NullAllowed: if null, no to-condition) - * @param rangeOfOption The option of range-of. (NotNull) - */ - public void setVersionNo_RangeOf(final Integer minNumber, - final Integer maxNumber, final RangeOfOption rangeOfOption) { - regROO(minNumber, maxNumber, getCValueVersionNo(), "VERSION_NO", - rangeOfOption); - } - - /** - * InScope {in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as inScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_InScope(final Collection<Integer> versionNoList) { - doSetVersionNo_InScope(versionNoList); - } - - protected void doSetVersionNo_InScope( - final Collection<Integer> versionNoList) { - regINS(CK_INS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - /** - * NotInScope {not in (1, 2)}. And NullIgnored, NullElementIgnored, SeveralRegistered. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @param versionNoList The collection of versionNo as notInScope. (NullAllowed: if null (or empty), no condition) - */ - public void setVersionNo_NotInScope(final Collection<Integer> versionNoList) { - doSetVersionNo_NotInScope(versionNoList); - } - - protected void doSetVersionNo_NotInScope( - final Collection<Integer> versionNoList) { - regINS(CK_NINS, cTL(versionNoList), getCValueVersionNo(), "VERSION_NO"); - } - - protected void regVersionNo(final ConditionKey ky, final Object vl) { - regQ(ky, vl, getCValueVersionNo(), "VERSION_NO"); - } - - protected abstract ConditionValue getCValueVersionNo(); - - // =================================================================================== - // ScalarCondition - // =============== - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO = (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_Equal()</span>.max(new SubQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebCrawlingConfigCB> scalar_Equal() { - return xcreateSSQFunction(CK_EQ, WebCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as equal. <br /> - * {where FOO <> (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_NotEqual()</span>.max(new SubQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB subCB) { - * subCB.specify().setXxx... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setYyy... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebCrawlingConfigCB> scalar_NotEqual() { - return xcreateSSQFunction(CK_NES, WebCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as greaterThan. <br /> - * {where FOO > (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterThan()</span>.max(new SubQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebCrawlingConfigCB> scalar_GreaterThan() { - return xcreateSSQFunction(CK_GT, WebCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as lessThan. <br /> - * {where FOO < (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessThan()</span>.max(new SubQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebCrawlingConfigCB> scalar_LessThan() { - return xcreateSSQFunction(CK_LT, WebCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as greaterEqual. <br /> - * {where FOO >= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_GreaterEqual()</span>.max(new SubQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebCrawlingConfigCB> scalar_GreaterEqual() { - return xcreateSSQFunction(CK_GE, WebCrawlingConfigCB.class); - } - - /** - * Prepare ScalarCondition as lessEqual. <br /> - * {where FOO <= (select max(BAR) from ...) - * <pre> - * cb.query().<span style="color: #DD4747">scalar_LessEqual()</span>.max(new SubQuery<WebCrawlingConfigCB>() { - * public void query(WebCrawlingConfigCB subCB) { - * subCB.specify().setFoo... <span style="color: #3F7E5E">// derived column for function</span> - * subCB.query().setBar... - * } - * }); - * </pre> - * @return The object to set up a function. (NotNull) - */ - public HpSSQFunction<WebCrawlingConfigCB> scalar_LessEqual() { - return xcreateSSQFunction(CK_LE, WebCrawlingConfigCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xscalarCondition(final String fn, - final SubQuery<CB> sq, final String rd, final HpSSQOption<CB> op) { - assertObjectNotNull("subQuery", sq); - final WebCrawlingConfigCB cb = xcreateScalarConditionCB(); - sq.query((CB) cb); - final String pp = keepScalarCondition(cb.query()); // for saving query-value - op.setPartitionByCBean((CB) xcreateScalarConditionPartitionByCB()); // for using partition-by - registerScalarCondition(fn, cb.query(), pp, rd, op); - } - - public abstract String keepScalarCondition(WebCrawlingConfigCQ sq); - - protected WebCrawlingConfigCB xcreateScalarConditionCB() { - final WebCrawlingConfigCB cb = newMyCB(); - cb.xsetupForScalarCondition(this); - return cb; - } - - protected WebCrawlingConfigCB xcreateScalarConditionPartitionByCB() { - final WebCrawlingConfigCB cb = newMyCB(); - cb.xsetupForScalarConditionPartitionBy(this); - return cb; - } - - // =================================================================================== - // MyselfDerived - // ============= - public void xsmyselfDerive(final String fn, - final SubQuery<WebCrawlingConfigCB> sq, final String al, - final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForDerivedReferrer(this); - try { - lock(); - sq.query(cb); - } finally { - unlock(); - } - final String pp = keepSpecifyMyselfDerived(cb.query()); - final String pk = "ID"; - registerSpecifyMyselfDerived(fn, cb.query(), pk, pk, pp, - "myselfDerived", al, op); - } - - public abstract String keepSpecifyMyselfDerived(WebCrawlingConfigCQ sq); - - /** - * Prepare for (Query)MyselfDerived (correlated sub-query). - * @return The object to set up a function for myself table. (NotNull) - */ - public HpQDRFunction<WebCrawlingConfigCB> myselfDerived() { - return xcreateQDRFunctionMyselfDerived(WebCrawlingConfigCB.class); - } - - @Override - @SuppressWarnings("unchecked") - protected <CB extends ConditionBean> void xqderiveMyselfDerived( - final String fn, final SubQuery<CB> sq, final String rd, - final Object vl, final DerivedReferrerOption op) { - assertObjectNotNull("subQuery", sq); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForDerivedReferrer(this); - sq.query((CB) cb); - final String pk = "ID"; - final String sqpp = keepQueryMyselfDerived(cb.query()); // for saving query-value. - final String prpp = keepQueryMyselfDerivedParameter(vl); - registerQueryMyselfDerived(fn, cb.query(), pk, pk, sqpp, - "myselfDerived", rd, vl, prpp, op); - } - - public abstract String keepQueryMyselfDerived(WebCrawlingConfigCQ sq); - - public abstract String keepQueryMyselfDerivedParameter(Object vl); - - // =================================================================================== - // MyselfExists - // ============ - /** - * Prepare for MyselfExists (correlated sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfExists(final SubQuery<WebCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForMyselfExists(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfExists(cb.query()); - registerMyselfExists(cb.query(), pp); - } - - public abstract String keepMyselfExists(WebCrawlingConfigCQ sq); - - // =================================================================================== - // MyselfInScope - // ============= - /** - * Prepare for MyselfInScope (sub-query). - * @param subQuery The implementation of sub-query. (NotNull) - */ - public void myselfInScope(final SubQuery<WebCrawlingConfigCB> subQuery) { - assertObjectNotNull("subQuery", subQuery); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.xsetupForMyselfInScope(this); - try { - lock(); - subQuery.query(cb); - } finally { - unlock(); - } - final String pp = keepMyselfInScope(cb.query()); - registerMyselfInScope(cb.query(), pp); - } - - public abstract String keepMyselfInScope(WebCrawlingConfigCQ sq); - - // =================================================================================== - // Manual Order - // ============ - /** - * Order along manual ordering information. - * <pre> - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_GreaterEqual</span>(priorityDate); <span style="color: #3F7E5E">// e.g. 2000/01/01</span> - * cb.query().addOrderBy_Birthdate_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when BIRTHDATE >= '2000/01/01' then 0</span> - * <span style="color: #3F7E5E">// else 1</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * - * MemberCB cb = new MemberCB(); - * ManualOrderBean mob = new ManualOrderBean(); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Withdrawal); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Formalized); - * mob.<span style="color: #DD4747">when_Equal</span>(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(mob)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * <p>This function with Union is unsupported!</p> - * <p>The order values are bound (treated as bind parameter).</p> - * @param mob The bean of manual order containing order values. (NotNull) - */ - public void withManualOrder(final ManualOrderBean mob) { // is user public! - xdoWithManualOrder(mob); - } - - // =================================================================================== - // Small Adjustment - // ================ - /** - * Order along the list of manual values. #beforejava8 <br /> - * This function with Union is unsupported! <br /> - * The order values are bound (treated as bind parameter). - * <pre> - * MemberCB cb = new MemberCB(); - * List<CDef.MemberStatus> orderValueList = new ArrayList<CDef.MemberStatus>(); - * orderValueList.add(CDef.MemberStatus.Withdrawal); - * orderValueList.add(CDef.MemberStatus.Formalized); - * orderValueList.add(CDef.MemberStatus.Provisional); - * cb.query().addOrderBy_MemberStatusCode_Asc().<span style="color: #DD4747">withManualOrder(orderValueList)</span>; - * <span style="color: #3F7E5E">// order by </span> - * <span style="color: #3F7E5E">// case</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'WDL' then 0</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'FML' then 1</span> - * <span style="color: #3F7E5E">// when MEMBER_STATUS_CODE = 'PRV' then 2</span> - * <span style="color: #3F7E5E">// else 3</span> - * <span style="color: #3F7E5E">// end asc, ...</span> - * </pre> - * @param orderValueList The list of order values for manual ordering. (NotNull) - */ - public void withManualOrder(final List<? extends Object> orderValueList) { // is user public! - assertObjectNotNull("withManualOrder(orderValueList)", orderValueList); - final ManualOrderBean manualOrderBean = new ManualOrderBean(); - manualOrderBean.acceptOrderValueList(orderValueList); - withManualOrder(manualOrderBean); - } - - @Override - protected void filterFromToOption(final FromToOption option) { - option.allowOneSide(); - } - - // =================================================================================== - // Very Internal - // ============= - protected WebCrawlingConfigCB newMyCB() { - return new WebCrawlingConfigCB(); - } - - // very internal (for suppressing warn about 'Not Use Import') - protected String xabUDT() { - return Date.class.getName(); - } - - protected String xabCQ() { - return WebCrawlingConfigCQ.class.getName(); - } - - protected String xabLSO() { - return LikeSearchOption.class.getName(); - } - - protected String xabSSQS() { - return HpSSQSetupper.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsBoostDocumentRuleCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsBoostDocumentRuleCQ.java deleted file mode 100644 index 482bf9025..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsBoostDocumentRuleCQ.java +++ /dev/null @@ -1,629 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.BoostDocumentRuleCB; -import jp.sf.fess.db.cbean.cq.BoostDocumentRuleCQ; -import jp.sf.fess.db.cbean.cq.ciq.BoostDocumentRuleCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of BOOST_DOCUMENT_RULE. - * @author DBFlute(AutoGenerator) - */ -public class BsBoostDocumentRuleCQ extends AbstractBsBoostDocumentRuleCQ { - - // =================================================================================== - // Attribute - // ========= - protected BoostDocumentRuleCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsBoostDocumentRuleCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from BOOST_DOCUMENT_RULE) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public BoostDocumentRuleCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected BoostDocumentRuleCIQ xcreateCIQ() { - final BoostDocumentRuleCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected BoostDocumentRuleCIQ xnewCIQ() { - return new BoostDocumentRuleCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join BOOST_DOCUMENT_RULE on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public BoostDocumentRuleCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final BoostDocumentRuleCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _urlExpr; - - public ConditionValue getUrlExpr() { - if (_urlExpr == null) { - _urlExpr = nCV(); - } - return _urlExpr; - } - - @Override - protected ConditionValue getCValueUrlExpr() { - return getUrlExpr(); - } - - /** - * Add order-by as ascend. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_UrlExpr_Asc() { - regOBA("URL_EXPR"); - return this; - } - - /** - * Add order-by as descend. <br /> - * URL_EXPR: {NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_UrlExpr_Desc() { - regOBD("URL_EXPR"); - return this; - } - - protected ConditionValue _boostExpr; - - public ConditionValue getBoostExpr() { - if (_boostExpr == null) { - _boostExpr = nCV(); - } - return _boostExpr; - } - - @Override - protected ConditionValue getCValueBoostExpr() { - return getBoostExpr(); - } - - /** - * Add order-by as ascend. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_BoostExpr_Asc() { - regOBA("BOOST_EXPR"); - return this; - } - - /** - * Add order-by as descend. <br /> - * BOOST_EXPR: {NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_BoostExpr_Desc() { - regOBD("BOOST_EXPR"); - return this; - } - - protected ConditionValue _sortOrder; - - public ConditionValue getSortOrder() { - if (_sortOrder == null) { - _sortOrder = nCV(); - } - return _sortOrder; - } - - @Override - protected ConditionValue getCValueSortOrder() { - return getSortOrder(); - } - - /** - * Add order-by as ascend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_SortOrder_Asc() { - regOBA("SORT_ORDER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_SortOrder_Desc() { - regOBD("SORT_ORDER"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsBoostDocumentRuleCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, BoostDocumentRuleCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final BoostDocumentRuleCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, BoostDocumentRuleCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final BoostDocumentRuleCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, BoostDocumentRuleCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final BoostDocumentRuleCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, BoostDocumentRuleCQ> _myselfExistsMap; - - public Map<String, BoostDocumentRuleCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final BoostDocumentRuleCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, BoostDocumentRuleCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final BoostDocumentRuleCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return BoostDocumentRuleCB.class.getName(); - } - - protected String xCQ() { - return BoostDocumentRuleCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsClickLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsClickLogCQ.java deleted file mode 100644 index f87d4118b..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsClickLogCQ.java +++ /dev/null @@ -1,447 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.cbean.cq.ClickLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.cq.ciq.ClickLogCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of CLICK_LOG. - * @author DBFlute(AutoGenerator) - */ -public class BsClickLogCQ extends AbstractBsClickLogCQ { - - // =================================================================================== - // Attribute - // ========= - protected ClickLogCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsClickLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from CLICK_LOG) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public ClickLogCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected ClickLogCIQ xcreateCIQ() { - final ClickLogCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected ClickLogCIQ xnewCIQ() { - return new ClickLogCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join CLICK_LOG on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public ClickLogCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final ClickLogCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsClickLogCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsClickLogCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _searchId; - - public ConditionValue getSearchId() { - if (_searchId == null) { - _searchId = nCV(); - } - return _searchId; - } - - @Override - protected ConditionValue getCValueSearchId() { - return getSearchId(); - } - - public Map<String, SearchLogCQ> getSearchId_InScopeRelation_SearchLog() { - return xgetSQueMap("searchId_InScopeRelation_SearchLog"); - } - - @Override - public String keepSearchId_InScopeRelation_SearchLog(final SearchLogCQ sq) { - return xkeepSQue("searchId_InScopeRelation_SearchLog", sq); - } - - public Map<String, SearchLogCQ> getSearchId_NotInScopeRelation_SearchLog() { - return xgetSQueMap("searchId_NotInScopeRelation_SearchLog"); - } - - @Override - public String keepSearchId_NotInScopeRelation_SearchLog(final SearchLogCQ sq) { - return xkeepSQue("searchId_NotInScopeRelation_SearchLog", sq); - } - - /** - * Add order-by as ascend. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @return this. (NotNull) - */ - public BsClickLogCQ addOrderBy_SearchId_Asc() { - regOBA("SEARCH_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @return this. (NotNull) - */ - public BsClickLogCQ addOrderBy_SearchId_Desc() { - regOBD("SEARCH_ID"); - return this; - } - - protected ConditionValue _url; - - public ConditionValue getUrl() { - if (_url == null) { - _url = nCV(); - } - return _url; - } - - @Override - protected ConditionValue getCValueUrl() { - return getUrl(); - } - - /** - * Add order-by as ascend. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsClickLogCQ addOrderBy_Url_Asc() { - regOBA("URL"); - return this; - } - - /** - * Add order-by as descend. <br /> - * URL: {IX, NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsClickLogCQ addOrderBy_Url_Desc() { - regOBD("URL"); - return this; - } - - protected ConditionValue _requestedTime; - - public ConditionValue getRequestedTime() { - if (_requestedTime == null) { - _requestedTime = nCV(); - } - return _requestedTime; - } - - @Override - protected ConditionValue getCValueRequestedTime() { - return getRequestedTime(); - } - - /** - * Add order-by as ascend. <br /> - * REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsClickLogCQ addOrderBy_RequestedTime_Asc() { - regOBA("REQUESTED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * REQUESTED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsClickLogCQ addOrderBy_RequestedTime_Desc() { - regOBD("REQUESTED_TIME"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsClickLogCQ addSpecifiedDerivedOrderBy_Asc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsClickLogCQ addSpecifiedDerivedOrderBy_Desc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final ClickLogCQ bq = (ClickLogCQ) bqs; - final ClickLogCQ uq = (ClickLogCQ) uqs; - if (bq.hasConditionQuerySearchLog()) { - uq.querySearchLog().reflectRelationOnUnionQuery( - bq.querySearchLog(), uq.querySearchLog()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @return The instance of condition-query. (NotNull) - */ - public SearchLogCQ querySearchLog() { - return getConditionQuerySearchLog(); - } - - public SearchLogCQ getConditionQuerySearchLog() { - final String prop = "searchLog"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQuerySearchLog()); - xsetupOuterJoinSearchLog(); - } - return xgetQueRlMap(prop); - } - - protected SearchLogCQ xcreateQuerySearchLog() { - final String nrp = xresolveNRP("CLICK_LOG", "searchLog"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new SearchLogCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "searchLog", nrp); - } - - protected void xsetupOuterJoinSearchLog() { - xregOutJo("searchLog"); - } - - public boolean hasConditionQuerySearchLog() { - return xhasQueRlMap("searchLog"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, ClickLogCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final ClickLogCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, ClickLogCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final ClickLogCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, ClickLogCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final ClickLogCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, ClickLogCQ> _myselfExistsMap; - - public Map<String, ClickLogCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final ClickLogCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, ClickLogCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final ClickLogCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return ClickLogCB.class.getName(); - } - - protected String xCQ() { - return ClickLogCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsCrawlingSessionCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsCrawlingSessionCQ.java deleted file mode 100644 index 90fa60ea4..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsCrawlingSessionCQ.java +++ /dev/null @@ -1,498 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.CrawlingSessionCB; -import jp.sf.fess.db.cbean.cq.CrawlingSessionCQ; -import jp.sf.fess.db.cbean.cq.CrawlingSessionInfoCQ; -import jp.sf.fess.db.cbean.cq.ciq.CrawlingSessionCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of CRAWLING_SESSION. - * @author DBFlute(AutoGenerator) - */ -public class BsCrawlingSessionCQ extends AbstractBsCrawlingSessionCQ { - - // =================================================================================== - // Attribute - // ========= - protected CrawlingSessionCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsCrawlingSessionCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from CRAWLING_SESSION) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public CrawlingSessionCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected CrawlingSessionCIQ xcreateCIQ() { - final CrawlingSessionCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected CrawlingSessionCIQ xnewCIQ() { - return new CrawlingSessionCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join CRAWLING_SESSION on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public CrawlingSessionCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final CrawlingSessionCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - public Map<String, CrawlingSessionInfoCQ> getId_ExistsReferrer_CrawlingSessionInfoList() { - return xgetSQueMap("id_ExistsReferrer_CrawlingSessionInfoList"); - } - - @Override - public String keepId_ExistsReferrer_CrawlingSessionInfoList( - final CrawlingSessionInfoCQ sq) { - return xkeepSQue("id_ExistsReferrer_CrawlingSessionInfoList", sq); - } - - public Map<String, CrawlingSessionInfoCQ> getId_NotExistsReferrer_CrawlingSessionInfoList() { - return xgetSQueMap("id_NotExistsReferrer_CrawlingSessionInfoList"); - } - - @Override - public String keepId_NotExistsReferrer_CrawlingSessionInfoList( - final CrawlingSessionInfoCQ sq) { - return xkeepSQue("id_NotExistsReferrer_CrawlingSessionInfoList", sq); - } - - public Map<String, CrawlingSessionInfoCQ> getId_SpecifyDerivedReferrer_CrawlingSessionInfoList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_CrawlingSessionInfoList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_CrawlingSessionInfoList( - final CrawlingSessionInfoCQ sq) { - return xkeepSQue("id_SpecifyDerivedReferrer_CrawlingSessionInfoList", - sq); - } - - public Map<String, CrawlingSessionInfoCQ> getId_InScopeRelation_CrawlingSessionInfoList() { - return xgetSQueMap("id_InScopeRelation_CrawlingSessionInfoList"); - } - - @Override - public String keepId_InScopeRelation_CrawlingSessionInfoList( - final CrawlingSessionInfoCQ sq) { - return xkeepSQue("id_InScopeRelation_CrawlingSessionInfoList", sq); - } - - public Map<String, CrawlingSessionInfoCQ> getId_NotInScopeRelation_CrawlingSessionInfoList() { - return xgetSQueMap("id_NotInScopeRelation_CrawlingSessionInfoList"); - } - - @Override - public String keepId_NotInScopeRelation_CrawlingSessionInfoList( - final CrawlingSessionInfoCQ sq) { - return xkeepSQue("id_NotInScopeRelation_CrawlingSessionInfoList", sq); - } - - public Map<String, CrawlingSessionInfoCQ> getId_QueryDerivedReferrer_CrawlingSessionInfoList() { - return xgetSQueMap("id_QueryDerivedReferrer_CrawlingSessionInfoList"); - } - - @Override - public String keepId_QueryDerivedReferrer_CrawlingSessionInfoList( - final CrawlingSessionInfoCQ sq) { - return xkeepSQue("id_QueryDerivedReferrer_CrawlingSessionInfoList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_CrawlingSessionInfoListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_CrawlingSessionInfoList"); - } - - @Override - public String keepId_QueryDerivedReferrer_CrawlingSessionInfoListParameter( - final Object pm) { - return xkeepSQuePm("id_QueryDerivedReferrer_CrawlingSessionInfoList", - pm); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsCrawlingSessionCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsCrawlingSessionCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _sessionId; - - public ConditionValue getSessionId() { - if (_sessionId == null) { - _sessionId = nCV(); - } - return _sessionId; - } - - @Override - protected ConditionValue getCValueSessionId() { - return getSessionId(); - } - - /** - * Add order-by as ascend. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} - * @return this. (NotNull) - */ - public BsCrawlingSessionCQ addOrderBy_SessionId_Asc() { - regOBA("SESSION_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SESSION_ID: {NotNull, VARCHAR(20)} - * @return this. (NotNull) - */ - public BsCrawlingSessionCQ addOrderBy_SessionId_Desc() { - regOBD("SESSION_ID"); - return this; - } - - protected ConditionValue _name; - - public ConditionValue getName() { - if (_name == null) { - _name = nCV(); - } - return _name; - } - - @Override - protected ConditionValue getCValueName() { - return getName(); - } - - /** - * Add order-by as ascend. <br /> - * NAME: {IX+, VARCHAR(20)} - * @return this. (NotNull) - */ - public BsCrawlingSessionCQ addOrderBy_Name_Asc() { - regOBA("NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * NAME: {IX+, VARCHAR(20)} - * @return this. (NotNull) - */ - public BsCrawlingSessionCQ addOrderBy_Name_Desc() { - regOBD("NAME"); - return this; - } - - protected ConditionValue _expiredTime; - - public ConditionValue getExpiredTime() { - if (_expiredTime == null) { - _expiredTime = nCV(); - } - return _expiredTime; - } - - @Override - protected ConditionValue getCValueExpiredTime() { - return getExpiredTime(); - } - - /** - * Add order-by as ascend. <br /> - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsCrawlingSessionCQ addOrderBy_ExpiredTime_Asc() { - regOBA("EXPIRED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * EXPIRED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsCrawlingSessionCQ addOrderBy_ExpiredTime_Desc() { - regOBD("EXPIRED_TIME"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsCrawlingSessionCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsCrawlingSessionCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsCrawlingSessionCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsCrawlingSessionCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, CrawlingSessionCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final CrawlingSessionCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, CrawlingSessionCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final CrawlingSessionCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, CrawlingSessionCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final CrawlingSessionCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, CrawlingSessionCQ> _myselfExistsMap; - - public Map<String, CrawlingSessionCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final CrawlingSessionCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, CrawlingSessionCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final CrawlingSessionCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return CrawlingSessionCB.class.getName(); - } - - protected String xCQ() { - return CrawlingSessionCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsCrawlingSessionInfoCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsCrawlingSessionInfoCQ.java deleted file mode 100644 index 647c8c208..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsCrawlingSessionInfoCQ.java +++ /dev/null @@ -1,488 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.CrawlingSessionInfoCB; -import jp.sf.fess.db.cbean.cq.CrawlingSessionCQ; -import jp.sf.fess.db.cbean.cq.CrawlingSessionInfoCQ; -import jp.sf.fess.db.cbean.cq.ciq.CrawlingSessionInfoCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of CRAWLING_SESSION_INFO. - * @author DBFlute(AutoGenerator) - */ -public class BsCrawlingSessionInfoCQ extends AbstractBsCrawlingSessionInfoCQ { - - // =================================================================================== - // Attribute - // ========= - protected CrawlingSessionInfoCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsCrawlingSessionInfoCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from CRAWLING_SESSION_INFO) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public CrawlingSessionInfoCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected CrawlingSessionInfoCIQ xcreateCIQ() { - final CrawlingSessionInfoCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected CrawlingSessionInfoCIQ xnewCIQ() { - return new CrawlingSessionInfoCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join CRAWLING_SESSION_INFO on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public CrawlingSessionInfoCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final CrawlingSessionInfoCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsCrawlingSessionInfoCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsCrawlingSessionInfoCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _crawlingSessionId; - - public ConditionValue getCrawlingSessionId() { - if (_crawlingSessionId == null) { - _crawlingSessionId = nCV(); - } - return _crawlingSessionId; - } - - @Override - protected ConditionValue getCValueCrawlingSessionId() { - return getCrawlingSessionId(); - } - - public Map<String, CrawlingSessionCQ> getCrawlingSessionId_InScopeRelation_CrawlingSession() { - return xgetSQueMap("crawlingSessionId_InScopeRelation_CrawlingSession"); - } - - @Override - public String keepCrawlingSessionId_InScopeRelation_CrawlingSession( - final CrawlingSessionCQ sq) { - return xkeepSQue("crawlingSessionId_InScopeRelation_CrawlingSession", - sq); - } - - public Map<String, CrawlingSessionCQ> getCrawlingSessionId_NotInScopeRelation_CrawlingSession() { - return xgetSQueMap("crawlingSessionId_NotInScopeRelation_CrawlingSession"); - } - - @Override - public String keepCrawlingSessionId_NotInScopeRelation_CrawlingSession( - final CrawlingSessionCQ sq) { - return xkeepSQue( - "crawlingSessionId_NotInScopeRelation_CrawlingSession", sq); - } - - /** - * Add order-by as ascend. <br /> - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @return this. (NotNull) - */ - public BsCrawlingSessionInfoCQ addOrderBy_CrawlingSessionId_Asc() { - regOBA("CRAWLING_SESSION_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CRAWLING_SESSION_ID: {IX, NotNull, BIGINT(19), FK to CRAWLING_SESSION} - * @return this. (NotNull) - */ - public BsCrawlingSessionInfoCQ addOrderBy_CrawlingSessionId_Desc() { - regOBD("CRAWLING_SESSION_ID"); - return this; - } - - protected ConditionValue _key; - - public ConditionValue getKey() { - if (_key == null) { - _key = nCV(); - } - return _key; - } - - @Override - protected ConditionValue getCValueKey() { - return getKey(); - } - - /** - * Add order-by as ascend. <br /> - * KEY: {NotNull, VARCHAR(20)} - * @return this. (NotNull) - */ - public BsCrawlingSessionInfoCQ addOrderBy_Key_Asc() { - regOBA("KEY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * KEY: {NotNull, VARCHAR(20)} - * @return this. (NotNull) - */ - public BsCrawlingSessionInfoCQ addOrderBy_Key_Desc() { - regOBD("KEY"); - return this; - } - - protected ConditionValue _value; - - public ConditionValue getValue() { - if (_value == null) { - _value = nCV(); - } - return _value; - } - - @Override - protected ConditionValue getCValueValue() { - return getValue(); - } - - /** - * Add order-by as ascend. <br /> - * VALUE: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsCrawlingSessionInfoCQ addOrderBy_Value_Asc() { - regOBA("VALUE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VALUE: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsCrawlingSessionInfoCQ addOrderBy_Value_Desc() { - regOBD("VALUE"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsCrawlingSessionInfoCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsCrawlingSessionInfoCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsCrawlingSessionInfoCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsCrawlingSessionInfoCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final CrawlingSessionInfoCQ bq = (CrawlingSessionInfoCQ) bqs; - final CrawlingSessionInfoCQ uq = (CrawlingSessionInfoCQ) uqs; - if (bq.hasConditionQueryCrawlingSession()) { - uq.queryCrawlingSession().reflectRelationOnUnionQuery( - bq.queryCrawlingSession(), uq.queryCrawlingSession()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * CRAWLING_SESSION by my CRAWLING_SESSION_ID, named 'crawlingSession'. - * @return The instance of condition-query. (NotNull) - */ - public CrawlingSessionCQ queryCrawlingSession() { - return getConditionQueryCrawlingSession(); - } - - public CrawlingSessionCQ getConditionQueryCrawlingSession() { - final String prop = "crawlingSession"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryCrawlingSession()); - xsetupOuterJoinCrawlingSession(); - } - return xgetQueRlMap(prop); - } - - protected CrawlingSessionCQ xcreateQueryCrawlingSession() { - final String nrp = xresolveNRP("CRAWLING_SESSION_INFO", - "crawlingSession"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new CrawlingSessionCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "crawlingSession", nrp); - } - - protected void xsetupOuterJoinCrawlingSession() { - xregOutJo("crawlingSession"); - } - - public boolean hasConditionQueryCrawlingSession() { - return xhasQueRlMap("crawlingSession"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, CrawlingSessionInfoCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final CrawlingSessionInfoCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, CrawlingSessionInfoCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final CrawlingSessionInfoCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, CrawlingSessionInfoCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final CrawlingSessionInfoCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, CrawlingSessionInfoCQ> _myselfExistsMap; - - public Map<String, CrawlingSessionInfoCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final CrawlingSessionInfoCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, CrawlingSessionInfoCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final CrawlingSessionInfoCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return CrawlingSessionInfoCB.class.getName(); - } - - protected String xCQ() { - return CrawlingSessionInfoCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsDataConfigToLabelTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsDataConfigToLabelTypeMappingCQ.java deleted file mode 100644 index fb12aadcc..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsDataConfigToLabelTypeMappingCQ.java +++ /dev/null @@ -1,479 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.cq.DataConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.ciq.DataConfigToLabelTypeMappingCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of DATA_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsDataConfigToLabelTypeMappingCQ extends - AbstractBsDataConfigToLabelTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected DataConfigToLabelTypeMappingCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsDataConfigToLabelTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from DATA_CONFIG_TO_LABEL_TYPE_MAPPING) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public DataConfigToLabelTypeMappingCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected DataConfigToLabelTypeMappingCIQ xcreateCIQ() { - final DataConfigToLabelTypeMappingCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected DataConfigToLabelTypeMappingCIQ xnewCIQ() { - return new DataConfigToLabelTypeMappingCIQ(xgetReferrerQuery(), - xgetSqlClause(), xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join DATA_CONFIG_TO_LABEL_TYPE_MAPPING on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public DataConfigToLabelTypeMappingCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final DataConfigToLabelTypeMappingCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsDataConfigToLabelTypeMappingCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsDataConfigToLabelTypeMappingCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _dataConfigId; - - public ConditionValue getDataConfigId() { - if (_dataConfigId == null) { - _dataConfigId = nCV(); - } - return _dataConfigId; - } - - @Override - protected ConditionValue getCValueDataConfigId() { - return getDataConfigId(); - } - - public Map<String, DataCrawlingConfigCQ> getDataConfigId_InScopeRelation_DataCrawlingConfig() { - return xgetSQueMap("dataConfigId_InScopeRelation_DataCrawlingConfig"); - } - - @Override - public String keepDataConfigId_InScopeRelation_DataCrawlingConfig( - final DataCrawlingConfigCQ sq) { - return xkeepSQue("dataConfigId_InScopeRelation_DataCrawlingConfig", sq); - } - - public Map<String, DataCrawlingConfigCQ> getDataConfigId_NotInScopeRelation_DataCrawlingConfig() { - return xgetSQueMap("dataConfigId_NotInScopeRelation_DataCrawlingConfig"); - } - - @Override - public String keepDataConfigId_NotInScopeRelation_DataCrawlingConfig( - final DataCrawlingConfigCQ sq) { - return xkeepSQue("dataConfigId_NotInScopeRelation_DataCrawlingConfig", - sq); - } - - /** - * Add order-by as ascend. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsDataConfigToLabelTypeMappingCQ addOrderBy_DataConfigId_Asc() { - regOBA("DATA_CONFIG_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsDataConfigToLabelTypeMappingCQ addOrderBy_DataConfigId_Desc() { - regOBD("DATA_CONFIG_ID"); - return this; - } - - protected ConditionValue _labelTypeId; - - public ConditionValue getLabelTypeId() { - if (_labelTypeId == null) { - _labelTypeId = nCV(); - } - return _labelTypeId; - } - - @Override - protected ConditionValue getCValueLabelTypeId() { - return getLabelTypeId(); - } - - public Map<String, LabelTypeCQ> getLabelTypeId_InScopeRelation_LabelType() { - return xgetSQueMap("labelTypeId_InScopeRelation_LabelType"); - } - - @Override - public String keepLabelTypeId_InScopeRelation_LabelType(final LabelTypeCQ sq) { - return xkeepSQue("labelTypeId_InScopeRelation_LabelType", sq); - } - - public Map<String, LabelTypeCQ> getLabelTypeId_NotInScopeRelation_LabelType() { - return xgetSQueMap("labelTypeId_NotInScopeRelation_LabelType"); - } - - @Override - public String keepLabelTypeId_NotInScopeRelation_LabelType( - final LabelTypeCQ sq) { - return xkeepSQue("labelTypeId_NotInScopeRelation_LabelType", sq); - } - - /** - * Add order-by as ascend. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return this. (NotNull) - */ - public BsDataConfigToLabelTypeMappingCQ addOrderBy_LabelTypeId_Asc() { - regOBA("LABEL_TYPE_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return this. (NotNull) - */ - public BsDataConfigToLabelTypeMappingCQ addOrderBy_LabelTypeId_Desc() { - regOBD("LABEL_TYPE_ID"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsDataConfigToLabelTypeMappingCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsDataConfigToLabelTypeMappingCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final DataConfigToLabelTypeMappingCQ bq = (DataConfigToLabelTypeMappingCQ) bqs; - final DataConfigToLabelTypeMappingCQ uq = (DataConfigToLabelTypeMappingCQ) uqs; - if (bq.hasConditionQueryDataCrawlingConfig()) { - uq.queryDataCrawlingConfig().reflectRelationOnUnionQuery( - bq.queryDataCrawlingConfig(), uq.queryDataCrawlingConfig()); - } - if (bq.hasConditionQueryLabelType()) { - uq.queryLabelType().reflectRelationOnUnionQuery( - bq.queryLabelType(), uq.queryLabelType()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @return The instance of condition-query. (NotNull) - */ - public DataCrawlingConfigCQ queryDataCrawlingConfig() { - return getConditionQueryDataCrawlingConfig(); - } - - public DataCrawlingConfigCQ getConditionQueryDataCrawlingConfig() { - final String prop = "dataCrawlingConfig"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryDataCrawlingConfig()); - xsetupOuterJoinDataCrawlingConfig(); - } - return xgetQueRlMap(prop); - } - - protected DataCrawlingConfigCQ xcreateQueryDataCrawlingConfig() { - final String nrp = xresolveNRP("DATA_CONFIG_TO_LABEL_TYPE_MAPPING", - "dataCrawlingConfig"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new DataCrawlingConfigCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "dataCrawlingConfig", nrp); - } - - protected void xsetupOuterJoinDataCrawlingConfig() { - xregOutJo("dataCrawlingConfig"); - } - - public boolean hasConditionQueryDataCrawlingConfig() { - return xhasQueRlMap("dataCrawlingConfig"); - } - - /** - * Get the condition-query for relation table. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The instance of condition-query. (NotNull) - */ - public LabelTypeCQ queryLabelType() { - return getConditionQueryLabelType(); - } - - public LabelTypeCQ getConditionQueryLabelType() { - final String prop = "labelType"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryLabelType()); - xsetupOuterJoinLabelType(); - } - return xgetQueRlMap(prop); - } - - protected LabelTypeCQ xcreateQueryLabelType() { - final String nrp = xresolveNRP("DATA_CONFIG_TO_LABEL_TYPE_MAPPING", - "labelType"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new LabelTypeCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "labelType", nrp); - } - - protected void xsetupOuterJoinLabelType() { - xregOutJo("labelType"); - } - - public boolean hasConditionQueryLabelType() { - return xhasQueRlMap("labelType"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, DataConfigToLabelTypeMappingCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, DataConfigToLabelTypeMappingCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, DataConfigToLabelTypeMappingCQ> _myselfExistsMap; - - public Map<String, DataConfigToLabelTypeMappingCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, DataConfigToLabelTypeMappingCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return DataConfigToLabelTypeMappingCB.class.getName(); - } - - protected String xCQ() { - return DataConfigToLabelTypeMappingCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsDataConfigToRoleTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsDataConfigToRoleTypeMappingCQ.java deleted file mode 100644 index f91396b23..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsDataConfigToRoleTypeMappingCQ.java +++ /dev/null @@ -1,478 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.cq.DataConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.ciq.DataConfigToRoleTypeMappingCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of DATA_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsDataConfigToRoleTypeMappingCQ extends - AbstractBsDataConfigToRoleTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected DataConfigToRoleTypeMappingCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsDataConfigToRoleTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from DATA_CONFIG_TO_ROLE_TYPE_MAPPING) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public DataConfigToRoleTypeMappingCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected DataConfigToRoleTypeMappingCIQ xcreateCIQ() { - final DataConfigToRoleTypeMappingCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected DataConfigToRoleTypeMappingCIQ xnewCIQ() { - return new DataConfigToRoleTypeMappingCIQ(xgetReferrerQuery(), - xgetSqlClause(), xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join DATA_CONFIG_TO_ROLE_TYPE_MAPPING on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public DataConfigToRoleTypeMappingCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final DataConfigToRoleTypeMappingCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsDataConfigToRoleTypeMappingCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsDataConfigToRoleTypeMappingCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _dataConfigId; - - public ConditionValue getDataConfigId() { - if (_dataConfigId == null) { - _dataConfigId = nCV(); - } - return _dataConfigId; - } - - @Override - protected ConditionValue getCValueDataConfigId() { - return getDataConfigId(); - } - - public Map<String, DataCrawlingConfigCQ> getDataConfigId_InScopeRelation_DataCrawlingConfig() { - return xgetSQueMap("dataConfigId_InScopeRelation_DataCrawlingConfig"); - } - - @Override - public String keepDataConfigId_InScopeRelation_DataCrawlingConfig( - final DataCrawlingConfigCQ sq) { - return xkeepSQue("dataConfigId_InScopeRelation_DataCrawlingConfig", sq); - } - - public Map<String, DataCrawlingConfigCQ> getDataConfigId_NotInScopeRelation_DataCrawlingConfig() { - return xgetSQueMap("dataConfigId_NotInScopeRelation_DataCrawlingConfig"); - } - - @Override - public String keepDataConfigId_NotInScopeRelation_DataCrawlingConfig( - final DataCrawlingConfigCQ sq) { - return xkeepSQue("dataConfigId_NotInScopeRelation_DataCrawlingConfig", - sq); - } - - /** - * Add order-by as ascend. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsDataConfigToRoleTypeMappingCQ addOrderBy_DataConfigId_Asc() { - regOBA("DATA_CONFIG_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DATA_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to DATA_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsDataConfigToRoleTypeMappingCQ addOrderBy_DataConfigId_Desc() { - regOBD("DATA_CONFIG_ID"); - return this; - } - - protected ConditionValue _roleTypeId; - - public ConditionValue getRoleTypeId() { - if (_roleTypeId == null) { - _roleTypeId = nCV(); - } - return _roleTypeId; - } - - @Override - protected ConditionValue getCValueRoleTypeId() { - return getRoleTypeId(); - } - - public Map<String, RoleTypeCQ> getRoleTypeId_InScopeRelation_RoleType() { - return xgetSQueMap("roleTypeId_InScopeRelation_RoleType"); - } - - @Override - public String keepRoleTypeId_InScopeRelation_RoleType(final RoleTypeCQ sq) { - return xkeepSQue("roleTypeId_InScopeRelation_RoleType", sq); - } - - public Map<String, RoleTypeCQ> getRoleTypeId_NotInScopeRelation_RoleType() { - return xgetSQueMap("roleTypeId_NotInScopeRelation_RoleType"); - } - - @Override - public String keepRoleTypeId_NotInScopeRelation_RoleType(final RoleTypeCQ sq) { - return xkeepSQue("roleTypeId_NotInScopeRelation_RoleType", sq); - } - - /** - * Add order-by as ascend. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return this. (NotNull) - */ - public BsDataConfigToRoleTypeMappingCQ addOrderBy_RoleTypeId_Asc() { - regOBA("ROLE_TYPE_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return this. (NotNull) - */ - public BsDataConfigToRoleTypeMappingCQ addOrderBy_RoleTypeId_Desc() { - regOBD("ROLE_TYPE_ID"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsDataConfigToRoleTypeMappingCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsDataConfigToRoleTypeMappingCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final DataConfigToRoleTypeMappingCQ bq = (DataConfigToRoleTypeMappingCQ) bqs; - final DataConfigToRoleTypeMappingCQ uq = (DataConfigToRoleTypeMappingCQ) uqs; - if (bq.hasConditionQueryDataCrawlingConfig()) { - uq.queryDataCrawlingConfig().reflectRelationOnUnionQuery( - bq.queryDataCrawlingConfig(), uq.queryDataCrawlingConfig()); - } - if (bq.hasConditionQueryRoleType()) { - uq.queryRoleType().reflectRelationOnUnionQuery(bq.queryRoleType(), - uq.queryRoleType()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - * @return The instance of condition-query. (NotNull) - */ - public DataCrawlingConfigCQ queryDataCrawlingConfig() { - return getConditionQueryDataCrawlingConfig(); - } - - public DataCrawlingConfigCQ getConditionQueryDataCrawlingConfig() { - final String prop = "dataCrawlingConfig"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryDataCrawlingConfig()); - xsetupOuterJoinDataCrawlingConfig(); - } - return xgetQueRlMap(prop); - } - - protected DataCrawlingConfigCQ xcreateQueryDataCrawlingConfig() { - final String nrp = xresolveNRP("DATA_CONFIG_TO_ROLE_TYPE_MAPPING", - "dataCrawlingConfig"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new DataCrawlingConfigCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "dataCrawlingConfig", nrp); - } - - protected void xsetupOuterJoinDataCrawlingConfig() { - xregOutJo("dataCrawlingConfig"); - } - - public boolean hasConditionQueryDataCrawlingConfig() { - return xhasQueRlMap("dataCrawlingConfig"); - } - - /** - * Get the condition-query for relation table. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The instance of condition-query. (NotNull) - */ - public RoleTypeCQ queryRoleType() { - return getConditionQueryRoleType(); - } - - public RoleTypeCQ getConditionQueryRoleType() { - final String prop = "roleType"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryRoleType()); - xsetupOuterJoinRoleType(); - } - return xgetQueRlMap(prop); - } - - protected RoleTypeCQ xcreateQueryRoleType() { - final String nrp = xresolveNRP("DATA_CONFIG_TO_ROLE_TYPE_MAPPING", - "roleType"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new RoleTypeCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "roleType", nrp); - } - - protected void xsetupOuterJoinRoleType() { - xregOutJo("roleType"); - } - - public boolean hasConditionQueryRoleType() { - return xhasQueRlMap("roleType"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, DataConfigToRoleTypeMappingCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, DataConfigToRoleTypeMappingCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, DataConfigToRoleTypeMappingCQ> _myselfExistsMap; - - public Map<String, DataConfigToRoleTypeMappingCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, DataConfigToRoleTypeMappingCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return DataConfigToRoleTypeMappingCB.class.getName(); - } - - protected String xCQ() { - return DataConfigToRoleTypeMappingCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsDataCrawlingConfigCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsDataCrawlingConfigCQ.java deleted file mode 100644 index e70f27508..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsDataCrawlingConfigCQ.java +++ /dev/null @@ -1,922 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.DataCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.DataConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.ciq.DataCrawlingConfigCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of DATA_CRAWLING_CONFIG. - * @author DBFlute(AutoGenerator) - */ -public class BsDataCrawlingConfigCQ extends AbstractBsDataCrawlingConfigCQ { - - // =================================================================================== - // Attribute - // ========= - protected DataCrawlingConfigCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsDataCrawlingConfigCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from DATA_CRAWLING_CONFIG) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public DataCrawlingConfigCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected DataCrawlingConfigCIQ xcreateCIQ() { - final DataCrawlingConfigCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected DataCrawlingConfigCIQ xnewCIQ() { - return new DataCrawlingConfigCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join DATA_CRAWLING_CONFIG on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public DataCrawlingConfigCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final DataCrawlingConfigCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getId_ExistsReferrer_DataConfigToLabelTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_DataConfigToLabelTypeMappingList", - sq); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getId_ExistsReferrer_DataConfigToRoleTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_DataConfigToRoleTypeMappingList", - sq); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getId_NotExistsReferrer_DataConfigToLabelTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_NotExistsReferrer_DataConfigToLabelTypeMappingList", sq); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getId_NotExistsReferrer_DataConfigToRoleTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_NotExistsReferrer_DataConfigToRoleTypeMappingList", sq); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getId_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList", - sq); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getId_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList", sq); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getId_InScopeRelation_DataConfigToLabelTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_DataConfigToLabelTypeMappingList", - sq); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getId_InScopeRelation_DataConfigToRoleTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_DataConfigToRoleTypeMappingList", - sq); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getId_NotInScopeRelation_DataConfigToLabelTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_DataConfigToLabelTypeMappingList", sq); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getId_NotInScopeRelation_DataConfigToRoleTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_DataConfigToRoleTypeMappingList", sq); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getId_QueryDerivedReferrer_DataConfigToLabelTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_DataConfigToLabelTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_DataConfigToLabelTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_DataConfigToLabelTypeMappingList", pm); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getId_QueryDerivedReferrer_DataConfigToRoleTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_DataConfigToRoleTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_DataConfigToRoleTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_DataConfigToRoleTypeMappingList", pm); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _name; - - public ConditionValue getName() { - if (_name == null) { - _name = nCV(); - } - return _name; - } - - @Override - protected ConditionValue getCValueName() { - return getName(); - } - - /** - * Add order-by as ascend. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_Name_Asc() { - regOBA("NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_Name_Desc() { - regOBD("NAME"); - return this; - } - - protected ConditionValue _handlerName; - - public ConditionValue getHandlerName() { - if (_handlerName == null) { - _handlerName = nCV(); - } - return _handlerName; - } - - @Override - protected ConditionValue getCValueHandlerName() { - return getHandlerName(); - } - - /** - * Add order-by as ascend. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_HandlerName_Asc() { - regOBA("HANDLER_NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * HANDLER_NAME: {NotNull, VARCHAR(200)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_HandlerName_Desc() { - regOBD("HANDLER_NAME"); - return this; - } - - protected ConditionValue _handlerParameter; - - public ConditionValue getHandlerParameter() { - if (_handlerParameter == null) { - _handlerParameter = nCV(); - } - return _handlerParameter; - } - - @Override - protected ConditionValue getCValueHandlerParameter() { - return getHandlerParameter(); - } - - /** - * Add order-by as ascend. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_HandlerParameter_Asc() { - regOBA("HANDLER_PARAMETER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * HANDLER_PARAMETER: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_HandlerParameter_Desc() { - regOBD("HANDLER_PARAMETER"); - return this; - } - - protected ConditionValue _handlerScript; - - public ConditionValue getHandlerScript() { - if (_handlerScript == null) { - _handlerScript = nCV(); - } - return _handlerScript; - } - - @Override - protected ConditionValue getCValueHandlerScript() { - return getHandlerScript(); - } - - /** - * Add order-by as ascend. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_HandlerScript_Asc() { - regOBA("HANDLER_SCRIPT"); - return this; - } - - /** - * Add order-by as descend. <br /> - * HANDLER_SCRIPT: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_HandlerScript_Desc() { - regOBD("HANDLER_SCRIPT"); - return this; - } - - protected ConditionValue _boost; - - public ConditionValue getBoost() { - if (_boost == null) { - _boost = nCV(); - } - return _boost; - } - - @Override - protected ConditionValue getCValueBoost() { - return getBoost(); - } - - /** - * Add order-by as ascend. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_Boost_Asc() { - regOBA("BOOST"); - return this; - } - - /** - * Add order-by as descend. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_Boost_Desc() { - regOBD("BOOST"); - return this; - } - - protected ConditionValue _available; - - public ConditionValue getAvailable() { - if (_available == null) { - _available = nCV(); - } - return _available; - } - - @Override - protected ConditionValue getCValueAvailable() { - return getAvailable(); - } - - /** - * Add order-by as ascend. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_Available_Asc() { - regOBA("AVAILABLE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_Available_Desc() { - regOBD("AVAILABLE"); - return this; - } - - protected ConditionValue _sortOrder; - - public ConditionValue getSortOrder() { - if (_sortOrder == null) { - _sortOrder = nCV(); - } - return _sortOrder; - } - - @Override - protected ConditionValue getCValueSortOrder() { - return getSortOrder(); - } - - /** - * Add order-by as ascend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_SortOrder_Asc() { - regOBA("SORT_ORDER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_SortOrder_Desc() { - regOBD("SORT_ORDER"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsDataCrawlingConfigCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, DataCrawlingConfigCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final DataCrawlingConfigCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, DataCrawlingConfigCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final DataCrawlingConfigCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, DataCrawlingConfigCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final DataCrawlingConfigCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, DataCrawlingConfigCQ> _myselfExistsMap; - - public Map<String, DataCrawlingConfigCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final DataCrawlingConfigCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, DataCrawlingConfigCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final DataCrawlingConfigCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return DataCrawlingConfigCB.class.getName(); - } - - protected String xCQ() { - return DataCrawlingConfigCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFailureUrlCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFailureUrlCQ.java deleted file mode 100644 index ad53c7633..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFailureUrlCQ.java +++ /dev/null @@ -1,525 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.FailureUrlCB; -import jp.sf.fess.db.cbean.cq.FailureUrlCQ; -import jp.sf.fess.db.cbean.cq.ciq.FailureUrlCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of FAILURE_URL. - * @author DBFlute(AutoGenerator) - */ -public class BsFailureUrlCQ extends AbstractBsFailureUrlCQ { - - // =================================================================================== - // Attribute - // ========= - protected FailureUrlCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsFailureUrlCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from FAILURE_URL) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public FailureUrlCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected FailureUrlCIQ xcreateCIQ() { - final FailureUrlCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected FailureUrlCIQ xnewCIQ() { - return new FailureUrlCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join FAILURE_URL on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public FailureUrlCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final FailureUrlCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _url; - - public ConditionValue getUrl() { - if (_url == null) { - _url = nCV(); - } - return _url; - } - - @Override - protected ConditionValue getCValueUrl() { - return getUrl(); - } - - /** - * Add order-by as ascend. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_Url_Asc() { - regOBA("URL"); - return this; - } - - /** - * Add order-by as descend. <br /> - * URL: {IX+, NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_Url_Desc() { - regOBD("URL"); - return this; - } - - protected ConditionValue _threadName; - - public ConditionValue getThreadName() { - if (_threadName == null) { - _threadName = nCV(); - } - return _threadName; - } - - @Override - protected ConditionValue getCValueThreadName() { - return getThreadName(); - } - - /** - * Add order-by as ascend. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_ThreadName_Asc() { - regOBA("THREAD_NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * THREAD_NAME: {NotNull, VARCHAR(30)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_ThreadName_Desc() { - regOBD("THREAD_NAME"); - return this; - } - - protected ConditionValue _errorName; - - public ConditionValue getErrorName() { - if (_errorName == null) { - _errorName = nCV(); - } - return _errorName; - } - - @Override - protected ConditionValue getCValueErrorName() { - return getErrorName(); - } - - /** - * Add order-by as ascend. <br /> - * ERROR_NAME: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_ErrorName_Asc() { - regOBA("ERROR_NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ERROR_NAME: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_ErrorName_Desc() { - regOBD("ERROR_NAME"); - return this; - } - - protected ConditionValue _errorLog; - - public ConditionValue getErrorLog() { - if (_errorLog == null) { - _errorLog = nCV(); - } - return _errorLog; - } - - @Override - protected ConditionValue getCValueErrorLog() { - return getErrorLog(); - } - - /** - * Add order-by as ascend. <br /> - * ERROR_LOG: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_ErrorLog_Asc() { - regOBA("ERROR_LOG"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ERROR_LOG: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_ErrorLog_Desc() { - regOBD("ERROR_LOG"); - return this; - } - - protected ConditionValue _errorCount; - - public ConditionValue getErrorCount() { - if (_errorCount == null) { - _errorCount = nCV(); - } - return _errorCount; - } - - @Override - protected ConditionValue getCValueErrorCount() { - return getErrorCount(); - } - - /** - * Add order-by as ascend. <br /> - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_ErrorCount_Asc() { - regOBA("ERROR_COUNT"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ERROR_COUNT: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_ErrorCount_Desc() { - regOBD("ERROR_COUNT"); - return this; - } - - protected ConditionValue _lastAccessTime; - - public ConditionValue getLastAccessTime() { - if (_lastAccessTime == null) { - _lastAccessTime = nCV(); - } - return _lastAccessTime; - } - - @Override - protected ConditionValue getCValueLastAccessTime() { - return getLastAccessTime(); - } - - /** - * Add order-by as ascend. <br /> - * LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_LastAccessTime_Asc() { - regOBA("LAST_ACCESS_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * LAST_ACCESS_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_LastAccessTime_Desc() { - regOBD("LAST_ACCESS_TIME"); - return this; - } - - protected ConditionValue _configId; - - public ConditionValue getConfigId() { - if (_configId == null) { - _configId = nCV(); - } - return _configId; - } - - @Override - protected ConditionValue getCValueConfigId() { - return getConfigId(); - } - - /** - * Add order-by as ascend. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_ConfigId_Asc() { - regOBA("CONFIG_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CONFIG_ID: {IX, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsFailureUrlCQ addOrderBy_ConfigId_Desc() { - regOBD("CONFIG_ID"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsFailureUrlCQ addSpecifiedDerivedOrderBy_Asc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsFailureUrlCQ addSpecifiedDerivedOrderBy_Desc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, FailureUrlCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final FailureUrlCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, FailureUrlCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final FailureUrlCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, FailureUrlCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final FailureUrlCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, FailureUrlCQ> _myselfExistsMap; - - public Map<String, FailureUrlCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final FailureUrlCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, FailureUrlCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final FailureUrlCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return FailureUrlCB.class.getName(); - } - - protected String xCQ() { - return FailureUrlCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFavoriteLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFavoriteLogCQ.java deleted file mode 100644 index 6b2d3c671..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFavoriteLogCQ.java +++ /dev/null @@ -1,448 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.FavoriteLogCB; -import jp.sf.fess.db.cbean.cq.FavoriteLogCQ; -import jp.sf.fess.db.cbean.cq.UserInfoCQ; -import jp.sf.fess.db.cbean.cq.ciq.FavoriteLogCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of FAVORITE_LOG. - * @author DBFlute(AutoGenerator) - */ -public class BsFavoriteLogCQ extends AbstractBsFavoriteLogCQ { - - // =================================================================================== - // Attribute - // ========= - protected FavoriteLogCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsFavoriteLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from FAVORITE_LOG) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public FavoriteLogCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected FavoriteLogCIQ xcreateCIQ() { - final FavoriteLogCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected FavoriteLogCIQ xnewCIQ() { - return new FavoriteLogCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join FAVORITE_LOG on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public FavoriteLogCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final FavoriteLogCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsFavoriteLogCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsFavoriteLogCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _userId; - - public ConditionValue getUserId() { - if (_userId == null) { - _userId = nCV(); - } - return _userId; - } - - @Override - protected ConditionValue getCValueUserId() { - return getUserId(); - } - - public Map<String, UserInfoCQ> getUserId_InScopeRelation_UserInfo() { - return xgetSQueMap("userId_InScopeRelation_UserInfo"); - } - - @Override - public String keepUserId_InScopeRelation_UserInfo(final UserInfoCQ sq) { - return xkeepSQue("userId_InScopeRelation_UserInfo", sq); - } - - public Map<String, UserInfoCQ> getUserId_NotInScopeRelation_UserInfo() { - return xgetSQueMap("userId_NotInScopeRelation_UserInfo"); - } - - @Override - public String keepUserId_NotInScopeRelation_UserInfo(final UserInfoCQ sq) { - return xkeepSQue("userId_NotInScopeRelation_UserInfo", sq); - } - - /** - * Add order-by as ascend. <br /> - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @return this. (NotNull) - */ - public BsFavoriteLogCQ addOrderBy_UserId_Asc() { - regOBA("USER_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * USER_ID: {UQ+, IX, NotNull, BIGINT(19), FK to USER_INFO} - * @return this. (NotNull) - */ - public BsFavoriteLogCQ addOrderBy_UserId_Desc() { - regOBD("USER_ID"); - return this; - } - - protected ConditionValue _url; - - public ConditionValue getUrl() { - if (_url == null) { - _url = nCV(); - } - return _url; - } - - @Override - protected ConditionValue getCValueUrl() { - return getUrl(); - } - - /** - * Add order-by as ascend. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFavoriteLogCQ addOrderBy_Url_Asc() { - regOBA("URL"); - return this; - } - - /** - * Add order-by as descend. <br /> - * URL: {+UQ, NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFavoriteLogCQ addOrderBy_Url_Desc() { - regOBD("URL"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFavoriteLogCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFavoriteLogCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsFavoriteLogCQ addSpecifiedDerivedOrderBy_Asc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsFavoriteLogCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final FavoriteLogCQ bq = (FavoriteLogCQ) bqs; - final FavoriteLogCQ uq = (FavoriteLogCQ) uqs; - if (bq.hasConditionQueryUserInfo()) { - uq.queryUserInfo().reflectRelationOnUnionQuery(bq.queryUserInfo(), - uq.queryUserInfo()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * USER_INFO by my USER_ID, named 'userInfo'. - * @return The instance of condition-query. (NotNull) - */ - public UserInfoCQ queryUserInfo() { - return getConditionQueryUserInfo(); - } - - public UserInfoCQ getConditionQueryUserInfo() { - final String prop = "userInfo"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryUserInfo()); - xsetupOuterJoinUserInfo(); - } - return xgetQueRlMap(prop); - } - - protected UserInfoCQ xcreateQueryUserInfo() { - final String nrp = xresolveNRP("FAVORITE_LOG", "userInfo"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new UserInfoCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "userInfo", nrp); - } - - protected void xsetupOuterJoinUserInfo() { - xregOutJo("userInfo"); - } - - public boolean hasConditionQueryUserInfo() { - return xhasQueRlMap("userInfo"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, FavoriteLogCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final FavoriteLogCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, FavoriteLogCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final FavoriteLogCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, FavoriteLogCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final FavoriteLogCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, FavoriteLogCQ> _myselfExistsMap; - - public Map<String, FavoriteLogCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final FavoriteLogCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, FavoriteLogCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final FavoriteLogCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return FavoriteLogCB.class.getName(); - } - - protected String xCQ() { - return FavoriteLogCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileAuthenticationCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileAuthenticationCQ.java deleted file mode 100644 index 46a13e3c7..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileAuthenticationCQ.java +++ /dev/null @@ -1,829 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.FileAuthenticationCB; -import jp.sf.fess.db.cbean.cq.FileAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.ciq.FileAuthenticationCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of FILE_AUTHENTICATION. - * @author DBFlute(AutoGenerator) - */ -public class BsFileAuthenticationCQ extends AbstractBsFileAuthenticationCQ { - - // =================================================================================== - // Attribute - // ========= - protected FileAuthenticationCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsFileAuthenticationCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from FILE_AUTHENTICATION) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public FileAuthenticationCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected FileAuthenticationCIQ xcreateCIQ() { - final FileAuthenticationCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected FileAuthenticationCIQ xnewCIQ() { - return new FileAuthenticationCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join FILE_AUTHENTICATION on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public FileAuthenticationCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final FileAuthenticationCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _hostname; - - public ConditionValue getHostname() { - if (_hostname == null) { - _hostname = nCV(); - } - return _hostname; - } - - @Override - protected ConditionValue getCValueHostname() { - return getHostname(); - } - - /** - * Add order-by as ascend. <br /> - * HOSTNAME: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_Hostname_Asc() { - regOBA("HOSTNAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * HOSTNAME: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_Hostname_Desc() { - regOBD("HOSTNAME"); - return this; - } - - protected ConditionValue _port; - - public ConditionValue getPort() { - if (_port == null) { - _port = nCV(); - } - return _port; - } - - @Override - protected ConditionValue getCValuePort() { - return getPort(); - } - - /** - * Add order-by as ascend. <br /> - * PORT: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_Port_Asc() { - regOBA("PORT"); - return this; - } - - /** - * Add order-by as descend. <br /> - * PORT: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_Port_Desc() { - regOBD("PORT"); - return this; - } - - protected ConditionValue _protocolScheme; - - public ConditionValue getProtocolScheme() { - if (_protocolScheme == null) { - _protocolScheme = nCV(); - } - return _protocolScheme; - } - - @Override - protected ConditionValue getCValueProtocolScheme() { - return getProtocolScheme(); - } - - /** - * Add order-by as ascend. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_ProtocolScheme_Asc() { - regOBA("PROTOCOL_SCHEME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_ProtocolScheme_Desc() { - regOBD("PROTOCOL_SCHEME"); - return this; - } - - protected ConditionValue _username; - - public ConditionValue getUsername() { - if (_username == null) { - _username = nCV(); - } - return _username; - } - - @Override - protected ConditionValue getCValueUsername() { - return getUsername(); - } - - /** - * Add order-by as ascend. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_Username_Asc() { - regOBA("USERNAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_Username_Desc() { - regOBD("USERNAME"); - return this; - } - - protected ConditionValue _password; - - public ConditionValue getPassword() { - if (_password == null) { - _password = nCV(); - } - return _password; - } - - @Override - protected ConditionValue getCValuePassword() { - return getPassword(); - } - - /** - * Add order-by as ascend. <br /> - * PASSWORD: {VARCHAR(100)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_Password_Asc() { - regOBA("PASSWORD"); - return this; - } - - /** - * Add order-by as descend. <br /> - * PASSWORD: {VARCHAR(100)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_Password_Desc() { - regOBD("PASSWORD"); - return this; - } - - protected ConditionValue _parameters; - - public ConditionValue getParameters() { - if (_parameters == null) { - _parameters = nCV(); - } - return _parameters; - } - - @Override - protected ConditionValue getCValueParameters() { - return getParameters(); - } - - /** - * Add order-by as ascend. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_Parameters_Asc() { - regOBA("PARAMETERS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_Parameters_Desc() { - regOBD("PARAMETERS"); - return this; - } - - protected ConditionValue _fileCrawlingConfigId; - - public ConditionValue getFileCrawlingConfigId() { - if (_fileCrawlingConfigId == null) { - _fileCrawlingConfigId = nCV(); - } - return _fileCrawlingConfigId; - } - - @Override - protected ConditionValue getCValueFileCrawlingConfigId() { - return getFileCrawlingConfigId(); - } - - public Map<String, FileCrawlingConfigCQ> getFileCrawlingConfigId_InScopeRelation_FileCrawlingConfig() { - return xgetSQueMap("fileCrawlingConfigId_InScopeRelation_FileCrawlingConfig"); - } - - @Override - public String keepFileCrawlingConfigId_InScopeRelation_FileCrawlingConfig( - final FileCrawlingConfigCQ sq) { - return xkeepSQue( - "fileCrawlingConfigId_InScopeRelation_FileCrawlingConfig", sq); - } - - public Map<String, FileCrawlingConfigCQ> getFileCrawlingConfigId_NotInScopeRelation_FileCrawlingConfig() { - return xgetSQueMap("fileCrawlingConfigId_NotInScopeRelation_FileCrawlingConfig"); - } - - @Override - public String keepFileCrawlingConfigId_NotInScopeRelation_FileCrawlingConfig( - final FileCrawlingConfigCQ sq) { - return xkeepSQue( - "fileCrawlingConfigId_NotInScopeRelation_FileCrawlingConfig", - sq); - } - - /** - * Add order-by as ascend. <br /> - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_FileCrawlingConfigId_Asc() { - regOBA("FILE_CRAWLING_CONFIG_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * FILE_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_FileCrawlingConfigId_Desc() { - regOBD("FILE_CRAWLING_CONFIG_ID"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsFileAuthenticationCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final FileAuthenticationCQ bq = (FileAuthenticationCQ) bqs; - final FileAuthenticationCQ uq = (FileAuthenticationCQ) uqs; - if (bq.hasConditionQueryFileCrawlingConfig()) { - uq.queryFileCrawlingConfig().reflectRelationOnUnionQuery( - bq.queryFileCrawlingConfig(), uq.queryFileCrawlingConfig()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * FILE_CRAWLING_CONFIG by my FILE_CRAWLING_CONFIG_ID, named 'fileCrawlingConfig'. - * @return The instance of condition-query. (NotNull) - */ - public FileCrawlingConfigCQ queryFileCrawlingConfig() { - return getConditionQueryFileCrawlingConfig(); - } - - public FileCrawlingConfigCQ getConditionQueryFileCrawlingConfig() { - final String prop = "fileCrawlingConfig"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryFileCrawlingConfig()); - xsetupOuterJoinFileCrawlingConfig(); - } - return xgetQueRlMap(prop); - } - - protected FileCrawlingConfigCQ xcreateQueryFileCrawlingConfig() { - final String nrp = xresolveNRP("FILE_AUTHENTICATION", - "fileCrawlingConfig"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new FileCrawlingConfigCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "fileCrawlingConfig", nrp); - } - - protected void xsetupOuterJoinFileCrawlingConfig() { - xregOutJo("fileCrawlingConfig"); - } - - public boolean hasConditionQueryFileCrawlingConfig() { - return xhasQueRlMap("fileCrawlingConfig"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, FileAuthenticationCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final FileAuthenticationCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, FileAuthenticationCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final FileAuthenticationCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, FileAuthenticationCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final FileAuthenticationCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, FileAuthenticationCQ> _myselfExistsMap; - - public Map<String, FileAuthenticationCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final FileAuthenticationCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, FileAuthenticationCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final FileAuthenticationCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return FileAuthenticationCB.class.getName(); - } - - protected String xCQ() { - return FileAuthenticationCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileConfigToLabelTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileConfigToLabelTypeMappingCQ.java deleted file mode 100644 index 44656917a..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileConfigToLabelTypeMappingCQ.java +++ /dev/null @@ -1,479 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.cq.FileConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.ciq.FileConfigToLabelTypeMappingCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of FILE_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsFileConfigToLabelTypeMappingCQ extends - AbstractBsFileConfigToLabelTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected FileConfigToLabelTypeMappingCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsFileConfigToLabelTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from FILE_CONFIG_TO_LABEL_TYPE_MAPPING) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public FileConfigToLabelTypeMappingCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected FileConfigToLabelTypeMappingCIQ xcreateCIQ() { - final FileConfigToLabelTypeMappingCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected FileConfigToLabelTypeMappingCIQ xnewCIQ() { - return new FileConfigToLabelTypeMappingCIQ(xgetReferrerQuery(), - xgetSqlClause(), xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join FILE_CONFIG_TO_LABEL_TYPE_MAPPING on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public FileConfigToLabelTypeMappingCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final FileConfigToLabelTypeMappingCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsFileConfigToLabelTypeMappingCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsFileConfigToLabelTypeMappingCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _fileConfigId; - - public ConditionValue getFileConfigId() { - if (_fileConfigId == null) { - _fileConfigId = nCV(); - } - return _fileConfigId; - } - - @Override - protected ConditionValue getCValueFileConfigId() { - return getFileConfigId(); - } - - public Map<String, FileCrawlingConfigCQ> getFileConfigId_InScopeRelation_FileCrawlingConfig() { - return xgetSQueMap("fileConfigId_InScopeRelation_FileCrawlingConfig"); - } - - @Override - public String keepFileConfigId_InScopeRelation_FileCrawlingConfig( - final FileCrawlingConfigCQ sq) { - return xkeepSQue("fileConfigId_InScopeRelation_FileCrawlingConfig", sq); - } - - public Map<String, FileCrawlingConfigCQ> getFileConfigId_NotInScopeRelation_FileCrawlingConfig() { - return xgetSQueMap("fileConfigId_NotInScopeRelation_FileCrawlingConfig"); - } - - @Override - public String keepFileConfigId_NotInScopeRelation_FileCrawlingConfig( - final FileCrawlingConfigCQ sq) { - return xkeepSQue("fileConfigId_NotInScopeRelation_FileCrawlingConfig", - sq); - } - - /** - * Add order-by as ascend. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsFileConfigToLabelTypeMappingCQ addOrderBy_FileConfigId_Asc() { - regOBA("FILE_CONFIG_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsFileConfigToLabelTypeMappingCQ addOrderBy_FileConfigId_Desc() { - regOBD("FILE_CONFIG_ID"); - return this; - } - - protected ConditionValue _labelTypeId; - - public ConditionValue getLabelTypeId() { - if (_labelTypeId == null) { - _labelTypeId = nCV(); - } - return _labelTypeId; - } - - @Override - protected ConditionValue getCValueLabelTypeId() { - return getLabelTypeId(); - } - - public Map<String, LabelTypeCQ> getLabelTypeId_InScopeRelation_LabelType() { - return xgetSQueMap("labelTypeId_InScopeRelation_LabelType"); - } - - @Override - public String keepLabelTypeId_InScopeRelation_LabelType(final LabelTypeCQ sq) { - return xkeepSQue("labelTypeId_InScopeRelation_LabelType", sq); - } - - public Map<String, LabelTypeCQ> getLabelTypeId_NotInScopeRelation_LabelType() { - return xgetSQueMap("labelTypeId_NotInScopeRelation_LabelType"); - } - - @Override - public String keepLabelTypeId_NotInScopeRelation_LabelType( - final LabelTypeCQ sq) { - return xkeepSQue("labelTypeId_NotInScopeRelation_LabelType", sq); - } - - /** - * Add order-by as ascend. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return this. (NotNull) - */ - public BsFileConfigToLabelTypeMappingCQ addOrderBy_LabelTypeId_Asc() { - regOBA("LABEL_TYPE_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return this. (NotNull) - */ - public BsFileConfigToLabelTypeMappingCQ addOrderBy_LabelTypeId_Desc() { - regOBD("LABEL_TYPE_ID"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsFileConfigToLabelTypeMappingCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsFileConfigToLabelTypeMappingCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final FileConfigToLabelTypeMappingCQ bq = (FileConfigToLabelTypeMappingCQ) bqs; - final FileConfigToLabelTypeMappingCQ uq = (FileConfigToLabelTypeMappingCQ) uqs; - if (bq.hasConditionQueryFileCrawlingConfig()) { - uq.queryFileCrawlingConfig().reflectRelationOnUnionQuery( - bq.queryFileCrawlingConfig(), uq.queryFileCrawlingConfig()); - } - if (bq.hasConditionQueryLabelType()) { - uq.queryLabelType().reflectRelationOnUnionQuery( - bq.queryLabelType(), uq.queryLabelType()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @return The instance of condition-query. (NotNull) - */ - public FileCrawlingConfigCQ queryFileCrawlingConfig() { - return getConditionQueryFileCrawlingConfig(); - } - - public FileCrawlingConfigCQ getConditionQueryFileCrawlingConfig() { - final String prop = "fileCrawlingConfig"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryFileCrawlingConfig()); - xsetupOuterJoinFileCrawlingConfig(); - } - return xgetQueRlMap(prop); - } - - protected FileCrawlingConfigCQ xcreateQueryFileCrawlingConfig() { - final String nrp = xresolveNRP("FILE_CONFIG_TO_LABEL_TYPE_MAPPING", - "fileCrawlingConfig"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new FileCrawlingConfigCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "fileCrawlingConfig", nrp); - } - - protected void xsetupOuterJoinFileCrawlingConfig() { - xregOutJo("fileCrawlingConfig"); - } - - public boolean hasConditionQueryFileCrawlingConfig() { - return xhasQueRlMap("fileCrawlingConfig"); - } - - /** - * Get the condition-query for relation table. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The instance of condition-query. (NotNull) - */ - public LabelTypeCQ queryLabelType() { - return getConditionQueryLabelType(); - } - - public LabelTypeCQ getConditionQueryLabelType() { - final String prop = "labelType"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryLabelType()); - xsetupOuterJoinLabelType(); - } - return xgetQueRlMap(prop); - } - - protected LabelTypeCQ xcreateQueryLabelType() { - final String nrp = xresolveNRP("FILE_CONFIG_TO_LABEL_TYPE_MAPPING", - "labelType"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new LabelTypeCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "labelType", nrp); - } - - protected void xsetupOuterJoinLabelType() { - xregOutJo("labelType"); - } - - public boolean hasConditionQueryLabelType() { - return xhasQueRlMap("labelType"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, FileConfigToLabelTypeMappingCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, FileConfigToLabelTypeMappingCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, FileConfigToLabelTypeMappingCQ> _myselfExistsMap; - - public Map<String, FileConfigToLabelTypeMappingCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, FileConfigToLabelTypeMappingCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return FileConfigToLabelTypeMappingCB.class.getName(); - } - - protected String xCQ() { - return FileConfigToLabelTypeMappingCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileConfigToRoleTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileConfigToRoleTypeMappingCQ.java deleted file mode 100644 index 4d588deb1..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileConfigToRoleTypeMappingCQ.java +++ /dev/null @@ -1,478 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.cq.FileConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.ciq.FileConfigToRoleTypeMappingCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of FILE_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsFileConfigToRoleTypeMappingCQ extends - AbstractBsFileConfigToRoleTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected FileConfigToRoleTypeMappingCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsFileConfigToRoleTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from FILE_CONFIG_TO_ROLE_TYPE_MAPPING) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public FileConfigToRoleTypeMappingCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected FileConfigToRoleTypeMappingCIQ xcreateCIQ() { - final FileConfigToRoleTypeMappingCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected FileConfigToRoleTypeMappingCIQ xnewCIQ() { - return new FileConfigToRoleTypeMappingCIQ(xgetReferrerQuery(), - xgetSqlClause(), xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join FILE_CONFIG_TO_ROLE_TYPE_MAPPING on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public FileConfigToRoleTypeMappingCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final FileConfigToRoleTypeMappingCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsFileConfigToRoleTypeMappingCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsFileConfigToRoleTypeMappingCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _fileConfigId; - - public ConditionValue getFileConfigId() { - if (_fileConfigId == null) { - _fileConfigId = nCV(); - } - return _fileConfigId; - } - - @Override - protected ConditionValue getCValueFileConfigId() { - return getFileConfigId(); - } - - public Map<String, FileCrawlingConfigCQ> getFileConfigId_InScopeRelation_FileCrawlingConfig() { - return xgetSQueMap("fileConfigId_InScopeRelation_FileCrawlingConfig"); - } - - @Override - public String keepFileConfigId_InScopeRelation_FileCrawlingConfig( - final FileCrawlingConfigCQ sq) { - return xkeepSQue("fileConfigId_InScopeRelation_FileCrawlingConfig", sq); - } - - public Map<String, FileCrawlingConfigCQ> getFileConfigId_NotInScopeRelation_FileCrawlingConfig() { - return xgetSQueMap("fileConfigId_NotInScopeRelation_FileCrawlingConfig"); - } - - @Override - public String keepFileConfigId_NotInScopeRelation_FileCrawlingConfig( - final FileCrawlingConfigCQ sq) { - return xkeepSQue("fileConfigId_NotInScopeRelation_FileCrawlingConfig", - sq); - } - - /** - * Add order-by as ascend. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsFileConfigToRoleTypeMappingCQ addOrderBy_FileConfigId_Asc() { - regOBA("FILE_CONFIG_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * FILE_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to FILE_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsFileConfigToRoleTypeMappingCQ addOrderBy_FileConfigId_Desc() { - regOBD("FILE_CONFIG_ID"); - return this; - } - - protected ConditionValue _roleTypeId; - - public ConditionValue getRoleTypeId() { - if (_roleTypeId == null) { - _roleTypeId = nCV(); - } - return _roleTypeId; - } - - @Override - protected ConditionValue getCValueRoleTypeId() { - return getRoleTypeId(); - } - - public Map<String, RoleTypeCQ> getRoleTypeId_InScopeRelation_RoleType() { - return xgetSQueMap("roleTypeId_InScopeRelation_RoleType"); - } - - @Override - public String keepRoleTypeId_InScopeRelation_RoleType(final RoleTypeCQ sq) { - return xkeepSQue("roleTypeId_InScopeRelation_RoleType", sq); - } - - public Map<String, RoleTypeCQ> getRoleTypeId_NotInScopeRelation_RoleType() { - return xgetSQueMap("roleTypeId_NotInScopeRelation_RoleType"); - } - - @Override - public String keepRoleTypeId_NotInScopeRelation_RoleType(final RoleTypeCQ sq) { - return xkeepSQue("roleTypeId_NotInScopeRelation_RoleType", sq); - } - - /** - * Add order-by as ascend. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return this. (NotNull) - */ - public BsFileConfigToRoleTypeMappingCQ addOrderBy_RoleTypeId_Asc() { - regOBA("ROLE_TYPE_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return this. (NotNull) - */ - public BsFileConfigToRoleTypeMappingCQ addOrderBy_RoleTypeId_Desc() { - regOBD("ROLE_TYPE_ID"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsFileConfigToRoleTypeMappingCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsFileConfigToRoleTypeMappingCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final FileConfigToRoleTypeMappingCQ bq = (FileConfigToRoleTypeMappingCQ) bqs; - final FileConfigToRoleTypeMappingCQ uq = (FileConfigToRoleTypeMappingCQ) uqs; - if (bq.hasConditionQueryFileCrawlingConfig()) { - uq.queryFileCrawlingConfig().reflectRelationOnUnionQuery( - bq.queryFileCrawlingConfig(), uq.queryFileCrawlingConfig()); - } - if (bq.hasConditionQueryRoleType()) { - uq.queryRoleType().reflectRelationOnUnionQuery(bq.queryRoleType(), - uq.queryRoleType()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - * @return The instance of condition-query. (NotNull) - */ - public FileCrawlingConfigCQ queryFileCrawlingConfig() { - return getConditionQueryFileCrawlingConfig(); - } - - public FileCrawlingConfigCQ getConditionQueryFileCrawlingConfig() { - final String prop = "fileCrawlingConfig"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryFileCrawlingConfig()); - xsetupOuterJoinFileCrawlingConfig(); - } - return xgetQueRlMap(prop); - } - - protected FileCrawlingConfigCQ xcreateQueryFileCrawlingConfig() { - final String nrp = xresolveNRP("FILE_CONFIG_TO_ROLE_TYPE_MAPPING", - "fileCrawlingConfig"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new FileCrawlingConfigCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "fileCrawlingConfig", nrp); - } - - protected void xsetupOuterJoinFileCrawlingConfig() { - xregOutJo("fileCrawlingConfig"); - } - - public boolean hasConditionQueryFileCrawlingConfig() { - return xhasQueRlMap("fileCrawlingConfig"); - } - - /** - * Get the condition-query for relation table. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The instance of condition-query. (NotNull) - */ - public RoleTypeCQ queryRoleType() { - return getConditionQueryRoleType(); - } - - public RoleTypeCQ getConditionQueryRoleType() { - final String prop = "roleType"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryRoleType()); - xsetupOuterJoinRoleType(); - } - return xgetQueRlMap(prop); - } - - protected RoleTypeCQ xcreateQueryRoleType() { - final String nrp = xresolveNRP("FILE_CONFIG_TO_ROLE_TYPE_MAPPING", - "roleType"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new RoleTypeCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "roleType", nrp); - } - - protected void xsetupOuterJoinRoleType() { - xregOutJo("roleType"); - } - - public boolean hasConditionQueryRoleType() { - return xhasQueRlMap("roleType"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, FileConfigToRoleTypeMappingCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, FileConfigToRoleTypeMappingCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, FileConfigToRoleTypeMappingCQ> _myselfExistsMap; - - public Map<String, FileConfigToRoleTypeMappingCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, FileConfigToRoleTypeMappingCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return FileConfigToRoleTypeMappingCB.class.getName(); - } - - protected String xCQ() { - return FileConfigToRoleTypeMappingCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileCrawlingConfigCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileCrawlingConfigCQ.java deleted file mode 100644 index cfd82c7c5..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsFileCrawlingConfigCQ.java +++ /dev/null @@ -1,1231 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.FileAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.FileConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.ciq.FileCrawlingConfigCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of FILE_CRAWLING_CONFIG. - * @author DBFlute(AutoGenerator) - */ -public class BsFileCrawlingConfigCQ extends AbstractBsFileCrawlingConfigCQ { - - // =================================================================================== - // Attribute - // ========= - protected FileCrawlingConfigCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsFileCrawlingConfigCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from FILE_CRAWLING_CONFIG) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public FileCrawlingConfigCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected FileCrawlingConfigCIQ xcreateCIQ() { - final FileCrawlingConfigCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected FileCrawlingConfigCIQ xnewCIQ() { - return new FileCrawlingConfigCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join FILE_CRAWLING_CONFIG on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public FileCrawlingConfigCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final FileCrawlingConfigCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - public Map<String, FileAuthenticationCQ> getId_ExistsReferrer_FileAuthenticationList() { - return xgetSQueMap("id_ExistsReferrer_FileAuthenticationList"); - } - - @Override - public String keepId_ExistsReferrer_FileAuthenticationList( - final FileAuthenticationCQ sq) { - return xkeepSQue("id_ExistsReferrer_FileAuthenticationList", sq); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getId_ExistsReferrer_FileConfigToLabelTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_FileConfigToLabelTypeMappingList", - sq); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getId_ExistsReferrer_FileConfigToRoleTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_FileConfigToRoleTypeMappingList", - sq); - } - - public Map<String, FileAuthenticationCQ> getId_NotExistsReferrer_FileAuthenticationList() { - return xgetSQueMap("id_NotExistsReferrer_FileAuthenticationList"); - } - - @Override - public String keepId_NotExistsReferrer_FileAuthenticationList( - final FileAuthenticationCQ sq) { - return xkeepSQue("id_NotExistsReferrer_FileAuthenticationList", sq); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getId_NotExistsReferrer_FileConfigToLabelTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_NotExistsReferrer_FileConfigToLabelTypeMappingList", sq); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getId_NotExistsReferrer_FileConfigToRoleTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_NotExistsReferrer_FileConfigToRoleTypeMappingList", sq); - } - - public Map<String, FileAuthenticationCQ> getId_SpecifyDerivedReferrer_FileAuthenticationList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_FileAuthenticationList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_FileAuthenticationList( - final FileAuthenticationCQ sq) { - return xkeepSQue("id_SpecifyDerivedReferrer_FileAuthenticationList", sq); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getId_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList", - sq); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getId_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList", sq); - } - - public Map<String, FileAuthenticationCQ> getId_InScopeRelation_FileAuthenticationList() { - return xgetSQueMap("id_InScopeRelation_FileAuthenticationList"); - } - - @Override - public String keepId_InScopeRelation_FileAuthenticationList( - final FileAuthenticationCQ sq) { - return xkeepSQue("id_InScopeRelation_FileAuthenticationList", sq); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getId_InScopeRelation_FileConfigToLabelTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_FileConfigToLabelTypeMappingList", - sq); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getId_InScopeRelation_FileConfigToRoleTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_FileConfigToRoleTypeMappingList", - sq); - } - - public Map<String, FileAuthenticationCQ> getId_NotInScopeRelation_FileAuthenticationList() { - return xgetSQueMap("id_NotInScopeRelation_FileAuthenticationList"); - } - - @Override - public String keepId_NotInScopeRelation_FileAuthenticationList( - final FileAuthenticationCQ sq) { - return xkeepSQue("id_NotInScopeRelation_FileAuthenticationList", sq); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getId_NotInScopeRelation_FileConfigToLabelTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_FileConfigToLabelTypeMappingList", sq); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getId_NotInScopeRelation_FileConfigToRoleTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_FileConfigToRoleTypeMappingList", sq); - } - - public Map<String, FileAuthenticationCQ> getId_QueryDerivedReferrer_FileAuthenticationList() { - return xgetSQueMap("id_QueryDerivedReferrer_FileAuthenticationList"); - } - - @Override - public String keepId_QueryDerivedReferrer_FileAuthenticationList( - final FileAuthenticationCQ sq) { - return xkeepSQue("id_QueryDerivedReferrer_FileAuthenticationList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_FileAuthenticationListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_FileAuthenticationList"); - } - - @Override - public String keepId_QueryDerivedReferrer_FileAuthenticationListParameter( - final Object pm) { - return xkeepSQuePm("id_QueryDerivedReferrer_FileAuthenticationList", pm); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getId_QueryDerivedReferrer_FileConfigToLabelTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_FileConfigToLabelTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_FileConfigToLabelTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_FileConfigToLabelTypeMappingList", pm); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getId_QueryDerivedReferrer_FileConfigToRoleTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_FileConfigToRoleTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_FileConfigToRoleTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_FileConfigToRoleTypeMappingList", pm); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _name; - - public ConditionValue getName() { - if (_name == null) { - _name = nCV(); - } - return _name; - } - - @Override - protected ConditionValue getCValueName() { - return getName(); - } - - /** - * Add order-by as ascend. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_Name_Asc() { - regOBA("NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_Name_Desc() { - regOBD("NAME"); - return this; - } - - protected ConditionValue _paths; - - public ConditionValue getPaths() { - if (_paths == null) { - _paths = nCV(); - } - return _paths; - } - - @Override - protected ConditionValue getCValuePaths() { - return getPaths(); - } - - /** - * Add order-by as ascend. <br /> - * PATHS: {NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_Paths_Asc() { - regOBA("PATHS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * PATHS: {NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_Paths_Desc() { - regOBD("PATHS"); - return this; - } - - protected ConditionValue _includedPaths; - - public ConditionValue getIncludedPaths() { - if (_includedPaths == null) { - _includedPaths = nCV(); - } - return _includedPaths; - } - - @Override - protected ConditionValue getCValueIncludedPaths() { - return getIncludedPaths(); - } - - /** - * Add order-by as ascend. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_IncludedPaths_Asc() { - regOBA("INCLUDED_PATHS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_IncludedPaths_Desc() { - regOBD("INCLUDED_PATHS"); - return this; - } - - protected ConditionValue _excludedPaths; - - public ConditionValue getExcludedPaths() { - if (_excludedPaths == null) { - _excludedPaths = nCV(); - } - return _excludedPaths; - } - - @Override - protected ConditionValue getCValueExcludedPaths() { - return getExcludedPaths(); - } - - /** - * Add order-by as ascend. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_ExcludedPaths_Asc() { - regOBA("EXCLUDED_PATHS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_ExcludedPaths_Desc() { - regOBD("EXCLUDED_PATHS"); - return this; - } - - protected ConditionValue _includedDocPaths; - - public ConditionValue getIncludedDocPaths() { - if (_includedDocPaths == null) { - _includedDocPaths = nCV(); - } - return _includedDocPaths; - } - - @Override - protected ConditionValue getCValueIncludedDocPaths() { - return getIncludedDocPaths(); - } - - /** - * Add order-by as ascend. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_IncludedDocPaths_Asc() { - regOBA("INCLUDED_DOC_PATHS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * INCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_IncludedDocPaths_Desc() { - regOBD("INCLUDED_DOC_PATHS"); - return this; - } - - protected ConditionValue _excludedDocPaths; - - public ConditionValue getExcludedDocPaths() { - if (_excludedDocPaths == null) { - _excludedDocPaths = nCV(); - } - return _excludedDocPaths; - } - - @Override - protected ConditionValue getCValueExcludedDocPaths() { - return getExcludedDocPaths(); - } - - /** - * Add order-by as ascend. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_ExcludedDocPaths_Asc() { - regOBA("EXCLUDED_DOC_PATHS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * EXCLUDED_DOC_PATHS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_ExcludedDocPaths_Desc() { - regOBD("EXCLUDED_DOC_PATHS"); - return this; - } - - protected ConditionValue _configParameter; - - public ConditionValue getConfigParameter() { - if (_configParameter == null) { - _configParameter = nCV(); - } - return _configParameter; - } - - @Override - protected ConditionValue getCValueConfigParameter() { - return getConfigParameter(); - } - - /** - * Add order-by as ascend. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_ConfigParameter_Asc() { - regOBA("CONFIG_PARAMETER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_ConfigParameter_Desc() { - regOBD("CONFIG_PARAMETER"); - return this; - } - - protected ConditionValue _depth; - - public ConditionValue getDepth() { - if (_depth == null) { - _depth = nCV(); - } - return _depth; - } - - @Override - protected ConditionValue getCValueDepth() { - return getDepth(); - } - - /** - * Add order-by as ascend. <br /> - * DEPTH: {INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_Depth_Asc() { - regOBA("DEPTH"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DEPTH: {INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_Depth_Desc() { - regOBD("DEPTH"); - return this; - } - - protected ConditionValue _maxAccessCount; - - public ConditionValue getMaxAccessCount() { - if (_maxAccessCount == null) { - _maxAccessCount = nCV(); - } - return _maxAccessCount; - } - - @Override - protected ConditionValue getCValueMaxAccessCount() { - return getMaxAccessCount(); - } - - /** - * Add order-by as ascend. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_MaxAccessCount_Asc() { - regOBA("MAX_ACCESS_COUNT"); - return this; - } - - /** - * Add order-by as descend. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_MaxAccessCount_Desc() { - regOBD("MAX_ACCESS_COUNT"); - return this; - } - - protected ConditionValue _numOfThread; - - public ConditionValue getNumOfThread() { - if (_numOfThread == null) { - _numOfThread = nCV(); - } - return _numOfThread; - } - - @Override - protected ConditionValue getCValueNumOfThread() { - return getNumOfThread(); - } - - /** - * Add order-by as ascend. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_NumOfThread_Asc() { - regOBA("NUM_OF_THREAD"); - return this; - } - - /** - * Add order-by as descend. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_NumOfThread_Desc() { - regOBD("NUM_OF_THREAD"); - return this; - } - - protected ConditionValue _intervalTime; - - public ConditionValue getIntervalTime() { - if (_intervalTime == null) { - _intervalTime = nCV(); - } - return _intervalTime; - } - - @Override - protected ConditionValue getCValueIntervalTime() { - return getIntervalTime(); - } - - /** - * Add order-by as ascend. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_IntervalTime_Asc() { - regOBA("INTERVAL_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_IntervalTime_Desc() { - regOBD("INTERVAL_TIME"); - return this; - } - - protected ConditionValue _boost; - - public ConditionValue getBoost() { - if (_boost == null) { - _boost = nCV(); - } - return _boost; - } - - @Override - protected ConditionValue getCValueBoost() { - return getBoost(); - } - - /** - * Add order-by as ascend. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_Boost_Asc() { - regOBA("BOOST"); - return this; - } - - /** - * Add order-by as descend. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_Boost_Desc() { - regOBD("BOOST"); - return this; - } - - protected ConditionValue _available; - - public ConditionValue getAvailable() { - if (_available == null) { - _available = nCV(); - } - return _available; - } - - @Override - protected ConditionValue getCValueAvailable() { - return getAvailable(); - } - - /** - * Add order-by as ascend. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_Available_Asc() { - regOBA("AVAILABLE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_Available_Desc() { - regOBD("AVAILABLE"); - return this; - } - - protected ConditionValue _sortOrder; - - public ConditionValue getSortOrder() { - if (_sortOrder == null) { - _sortOrder = nCV(); - } - return _sortOrder; - } - - @Override - protected ConditionValue getCValueSortOrder() { - return getSortOrder(); - } - - /** - * Add order-by as ascend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_SortOrder_Asc() { - regOBA("SORT_ORDER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_SortOrder_Desc() { - regOBD("SORT_ORDER"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsFileCrawlingConfigCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, FileCrawlingConfigCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final FileCrawlingConfigCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, FileCrawlingConfigCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final FileCrawlingConfigCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, FileCrawlingConfigCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final FileCrawlingConfigCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, FileCrawlingConfigCQ> _myselfExistsMap; - - public Map<String, FileCrawlingConfigCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final FileCrawlingConfigCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, FileCrawlingConfigCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final FileCrawlingConfigCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return FileCrawlingConfigCB.class.getName(); - } - - protected String xCQ() { - return FileCrawlingConfigCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsJobLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsJobLogCQ.java deleted file mode 100644 index 28a7bab93..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsJobLogCQ.java +++ /dev/null @@ -1,559 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.JobLogCB; -import jp.sf.fess.db.cbean.cq.JobLogCQ; -import jp.sf.fess.db.cbean.cq.ciq.JobLogCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of JOB_LOG. - * @author DBFlute(AutoGenerator) - */ -public class BsJobLogCQ extends AbstractBsJobLogCQ { - - // =================================================================================== - // Attribute - // ========= - protected JobLogCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsJobLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from JOB_LOG) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public JobLogCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected JobLogCIQ xcreateCIQ() { - final JobLogCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected JobLogCIQ xnewCIQ() { - return new JobLogCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join JOB_LOG on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public JobLogCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final JobLogCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _jobName; - - public ConditionValue getJobName() { - if (_jobName == null) { - _jobName = nCV(); - } - return _jobName; - } - - @Override - protected ConditionValue getCValueJobName() { - return getJobName(); - } - - /** - * Add order-by as ascend. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_JobName_Asc() { - regOBA("JOB_NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * JOB_NAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_JobName_Desc() { - regOBD("JOB_NAME"); - return this; - } - - protected ConditionValue _jobStatus; - - public ConditionValue getJobStatus() { - if (_jobStatus == null) { - _jobStatus = nCV(); - } - return _jobStatus; - } - - @Override - protected ConditionValue getCValueJobStatus() { - return getJobStatus(); - } - - /** - * Add order-by as ascend. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_JobStatus_Asc() { - regOBA("JOB_STATUS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * JOB_STATUS: {NotNull, VARCHAR(10)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_JobStatus_Desc() { - regOBD("JOB_STATUS"); - return this; - } - - protected ConditionValue _target; - - public ConditionValue getTarget() { - if (_target == null) { - _target = nCV(); - } - return _target; - } - - @Override - protected ConditionValue getCValueTarget() { - return getTarget(); - } - - /** - * Add order-by as ascend. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_Target_Asc() { - regOBA("TARGET"); - return this; - } - - /** - * Add order-by as descend. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_Target_Desc() { - regOBD("TARGET"); - return this; - } - - protected ConditionValue _scriptType; - - public ConditionValue getScriptType() { - if (_scriptType == null) { - _scriptType = nCV(); - } - return _scriptType; - } - - @Override - protected ConditionValue getCValueScriptType() { - return getScriptType(); - } - - /** - * Add order-by as ascend. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_ScriptType_Asc() { - regOBA("SCRIPT_TYPE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_ScriptType_Desc() { - regOBD("SCRIPT_TYPE"); - return this; - } - - protected ConditionValue _scriptData; - - public ConditionValue getScriptData() { - if (_scriptData == null) { - _scriptData = nCV(); - } - return _scriptData; - } - - @Override - protected ConditionValue getCValueScriptData() { - return getScriptData(); - } - - /** - * Add order-by as ascend. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_ScriptData_Asc() { - regOBA("SCRIPT_DATA"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_ScriptData_Desc() { - regOBD("SCRIPT_DATA"); - return this; - } - - protected ConditionValue _scriptResult; - - public ConditionValue getScriptResult() { - if (_scriptResult == null) { - _scriptResult = nCV(); - } - return _scriptResult; - } - - @Override - protected ConditionValue getCValueScriptResult() { - return getScriptResult(); - } - - /** - * Add order-by as ascend. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_ScriptResult_Asc() { - regOBA("SCRIPT_RESULT"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SCRIPT_RESULT: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_ScriptResult_Desc() { - regOBD("SCRIPT_RESULT"); - return this; - } - - protected ConditionValue _startTime; - - public ConditionValue getStartTime() { - if (_startTime == null) { - _startTime = nCV(); - } - return _startTime; - } - - @Override - protected ConditionValue getCValueStartTime() { - return getStartTime(); - } - - /** - * Add order-by as ascend. <br /> - * START_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_StartTime_Asc() { - regOBA("START_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * START_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_StartTime_Desc() { - regOBD("START_TIME"); - return this; - } - - protected ConditionValue _endTime; - - public ConditionValue getEndTime() { - if (_endTime == null) { - _endTime = nCV(); - } - return _endTime; - } - - @Override - protected ConditionValue getCValueEndTime() { - return getEndTime(); - } - - /** - * Add order-by as ascend. <br /> - * END_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_EndTime_Asc() { - regOBA("END_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * END_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsJobLogCQ addOrderBy_EndTime_Desc() { - regOBD("END_TIME"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsJobLogCQ addSpecifiedDerivedOrderBy_Asc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsJobLogCQ addSpecifiedDerivedOrderBy_Desc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, JobLogCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final JobLogCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, JobLogCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final JobLogCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, JobLogCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final JobLogCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, JobLogCQ> _myselfExistsMap; - - public Map<String, JobLogCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final JobLogCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, JobLogCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final JobLogCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return JobLogCB.class.getName(); - } - - protected String xCQ() { - return JobLogCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsKeyMatchCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsKeyMatchCQ.java deleted file mode 100644 index ecfc3ca81..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsKeyMatchCQ.java +++ /dev/null @@ -1,661 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.KeyMatchCB; -import jp.sf.fess.db.cbean.cq.KeyMatchCQ; -import jp.sf.fess.db.cbean.cq.ciq.KeyMatchCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of KEY_MATCH. - * @author DBFlute(AutoGenerator) - */ -public class BsKeyMatchCQ extends AbstractBsKeyMatchCQ { - - // =================================================================================== - // Attribute - // ========= - protected KeyMatchCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsKeyMatchCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from KEY_MATCH) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public KeyMatchCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected KeyMatchCIQ xcreateCIQ() { - final KeyMatchCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected KeyMatchCIQ xnewCIQ() { - return new KeyMatchCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join KEY_MATCH on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public KeyMatchCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final KeyMatchCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _term; - - public ConditionValue getTerm() { - if (_term == null) { - _term = nCV(); - } - return _term; - } - - @Override - protected ConditionValue getCValueTerm() { - return getTerm(); - } - - /** - * Add order-by as ascend. <br /> - * TERM: {NotNull, VARCHAR(200)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_Term_Asc() { - regOBA("TERM"); - return this; - } - - /** - * Add order-by as descend. <br /> - * TERM: {NotNull, VARCHAR(200)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_Term_Desc() { - regOBD("TERM"); - return this; - } - - protected ConditionValue _query; - - public ConditionValue getQuery() { - if (_query == null) { - _query = nCV(); - } - return _query; - } - - @Override - protected ConditionValue getCValueQuery() { - return getQuery(); - } - - /** - * Add order-by as ascend. <br /> - * QUERY: {NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_Query_Asc() { - regOBA("QUERY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * QUERY: {NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_Query_Desc() { - regOBD("QUERY"); - return this; - } - - protected ConditionValue _maxSize; - - public ConditionValue getMaxSize() { - if (_maxSize == null) { - _maxSize = nCV(); - } - return _maxSize; - } - - @Override - protected ConditionValue getCValueMaxSize() { - return getMaxSize(); - } - - /** - * Add order-by as ascend. <br /> - * MAX_SIZE: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_MaxSize_Asc() { - regOBA("MAX_SIZE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * MAX_SIZE: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_MaxSize_Desc() { - regOBD("MAX_SIZE"); - return this; - } - - protected ConditionValue _boost; - - public ConditionValue getBoost() { - if (_boost == null) { - _boost = nCV(); - } - return _boost; - } - - @Override - protected ConditionValue getCValueBoost() { - return getBoost(); - } - - /** - * Add order-by as ascend. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_Boost_Asc() { - regOBA("BOOST"); - return this; - } - - /** - * Add order-by as descend. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_Boost_Desc() { - regOBD("BOOST"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsKeyMatchCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsKeyMatchCQ addSpecifiedDerivedOrderBy_Asc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsKeyMatchCQ addSpecifiedDerivedOrderBy_Desc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, KeyMatchCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final KeyMatchCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, KeyMatchCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final KeyMatchCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, KeyMatchCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final KeyMatchCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, KeyMatchCQ> _myselfExistsMap; - - public Map<String, KeyMatchCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final KeyMatchCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, KeyMatchCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final KeyMatchCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return KeyMatchCB.class.getName(); - } - - protected String xCQ() { - return KeyMatchCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsLabelTypeCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsLabelTypeCQ.java deleted file mode 100644 index 03c9b1409..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsLabelTypeCQ.java +++ /dev/null @@ -1,1008 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.cq.DataConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.ciq.LabelTypeCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of LABEL_TYPE. - * @author DBFlute(AutoGenerator) - */ -public class BsLabelTypeCQ extends AbstractBsLabelTypeCQ { - - // =================================================================================== - // Attribute - // ========= - protected LabelTypeCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsLabelTypeCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from LABEL_TYPE) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public LabelTypeCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected LabelTypeCIQ xcreateCIQ() { - final LabelTypeCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected LabelTypeCIQ xnewCIQ() { - return new LabelTypeCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join LABEL_TYPE on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public LabelTypeCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final LabelTypeCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getId_ExistsReferrer_DataConfigToLabelTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_DataConfigToLabelTypeMappingList", - sq); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getId_ExistsReferrer_FileConfigToLabelTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_FileConfigToLabelTypeMappingList", - sq); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getId_ExistsReferrer_LabelTypeToRoleTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_LabelTypeToRoleTypeMappingList", sq); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getId_ExistsReferrer_WebConfigToLabelTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_WebConfigToLabelTypeMappingList", - sq); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getId_NotExistsReferrer_DataConfigToLabelTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_NotExistsReferrer_DataConfigToLabelTypeMappingList", sq); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getId_NotExistsReferrer_FileConfigToLabelTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_NotExistsReferrer_FileConfigToLabelTypeMappingList", sq); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getId_NotExistsReferrer_LabelTypeToRoleTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue("id_NotExistsReferrer_LabelTypeToRoleTypeMappingList", - sq); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getId_NotExistsReferrer_WebConfigToLabelTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_NotExistsReferrer_WebConfigToLabelTypeMappingList", sq); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getId_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList", - sq); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getId_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList", - sq); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getId_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList", sq); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getId_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList", sq); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getId_InScopeRelation_DataConfigToLabelTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_DataConfigToLabelTypeMappingList", - sq); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getId_InScopeRelation_FileConfigToLabelTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_FileConfigToLabelTypeMappingList", - sq); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getId_InScopeRelation_LabelTypeToRoleTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_LabelTypeToRoleTypeMappingList", - sq); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getId_InScopeRelation_WebConfigToLabelTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_WebConfigToLabelTypeMappingList", - sq); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getId_NotInScopeRelation_DataConfigToLabelTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_DataConfigToLabelTypeMappingList", sq); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getId_NotInScopeRelation_FileConfigToLabelTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_FileConfigToLabelTypeMappingList", sq); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getId_NotInScopeRelation_LabelTypeToRoleTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_LabelTypeToRoleTypeMappingList", sq); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getId_NotInScopeRelation_WebConfigToLabelTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_WebConfigToLabelTypeMappingList", sq); - } - - public Map<String, DataConfigToLabelTypeMappingCQ> getId_QueryDerivedReferrer_DataConfigToLabelTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_DataConfigToLabelTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_DataConfigToLabelTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_DataConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_DataConfigToLabelTypeMappingList", pm); - } - - public Map<String, FileConfigToLabelTypeMappingCQ> getId_QueryDerivedReferrer_FileConfigToLabelTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_FileConfigToLabelTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_FileConfigToLabelTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_FileConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_FileConfigToLabelTypeMappingList", pm); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList", pm); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getId_QueryDerivedReferrer_WebConfigToLabelTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_WebConfigToLabelTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_WebConfigToLabelTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_WebConfigToLabelTypeMappingList", pm); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _name; - - public ConditionValue getName() { - if (_name == null) { - _name = nCV(); - } - return _name; - } - - @Override - protected ConditionValue getCValueName() { - return getName(); - } - - /** - * Add order-by as ascend. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_Name_Asc() { - regOBA("NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_Name_Desc() { - regOBD("NAME"); - return this; - } - - protected ConditionValue _value; - - public ConditionValue getValue() { - if (_value == null) { - _value = nCV(); - } - return _value; - } - - @Override - protected ConditionValue getCValueValue() { - return getValue(); - } - - /** - * Add order-by as ascend. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_Value_Asc() { - regOBA("VALUE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_Value_Desc() { - regOBD("VALUE"); - return this; - } - - protected ConditionValue _includedPaths; - - public ConditionValue getIncludedPaths() { - if (_includedPaths == null) { - _includedPaths = nCV(); - } - return _includedPaths; - } - - @Override - protected ConditionValue getCValueIncludedPaths() { - return getIncludedPaths(); - } - - /** - * Add order-by as ascend. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_IncludedPaths_Asc() { - regOBA("INCLUDED_PATHS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * INCLUDED_PATHS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_IncludedPaths_Desc() { - regOBD("INCLUDED_PATHS"); - return this; - } - - protected ConditionValue _excludedPaths; - - public ConditionValue getExcludedPaths() { - if (_excludedPaths == null) { - _excludedPaths = nCV(); - } - return _excludedPaths; - } - - @Override - protected ConditionValue getCValueExcludedPaths() { - return getExcludedPaths(); - } - - /** - * Add order-by as ascend. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_ExcludedPaths_Asc() { - regOBA("EXCLUDED_PATHS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * EXCLUDED_PATHS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_ExcludedPaths_Desc() { - regOBD("EXCLUDED_PATHS"); - return this; - } - - protected ConditionValue _sortOrder; - - public ConditionValue getSortOrder() { - if (_sortOrder == null) { - _sortOrder = nCV(); - } - return _sortOrder; - } - - @Override - protected ConditionValue getCValueSortOrder() { - return getSortOrder(); - } - - /** - * Add order-by as ascend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_SortOrder_Asc() { - regOBA("SORT_ORDER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_SortOrder_Desc() { - regOBD("SORT_ORDER"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsLabelTypeCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsLabelTypeCQ addSpecifiedDerivedOrderBy_Asc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsLabelTypeCQ addSpecifiedDerivedOrderBy_Desc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, LabelTypeCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final LabelTypeCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, LabelTypeCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final LabelTypeCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, LabelTypeCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final LabelTypeCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, LabelTypeCQ> _myselfExistsMap; - - public Map<String, LabelTypeCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final LabelTypeCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, LabelTypeCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final LabelTypeCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return LabelTypeCB.class.getName(); - } - - protected String xCQ() { - return LabelTypeCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsLabelTypeToRoleTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsLabelTypeToRoleTypeMappingCQ.java deleted file mode 100644 index 23bf518a6..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsLabelTypeToRoleTypeMappingCQ.java +++ /dev/null @@ -1,475 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.ciq.LabelTypeToRoleTypeMappingCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of LABEL_TYPE_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsLabelTypeToRoleTypeMappingCQ extends - AbstractBsLabelTypeToRoleTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected LabelTypeToRoleTypeMappingCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsLabelTypeToRoleTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from LABEL_TYPE_TO_ROLE_TYPE_MAPPING) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public LabelTypeToRoleTypeMappingCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected LabelTypeToRoleTypeMappingCIQ xcreateCIQ() { - final LabelTypeToRoleTypeMappingCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected LabelTypeToRoleTypeMappingCIQ xnewCIQ() { - return new LabelTypeToRoleTypeMappingCIQ(xgetReferrerQuery(), - xgetSqlClause(), xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join LABEL_TYPE_TO_ROLE_TYPE_MAPPING on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public LabelTypeToRoleTypeMappingCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final LabelTypeToRoleTypeMappingCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsLabelTypeToRoleTypeMappingCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsLabelTypeToRoleTypeMappingCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _labelTypeId; - - public ConditionValue getLabelTypeId() { - if (_labelTypeId == null) { - _labelTypeId = nCV(); - } - return _labelTypeId; - } - - @Override - protected ConditionValue getCValueLabelTypeId() { - return getLabelTypeId(); - } - - public Map<String, LabelTypeCQ> getLabelTypeId_InScopeRelation_LabelType() { - return xgetSQueMap("labelTypeId_InScopeRelation_LabelType"); - } - - @Override - public String keepLabelTypeId_InScopeRelation_LabelType(final LabelTypeCQ sq) { - return xkeepSQue("labelTypeId_InScopeRelation_LabelType", sq); - } - - public Map<String, LabelTypeCQ> getLabelTypeId_NotInScopeRelation_LabelType() { - return xgetSQueMap("labelTypeId_NotInScopeRelation_LabelType"); - } - - @Override - public String keepLabelTypeId_NotInScopeRelation_LabelType( - final LabelTypeCQ sq) { - return xkeepSQue("labelTypeId_NotInScopeRelation_LabelType", sq); - } - - /** - * Add order-by as ascend. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return this. (NotNull) - */ - public BsLabelTypeToRoleTypeMappingCQ addOrderBy_LabelTypeId_Asc() { - regOBA("LABEL_TYPE_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return this. (NotNull) - */ - public BsLabelTypeToRoleTypeMappingCQ addOrderBy_LabelTypeId_Desc() { - regOBD("LABEL_TYPE_ID"); - return this; - } - - protected ConditionValue _roleTypeId; - - public ConditionValue getRoleTypeId() { - if (_roleTypeId == null) { - _roleTypeId = nCV(); - } - return _roleTypeId; - } - - @Override - protected ConditionValue getCValueRoleTypeId() { - return getRoleTypeId(); - } - - public Map<String, RoleTypeCQ> getRoleTypeId_InScopeRelation_RoleType() { - return xgetSQueMap("roleTypeId_InScopeRelation_RoleType"); - } - - @Override - public String keepRoleTypeId_InScopeRelation_RoleType(final RoleTypeCQ sq) { - return xkeepSQue("roleTypeId_InScopeRelation_RoleType", sq); - } - - public Map<String, RoleTypeCQ> getRoleTypeId_NotInScopeRelation_RoleType() { - return xgetSQueMap("roleTypeId_NotInScopeRelation_RoleType"); - } - - @Override - public String keepRoleTypeId_NotInScopeRelation_RoleType(final RoleTypeCQ sq) { - return xkeepSQue("roleTypeId_NotInScopeRelation_RoleType", sq); - } - - /** - * Add order-by as ascend. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return this. (NotNull) - */ - public BsLabelTypeToRoleTypeMappingCQ addOrderBy_RoleTypeId_Asc() { - regOBA("ROLE_TYPE_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return this. (NotNull) - */ - public BsLabelTypeToRoleTypeMappingCQ addOrderBy_RoleTypeId_Desc() { - regOBD("ROLE_TYPE_ID"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsLabelTypeToRoleTypeMappingCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsLabelTypeToRoleTypeMappingCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final LabelTypeToRoleTypeMappingCQ bq = (LabelTypeToRoleTypeMappingCQ) bqs; - final LabelTypeToRoleTypeMappingCQ uq = (LabelTypeToRoleTypeMappingCQ) uqs; - if (bq.hasConditionQueryLabelType()) { - uq.queryLabelType().reflectRelationOnUnionQuery( - bq.queryLabelType(), uq.queryLabelType()); - } - if (bq.hasConditionQueryRoleType()) { - uq.queryRoleType().reflectRelationOnUnionQuery(bq.queryRoleType(), - uq.queryRoleType()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The instance of condition-query. (NotNull) - */ - public LabelTypeCQ queryLabelType() { - return getConditionQueryLabelType(); - } - - public LabelTypeCQ getConditionQueryLabelType() { - final String prop = "labelType"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryLabelType()); - xsetupOuterJoinLabelType(); - } - return xgetQueRlMap(prop); - } - - protected LabelTypeCQ xcreateQueryLabelType() { - final String nrp = xresolveNRP("LABEL_TYPE_TO_ROLE_TYPE_MAPPING", - "labelType"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new LabelTypeCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "labelType", nrp); - } - - protected void xsetupOuterJoinLabelType() { - xregOutJo("labelType"); - } - - public boolean hasConditionQueryLabelType() { - return xhasQueRlMap("labelType"); - } - - /** - * Get the condition-query for relation table. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The instance of condition-query. (NotNull) - */ - public RoleTypeCQ queryRoleType() { - return getConditionQueryRoleType(); - } - - public RoleTypeCQ getConditionQueryRoleType() { - final String prop = "roleType"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryRoleType()); - xsetupOuterJoinRoleType(); - } - return xgetQueRlMap(prop); - } - - protected RoleTypeCQ xcreateQueryRoleType() { - final String nrp = xresolveNRP("LABEL_TYPE_TO_ROLE_TYPE_MAPPING", - "roleType"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new RoleTypeCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "roleType", nrp); - } - - protected void xsetupOuterJoinRoleType() { - xregOutJo("roleType"); - } - - public boolean hasConditionQueryRoleType() { - return xhasQueRlMap("roleType"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, LabelTypeToRoleTypeMappingCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, LabelTypeToRoleTypeMappingCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, LabelTypeToRoleTypeMappingCQ> _myselfExistsMap; - - public Map<String, LabelTypeToRoleTypeMappingCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, LabelTypeToRoleTypeMappingCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return LabelTypeToRoleTypeMappingCB.class.getName(); - } - - protected String xCQ() { - return LabelTypeToRoleTypeMappingCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsOverlappingHostCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsOverlappingHostCQ.java deleted file mode 100644 index 54903018b..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsOverlappingHostCQ.java +++ /dev/null @@ -1,629 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.OverlappingHostCB; -import jp.sf.fess.db.cbean.cq.OverlappingHostCQ; -import jp.sf.fess.db.cbean.cq.ciq.OverlappingHostCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of OVERLAPPING_HOST. - * @author DBFlute(AutoGenerator) - */ -public class BsOverlappingHostCQ extends AbstractBsOverlappingHostCQ { - - // =================================================================================== - // Attribute - // ========= - protected OverlappingHostCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsOverlappingHostCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from OVERLAPPING_HOST) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public OverlappingHostCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected OverlappingHostCIQ xcreateCIQ() { - final OverlappingHostCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected OverlappingHostCIQ xnewCIQ() { - return new OverlappingHostCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join OVERLAPPING_HOST on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public OverlappingHostCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final OverlappingHostCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _regularName; - - public ConditionValue getRegularName() { - if (_regularName == null) { - _regularName = nCV(); - } - return _regularName; - } - - @Override - protected ConditionValue getCValueRegularName() { - return getRegularName(); - } - - /** - * Add order-by as ascend. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_RegularName_Asc() { - regOBA("REGULAR_NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * REGULAR_NAME: {IX+, NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_RegularName_Desc() { - regOBD("REGULAR_NAME"); - return this; - } - - protected ConditionValue _overlappingName; - - public ConditionValue getOverlappingName() { - if (_overlappingName == null) { - _overlappingName = nCV(); - } - return _overlappingName; - } - - @Override - protected ConditionValue getCValueOverlappingName() { - return getOverlappingName(); - } - - /** - * Add order-by as ascend. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_OverlappingName_Asc() { - regOBA("OVERLAPPING_NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * OVERLAPPING_NAME: {NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_OverlappingName_Desc() { - regOBD("OVERLAPPING_NAME"); - return this; - } - - protected ConditionValue _sortOrder; - - public ConditionValue getSortOrder() { - if (_sortOrder == null) { - _sortOrder = nCV(); - } - return _sortOrder; - } - - @Override - protected ConditionValue getCValueSortOrder() { - return getSortOrder(); - } - - /** - * Add order-by as ascend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_SortOrder_Asc() { - regOBA("SORT_ORDER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_SortOrder_Desc() { - regOBD("SORT_ORDER"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsOverlappingHostCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, OverlappingHostCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final OverlappingHostCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, OverlappingHostCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final OverlappingHostCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, OverlappingHostCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final OverlappingHostCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, OverlappingHostCQ> _myselfExistsMap; - - public Map<String, OverlappingHostCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final OverlappingHostCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, OverlappingHostCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final OverlappingHostCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return OverlappingHostCB.class.getName(); - } - - protected String xCQ() { - return OverlappingHostCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsPathMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsPathMappingCQ.java deleted file mode 100644 index fb3820502..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsPathMappingCQ.java +++ /dev/null @@ -1,662 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.PathMappingCB; -import jp.sf.fess.db.cbean.cq.PathMappingCQ; -import jp.sf.fess.db.cbean.cq.ciq.PathMappingCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of PATH_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsPathMappingCQ extends AbstractBsPathMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected PathMappingCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsPathMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from PATH_MAPPING) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public PathMappingCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected PathMappingCIQ xcreateCIQ() { - final PathMappingCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected PathMappingCIQ xnewCIQ() { - return new PathMappingCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join PATH_MAPPING on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public PathMappingCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final PathMappingCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _regex; - - public ConditionValue getRegex() { - if (_regex == null) { - _regex = nCV(); - } - return _regex; - } - - @Override - protected ConditionValue getCValueRegex() { - return getRegex(); - } - - /** - * Add order-by as ascend. <br /> - * REGEX: {NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_Regex_Asc() { - regOBA("REGEX"); - return this; - } - - /** - * Add order-by as descend. <br /> - * REGEX: {NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_Regex_Desc() { - regOBD("REGEX"); - return this; - } - - protected ConditionValue _replacement; - - public ConditionValue getReplacement() { - if (_replacement == null) { - _replacement = nCV(); - } - return _replacement; - } - - @Override - protected ConditionValue getCValueReplacement() { - return getReplacement(); - } - - /** - * Add order-by as ascend. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_Replacement_Asc() { - regOBA("REPLACEMENT"); - return this; - } - - /** - * Add order-by as descend. <br /> - * REPLACEMENT: {NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_Replacement_Desc() { - regOBD("REPLACEMENT"); - return this; - } - - protected ConditionValue _processType; - - public ConditionValue getProcessType() { - if (_processType == null) { - _processType = nCV(); - } - return _processType; - } - - @Override - protected ConditionValue getCValueProcessType() { - return getProcessType(); - } - - /** - * Add order-by as ascend. <br /> - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_ProcessType_Asc() { - regOBA("PROCESS_TYPE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * PROCESS_TYPE: {NotNull, VARCHAR(1), classification=ProcessType} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_ProcessType_Desc() { - regOBD("PROCESS_TYPE"); - return this; - } - - protected ConditionValue _sortOrder; - - public ConditionValue getSortOrder() { - if (_sortOrder == null) { - _sortOrder = nCV(); - } - return _sortOrder; - } - - @Override - protected ConditionValue getCValueSortOrder() { - return getSortOrder(); - } - - /** - * Add order-by as ascend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_SortOrder_Asc() { - regOBA("SORT_ORDER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_SortOrder_Desc() { - regOBD("SORT_ORDER"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsPathMappingCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsPathMappingCQ addSpecifiedDerivedOrderBy_Asc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsPathMappingCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, PathMappingCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final PathMappingCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, PathMappingCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final PathMappingCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, PathMappingCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final PathMappingCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, PathMappingCQ> _myselfExistsMap; - - public Map<String, PathMappingCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final PathMappingCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, PathMappingCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final PathMappingCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return PathMappingCB.class.getName(); - } - - protected String xCQ() { - return PathMappingCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsRequestHeaderCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsRequestHeaderCQ.java deleted file mode 100644 index a06f1d2b9..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsRequestHeaderCQ.java +++ /dev/null @@ -1,691 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.RequestHeaderCB; -import jp.sf.fess.db.cbean.cq.RequestHeaderCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.ciq.RequestHeaderCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of REQUEST_HEADER. - * @author DBFlute(AutoGenerator) - */ -public class BsRequestHeaderCQ extends AbstractBsRequestHeaderCQ { - - // =================================================================================== - // Attribute - // ========= - protected RequestHeaderCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsRequestHeaderCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from REQUEST_HEADER) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public RequestHeaderCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected RequestHeaderCIQ xcreateCIQ() { - final RequestHeaderCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected RequestHeaderCIQ xnewCIQ() { - return new RequestHeaderCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join REQUEST_HEADER on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public RequestHeaderCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final RequestHeaderCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _name; - - public ConditionValue getName() { - if (_name == null) { - _name = nCV(); - } - return _name; - } - - @Override - protected ConditionValue getCValueName() { - return getName(); - } - - /** - * Add order-by as ascend. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_Name_Asc() { - regOBA("NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_Name_Desc() { - regOBD("NAME"); - return this; - } - - protected ConditionValue _value; - - public ConditionValue getValue() { - if (_value == null) { - _value = nCV(); - } - return _value; - } - - @Override - protected ConditionValue getCValueValue() { - return getValue(); - } - - /** - * Add order-by as ascend. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_Value_Asc() { - regOBA("VALUE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_Value_Desc() { - regOBD("VALUE"); - return this; - } - - protected ConditionValue _webCrawlingConfigId; - - public ConditionValue getWebCrawlingConfigId() { - if (_webCrawlingConfigId == null) { - _webCrawlingConfigId = nCV(); - } - return _webCrawlingConfigId; - } - - @Override - protected ConditionValue getCValueWebCrawlingConfigId() { - return getWebCrawlingConfigId(); - } - - public Map<String, WebCrawlingConfigCQ> getWebCrawlingConfigId_InScopeRelation_WebCrawlingConfig() { - return xgetSQueMap("webCrawlingConfigId_InScopeRelation_WebCrawlingConfig"); - } - - @Override - public String keepWebCrawlingConfigId_InScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return xkeepSQue( - "webCrawlingConfigId_InScopeRelation_WebCrawlingConfig", sq); - } - - public Map<String, WebCrawlingConfigCQ> getWebCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig() { - return xgetSQueMap("webCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig"); - } - - @Override - public String keepWebCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return xkeepSQue( - "webCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig", sq); - } - - /** - * Add order-by as ascend. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_WebCrawlingConfigId_Asc() { - regOBA("WEB_CRAWLING_CONFIG_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_WebCrawlingConfigId_Desc() { - regOBD("WEB_CRAWLING_CONFIG_ID"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsRequestHeaderCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final RequestHeaderCQ bq = (RequestHeaderCQ) bqs; - final RequestHeaderCQ uq = (RequestHeaderCQ) uqs; - if (bq.hasConditionQueryWebCrawlingConfig()) { - uq.queryWebCrawlingConfig().reflectRelationOnUnionQuery( - bq.queryWebCrawlingConfig(), uq.queryWebCrawlingConfig()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @return The instance of condition-query. (NotNull) - */ - public WebCrawlingConfigCQ queryWebCrawlingConfig() { - return getConditionQueryWebCrawlingConfig(); - } - - public WebCrawlingConfigCQ getConditionQueryWebCrawlingConfig() { - final String prop = "webCrawlingConfig"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryWebCrawlingConfig()); - xsetupOuterJoinWebCrawlingConfig(); - } - return xgetQueRlMap(prop); - } - - protected WebCrawlingConfigCQ xcreateQueryWebCrawlingConfig() { - final String nrp = xresolveNRP("REQUEST_HEADER", "webCrawlingConfig"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new WebCrawlingConfigCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "webCrawlingConfig", nrp); - } - - protected void xsetupOuterJoinWebCrawlingConfig() { - xregOutJo("webCrawlingConfig"); - } - - public boolean hasConditionQueryWebCrawlingConfig() { - return xhasQueRlMap("webCrawlingConfig"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, RequestHeaderCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final RequestHeaderCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, RequestHeaderCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final RequestHeaderCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, RequestHeaderCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final RequestHeaderCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, RequestHeaderCQ> _myselfExistsMap; - - public Map<String, RequestHeaderCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final RequestHeaderCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, RequestHeaderCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final RequestHeaderCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return RequestHeaderCB.class.getName(); - } - - protected String xCQ() { - return RequestHeaderCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsRoleTypeCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsRoleTypeCQ.java deleted file mode 100644 index e0be95972..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsRoleTypeCQ.java +++ /dev/null @@ -1,937 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.cq.DataConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.ciq.RoleTypeCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of ROLE_TYPE. - * @author DBFlute(AutoGenerator) - */ -public class BsRoleTypeCQ extends AbstractBsRoleTypeCQ { - - // =================================================================================== - // Attribute - // ========= - protected RoleTypeCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsRoleTypeCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from ROLE_TYPE) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public RoleTypeCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected RoleTypeCIQ xcreateCIQ() { - final RoleTypeCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected RoleTypeCIQ xnewCIQ() { - return new RoleTypeCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join ROLE_TYPE on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public RoleTypeCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final RoleTypeCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getId_ExistsReferrer_DataConfigToRoleTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_DataConfigToRoleTypeMappingList", - sq); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getId_ExistsReferrer_FileConfigToRoleTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_FileConfigToRoleTypeMappingList", - sq); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getId_ExistsReferrer_LabelTypeToRoleTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_LabelTypeToRoleTypeMappingList", sq); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getId_ExistsReferrer_WebConfigToRoleTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_WebConfigToRoleTypeMappingList", sq); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getId_NotExistsReferrer_DataConfigToRoleTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_NotExistsReferrer_DataConfigToRoleTypeMappingList", sq); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getId_NotExistsReferrer_FileConfigToRoleTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_NotExistsReferrer_FileConfigToRoleTypeMappingList", sq); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getId_NotExistsReferrer_LabelTypeToRoleTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue("id_NotExistsReferrer_LabelTypeToRoleTypeMappingList", - sq); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getId_NotExistsReferrer_WebConfigToRoleTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_NotExistsReferrer_WebConfigToRoleTypeMappingList", - sq); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getId_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList", sq); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getId_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList", sq); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getId_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList", sq); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getId_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList", sq); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getId_InScopeRelation_DataConfigToRoleTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_DataConfigToRoleTypeMappingList", - sq); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getId_InScopeRelation_FileConfigToRoleTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_FileConfigToRoleTypeMappingList", - sq); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getId_InScopeRelation_LabelTypeToRoleTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_LabelTypeToRoleTypeMappingList", - sq); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getId_InScopeRelation_WebConfigToRoleTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_WebConfigToRoleTypeMappingList", - sq); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getId_NotInScopeRelation_DataConfigToRoleTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_DataConfigToRoleTypeMappingList", sq); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getId_NotInScopeRelation_FileConfigToRoleTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_FileConfigToRoleTypeMappingList", sq); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getId_NotInScopeRelation_LabelTypeToRoleTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_LabelTypeToRoleTypeMappingList", sq); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getId_NotInScopeRelation_WebConfigToRoleTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_WebConfigToRoleTypeMappingList", sq); - } - - public Map<String, DataConfigToRoleTypeMappingCQ> getId_QueryDerivedReferrer_DataConfigToRoleTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_DataConfigToRoleTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_DataConfigToRoleTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_DataConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_DataConfigToRoleTypeMappingList", pm); - } - - public Map<String, FileConfigToRoleTypeMappingCQ> getId_QueryDerivedReferrer_FileConfigToRoleTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_FileConfigToRoleTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_FileConfigToRoleTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_FileConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_FileConfigToRoleTypeMappingList", pm); - } - - public Map<String, LabelTypeToRoleTypeMappingCQ> getId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList", pm); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getId_QueryDerivedReferrer_WebConfigToRoleTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_WebConfigToRoleTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_WebConfigToRoleTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_WebConfigToRoleTypeMappingList", pm); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _name; - - public ConditionValue getName() { - if (_name == null) { - _name = nCV(); - } - return _name; - } - - @Override - protected ConditionValue getCValueName() { - return getName(); - } - - /** - * Add order-by as ascend. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_Name_Asc() { - regOBA("NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_Name_Desc() { - regOBD("NAME"); - return this; - } - - protected ConditionValue _value; - - public ConditionValue getValue() { - if (_value == null) { - _value = nCV(); - } - return _value; - } - - @Override - protected ConditionValue getCValueValue() { - return getValue(); - } - - /** - * Add order-by as ascend. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_Value_Asc() { - regOBA("VALUE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VALUE: {NotNull, VARCHAR(20)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_Value_Desc() { - regOBD("VALUE"); - return this; - } - - protected ConditionValue _sortOrder; - - public ConditionValue getSortOrder() { - if (_sortOrder == null) { - _sortOrder = nCV(); - } - return _sortOrder; - } - - @Override - protected ConditionValue getCValueSortOrder() { - return getSortOrder(); - } - - /** - * Add order-by as ascend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_SortOrder_Asc() { - regOBA("SORT_ORDER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_SortOrder_Desc() { - regOBD("SORT_ORDER"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsRoleTypeCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsRoleTypeCQ addSpecifiedDerivedOrderBy_Asc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsRoleTypeCQ addSpecifiedDerivedOrderBy_Desc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, RoleTypeCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final RoleTypeCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, RoleTypeCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final RoleTypeCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, RoleTypeCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final RoleTypeCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, RoleTypeCQ> _myselfExistsMap; - - public Map<String, RoleTypeCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final RoleTypeCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, RoleTypeCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final RoleTypeCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return RoleTypeCB.class.getName(); - } - - protected String xCQ() { - return RoleTypeCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsScheduledJobCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsScheduledJobCQ.java deleted file mode 100644 index bb465e86e..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsScheduledJobCQ.java +++ /dev/null @@ -1,833 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.ScheduledJobCB; -import jp.sf.fess.db.cbean.cq.ScheduledJobCQ; -import jp.sf.fess.db.cbean.cq.ciq.ScheduledJobCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of SCHEDULED_JOB. - * @author DBFlute(AutoGenerator) - */ -public class BsScheduledJobCQ extends AbstractBsScheduledJobCQ { - - // =================================================================================== - // Attribute - // ========= - protected ScheduledJobCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsScheduledJobCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from SCHEDULED_JOB) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public ScheduledJobCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected ScheduledJobCIQ xcreateCIQ() { - final ScheduledJobCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected ScheduledJobCIQ xnewCIQ() { - return new ScheduledJobCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join SCHEDULED_JOB on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public ScheduledJobCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final ScheduledJobCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _name; - - public ConditionValue getName() { - if (_name == null) { - _name = nCV(); - } - return _name; - } - - @Override - protected ConditionValue getCValueName() { - return getName(); - } - - /** - * Add order-by as ascend. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_Name_Asc() { - regOBA("NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * NAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_Name_Desc() { - regOBD("NAME"); - return this; - } - - protected ConditionValue _target; - - public ConditionValue getTarget() { - if (_target == null) { - _target = nCV(); - } - return _target; - } - - @Override - protected ConditionValue getCValueTarget() { - return getTarget(); - } - - /** - * Add order-by as ascend. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_Target_Asc() { - regOBA("TARGET"); - return this; - } - - /** - * Add order-by as descend. <br /> - * TARGET: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_Target_Desc() { - regOBD("TARGET"); - return this; - } - - protected ConditionValue _cronExpression; - - public ConditionValue getCronExpression() { - if (_cronExpression == null) { - _cronExpression = nCV(); - } - return _cronExpression; - } - - @Override - protected ConditionValue getCValueCronExpression() { - return getCronExpression(); - } - - /** - * Add order-by as ascend. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_CronExpression_Asc() { - regOBA("CRON_EXPRESSION"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CRON_EXPRESSION: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_CronExpression_Desc() { - regOBD("CRON_EXPRESSION"); - return this; - } - - protected ConditionValue _scriptType; - - public ConditionValue getScriptType() { - if (_scriptType == null) { - _scriptType = nCV(); - } - return _scriptType; - } - - @Override - protected ConditionValue getCValueScriptType() { - return getScriptType(); - } - - /** - * Add order-by as ascend. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_ScriptType_Asc() { - regOBA("SCRIPT_TYPE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SCRIPT_TYPE: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_ScriptType_Desc() { - regOBD("SCRIPT_TYPE"); - return this; - } - - protected ConditionValue _scriptData; - - public ConditionValue getScriptData() { - if (_scriptData == null) { - _scriptData = nCV(); - } - return _scriptData; - } - - @Override - protected ConditionValue getCValueScriptData() { - return getScriptData(); - } - - /** - * Add order-by as ascend. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_ScriptData_Asc() { - regOBA("SCRIPT_DATA"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SCRIPT_DATA: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_ScriptData_Desc() { - regOBD("SCRIPT_DATA"); - return this; - } - - protected ConditionValue _crawler; - - public ConditionValue getCrawler() { - if (_crawler == null) { - _crawler = nCV(); - } - return _crawler; - } - - @Override - protected ConditionValue getCValueCrawler() { - return getCrawler(); - } - - /** - * Add order-by as ascend. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_Crawler_Asc() { - regOBA("CRAWLER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CRAWLER: {NotNull, VARCHAR(1)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_Crawler_Desc() { - regOBD("CRAWLER"); - return this; - } - - protected ConditionValue _jobLogging; - - public ConditionValue getJobLogging() { - if (_jobLogging == null) { - _jobLogging = nCV(); - } - return _jobLogging; - } - - @Override - protected ConditionValue getCValueJobLogging() { - return getJobLogging(); - } - - /** - * Add order-by as ascend. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_JobLogging_Asc() { - regOBA("JOB_LOGGING"); - return this; - } - - /** - * Add order-by as descend. <br /> - * JOB_LOGGING: {NotNull, VARCHAR(1)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_JobLogging_Desc() { - regOBD("JOB_LOGGING"); - return this; - } - - protected ConditionValue _available; - - public ConditionValue getAvailable() { - if (_available == null) { - _available = nCV(); - } - return _available; - } - - @Override - protected ConditionValue getCValueAvailable() { - return getAvailable(); - } - - /** - * Add order-by as ascend. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_Available_Asc() { - regOBA("AVAILABLE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_Available_Desc() { - regOBD("AVAILABLE"); - return this; - } - - protected ConditionValue _sortOrder; - - public ConditionValue getSortOrder() { - if (_sortOrder == null) { - _sortOrder = nCV(); - } - return _sortOrder; - } - - @Override - protected ConditionValue getCValueSortOrder() { - return getSortOrder(); - } - - /** - * Add order-by as ascend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_SortOrder_Asc() { - regOBA("SORT_ORDER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_SortOrder_Desc() { - regOBD("SORT_ORDER"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsScheduledJobCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsScheduledJobCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsScheduledJobCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, ScheduledJobCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final ScheduledJobCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, ScheduledJobCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final ScheduledJobCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, ScheduledJobCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final ScheduledJobCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, ScheduledJobCQ> _myselfExistsMap; - - public Map<String, ScheduledJobCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final ScheduledJobCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, ScheduledJobCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final ScheduledJobCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return ScheduledJobCB.class.getName(); - } - - protected String xCQ() { - return ScheduledJobCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSearchFieldLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSearchFieldLogCQ.java deleted file mode 100644 index 3466d8aa4..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSearchFieldLogCQ.java +++ /dev/null @@ -1,449 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.SearchFieldLogCB; -import jp.sf.fess.db.cbean.cq.SearchFieldLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.cq.ciq.SearchFieldLogCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of SEARCH_FIELD_LOG. - * @author DBFlute(AutoGenerator) - */ -public class BsSearchFieldLogCQ extends AbstractBsSearchFieldLogCQ { - - // =================================================================================== - // Attribute - // ========= - protected SearchFieldLogCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsSearchFieldLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from SEARCH_FIELD_LOG) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public SearchFieldLogCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected SearchFieldLogCIQ xcreateCIQ() { - final SearchFieldLogCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected SearchFieldLogCIQ xnewCIQ() { - return new SearchFieldLogCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join SEARCH_FIELD_LOG on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public SearchFieldLogCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final SearchFieldLogCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsSearchFieldLogCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsSearchFieldLogCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _searchId; - - public ConditionValue getSearchId() { - if (_searchId == null) { - _searchId = nCV(); - } - return _searchId; - } - - @Override - protected ConditionValue getCValueSearchId() { - return getSearchId(); - } - - public Map<String, SearchLogCQ> getSearchId_InScopeRelation_SearchLog() { - return xgetSQueMap("searchId_InScopeRelation_SearchLog"); - } - - @Override - public String keepSearchId_InScopeRelation_SearchLog(final SearchLogCQ sq) { - return xkeepSQue("searchId_InScopeRelation_SearchLog", sq); - } - - public Map<String, SearchLogCQ> getSearchId_NotInScopeRelation_SearchLog() { - return xgetSQueMap("searchId_NotInScopeRelation_SearchLog"); - } - - @Override - public String keepSearchId_NotInScopeRelation_SearchLog(final SearchLogCQ sq) { - return xkeepSQue("searchId_NotInScopeRelation_SearchLog", sq); - } - - /** - * Add order-by as ascend. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @return this. (NotNull) - */ - public BsSearchFieldLogCQ addOrderBy_SearchId_Asc() { - regOBA("SEARCH_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SEARCH_ID: {IX, NotNull, BIGINT(19), FK to SEARCH_LOG} - * @return this. (NotNull) - */ - public BsSearchFieldLogCQ addOrderBy_SearchId_Desc() { - regOBD("SEARCH_ID"); - return this; - } - - protected ConditionValue _name; - - public ConditionValue getName() { - if (_name == null) { - _name = nCV(); - } - return _name; - } - - @Override - protected ConditionValue getCValueName() { - return getName(); - } - - /** - * Add order-by as ascend. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSearchFieldLogCQ addOrderBy_Name_Asc() { - regOBA("NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * NAME: {IX, NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSearchFieldLogCQ addOrderBy_Name_Desc() { - regOBD("NAME"); - return this; - } - - protected ConditionValue _value; - - public ConditionValue getValue() { - if (_value == null) { - _value = nCV(); - } - return _value; - } - - @Override - protected ConditionValue getCValueValue() { - return getValue(); - } - - /** - * Add order-by as ascend. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsSearchFieldLogCQ addOrderBy_Value_Asc() { - regOBA("VALUE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VALUE: {NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsSearchFieldLogCQ addOrderBy_Value_Desc() { - regOBD("VALUE"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsSearchFieldLogCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsSearchFieldLogCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final SearchFieldLogCQ bq = (SearchFieldLogCQ) bqs; - final SearchFieldLogCQ uq = (SearchFieldLogCQ) uqs; - if (bq.hasConditionQuerySearchLog()) { - uq.querySearchLog().reflectRelationOnUnionQuery( - bq.querySearchLog(), uq.querySearchLog()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @return The instance of condition-query. (NotNull) - */ - public SearchLogCQ querySearchLog() { - return getConditionQuerySearchLog(); - } - - public SearchLogCQ getConditionQuerySearchLog() { - final String prop = "searchLog"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQuerySearchLog()); - xsetupOuterJoinSearchLog(); - } - return xgetQueRlMap(prop); - } - - protected SearchLogCQ xcreateQuerySearchLog() { - final String nrp = xresolveNRP("SEARCH_FIELD_LOG", "searchLog"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new SearchLogCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "searchLog", nrp); - } - - protected void xsetupOuterJoinSearchLog() { - xregOutJo("searchLog"); - } - - public boolean hasConditionQuerySearchLog() { - return xhasQueRlMap("searchLog"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, SearchFieldLogCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final SearchFieldLogCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, SearchFieldLogCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final SearchFieldLogCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, SearchFieldLogCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final SearchFieldLogCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, SearchFieldLogCQ> _myselfExistsMap; - - public Map<String, SearchFieldLogCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final SearchFieldLogCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, SearchFieldLogCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final SearchFieldLogCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return SearchFieldLogCB.class.getName(); - } - - protected String xCQ() { - return SearchFieldLogCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSearchLogCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSearchLogCQ.java deleted file mode 100644 index b34c47cb7..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSearchLogCQ.java +++ /dev/null @@ -1,889 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.cq.ClickLogCQ; -import jp.sf.fess.db.cbean.cq.SearchFieldLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.cq.UserInfoCQ; -import jp.sf.fess.db.cbean.cq.ciq.SearchLogCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of SEARCH_LOG. - * @author DBFlute(AutoGenerator) - */ -public class BsSearchLogCQ extends AbstractBsSearchLogCQ { - - // =================================================================================== - // Attribute - // ========= - protected SearchLogCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsSearchLogCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from SEARCH_LOG) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public SearchLogCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected SearchLogCIQ xcreateCIQ() { - final SearchLogCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected SearchLogCIQ xnewCIQ() { - return new SearchLogCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join SEARCH_LOG on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public SearchLogCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final SearchLogCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - public Map<String, ClickLogCQ> getId_ExistsReferrer_ClickLogList() { - return xgetSQueMap("id_ExistsReferrer_ClickLogList"); - } - - @Override - public String keepId_ExistsReferrer_ClickLogList(final ClickLogCQ sq) { - return xkeepSQue("id_ExistsReferrer_ClickLogList", sq); - } - - public Map<String, SearchFieldLogCQ> getId_ExistsReferrer_SearchFieldLogList() { - return xgetSQueMap("id_ExistsReferrer_SearchFieldLogList"); - } - - @Override - public String keepId_ExistsReferrer_SearchFieldLogList( - final SearchFieldLogCQ sq) { - return xkeepSQue("id_ExistsReferrer_SearchFieldLogList", sq); - } - - public Map<String, ClickLogCQ> getId_NotExistsReferrer_ClickLogList() { - return xgetSQueMap("id_NotExistsReferrer_ClickLogList"); - } - - @Override - public String keepId_NotExistsReferrer_ClickLogList(final ClickLogCQ sq) { - return xkeepSQue("id_NotExistsReferrer_ClickLogList", sq); - } - - public Map<String, SearchFieldLogCQ> getId_NotExistsReferrer_SearchFieldLogList() { - return xgetSQueMap("id_NotExistsReferrer_SearchFieldLogList"); - } - - @Override - public String keepId_NotExistsReferrer_SearchFieldLogList( - final SearchFieldLogCQ sq) { - return xkeepSQue("id_NotExistsReferrer_SearchFieldLogList", sq); - } - - public Map<String, ClickLogCQ> getId_SpecifyDerivedReferrer_ClickLogList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_ClickLogList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_ClickLogList(final ClickLogCQ sq) { - return xkeepSQue("id_SpecifyDerivedReferrer_ClickLogList", sq); - } - - public Map<String, SearchFieldLogCQ> getId_SpecifyDerivedReferrer_SearchFieldLogList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_SearchFieldLogList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_SearchFieldLogList( - final SearchFieldLogCQ sq) { - return xkeepSQue("id_SpecifyDerivedReferrer_SearchFieldLogList", sq); - } - - public Map<String, ClickLogCQ> getId_InScopeRelation_ClickLogList() { - return xgetSQueMap("id_InScopeRelation_ClickLogList"); - } - - @Override - public String keepId_InScopeRelation_ClickLogList(final ClickLogCQ sq) { - return xkeepSQue("id_InScopeRelation_ClickLogList", sq); - } - - public Map<String, SearchFieldLogCQ> getId_InScopeRelation_SearchFieldLogList() { - return xgetSQueMap("id_InScopeRelation_SearchFieldLogList"); - } - - @Override - public String keepId_InScopeRelation_SearchFieldLogList( - final SearchFieldLogCQ sq) { - return xkeepSQue("id_InScopeRelation_SearchFieldLogList", sq); - } - - public Map<String, ClickLogCQ> getId_NotInScopeRelation_ClickLogList() { - return xgetSQueMap("id_NotInScopeRelation_ClickLogList"); - } - - @Override - public String keepId_NotInScopeRelation_ClickLogList(final ClickLogCQ sq) { - return xkeepSQue("id_NotInScopeRelation_ClickLogList", sq); - } - - public Map<String, SearchFieldLogCQ> getId_NotInScopeRelation_SearchFieldLogList() { - return xgetSQueMap("id_NotInScopeRelation_SearchFieldLogList"); - } - - @Override - public String keepId_NotInScopeRelation_SearchFieldLogList( - final SearchFieldLogCQ sq) { - return xkeepSQue("id_NotInScopeRelation_SearchFieldLogList", sq); - } - - public Map<String, ClickLogCQ> getId_QueryDerivedReferrer_ClickLogList() { - return xgetSQueMap("id_QueryDerivedReferrer_ClickLogList"); - } - - @Override - public String keepId_QueryDerivedReferrer_ClickLogList(final ClickLogCQ sq) { - return xkeepSQue("id_QueryDerivedReferrer_ClickLogList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_ClickLogListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_ClickLogList"); - } - - @Override - public String keepId_QueryDerivedReferrer_ClickLogListParameter( - final Object pm) { - return xkeepSQuePm("id_QueryDerivedReferrer_ClickLogList", pm); - } - - public Map<String, SearchFieldLogCQ> getId_QueryDerivedReferrer_SearchFieldLogList() { - return xgetSQueMap("id_QueryDerivedReferrer_SearchFieldLogList"); - } - - @Override - public String keepId_QueryDerivedReferrer_SearchFieldLogList( - final SearchFieldLogCQ sq) { - return xkeepSQue("id_QueryDerivedReferrer_SearchFieldLogList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_SearchFieldLogListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_SearchFieldLogList"); - } - - @Override - public String keepId_QueryDerivedReferrer_SearchFieldLogListParameter( - final Object pm) { - return xkeepSQuePm("id_QueryDerivedReferrer_SearchFieldLogList", pm); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _searchWord; - - public ConditionValue getSearchWord() { - if (_searchWord == null) { - _searchWord = nCV(); - } - return _searchWord; - } - - @Override - protected ConditionValue getCValueSearchWord() { - return getSearchWord(); - } - - /** - * Add order-by as ascend. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_SearchWord_Asc() { - regOBA("SEARCH_WORD"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SEARCH_WORD: {IX, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_SearchWord_Desc() { - regOBD("SEARCH_WORD"); - return this; - } - - protected ConditionValue _requestedTime; - - public ConditionValue getRequestedTime() { - if (_requestedTime == null) { - _requestedTime = nCV(); - } - return _requestedTime; - } - - @Override - protected ConditionValue getCValueRequestedTime() { - return getRequestedTime(); - } - - /** - * Add order-by as ascend. <br /> - * REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_RequestedTime_Asc() { - regOBA("REQUESTED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * REQUESTED_TIME: {IX+, NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_RequestedTime_Desc() { - regOBD("REQUESTED_TIME"); - return this; - } - - protected ConditionValue _responseTime; - - public ConditionValue getResponseTime() { - if (_responseTime == null) { - _responseTime = nCV(); - } - return _responseTime; - } - - @Override - protected ConditionValue getCValueResponseTime() { - return getResponseTime(); - } - - /** - * Add order-by as ascend. <br /> - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_ResponseTime_Asc() { - regOBA("RESPONSE_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * RESPONSE_TIME: {IX, NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_ResponseTime_Desc() { - regOBD("RESPONSE_TIME"); - return this; - } - - protected ConditionValue _hitCount; - - public ConditionValue getHitCount() { - if (_hitCount == null) { - _hitCount = nCV(); - } - return _hitCount; - } - - @Override - protected ConditionValue getCValueHitCount() { - return getHitCount(); - } - - /** - * Add order-by as ascend. <br /> - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_HitCount_Asc() { - regOBA("HIT_COUNT"); - return this; - } - - /** - * Add order-by as descend. <br /> - * HIT_COUNT: {IX, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_HitCount_Desc() { - regOBD("HIT_COUNT"); - return this; - } - - protected ConditionValue _queryOffset; - - public ConditionValue getQueryOffset() { - if (_queryOffset == null) { - _queryOffset = nCV(); - } - return _queryOffset; - } - - @Override - protected ConditionValue getCValueQueryOffset() { - return getQueryOffset(); - } - - /** - * Add order-by as ascend. <br /> - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_QueryOffset_Asc() { - regOBA("QUERY_OFFSET"); - return this; - } - - /** - * Add order-by as descend. <br /> - * QUERY_OFFSET: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_QueryOffset_Desc() { - regOBD("QUERY_OFFSET"); - return this; - } - - protected ConditionValue _queryPageSize; - - public ConditionValue getQueryPageSize() { - if (_queryPageSize == null) { - _queryPageSize = nCV(); - } - return _queryPageSize; - } - - @Override - protected ConditionValue getCValueQueryPageSize() { - return getQueryPageSize(); - } - - /** - * Add order-by as ascend. <br /> - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_QueryPageSize_Asc() { - regOBA("QUERY_PAGE_SIZE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * QUERY_PAGE_SIZE: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_QueryPageSize_Desc() { - regOBD("QUERY_PAGE_SIZE"); - return this; - } - - protected ConditionValue _userAgent; - - public ConditionValue getUserAgent() { - if (_userAgent == null) { - _userAgent = nCV(); - } - return _userAgent; - } - - @Override - protected ConditionValue getCValueUserAgent() { - return getUserAgent(); - } - - /** - * Add order-by as ascend. <br /> - * USER_AGENT: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_UserAgent_Asc() { - regOBA("USER_AGENT"); - return this; - } - - /** - * Add order-by as descend. <br /> - * USER_AGENT: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_UserAgent_Desc() { - regOBD("USER_AGENT"); - return this; - } - - protected ConditionValue _referer; - - public ConditionValue getReferer() { - if (_referer == null) { - _referer = nCV(); - } - return _referer; - } - - @Override - protected ConditionValue getCValueReferer() { - return getReferer(); - } - - /** - * Add order-by as ascend. <br /> - * REFERER: {VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_Referer_Asc() { - regOBA("REFERER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * REFERER: {VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_Referer_Desc() { - regOBD("REFERER"); - return this; - } - - protected ConditionValue _clientIp; - - public ConditionValue getClientIp() { - if (_clientIp == null) { - _clientIp = nCV(); - } - return _clientIp; - } - - @Override - protected ConditionValue getCValueClientIp() { - return getClientIp(); - } - - /** - * Add order-by as ascend. <br /> - * CLIENT_IP: {VARCHAR(50)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_ClientIp_Asc() { - regOBA("CLIENT_IP"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CLIENT_IP: {VARCHAR(50)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_ClientIp_Desc() { - regOBD("CLIENT_IP"); - return this; - } - - protected ConditionValue _userSessionId; - - public ConditionValue getUserSessionId() { - if (_userSessionId == null) { - _userSessionId = nCV(); - } - return _userSessionId; - } - - @Override - protected ConditionValue getCValueUserSessionId() { - return getUserSessionId(); - } - - /** - * Add order-by as ascend. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_UserSessionId_Asc() { - regOBA("USER_SESSION_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * USER_SESSION_ID: {VARCHAR(100)} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_UserSessionId_Desc() { - regOBD("USER_SESSION_ID"); - return this; - } - - protected ConditionValue _accessType; - - public ConditionValue getAccessType() { - if (_accessType == null) { - _accessType = nCV(); - } - return _accessType; - } - - @Override - protected ConditionValue getCValueAccessType() { - return getAccessType(); - } - - /** - * Add order-by as ascend. <br /> - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_AccessType_Asc() { - regOBA("ACCESS_TYPE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ACCESS_TYPE: {NotNull, VARCHAR(1), classification=AccessType} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_AccessType_Desc() { - regOBD("ACCESS_TYPE"); - return this; - } - - protected ConditionValue _userId; - - public ConditionValue getUserId() { - if (_userId == null) { - _userId = nCV(); - } - return _userId; - } - - @Override - protected ConditionValue getCValueUserId() { - return getUserId(); - } - - public Map<String, UserInfoCQ> getUserId_InScopeRelation_UserInfo() { - return xgetSQueMap("userId_InScopeRelation_UserInfo"); - } - - @Override - public String keepUserId_InScopeRelation_UserInfo(final UserInfoCQ sq) { - return xkeepSQue("userId_InScopeRelation_UserInfo", sq); - } - - public Map<String, UserInfoCQ> getUserId_NotInScopeRelation_UserInfo() { - return xgetSQueMap("userId_NotInScopeRelation_UserInfo"); - } - - @Override - public String keepUserId_NotInScopeRelation_UserInfo(final UserInfoCQ sq) { - return xkeepSQue("userId_NotInScopeRelation_UserInfo", sq); - } - - /** - * Add order-by as ascend. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_UserId_Asc() { - regOBA("USER_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * USER_ID: {IX, BIGINT(19), FK to USER_INFO} - * @return this. (NotNull) - */ - public BsSearchLogCQ addOrderBy_UserId_Desc() { - regOBD("USER_ID"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsSearchLogCQ addSpecifiedDerivedOrderBy_Asc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsSearchLogCQ addSpecifiedDerivedOrderBy_Desc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final SearchLogCQ bq = (SearchLogCQ) bqs; - final SearchLogCQ uq = (SearchLogCQ) uqs; - if (bq.hasConditionQueryUserInfo()) { - uq.queryUserInfo().reflectRelationOnUnionQuery(bq.queryUserInfo(), - uq.queryUserInfo()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * USER_INFO by my USER_ID, named 'userInfo'. - * @return The instance of condition-query. (NotNull) - */ - public UserInfoCQ queryUserInfo() { - return getConditionQueryUserInfo(); - } - - public UserInfoCQ getConditionQueryUserInfo() { - final String prop = "userInfo"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryUserInfo()); - xsetupOuterJoinUserInfo(); - } - return xgetQueRlMap(prop); - } - - protected UserInfoCQ xcreateQueryUserInfo() { - final String nrp = xresolveNRP("SEARCH_LOG", "userInfo"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new UserInfoCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "userInfo", nrp); - } - - protected void xsetupOuterJoinUserInfo() { - xregOutJo("userInfo"); - } - - public boolean hasConditionQueryUserInfo() { - return xhasQueRlMap("userInfo"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, SearchLogCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final SearchLogCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, SearchLogCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final SearchLogCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, SearchLogCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final SearchLogCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, SearchLogCQ> _myselfExistsMap; - - public Map<String, SearchLogCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final SearchLogCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, SearchLogCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final SearchLogCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return SearchLogCB.class.getName(); - } - - protected String xCQ() { - return SearchLogCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSuggestBadWordCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSuggestBadWordCQ.java deleted file mode 100644 index 2163c5c33..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSuggestBadWordCQ.java +++ /dev/null @@ -1,629 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.SuggestBadWordCB; -import jp.sf.fess.db.cbean.cq.SuggestBadWordCQ; -import jp.sf.fess.db.cbean.cq.ciq.SuggestBadWordCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of SUGGEST_BAD_WORD. - * @author DBFlute(AutoGenerator) - */ -public class BsSuggestBadWordCQ extends AbstractBsSuggestBadWordCQ { - - // =================================================================================== - // Attribute - // ========= - protected SuggestBadWordCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsSuggestBadWordCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from SUGGEST_BAD_WORD) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public SuggestBadWordCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected SuggestBadWordCIQ xcreateCIQ() { - final SuggestBadWordCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected SuggestBadWordCIQ xnewCIQ() { - return new SuggestBadWordCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join SUGGEST_BAD_WORD on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public SuggestBadWordCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final SuggestBadWordCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _suggestWord; - - public ConditionValue getSuggestWord() { - if (_suggestWord == null) { - _suggestWord = nCV(); - } - return _suggestWord; - } - - @Override - protected ConditionValue getCValueSuggestWord() { - return getSuggestWord(); - } - - /** - * Add order-by as ascend. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_SuggestWord_Asc() { - regOBA("SUGGEST_WORD"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_SuggestWord_Desc() { - regOBD("SUGGEST_WORD"); - return this; - } - - protected ConditionValue _targetRole; - - public ConditionValue getTargetRole() { - if (_targetRole == null) { - _targetRole = nCV(); - } - return _targetRole; - } - - @Override - protected ConditionValue getCValueTargetRole() { - return getTargetRole(); - } - - /** - * Add order-by as ascend. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_TargetRole_Asc() { - regOBA("TARGET_ROLE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_TargetRole_Desc() { - regOBD("TARGET_ROLE"); - return this; - } - - protected ConditionValue _targetLabel; - - public ConditionValue getTargetLabel() { - if (_targetLabel == null) { - _targetLabel = nCV(); - } - return _targetLabel; - } - - @Override - protected ConditionValue getCValueTargetLabel() { - return getTargetLabel(); - } - - /** - * Add order-by as ascend. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_TargetLabel_Asc() { - regOBA("TARGET_LABEL"); - return this; - } - - /** - * Add order-by as descend. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_TargetLabel_Desc() { - regOBD("TARGET_LABEL"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsSuggestBadWordCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, SuggestBadWordCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final SuggestBadWordCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, SuggestBadWordCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final SuggestBadWordCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, SuggestBadWordCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final SuggestBadWordCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, SuggestBadWordCQ> _myselfExistsMap; - - public Map<String, SuggestBadWordCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final SuggestBadWordCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, SuggestBadWordCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final SuggestBadWordCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return SuggestBadWordCB.class.getName(); - } - - protected String xCQ() { - return SuggestBadWordCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSuggestElevateWordCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSuggestElevateWordCQ.java deleted file mode 100644 index 8b3e72a66..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsSuggestElevateWordCQ.java +++ /dev/null @@ -1,697 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.SuggestElevateWordCB; -import jp.sf.fess.db.cbean.cq.SuggestElevateWordCQ; -import jp.sf.fess.db.cbean.cq.ciq.SuggestElevateWordCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of SUGGEST_ELEVATE_WORD. - * @author DBFlute(AutoGenerator) - */ -public class BsSuggestElevateWordCQ extends AbstractBsSuggestElevateWordCQ { - - // =================================================================================== - // Attribute - // ========= - protected SuggestElevateWordCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsSuggestElevateWordCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from SUGGEST_ELEVATE_WORD) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public SuggestElevateWordCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected SuggestElevateWordCIQ xcreateCIQ() { - final SuggestElevateWordCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected SuggestElevateWordCIQ xnewCIQ() { - return new SuggestElevateWordCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join SUGGEST_ELEVATE_WORD on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public SuggestElevateWordCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final SuggestElevateWordCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _suggestWord; - - public ConditionValue getSuggestWord() { - if (_suggestWord == null) { - _suggestWord = nCV(); - } - return _suggestWord; - } - - @Override - protected ConditionValue getCValueSuggestWord() { - return getSuggestWord(); - } - - /** - * Add order-by as ascend. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_SuggestWord_Asc() { - regOBA("SUGGEST_WORD"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SUGGEST_WORD: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_SuggestWord_Desc() { - regOBD("SUGGEST_WORD"); - return this; - } - - protected ConditionValue _reading; - - public ConditionValue getReading() { - if (_reading == null) { - _reading = nCV(); - } - return _reading; - } - - @Override - protected ConditionValue getCValueReading() { - return getReading(); - } - - /** - * Add order-by as ascend. <br /> - * READING: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_Reading_Asc() { - regOBA("READING"); - return this; - } - - /** - * Add order-by as descend. <br /> - * READING: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_Reading_Desc() { - regOBD("READING"); - return this; - } - - protected ConditionValue _targetRole; - - public ConditionValue getTargetRole() { - if (_targetRole == null) { - _targetRole = nCV(); - } - return _targetRole; - } - - @Override - protected ConditionValue getCValueTargetRole() { - return getTargetRole(); - } - - /** - * Add order-by as ascend. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_TargetRole_Asc() { - regOBA("TARGET_ROLE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * TARGET_ROLE: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_TargetRole_Desc() { - regOBD("TARGET_ROLE"); - return this; - } - - protected ConditionValue _targetLabel; - - public ConditionValue getTargetLabel() { - if (_targetLabel == null) { - _targetLabel = nCV(); - } - return _targetLabel; - } - - @Override - protected ConditionValue getCValueTargetLabel() { - return getTargetLabel(); - } - - /** - * Add order-by as ascend. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_TargetLabel_Asc() { - regOBA("TARGET_LABEL"); - return this; - } - - /** - * Add order-by as descend. <br /> - * TARGET_LABEL: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_TargetLabel_Desc() { - regOBD("TARGET_LABEL"); - return this; - } - - protected ConditionValue _boost; - - public ConditionValue getBoost() { - if (_boost == null) { - _boost = nCV(); - } - return _boost; - } - - @Override - protected ConditionValue getCValueBoost() { - return getBoost(); - } - - /** - * Add order-by as ascend. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_Boost_Asc() { - regOBA("BOOST"); - return this; - } - - /** - * Add order-by as descend. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_Boost_Desc() { - regOBD("BOOST"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsSuggestElevateWordCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, SuggestElevateWordCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final SuggestElevateWordCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, SuggestElevateWordCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final SuggestElevateWordCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, SuggestElevateWordCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final SuggestElevateWordCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, SuggestElevateWordCQ> _myselfExistsMap; - - public Map<String, SuggestElevateWordCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final SuggestElevateWordCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, SuggestElevateWordCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final SuggestElevateWordCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return SuggestElevateWordCB.class.getName(); - } - - protected String xCQ() { - return SuggestElevateWordCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsUserInfoCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsUserInfoCQ.java deleted file mode 100644 index c97e2b446..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsUserInfoCQ.java +++ /dev/null @@ -1,524 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.cbean.cq.FavoriteLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.cq.UserInfoCQ; -import jp.sf.fess.db.cbean.cq.ciq.UserInfoCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of USER_INFO. - * @author DBFlute(AutoGenerator) - */ -public class BsUserInfoCQ extends AbstractBsUserInfoCQ { - - // =================================================================================== - // Attribute - // ========= - protected UserInfoCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsUserInfoCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from USER_INFO) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public UserInfoCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected UserInfoCIQ xcreateCIQ() { - final UserInfoCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected UserInfoCIQ xnewCIQ() { - return new UserInfoCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join USER_INFO on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public UserInfoCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final UserInfoCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - public Map<String, FavoriteLogCQ> getId_ExistsReferrer_FavoriteLogList() { - return xgetSQueMap("id_ExistsReferrer_FavoriteLogList"); - } - - @Override - public String keepId_ExistsReferrer_FavoriteLogList(final FavoriteLogCQ sq) { - return xkeepSQue("id_ExistsReferrer_FavoriteLogList", sq); - } - - public Map<String, SearchLogCQ> getId_ExistsReferrer_SearchLogList() { - return xgetSQueMap("id_ExistsReferrer_SearchLogList"); - } - - @Override - public String keepId_ExistsReferrer_SearchLogList(final SearchLogCQ sq) { - return xkeepSQue("id_ExistsReferrer_SearchLogList", sq); - } - - public Map<String, FavoriteLogCQ> getId_NotExistsReferrer_FavoriteLogList() { - return xgetSQueMap("id_NotExistsReferrer_FavoriteLogList"); - } - - @Override - public String keepId_NotExistsReferrer_FavoriteLogList( - final FavoriteLogCQ sq) { - return xkeepSQue("id_NotExistsReferrer_FavoriteLogList", sq); - } - - public Map<String, SearchLogCQ> getId_NotExistsReferrer_SearchLogList() { - return xgetSQueMap("id_NotExistsReferrer_SearchLogList"); - } - - @Override - public String keepId_NotExistsReferrer_SearchLogList(final SearchLogCQ sq) { - return xkeepSQue("id_NotExistsReferrer_SearchLogList", sq); - } - - public Map<String, FavoriteLogCQ> getId_SpecifyDerivedReferrer_FavoriteLogList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_FavoriteLogList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_FavoriteLogList( - final FavoriteLogCQ sq) { - return xkeepSQue("id_SpecifyDerivedReferrer_FavoriteLogList", sq); - } - - public Map<String, SearchLogCQ> getId_SpecifyDerivedReferrer_SearchLogList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_SearchLogList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_SearchLogList( - final SearchLogCQ sq) { - return xkeepSQue("id_SpecifyDerivedReferrer_SearchLogList", sq); - } - - public Map<String, FavoriteLogCQ> getId_InScopeRelation_FavoriteLogList() { - return xgetSQueMap("id_InScopeRelation_FavoriteLogList"); - } - - @Override - public String keepId_InScopeRelation_FavoriteLogList(final FavoriteLogCQ sq) { - return xkeepSQue("id_InScopeRelation_FavoriteLogList", sq); - } - - public Map<String, SearchLogCQ> getId_InScopeRelation_SearchLogList() { - return xgetSQueMap("id_InScopeRelation_SearchLogList"); - } - - @Override - public String keepId_InScopeRelation_SearchLogList(final SearchLogCQ sq) { - return xkeepSQue("id_InScopeRelation_SearchLogList", sq); - } - - public Map<String, FavoriteLogCQ> getId_NotInScopeRelation_FavoriteLogList() { - return xgetSQueMap("id_NotInScopeRelation_FavoriteLogList"); - } - - @Override - public String keepId_NotInScopeRelation_FavoriteLogList( - final FavoriteLogCQ sq) { - return xkeepSQue("id_NotInScopeRelation_FavoriteLogList", sq); - } - - public Map<String, SearchLogCQ> getId_NotInScopeRelation_SearchLogList() { - return xgetSQueMap("id_NotInScopeRelation_SearchLogList"); - } - - @Override - public String keepId_NotInScopeRelation_SearchLogList(final SearchLogCQ sq) { - return xkeepSQue("id_NotInScopeRelation_SearchLogList", sq); - } - - public Map<String, FavoriteLogCQ> getId_QueryDerivedReferrer_FavoriteLogList() { - return xgetSQueMap("id_QueryDerivedReferrer_FavoriteLogList"); - } - - @Override - public String keepId_QueryDerivedReferrer_FavoriteLogList( - final FavoriteLogCQ sq) { - return xkeepSQue("id_QueryDerivedReferrer_FavoriteLogList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_FavoriteLogListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_FavoriteLogList"); - } - - @Override - public String keepId_QueryDerivedReferrer_FavoriteLogListParameter( - final Object pm) { - return xkeepSQuePm("id_QueryDerivedReferrer_FavoriteLogList", pm); - } - - public Map<String, SearchLogCQ> getId_QueryDerivedReferrer_SearchLogList() { - return xgetSQueMap("id_QueryDerivedReferrer_SearchLogList"); - } - - @Override - public String keepId_QueryDerivedReferrer_SearchLogList(final SearchLogCQ sq) { - return xkeepSQue("id_QueryDerivedReferrer_SearchLogList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_SearchLogListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_SearchLogList"); - } - - @Override - public String keepId_QueryDerivedReferrer_SearchLogListParameter( - final Object pm) { - return xkeepSQuePm("id_QueryDerivedReferrer_SearchLogList", pm); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsUserInfoCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsUserInfoCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _code; - - public ConditionValue getCode() { - if (_code == null) { - _code = nCV(); - } - return _code; - } - - @Override - protected ConditionValue getCValueCode() { - return getCode(); - } - - /** - * Add order-by as ascend. <br /> - * CODE: {NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsUserInfoCQ addOrderBy_Code_Asc() { - regOBA("CODE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CODE: {NotNull, VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsUserInfoCQ addOrderBy_Code_Desc() { - regOBD("CODE"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsUserInfoCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsUserInfoCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsUserInfoCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsUserInfoCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsUserInfoCQ addSpecifiedDerivedOrderBy_Asc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsUserInfoCQ addSpecifiedDerivedOrderBy_Desc(final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, UserInfoCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final UserInfoCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, UserInfoCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final UserInfoCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, UserInfoCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final UserInfoCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, UserInfoCQ> _myselfExistsMap; - - public Map<String, UserInfoCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final UserInfoCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, UserInfoCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final UserInfoCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return UserInfoCB.class.getName(); - } - - protected String xCQ() { - return UserInfoCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebAuthenticationCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebAuthenticationCQ.java deleted file mode 100644 index 9da5de33b..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebAuthenticationCQ.java +++ /dev/null @@ -1,862 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.WebAuthenticationCB; -import jp.sf.fess.db.cbean.cq.WebAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.ciq.WebAuthenticationCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of WEB_AUTHENTICATION. - * @author DBFlute(AutoGenerator) - */ -public class BsWebAuthenticationCQ extends AbstractBsWebAuthenticationCQ { - - // =================================================================================== - // Attribute - // ========= - protected WebAuthenticationCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsWebAuthenticationCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from WEB_AUTHENTICATION) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public WebAuthenticationCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected WebAuthenticationCIQ xcreateCIQ() { - final WebAuthenticationCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected WebAuthenticationCIQ xnewCIQ() { - return new WebAuthenticationCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join WEB_AUTHENTICATION on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public WebAuthenticationCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final WebAuthenticationCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _hostname; - - public ConditionValue getHostname() { - if (_hostname == null) { - _hostname = nCV(); - } - return _hostname; - } - - @Override - protected ConditionValue getCValueHostname() { - return getHostname(); - } - - /** - * Add order-by as ascend. <br /> - * HOSTNAME: {VARCHAR(100)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_Hostname_Asc() { - regOBA("HOSTNAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * HOSTNAME: {VARCHAR(100)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_Hostname_Desc() { - regOBD("HOSTNAME"); - return this; - } - - protected ConditionValue _port; - - public ConditionValue getPort() { - if (_port == null) { - _port = nCV(); - } - return _port; - } - - @Override - protected ConditionValue getCValuePort() { - return getPort(); - } - - /** - * Add order-by as ascend. <br /> - * PORT: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_Port_Asc() { - regOBA("PORT"); - return this; - } - - /** - * Add order-by as descend. <br /> - * PORT: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_Port_Desc() { - regOBD("PORT"); - return this; - } - - protected ConditionValue _authRealm; - - public ConditionValue getAuthRealm() { - if (_authRealm == null) { - _authRealm = nCV(); - } - return _authRealm; - } - - @Override - protected ConditionValue getCValueAuthRealm() { - return getAuthRealm(); - } - - /** - * Add order-by as ascend. <br /> - * AUTH_REALM: {VARCHAR(100)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_AuthRealm_Asc() { - regOBA("AUTH_REALM"); - return this; - } - - /** - * Add order-by as descend. <br /> - * AUTH_REALM: {VARCHAR(100)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_AuthRealm_Desc() { - regOBD("AUTH_REALM"); - return this; - } - - protected ConditionValue _protocolScheme; - - public ConditionValue getProtocolScheme() { - if (_protocolScheme == null) { - _protocolScheme = nCV(); - } - return _protocolScheme; - } - - @Override - protected ConditionValue getCValueProtocolScheme() { - return getProtocolScheme(); - } - - /** - * Add order-by as ascend. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_ProtocolScheme_Asc() { - regOBA("PROTOCOL_SCHEME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * PROTOCOL_SCHEME: {VARCHAR(10)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_ProtocolScheme_Desc() { - regOBD("PROTOCOL_SCHEME"); - return this; - } - - protected ConditionValue _username; - - public ConditionValue getUsername() { - if (_username == null) { - _username = nCV(); - } - return _username; - } - - @Override - protected ConditionValue getCValueUsername() { - return getUsername(); - } - - /** - * Add order-by as ascend. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_Username_Asc() { - regOBA("USERNAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * USERNAME: {NotNull, VARCHAR(100)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_Username_Desc() { - regOBD("USERNAME"); - return this; - } - - protected ConditionValue _password; - - public ConditionValue getPassword() { - if (_password == null) { - _password = nCV(); - } - return _password; - } - - @Override - protected ConditionValue getCValuePassword() { - return getPassword(); - } - - /** - * Add order-by as ascend. <br /> - * PASSWORD: {VARCHAR(100)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_Password_Asc() { - regOBA("PASSWORD"); - return this; - } - - /** - * Add order-by as descend. <br /> - * PASSWORD: {VARCHAR(100)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_Password_Desc() { - regOBD("PASSWORD"); - return this; - } - - protected ConditionValue _parameters; - - public ConditionValue getParameters() { - if (_parameters == null) { - _parameters = nCV(); - } - return _parameters; - } - - @Override - protected ConditionValue getCValueParameters() { - return getParameters(); - } - - /** - * Add order-by as ascend. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_Parameters_Asc() { - regOBA("PARAMETERS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * PARAMETERS: {VARCHAR(1000)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_Parameters_Desc() { - regOBD("PARAMETERS"); - return this; - } - - protected ConditionValue _webCrawlingConfigId; - - public ConditionValue getWebCrawlingConfigId() { - if (_webCrawlingConfigId == null) { - _webCrawlingConfigId = nCV(); - } - return _webCrawlingConfigId; - } - - @Override - protected ConditionValue getCValueWebCrawlingConfigId() { - return getWebCrawlingConfigId(); - } - - public Map<String, WebCrawlingConfigCQ> getWebCrawlingConfigId_InScopeRelation_WebCrawlingConfig() { - return xgetSQueMap("webCrawlingConfigId_InScopeRelation_WebCrawlingConfig"); - } - - @Override - public String keepWebCrawlingConfigId_InScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return xkeepSQue( - "webCrawlingConfigId_InScopeRelation_WebCrawlingConfig", sq); - } - - public Map<String, WebCrawlingConfigCQ> getWebCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig() { - return xgetSQueMap("webCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig"); - } - - @Override - public String keepWebCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return xkeepSQue( - "webCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig", sq); - } - - /** - * Add order-by as ascend. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_WebCrawlingConfigId_Asc() { - regOBA("WEB_CRAWLING_CONFIG_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * WEB_CRAWLING_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_WebCrawlingConfigId_Desc() { - regOBD("WEB_CRAWLING_CONFIG_ID"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsWebAuthenticationCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final WebAuthenticationCQ bq = (WebAuthenticationCQ) bqs; - final WebAuthenticationCQ uq = (WebAuthenticationCQ) uqs; - if (bq.hasConditionQueryWebCrawlingConfig()) { - uq.queryWebCrawlingConfig().reflectRelationOnUnionQuery( - bq.queryWebCrawlingConfig(), uq.queryWebCrawlingConfig()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - * @return The instance of condition-query. (NotNull) - */ - public WebCrawlingConfigCQ queryWebCrawlingConfig() { - return getConditionQueryWebCrawlingConfig(); - } - - public WebCrawlingConfigCQ getConditionQueryWebCrawlingConfig() { - final String prop = "webCrawlingConfig"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryWebCrawlingConfig()); - xsetupOuterJoinWebCrawlingConfig(); - } - return xgetQueRlMap(prop); - } - - protected WebCrawlingConfigCQ xcreateQueryWebCrawlingConfig() { - final String nrp = xresolveNRP("WEB_AUTHENTICATION", - "webCrawlingConfig"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new WebCrawlingConfigCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "webCrawlingConfig", nrp); - } - - protected void xsetupOuterJoinWebCrawlingConfig() { - xregOutJo("webCrawlingConfig"); - } - - public boolean hasConditionQueryWebCrawlingConfig() { - return xhasQueRlMap("webCrawlingConfig"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, WebAuthenticationCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final WebAuthenticationCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, WebAuthenticationCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final WebAuthenticationCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, WebAuthenticationCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final WebAuthenticationCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, WebAuthenticationCQ> _myselfExistsMap; - - public Map<String, WebAuthenticationCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final WebAuthenticationCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, WebAuthenticationCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final WebAuthenticationCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return WebAuthenticationCB.class.getName(); - } - - protected String xCQ() { - return WebAuthenticationCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebConfigToLabelTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebConfigToLabelTypeMappingCQ.java deleted file mode 100644 index 239aa5f7a..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebConfigToLabelTypeMappingCQ.java +++ /dev/null @@ -1,478 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.ciq.WebConfigToLabelTypeMappingCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of WEB_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsWebConfigToLabelTypeMappingCQ extends - AbstractBsWebConfigToLabelTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected WebConfigToLabelTypeMappingCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsWebConfigToLabelTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from WEB_CONFIG_TO_LABEL_TYPE_MAPPING) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public WebConfigToLabelTypeMappingCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected WebConfigToLabelTypeMappingCIQ xcreateCIQ() { - final WebConfigToLabelTypeMappingCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected WebConfigToLabelTypeMappingCIQ xnewCIQ() { - return new WebConfigToLabelTypeMappingCIQ(xgetReferrerQuery(), - xgetSqlClause(), xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join WEB_CONFIG_TO_LABEL_TYPE_MAPPING on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public WebConfigToLabelTypeMappingCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final WebConfigToLabelTypeMappingCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsWebConfigToLabelTypeMappingCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsWebConfigToLabelTypeMappingCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _webConfigId; - - public ConditionValue getWebConfigId() { - if (_webConfigId == null) { - _webConfigId = nCV(); - } - return _webConfigId; - } - - @Override - protected ConditionValue getCValueWebConfigId() { - return getWebConfigId(); - } - - public Map<String, WebCrawlingConfigCQ> getWebConfigId_InScopeRelation_WebCrawlingConfig() { - return xgetSQueMap("webConfigId_InScopeRelation_WebCrawlingConfig"); - } - - @Override - public String keepWebConfigId_InScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return xkeepSQue("webConfigId_InScopeRelation_WebCrawlingConfig", sq); - } - - public Map<String, WebCrawlingConfigCQ> getWebConfigId_NotInScopeRelation_WebCrawlingConfig() { - return xgetSQueMap("webConfigId_NotInScopeRelation_WebCrawlingConfig"); - } - - @Override - public String keepWebConfigId_NotInScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return xkeepSQue("webConfigId_NotInScopeRelation_WebCrawlingConfig", sq); - } - - /** - * Add order-by as ascend. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsWebConfigToLabelTypeMappingCQ addOrderBy_WebConfigId_Asc() { - regOBA("WEB_CONFIG_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsWebConfigToLabelTypeMappingCQ addOrderBy_WebConfigId_Desc() { - regOBD("WEB_CONFIG_ID"); - return this; - } - - protected ConditionValue _labelTypeId; - - public ConditionValue getLabelTypeId() { - if (_labelTypeId == null) { - _labelTypeId = nCV(); - } - return _labelTypeId; - } - - @Override - protected ConditionValue getCValueLabelTypeId() { - return getLabelTypeId(); - } - - public Map<String, LabelTypeCQ> getLabelTypeId_InScopeRelation_LabelType() { - return xgetSQueMap("labelTypeId_InScopeRelation_LabelType"); - } - - @Override - public String keepLabelTypeId_InScopeRelation_LabelType(final LabelTypeCQ sq) { - return xkeepSQue("labelTypeId_InScopeRelation_LabelType", sq); - } - - public Map<String, LabelTypeCQ> getLabelTypeId_NotInScopeRelation_LabelType() { - return xgetSQueMap("labelTypeId_NotInScopeRelation_LabelType"); - } - - @Override - public String keepLabelTypeId_NotInScopeRelation_LabelType( - final LabelTypeCQ sq) { - return xkeepSQue("labelTypeId_NotInScopeRelation_LabelType", sq); - } - - /** - * Add order-by as ascend. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return this. (NotNull) - */ - public BsWebConfigToLabelTypeMappingCQ addOrderBy_LabelTypeId_Asc() { - regOBA("LABEL_TYPE_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * LABEL_TYPE_ID: {IX, NotNull, BIGINT(19), FK to LABEL_TYPE} - * @return this. (NotNull) - */ - public BsWebConfigToLabelTypeMappingCQ addOrderBy_LabelTypeId_Desc() { - regOBD("LABEL_TYPE_ID"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsWebConfigToLabelTypeMappingCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsWebConfigToLabelTypeMappingCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final WebConfigToLabelTypeMappingCQ bq = (WebConfigToLabelTypeMappingCQ) bqs; - final WebConfigToLabelTypeMappingCQ uq = (WebConfigToLabelTypeMappingCQ) uqs; - if (bq.hasConditionQueryLabelType()) { - uq.queryLabelType().reflectRelationOnUnionQuery( - bq.queryLabelType(), uq.queryLabelType()); - } - if (bq.hasConditionQueryWebCrawlingConfig()) { - uq.queryWebCrawlingConfig().reflectRelationOnUnionQuery( - bq.queryWebCrawlingConfig(), uq.queryWebCrawlingConfig()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - * @return The instance of condition-query. (NotNull) - */ - public LabelTypeCQ queryLabelType() { - return getConditionQueryLabelType(); - } - - public LabelTypeCQ getConditionQueryLabelType() { - final String prop = "labelType"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryLabelType()); - xsetupOuterJoinLabelType(); - } - return xgetQueRlMap(prop); - } - - protected LabelTypeCQ xcreateQueryLabelType() { - final String nrp = xresolveNRP("WEB_CONFIG_TO_LABEL_TYPE_MAPPING", - "labelType"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new LabelTypeCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "labelType", nrp); - } - - protected void xsetupOuterJoinLabelType() { - xregOutJo("labelType"); - } - - public boolean hasConditionQueryLabelType() { - return xhasQueRlMap("labelType"); - } - - /** - * Get the condition-query for relation table. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @return The instance of condition-query. (NotNull) - */ - public WebCrawlingConfigCQ queryWebCrawlingConfig() { - return getConditionQueryWebCrawlingConfig(); - } - - public WebCrawlingConfigCQ getConditionQueryWebCrawlingConfig() { - final String prop = "webCrawlingConfig"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryWebCrawlingConfig()); - xsetupOuterJoinWebCrawlingConfig(); - } - return xgetQueRlMap(prop); - } - - protected WebCrawlingConfigCQ xcreateQueryWebCrawlingConfig() { - final String nrp = xresolveNRP("WEB_CONFIG_TO_LABEL_TYPE_MAPPING", - "webCrawlingConfig"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new WebCrawlingConfigCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "webCrawlingConfig", nrp); - } - - protected void xsetupOuterJoinWebCrawlingConfig() { - xregOutJo("webCrawlingConfig"); - } - - public boolean hasConditionQueryWebCrawlingConfig() { - return xhasQueRlMap("webCrawlingConfig"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, WebConfigToLabelTypeMappingCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, WebConfigToLabelTypeMappingCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, WebConfigToLabelTypeMappingCQ> _myselfExistsMap; - - public Map<String, WebConfigToLabelTypeMappingCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, WebConfigToLabelTypeMappingCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return WebConfigToLabelTypeMappingCB.class.getName(); - } - - protected String xCQ() { - return WebConfigToLabelTypeMappingCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebConfigToRoleTypeMappingCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebConfigToRoleTypeMappingCQ.java deleted file mode 100644 index 0586315d5..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebConfigToRoleTypeMappingCQ.java +++ /dev/null @@ -1,476 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.ciq.WebConfigToRoleTypeMappingCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of WEB_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class BsWebConfigToRoleTypeMappingCQ extends - AbstractBsWebConfigToRoleTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected WebConfigToRoleTypeMappingCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsWebConfigToRoleTypeMappingCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from WEB_CONFIG_TO_ROLE_TYPE_MAPPING) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public WebConfigToRoleTypeMappingCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected WebConfigToRoleTypeMappingCIQ xcreateCIQ() { - final WebConfigToRoleTypeMappingCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected WebConfigToRoleTypeMappingCIQ xnewCIQ() { - return new WebConfigToRoleTypeMappingCIQ(xgetReferrerQuery(), - xgetSqlClause(), xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join WEB_CONFIG_TO_ROLE_TYPE_MAPPING on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public WebConfigToRoleTypeMappingCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final WebConfigToRoleTypeMappingCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsWebConfigToRoleTypeMappingCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsWebConfigToRoleTypeMappingCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _webConfigId; - - public ConditionValue getWebConfigId() { - if (_webConfigId == null) { - _webConfigId = nCV(); - } - return _webConfigId; - } - - @Override - protected ConditionValue getCValueWebConfigId() { - return getWebConfigId(); - } - - public Map<String, WebCrawlingConfigCQ> getWebConfigId_InScopeRelation_WebCrawlingConfig() { - return xgetSQueMap("webConfigId_InScopeRelation_WebCrawlingConfig"); - } - - @Override - public String keepWebConfigId_InScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return xkeepSQue("webConfigId_InScopeRelation_WebCrawlingConfig", sq); - } - - public Map<String, WebCrawlingConfigCQ> getWebConfigId_NotInScopeRelation_WebCrawlingConfig() { - return xgetSQueMap("webConfigId_NotInScopeRelation_WebCrawlingConfig"); - } - - @Override - public String keepWebConfigId_NotInScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return xkeepSQue("webConfigId_NotInScopeRelation_WebCrawlingConfig", sq); - } - - /** - * Add order-by as ascend. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsWebConfigToRoleTypeMappingCQ addOrderBy_WebConfigId_Asc() { - regOBA("WEB_CONFIG_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * WEB_CONFIG_ID: {IX, NotNull, BIGINT(19), FK to WEB_CRAWLING_CONFIG} - * @return this. (NotNull) - */ - public BsWebConfigToRoleTypeMappingCQ addOrderBy_WebConfigId_Desc() { - regOBD("WEB_CONFIG_ID"); - return this; - } - - protected ConditionValue _roleTypeId; - - public ConditionValue getRoleTypeId() { - if (_roleTypeId == null) { - _roleTypeId = nCV(); - } - return _roleTypeId; - } - - @Override - protected ConditionValue getCValueRoleTypeId() { - return getRoleTypeId(); - } - - public Map<String, RoleTypeCQ> getRoleTypeId_InScopeRelation_RoleType() { - return xgetSQueMap("roleTypeId_InScopeRelation_RoleType"); - } - - @Override - public String keepRoleTypeId_InScopeRelation_RoleType(final RoleTypeCQ sq) { - return xkeepSQue("roleTypeId_InScopeRelation_RoleType", sq); - } - - public Map<String, RoleTypeCQ> getRoleTypeId_NotInScopeRelation_RoleType() { - return xgetSQueMap("roleTypeId_NotInScopeRelation_RoleType"); - } - - @Override - public String keepRoleTypeId_NotInScopeRelation_RoleType(final RoleTypeCQ sq) { - return xkeepSQue("roleTypeId_NotInScopeRelation_RoleType", sq); - } - - /** - * Add order-by as ascend. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return this. (NotNull) - */ - public BsWebConfigToRoleTypeMappingCQ addOrderBy_RoleTypeId_Asc() { - regOBA("ROLE_TYPE_ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ROLE_TYPE_ID: {IX, NotNull, BIGINT(19), FK to ROLE_TYPE} - * @return this. (NotNull) - */ - public BsWebConfigToRoleTypeMappingCQ addOrderBy_RoleTypeId_Desc() { - regOBD("ROLE_TYPE_ID"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsWebConfigToRoleTypeMappingCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsWebConfigToRoleTypeMappingCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - final WebConfigToRoleTypeMappingCQ bq = (WebConfigToRoleTypeMappingCQ) bqs; - final WebConfigToRoleTypeMappingCQ uq = (WebConfigToRoleTypeMappingCQ) uqs; - if (bq.hasConditionQueryRoleType()) { - uq.queryRoleType().reflectRelationOnUnionQuery(bq.queryRoleType(), - uq.queryRoleType()); - } - if (bq.hasConditionQueryWebCrawlingConfig()) { - uq.queryWebCrawlingConfig().reflectRelationOnUnionQuery( - bq.queryWebCrawlingConfig(), uq.queryWebCrawlingConfig()); - } - } - - // =================================================================================== - // Foreign Query - // ============= - /** - * Get the condition-query for relation table. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - * @return The instance of condition-query. (NotNull) - */ - public RoleTypeCQ queryRoleType() { - return getConditionQueryRoleType(); - } - - public RoleTypeCQ getConditionQueryRoleType() { - final String prop = "roleType"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryRoleType()); - xsetupOuterJoinRoleType(); - } - return xgetQueRlMap(prop); - } - - protected RoleTypeCQ xcreateQueryRoleType() { - final String nrp = xresolveNRP("WEB_CONFIG_TO_ROLE_TYPE_MAPPING", - "roleType"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new RoleTypeCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "roleType", nrp); - } - - protected void xsetupOuterJoinRoleType() { - xregOutJo("roleType"); - } - - public boolean hasConditionQueryRoleType() { - return xhasQueRlMap("roleType"); - } - - /** - * Get the condition-query for relation table. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - * @return The instance of condition-query. (NotNull) - */ - public WebCrawlingConfigCQ queryWebCrawlingConfig() { - return getConditionQueryWebCrawlingConfig(); - } - - public WebCrawlingConfigCQ getConditionQueryWebCrawlingConfig() { - final String prop = "webCrawlingConfig"; - if (!xhasQueRlMap(prop)) { - xregQueRl(prop, xcreateQueryWebCrawlingConfig()); - xsetupOuterJoinWebCrawlingConfig(); - } - return xgetQueRlMap(prop); - } - - protected WebCrawlingConfigCQ xcreateQueryWebCrawlingConfig() { - final String nrp = xresolveNRP("WEB_CONFIG_TO_ROLE_TYPE_MAPPING", - "webCrawlingConfig"); - final String jan = xresolveJAN(nrp, xgetNNLvl()); - return xinitRelCQ(new WebCrawlingConfigCQ(this, xgetSqlClause(), jan, - xgetNNLvl()), _baseCB, "webCrawlingConfig", nrp); - } - - protected void xsetupOuterJoinWebCrawlingConfig() { - xregOutJo("webCrawlingConfig"); - } - - public boolean hasConditionQueryWebCrawlingConfig() { - return xhasQueRlMap("webCrawlingConfig"); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, WebConfigToRoleTypeMappingCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, WebConfigToRoleTypeMappingCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, WebConfigToRoleTypeMappingCQ> _myselfExistsMap; - - public Map<String, WebConfigToRoleTypeMappingCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, WebConfigToRoleTypeMappingCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return WebConfigToRoleTypeMappingCB.class.getName(); - } - - protected String xCQ() { - return WebConfigToRoleTypeMappingCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebCrawlingConfigCQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebCrawlingConfigCQ.java deleted file mode 100644 index 67bea755c..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/bs/BsWebCrawlingConfigCQ.java +++ /dev/null @@ -1,1334 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.bs; - -import java.util.Map; - -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.RequestHeaderCQ; -import jp.sf.fess.db.cbean.cq.WebAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.ciq.WebCrawlingConfigCIQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.chelper.HpCalculator; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The base condition-query of WEB_CRAWLING_CONFIG. - * @author DBFlute(AutoGenerator) - */ -public class BsWebCrawlingConfigCQ extends AbstractBsWebCrawlingConfigCQ { - - // =================================================================================== - // Attribute - // ========= - protected WebCrawlingConfigCIQ _inlineQuery; - - // =================================================================================== - // Constructor - // =========== - public BsWebCrawlingConfigCQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - } - - // =================================================================================== - // InlineView/OrClause - // =================== - /** - * Prepare InlineView query. <br /> - * {select ... from ... left outer join (select * from WEB_CRAWLING_CONFIG) where FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">inline()</span>.setFoo...; - * </pre> - * @return The condition-query for InlineView query. (NotNull) - */ - public WebCrawlingConfigCIQ inline() { - if (_inlineQuery == null) { - _inlineQuery = xcreateCIQ(); - } - _inlineQuery.xsetOnClause(false); - return _inlineQuery; - } - - protected WebCrawlingConfigCIQ xcreateCIQ() { - final WebCrawlingConfigCIQ ciq = xnewCIQ(); - ciq.xsetBaseCB(_baseCB); - return ciq; - } - - protected WebCrawlingConfigCIQ xnewCIQ() { - return new WebCrawlingConfigCIQ(xgetReferrerQuery(), xgetSqlClause(), - xgetAliasName(), xgetNestLevel(), this); - } - - /** - * Prepare OnClause query. <br /> - * {select ... from ... left outer join WEB_CRAWLING_CONFIG on ... and FOO = [value] ...} - * <pre> - * cb.query().queryMemberStatus().<span style="color: #DD4747">on()</span>.setFoo...; - * </pre> - * @return The condition-query for OnClause query. (NotNull) - * @throws IllegalConditionBeanOperationException When this condition-query is base query. - */ - public WebCrawlingConfigCIQ on() { - if (isBaseQuery()) { - throw new IllegalConditionBeanOperationException( - "OnClause for local table is unavailable!"); - } - final WebCrawlingConfigCIQ inlineQuery = inline(); - inlineQuery.xsetOnClause(true); - return inlineQuery; - } - - // =================================================================================== - // Query - // ===== - protected ConditionValue _id; - - public ConditionValue getId() { - if (_id == null) { - _id = nCV(); - } - return _id; - } - - @Override - protected ConditionValue getCValueId() { - return getId(); - } - - public Map<String, RequestHeaderCQ> getId_ExistsReferrer_RequestHeaderList() { - return xgetSQueMap("id_ExistsReferrer_RequestHeaderList"); - } - - @Override - public String keepId_ExistsReferrer_RequestHeaderList( - final RequestHeaderCQ sq) { - return xkeepSQue("id_ExistsReferrer_RequestHeaderList", sq); - } - - public Map<String, WebAuthenticationCQ> getId_ExistsReferrer_WebAuthenticationList() { - return xgetSQueMap("id_ExistsReferrer_WebAuthenticationList"); - } - - @Override - public String keepId_ExistsReferrer_WebAuthenticationList( - final WebAuthenticationCQ sq) { - return xkeepSQue("id_ExistsReferrer_WebAuthenticationList", sq); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getId_ExistsReferrer_WebConfigToLabelTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_WebConfigToLabelTypeMappingList", - sq); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getId_ExistsReferrer_WebConfigToRoleTypeMappingList() { - return xgetSQueMap("id_ExistsReferrer_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_ExistsReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_ExistsReferrer_WebConfigToRoleTypeMappingList", sq); - } - - public Map<String, RequestHeaderCQ> getId_NotExistsReferrer_RequestHeaderList() { - return xgetSQueMap("id_NotExistsReferrer_RequestHeaderList"); - } - - @Override - public String keepId_NotExistsReferrer_RequestHeaderList( - final RequestHeaderCQ sq) { - return xkeepSQue("id_NotExistsReferrer_RequestHeaderList", sq); - } - - public Map<String, WebAuthenticationCQ> getId_NotExistsReferrer_WebAuthenticationList() { - return xgetSQueMap("id_NotExistsReferrer_WebAuthenticationList"); - } - - @Override - public String keepId_NotExistsReferrer_WebAuthenticationList( - final WebAuthenticationCQ sq) { - return xkeepSQue("id_NotExistsReferrer_WebAuthenticationList", sq); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getId_NotExistsReferrer_WebConfigToLabelTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_NotExistsReferrer_WebConfigToLabelTypeMappingList", sq); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getId_NotExistsReferrer_WebConfigToRoleTypeMappingList() { - return xgetSQueMap("id_NotExistsReferrer_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_NotExistsReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_NotExistsReferrer_WebConfigToRoleTypeMappingList", - sq); - } - - public Map<String, RequestHeaderCQ> getId_SpecifyDerivedReferrer_RequestHeaderList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_RequestHeaderList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_RequestHeaderList( - final RequestHeaderCQ sq) { - return xkeepSQue("id_SpecifyDerivedReferrer_RequestHeaderList", sq); - } - - public Map<String, WebAuthenticationCQ> getId_SpecifyDerivedReferrer_WebAuthenticationList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_WebAuthenticationList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_WebAuthenticationList( - final WebAuthenticationCQ sq) { - return xkeepSQue("id_SpecifyDerivedReferrer_WebAuthenticationList", sq); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getId_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList", sq); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getId_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList() { - return xgetSQueMap("id_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList", sq); - } - - public Map<String, RequestHeaderCQ> getId_InScopeRelation_RequestHeaderList() { - return xgetSQueMap("id_InScopeRelation_RequestHeaderList"); - } - - @Override - public String keepId_InScopeRelation_RequestHeaderList( - final RequestHeaderCQ sq) { - return xkeepSQue("id_InScopeRelation_RequestHeaderList", sq); - } - - public Map<String, WebAuthenticationCQ> getId_InScopeRelation_WebAuthenticationList() { - return xgetSQueMap("id_InScopeRelation_WebAuthenticationList"); - } - - @Override - public String keepId_InScopeRelation_WebAuthenticationList( - final WebAuthenticationCQ sq) { - return xkeepSQue("id_InScopeRelation_WebAuthenticationList", sq); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getId_InScopeRelation_WebConfigToLabelTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_WebConfigToLabelTypeMappingList", - sq); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getId_InScopeRelation_WebConfigToRoleTypeMappingList() { - return xgetSQueMap("id_InScopeRelation_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_InScopeRelation_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue("id_InScopeRelation_WebConfigToRoleTypeMappingList", - sq); - } - - public Map<String, RequestHeaderCQ> getId_NotInScopeRelation_RequestHeaderList() { - return xgetSQueMap("id_NotInScopeRelation_RequestHeaderList"); - } - - @Override - public String keepId_NotInScopeRelation_RequestHeaderList( - final RequestHeaderCQ sq) { - return xkeepSQue("id_NotInScopeRelation_RequestHeaderList", sq); - } - - public Map<String, WebAuthenticationCQ> getId_NotInScopeRelation_WebAuthenticationList() { - return xgetSQueMap("id_NotInScopeRelation_WebAuthenticationList"); - } - - @Override - public String keepId_NotInScopeRelation_WebAuthenticationList( - final WebAuthenticationCQ sq) { - return xkeepSQue("id_NotInScopeRelation_WebAuthenticationList", sq); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getId_NotInScopeRelation_WebConfigToLabelTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_WebConfigToLabelTypeMappingList", sq); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getId_NotInScopeRelation_WebConfigToRoleTypeMappingList() { - return xgetSQueMap("id_NotInScopeRelation_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_NotInScopeRelation_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_NotInScopeRelation_WebConfigToRoleTypeMappingList", sq); - } - - public Map<String, RequestHeaderCQ> getId_QueryDerivedReferrer_RequestHeaderList() { - return xgetSQueMap("id_QueryDerivedReferrer_RequestHeaderList"); - } - - @Override - public String keepId_QueryDerivedReferrer_RequestHeaderList( - final RequestHeaderCQ sq) { - return xkeepSQue("id_QueryDerivedReferrer_RequestHeaderList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_RequestHeaderListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_RequestHeaderList"); - } - - @Override - public String keepId_QueryDerivedReferrer_RequestHeaderListParameter( - final Object pm) { - return xkeepSQuePm("id_QueryDerivedReferrer_RequestHeaderList", pm); - } - - public Map<String, WebAuthenticationCQ> getId_QueryDerivedReferrer_WebAuthenticationList() { - return xgetSQueMap("id_QueryDerivedReferrer_WebAuthenticationList"); - } - - @Override - public String keepId_QueryDerivedReferrer_WebAuthenticationList( - final WebAuthenticationCQ sq) { - return xkeepSQue("id_QueryDerivedReferrer_WebAuthenticationList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_WebAuthenticationListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_WebAuthenticationList"); - } - - @Override - public String keepId_QueryDerivedReferrer_WebAuthenticationListParameter( - final Object pm) { - return xkeepSQuePm("id_QueryDerivedReferrer_WebAuthenticationList", pm); - } - - public Map<String, WebConfigToLabelTypeMappingCQ> getId_QueryDerivedReferrer_WebConfigToLabelTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_WebConfigToLabelTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_WebConfigToLabelTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_WebConfigToLabelTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_WebConfigToLabelTypeMappingList", pm); - } - - public Map<String, WebConfigToRoleTypeMappingCQ> getId_QueryDerivedReferrer_WebConfigToRoleTypeMappingList() { - return xgetSQueMap("id_QueryDerivedReferrer_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return xkeepSQue( - "id_QueryDerivedReferrer_WebConfigToRoleTypeMappingList", sq); - } - - public Map<String, Object> getId_QueryDerivedReferrer_WebConfigToRoleTypeMappingListParameter() { - return xgetSQuePmMap("id_QueryDerivedReferrer_WebConfigToRoleTypeMappingList"); - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingListParameter( - final Object pm) { - return xkeepSQuePm( - "id_QueryDerivedReferrer_WebConfigToRoleTypeMappingList", pm); - } - - /** - * Add order-by as ascend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_Id_Asc() { - regOBA("ID"); - return this; - } - - /** - * Add order-by as descend. <br /> - * ID: {PK, ID, NotNull, BIGINT(19)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_Id_Desc() { - regOBD("ID"); - return this; - } - - protected ConditionValue _name; - - public ConditionValue getName() { - if (_name == null) { - _name = nCV(); - } - return _name; - } - - @Override - protected ConditionValue getCValueName() { - return getName(); - } - - /** - * Add order-by as ascend. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_Name_Asc() { - regOBA("NAME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * NAME: {NotNull, VARCHAR(200)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_Name_Desc() { - regOBD("NAME"); - return this; - } - - protected ConditionValue _urls; - - public ConditionValue getUrls() { - if (_urls == null) { - _urls = nCV(); - } - return _urls; - } - - @Override - protected ConditionValue getCValueUrls() { - return getUrls(); - } - - /** - * Add order-by as ascend. <br /> - * URLS: {NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_Urls_Asc() { - regOBA("URLS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * URLS: {NotNull, VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_Urls_Desc() { - regOBD("URLS"); - return this; - } - - protected ConditionValue _includedUrls; - - public ConditionValue getIncludedUrls() { - if (_includedUrls == null) { - _includedUrls = nCV(); - } - return _includedUrls; - } - - @Override - protected ConditionValue getCValueIncludedUrls() { - return getIncludedUrls(); - } - - /** - * Add order-by as ascend. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_IncludedUrls_Asc() { - regOBA("INCLUDED_URLS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * INCLUDED_URLS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_IncludedUrls_Desc() { - regOBD("INCLUDED_URLS"); - return this; - } - - protected ConditionValue _excludedUrls; - - public ConditionValue getExcludedUrls() { - if (_excludedUrls == null) { - _excludedUrls = nCV(); - } - return _excludedUrls; - } - - @Override - protected ConditionValue getCValueExcludedUrls() { - return getExcludedUrls(); - } - - /** - * Add order-by as ascend. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_ExcludedUrls_Asc() { - regOBA("EXCLUDED_URLS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * EXCLUDED_URLS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_ExcludedUrls_Desc() { - regOBD("EXCLUDED_URLS"); - return this; - } - - protected ConditionValue _includedDocUrls; - - public ConditionValue getIncludedDocUrls() { - if (_includedDocUrls == null) { - _includedDocUrls = nCV(); - } - return _includedDocUrls; - } - - @Override - protected ConditionValue getCValueIncludedDocUrls() { - return getIncludedDocUrls(); - } - - /** - * Add order-by as ascend. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_IncludedDocUrls_Asc() { - regOBA("INCLUDED_DOC_URLS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * INCLUDED_DOC_URLS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_IncludedDocUrls_Desc() { - regOBD("INCLUDED_DOC_URLS"); - return this; - } - - protected ConditionValue _excludedDocUrls; - - public ConditionValue getExcludedDocUrls() { - if (_excludedDocUrls == null) { - _excludedDocUrls = nCV(); - } - return _excludedDocUrls; - } - - @Override - protected ConditionValue getCValueExcludedDocUrls() { - return getExcludedDocUrls(); - } - - /** - * Add order-by as ascend. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_ExcludedDocUrls_Asc() { - regOBA("EXCLUDED_DOC_URLS"); - return this; - } - - /** - * Add order-by as descend. <br /> - * EXCLUDED_DOC_URLS: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_ExcludedDocUrls_Desc() { - regOBD("EXCLUDED_DOC_URLS"); - return this; - } - - protected ConditionValue _configParameter; - - public ConditionValue getConfigParameter() { - if (_configParameter == null) { - _configParameter = nCV(); - } - return _configParameter; - } - - @Override - protected ConditionValue getCValueConfigParameter() { - return getConfigParameter(); - } - - /** - * Add order-by as ascend. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_ConfigParameter_Asc() { - regOBA("CONFIG_PARAMETER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CONFIG_PARAMETER: {VARCHAR(4000)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_ConfigParameter_Desc() { - regOBD("CONFIG_PARAMETER"); - return this; - } - - protected ConditionValue _depth; - - public ConditionValue getDepth() { - if (_depth == null) { - _depth = nCV(); - } - return _depth; - } - - @Override - protected ConditionValue getCValueDepth() { - return getDepth(); - } - - /** - * Add order-by as ascend. <br /> - * DEPTH: {INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_Depth_Asc() { - regOBA("DEPTH"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DEPTH: {INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_Depth_Desc() { - regOBD("DEPTH"); - return this; - } - - protected ConditionValue _maxAccessCount; - - public ConditionValue getMaxAccessCount() { - if (_maxAccessCount == null) { - _maxAccessCount = nCV(); - } - return _maxAccessCount; - } - - @Override - protected ConditionValue getCValueMaxAccessCount() { - return getMaxAccessCount(); - } - - /** - * Add order-by as ascend. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_MaxAccessCount_Asc() { - regOBA("MAX_ACCESS_COUNT"); - return this; - } - - /** - * Add order-by as descend. <br /> - * MAX_ACCESS_COUNT: {BIGINT(19)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_MaxAccessCount_Desc() { - regOBD("MAX_ACCESS_COUNT"); - return this; - } - - protected ConditionValue _userAgent; - - public ConditionValue getUserAgent() { - if (_userAgent == null) { - _userAgent = nCV(); - } - return _userAgent; - } - - @Override - protected ConditionValue getCValueUserAgent() { - return getUserAgent(); - } - - /** - * Add order-by as ascend. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_UserAgent_Asc() { - regOBA("USER_AGENT"); - return this; - } - - /** - * Add order-by as descend. <br /> - * USER_AGENT: {NotNull, VARCHAR(200)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_UserAgent_Desc() { - regOBD("USER_AGENT"); - return this; - } - - protected ConditionValue _numOfThread; - - public ConditionValue getNumOfThread() { - if (_numOfThread == null) { - _numOfThread = nCV(); - } - return _numOfThread; - } - - @Override - protected ConditionValue getCValueNumOfThread() { - return getNumOfThread(); - } - - /** - * Add order-by as ascend. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_NumOfThread_Asc() { - regOBA("NUM_OF_THREAD"); - return this; - } - - /** - * Add order-by as descend. <br /> - * NUM_OF_THREAD: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_NumOfThread_Desc() { - regOBD("NUM_OF_THREAD"); - return this; - } - - protected ConditionValue _intervalTime; - - public ConditionValue getIntervalTime() { - if (_intervalTime == null) { - _intervalTime = nCV(); - } - return _intervalTime; - } - - @Override - protected ConditionValue getCValueIntervalTime() { - return getIntervalTime(); - } - - /** - * Add order-by as ascend. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_IntervalTime_Asc() { - regOBA("INTERVAL_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * INTERVAL_TIME: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_IntervalTime_Desc() { - regOBD("INTERVAL_TIME"); - return this; - } - - protected ConditionValue _boost; - - public ConditionValue getBoost() { - if (_boost == null) { - _boost = nCV(); - } - return _boost; - } - - @Override - protected ConditionValue getCValueBoost() { - return getBoost(); - } - - /** - * Add order-by as ascend. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_Boost_Asc() { - regOBA("BOOST"); - return this; - } - - /** - * Add order-by as descend. <br /> - * BOOST: {NotNull, DOUBLE(17)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_Boost_Desc() { - regOBD("BOOST"); - return this; - } - - protected ConditionValue _available; - - public ConditionValue getAvailable() { - if (_available == null) { - _available = nCV(); - } - return _available; - } - - @Override - protected ConditionValue getCValueAvailable() { - return getAvailable(); - } - - /** - * Add order-by as ascend. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_Available_Asc() { - regOBA("AVAILABLE"); - return this; - } - - /** - * Add order-by as descend. <br /> - * AVAILABLE: {NotNull, VARCHAR(1)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_Available_Desc() { - regOBD("AVAILABLE"); - return this; - } - - protected ConditionValue _sortOrder; - - public ConditionValue getSortOrder() { - if (_sortOrder == null) { - _sortOrder = nCV(); - } - return _sortOrder; - } - - @Override - protected ConditionValue getCValueSortOrder() { - return getSortOrder(); - } - - /** - * Add order-by as ascend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_SortOrder_Asc() { - regOBA("SORT_ORDER"); - return this; - } - - /** - * Add order-by as descend. <br /> - * SORT_ORDER: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_SortOrder_Desc() { - regOBD("SORT_ORDER"); - return this; - } - - protected ConditionValue _createdBy; - - public ConditionValue getCreatedBy() { - if (_createdBy == null) { - _createdBy = nCV(); - } - return _createdBy; - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return getCreatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_CreatedBy_Asc() { - regOBA("CREATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_BY: {NotNull, VARCHAR(255)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_CreatedBy_Desc() { - regOBD("CREATED_BY"); - return this; - } - - protected ConditionValue _createdTime; - - public ConditionValue getCreatedTime() { - if (_createdTime == null) { - _createdTime = nCV(); - } - return _createdTime; - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return getCreatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_CreatedTime_Asc() { - regOBA("CREATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_CreatedTime_Desc() { - regOBD("CREATED_TIME"); - return this; - } - - protected ConditionValue _updatedBy; - - public ConditionValue getUpdatedBy() { - if (_updatedBy == null) { - _updatedBy = nCV(); - } - return _updatedBy; - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return getUpdatedBy(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_UpdatedBy_Asc() { - regOBA("UPDATED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_UpdatedBy_Desc() { - regOBD("UPDATED_BY"); - return this; - } - - protected ConditionValue _updatedTime; - - public ConditionValue getUpdatedTime() { - if (_updatedTime == null) { - _updatedTime = nCV(); - } - return _updatedTime; - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return getUpdatedTime(); - } - - /** - * Add order-by as ascend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_UpdatedTime_Asc() { - regOBA("UPDATED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * UPDATED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_UpdatedTime_Desc() { - regOBD("UPDATED_TIME"); - return this; - } - - protected ConditionValue _deletedBy; - - public ConditionValue getDeletedBy() { - if (_deletedBy == null) { - _deletedBy = nCV(); - } - return _deletedBy; - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return getDeletedBy(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_DeletedBy_Asc() { - regOBA("DELETED_BY"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_BY: {VARCHAR(255)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_DeletedBy_Desc() { - regOBD("DELETED_BY"); - return this; - } - - protected ConditionValue _deletedTime; - - public ConditionValue getDeletedTime() { - if (_deletedTime == null) { - _deletedTime = nCV(); - } - return _deletedTime; - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return getDeletedTime(); - } - - /** - * Add order-by as ascend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_DeletedTime_Asc() { - regOBA("DELETED_TIME"); - return this; - } - - /** - * Add order-by as descend. <br /> - * DELETED_TIME: {TIMESTAMP(23, 10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_DeletedTime_Desc() { - regOBD("DELETED_TIME"); - return this; - } - - protected ConditionValue _versionNo; - - public ConditionValue getVersionNo() { - if (_versionNo == null) { - _versionNo = nCV(); - } - return _versionNo; - } - - @Override - protected ConditionValue getCValueVersionNo() { - return getVersionNo(); - } - - /** - * Add order-by as ascend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_VersionNo_Asc() { - regOBA("VERSION_NO"); - return this; - } - - /** - * Add order-by as descend. <br /> - * VERSION_NO: {NotNull, INTEGER(10)} - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addOrderBy_VersionNo_Desc() { - regOBD("VERSION_NO"); - return this; - } - - // =================================================================================== - // SpecifiedDerivedOrderBy - // ======================= - /** - * Add order-by for specified derived column as ascend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] asc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Asc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addSpecifiedDerivedOrderBy_Asc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Asc(aliasName); - return this; - } - - /** - * Add order-by for specified derived column as descend. - * <pre> - * cb.specify().derivedPurchaseList().max(new SubQuery<PurchaseCB>() { - * public void query(PurchaseCB subCB) { - * subCB.specify().columnPurchaseDatetime(); - * } - * }, <span style="color: #DD4747">aliasName</span>); - * <span style="color: #3F7E5E">// order by [alias-name] desc</span> - * cb.<span style="color: #DD4747">addSpecifiedDerivedOrderBy_Desc</span>(<span style="color: #DD4747">aliasName</span>); - * </pre> - * @param aliasName The alias name specified at (Specify)DerivedReferrer. (NotNull) - * @return this. (NotNull) - */ - public BsWebCrawlingConfigCQ addSpecifiedDerivedOrderBy_Desc( - final String aliasName) { - registerSpecifiedDerivedOrderBy_Desc(aliasName); - return this; - } - - // =================================================================================== - // Union Query - // =========== - @Override - public void reflectRelationOnUnionQuery(final ConditionQuery bqs, - final ConditionQuery uqs) { - } - - // =================================================================================== - // Foreign Query - // ============= - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String property) { - return null; - } - - // =================================================================================== - // ScalarCondition - // =============== - public Map<String, WebCrawlingConfigCQ> getScalarCondition() { - return xgetSQueMap("scalarCondition"); - } - - @Override - public String keepScalarCondition(final WebCrawlingConfigCQ sq) { - return xkeepSQue("scalarCondition", sq); - } - - // =================================================================================== - // MyselfDerived - // ============= - public Map<String, WebCrawlingConfigCQ> getSpecifyMyselfDerived() { - return xgetSQueMap("specifyMyselfDerived"); - } - - @Override - public String keepSpecifyMyselfDerived(final WebCrawlingConfigCQ sq) { - return xkeepSQue("specifyMyselfDerived", sq); - } - - public Map<String, WebCrawlingConfigCQ> getQueryMyselfDerived() { - return xgetSQueMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerived(final WebCrawlingConfigCQ sq) { - return xkeepSQue("queryMyselfDerived", sq); - } - - public Map<String, Object> getQueryMyselfDerivedParameter() { - return xgetSQuePmMap("queryMyselfDerived"); - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object pm) { - return xkeepSQuePm("queryMyselfDerived", pm); - } - - // =================================================================================== - // MyselfExists - // ============ - protected Map<String, WebCrawlingConfigCQ> _myselfExistsMap; - - public Map<String, WebCrawlingConfigCQ> getMyselfExists() { - return xgetSQueMap("myselfExists"); - } - - @Override - public String keepMyselfExists(final WebCrawlingConfigCQ sq) { - return xkeepSQue("myselfExists", sq); - } - - // =================================================================================== - // MyselfInScope - // ============= - public Map<String, WebCrawlingConfigCQ> getMyselfInScope() { - return xgetSQueMap("myselfInScope"); - } - - @Override - public String keepMyselfInScope(final WebCrawlingConfigCQ sq) { - return xkeepSQue("myselfInScope", sq); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xCB() { - return WebCrawlingConfigCB.class.getName(); - } - - protected String xCQ() { - return WebCrawlingConfigCQ.class.getName(); - } - - protected String xCHp() { - return HpCalculator.class.getName(); - } - - protected String xCOp() { - return ConditionOption.class.getName(); - } - - protected String xMap() { - return Map.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/BoostDocumentRuleCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/BoostDocumentRuleCIQ.java deleted file mode 100644 index 6d3103a76..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/BoostDocumentRuleCIQ.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.BoostDocumentRuleCB; -import jp.sf.fess.db.cbean.cq.BoostDocumentRuleCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsBoostDocumentRuleCQ; -import jp.sf.fess.db.cbean.cq.bs.BsBoostDocumentRuleCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of BOOST_DOCUMENT_RULE. - * @author DBFlute(AutoGenerator) - */ -public class BoostDocumentRuleCIQ extends AbstractBsBoostDocumentRuleCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsBoostDocumentRuleCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public BoostDocumentRuleCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsBoostDocumentRuleCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueUrlExpr() { - return _myCQ.getUrlExpr(); - } - - @Override - protected ConditionValue getCValueBoostExpr() { - return _myCQ.getBoostExpr(); - } - - @Override - protected ConditionValue getCValueSortOrder() { - return _myCQ.getSortOrder(); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final BoostDocumentRuleCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final BoostDocumentRuleCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final BoostDocumentRuleCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final BoostDocumentRuleCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final BoostDocumentRuleCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return BoostDocumentRuleCB.class.getName(); - } - - protected String xinCQ() { - return BoostDocumentRuleCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/ClickLogCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/ClickLogCIQ.java deleted file mode 100644 index 1bd4495ab..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/ClickLogCIQ.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.cbean.cq.ClickLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsClickLogCQ; -import jp.sf.fess.db.cbean.cq.bs.BsClickLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of CLICK_LOG. - * @author DBFlute(AutoGenerator) - */ -public class ClickLogCIQ extends AbstractBsClickLogCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsClickLogCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public ClickLogCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsClickLogCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueSearchId() { - return _myCQ.getSearchId(); - } - - @Override - public String keepSearchId_InScopeRelation_SearchLog(final SearchLogCQ sq) { - return _myCQ.keepSearchId_InScopeRelation_SearchLog(sq); - } - - @Override - public String keepSearchId_NotInScopeRelation_SearchLog(final SearchLogCQ sq) { - return _myCQ.keepSearchId_NotInScopeRelation_SearchLog(sq); - } - - @Override - protected ConditionValue getCValueUrl() { - return _myCQ.getUrl(); - } - - @Override - protected ConditionValue getCValueRequestedTime() { - return _myCQ.getRequestedTime(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final ClickLogCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final ClickLogCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final ClickLogCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final ClickLogCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final ClickLogCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return ClickLogCB.class.getName(); - } - - protected String xinCQ() { - return ClickLogCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/CrawlingSessionCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/CrawlingSessionCIQ.java deleted file mode 100644 index 00d5779bf..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/CrawlingSessionCIQ.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.CrawlingSessionCB; -import jp.sf.fess.db.cbean.cq.CrawlingSessionCQ; -import jp.sf.fess.db.cbean.cq.CrawlingSessionInfoCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsCrawlingSessionCQ; -import jp.sf.fess.db.cbean.cq.bs.BsCrawlingSessionCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of CRAWLING_SESSION. - * @author DBFlute(AutoGenerator) - */ -public class CrawlingSessionCIQ extends AbstractBsCrawlingSessionCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsCrawlingSessionCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public CrawlingSessionCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsCrawlingSessionCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - public String keepId_ExistsReferrer_CrawlingSessionInfoList( - final CrawlingSessionInfoCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_CrawlingSessionInfoList( - final CrawlingSessionInfoCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_InScopeRelation_CrawlingSessionInfoList( - final CrawlingSessionInfoCQ sq) { - return _myCQ.keepId_InScopeRelation_CrawlingSessionInfoList(sq); - } - - @Override - public String keepId_NotInScopeRelation_CrawlingSessionInfoList( - final CrawlingSessionInfoCQ sq) { - return _myCQ.keepId_NotInScopeRelation_CrawlingSessionInfoList(sq); - } - - @Override - public String keepId_SpecifyDerivedReferrer_CrawlingSessionInfoList( - final CrawlingSessionInfoCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_CrawlingSessionInfoList( - final CrawlingSessionInfoCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_CrawlingSessionInfoListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - protected ConditionValue getCValueSessionId() { - return _myCQ.getSessionId(); - } - - @Override - protected ConditionValue getCValueName() { - return _myCQ.getName(); - } - - @Override - protected ConditionValue getCValueExpiredTime() { - return _myCQ.getExpiredTime(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final CrawlingSessionCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final CrawlingSessionCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final CrawlingSessionCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final CrawlingSessionCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final CrawlingSessionCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return CrawlingSessionCB.class.getName(); - } - - protected String xinCQ() { - return CrawlingSessionCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/CrawlingSessionInfoCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/CrawlingSessionInfoCIQ.java deleted file mode 100644 index c22a67bee..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/CrawlingSessionInfoCIQ.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.CrawlingSessionInfoCB; -import jp.sf.fess.db.cbean.cq.CrawlingSessionCQ; -import jp.sf.fess.db.cbean.cq.CrawlingSessionInfoCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsCrawlingSessionInfoCQ; -import jp.sf.fess.db.cbean.cq.bs.BsCrawlingSessionInfoCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of CRAWLING_SESSION_INFO. - * @author DBFlute(AutoGenerator) - */ -public class CrawlingSessionInfoCIQ extends AbstractBsCrawlingSessionInfoCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsCrawlingSessionInfoCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public CrawlingSessionInfoCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsCrawlingSessionInfoCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueCrawlingSessionId() { - return _myCQ.getCrawlingSessionId(); - } - - @Override - public String keepCrawlingSessionId_InScopeRelation_CrawlingSession( - final CrawlingSessionCQ sq) { - return _myCQ.keepCrawlingSessionId_InScopeRelation_CrawlingSession(sq); - } - - @Override - public String keepCrawlingSessionId_NotInScopeRelation_CrawlingSession( - final CrawlingSessionCQ sq) { - return _myCQ - .keepCrawlingSessionId_NotInScopeRelation_CrawlingSession(sq); - } - - @Override - protected ConditionValue getCValueKey() { - return _myCQ.getKey(); - } - - @Override - protected ConditionValue getCValueValue() { - return _myCQ.getValue(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final CrawlingSessionInfoCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final CrawlingSessionInfoCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final CrawlingSessionInfoCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final CrawlingSessionInfoCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final CrawlingSessionInfoCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return CrawlingSessionInfoCB.class.getName(); - } - - protected String xinCQ() { - return CrawlingSessionInfoCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/DataConfigToLabelTypeMappingCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/DataConfigToLabelTypeMappingCIQ.java deleted file mode 100644 index 333da596a..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/DataConfigToLabelTypeMappingCIQ.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.cq.DataConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsDataConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.bs.BsDataConfigToLabelTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of DATA_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class DataConfigToLabelTypeMappingCIQ extends - AbstractBsDataConfigToLabelTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsDataConfigToLabelTypeMappingCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public DataConfigToLabelTypeMappingCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsDataConfigToLabelTypeMappingCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueDataConfigId() { - return _myCQ.getDataConfigId(); - } - - @Override - public String keepDataConfigId_InScopeRelation_DataCrawlingConfig( - final DataCrawlingConfigCQ sq) { - return _myCQ.keepDataConfigId_InScopeRelation_DataCrawlingConfig(sq); - } - - @Override - public String keepDataConfigId_NotInScopeRelation_DataCrawlingConfig( - final DataCrawlingConfigCQ sq) { - return _myCQ.keepDataConfigId_NotInScopeRelation_DataCrawlingConfig(sq); - } - - @Override - protected ConditionValue getCValueLabelTypeId() { - return _myCQ.getLabelTypeId(); - } - - @Override - public String keepLabelTypeId_InScopeRelation_LabelType(final LabelTypeCQ sq) { - return _myCQ.keepLabelTypeId_InScopeRelation_LabelType(sq); - } - - @Override - public String keepLabelTypeId_NotInScopeRelation_LabelType( - final LabelTypeCQ sq) { - return _myCQ.keepLabelTypeId_NotInScopeRelation_LabelType(sq); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived( - final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return DataConfigToLabelTypeMappingCB.class.getName(); - } - - protected String xinCQ() { - return DataConfigToLabelTypeMappingCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/DataConfigToRoleTypeMappingCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/DataConfigToRoleTypeMappingCIQ.java deleted file mode 100644 index 4a3e687d9..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/DataConfigToRoleTypeMappingCIQ.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.cq.DataConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsDataConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.bs.BsDataConfigToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of DATA_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class DataConfigToRoleTypeMappingCIQ extends - AbstractBsDataConfigToRoleTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsDataConfigToRoleTypeMappingCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public DataConfigToRoleTypeMappingCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsDataConfigToRoleTypeMappingCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueDataConfigId() { - return _myCQ.getDataConfigId(); - } - - @Override - public String keepDataConfigId_InScopeRelation_DataCrawlingConfig( - final DataCrawlingConfigCQ sq) { - return _myCQ.keepDataConfigId_InScopeRelation_DataCrawlingConfig(sq); - } - - @Override - public String keepDataConfigId_NotInScopeRelation_DataCrawlingConfig( - final DataCrawlingConfigCQ sq) { - return _myCQ.keepDataConfigId_NotInScopeRelation_DataCrawlingConfig(sq); - } - - @Override - protected ConditionValue getCValueRoleTypeId() { - return _myCQ.getRoleTypeId(); - } - - @Override - public String keepRoleTypeId_InScopeRelation_RoleType(final RoleTypeCQ sq) { - return _myCQ.keepRoleTypeId_InScopeRelation_RoleType(sq); - } - - @Override - public String keepRoleTypeId_NotInScopeRelation_RoleType(final RoleTypeCQ sq) { - return _myCQ.keepRoleTypeId_NotInScopeRelation_RoleType(sq); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived( - final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return DataConfigToRoleTypeMappingCB.class.getName(); - } - - protected String xinCQ() { - return DataConfigToRoleTypeMappingCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/DataCrawlingConfigCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/DataCrawlingConfigCIQ.java deleted file mode 100644 index f685f51f9..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/DataCrawlingConfigCIQ.java +++ /dev/null @@ -1,330 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.DataCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.DataConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.DataCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsDataCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.bs.BsDataCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of DATA_CRAWLING_CONFIG. - * @author DBFlute(AutoGenerator) - */ -public class DataCrawlingConfigCIQ extends AbstractBsDataCrawlingConfigCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsDataCrawlingConfigCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public DataCrawlingConfigCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsDataCrawlingConfigCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - public String keepId_ExistsReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_InScopeRelation_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return _myCQ - .keepId_InScopeRelation_DataConfigToLabelTypeMappingList(sq); - } - - @Override - public String keepId_InScopeRelation_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return _myCQ.keepId_InScopeRelation_DataConfigToRoleTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_DataConfigToLabelTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_DataConfigToRoleTypeMappingList(sq); - } - - @Override - public String keepId_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - protected ConditionValue getCValueName() { - return _myCQ.getName(); - } - - @Override - protected ConditionValue getCValueHandlerName() { - return _myCQ.getHandlerName(); - } - - @Override - protected ConditionValue getCValueHandlerParameter() { - return _myCQ.getHandlerParameter(); - } - - @Override - protected ConditionValue getCValueHandlerScript() { - return _myCQ.getHandlerScript(); - } - - @Override - protected ConditionValue getCValueBoost() { - return _myCQ.getBoost(); - } - - @Override - protected ConditionValue getCValueAvailable() { - return _myCQ.getAvailable(); - } - - @Override - protected ConditionValue getCValueSortOrder() { - return _myCQ.getSortOrder(); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final DataCrawlingConfigCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final DataCrawlingConfigCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final DataCrawlingConfigCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final DataCrawlingConfigCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final DataCrawlingConfigCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return DataCrawlingConfigCB.class.getName(); - } - - protected String xinCQ() { - return DataCrawlingConfigCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FailureUrlCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FailureUrlCIQ.java deleted file mode 100644 index 00251a773..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FailureUrlCIQ.java +++ /dev/null @@ -1,196 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.FailureUrlCB; -import jp.sf.fess.db.cbean.cq.FailureUrlCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsFailureUrlCQ; -import jp.sf.fess.db.cbean.cq.bs.BsFailureUrlCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of FAILURE_URL. - * @author DBFlute(AutoGenerator) - */ -public class FailureUrlCIQ extends AbstractBsFailureUrlCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsFailureUrlCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public FailureUrlCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsFailureUrlCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueUrl() { - return _myCQ.getUrl(); - } - - @Override - protected ConditionValue getCValueThreadName() { - return _myCQ.getThreadName(); - } - - @Override - protected ConditionValue getCValueErrorName() { - return _myCQ.getErrorName(); - } - - @Override - protected ConditionValue getCValueErrorLog() { - return _myCQ.getErrorLog(); - } - - @Override - protected ConditionValue getCValueErrorCount() { - return _myCQ.getErrorCount(); - } - - @Override - protected ConditionValue getCValueLastAccessTime() { - return _myCQ.getLastAccessTime(); - } - - @Override - protected ConditionValue getCValueConfigId() { - return _myCQ.getConfigId(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final FailureUrlCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final FailureUrlCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final FailureUrlCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final FailureUrlCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final FailureUrlCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return FailureUrlCB.class.getName(); - } - - protected String xinCQ() { - return FailureUrlCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FavoriteLogCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FavoriteLogCIQ.java deleted file mode 100644 index 810eb8031..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FavoriteLogCIQ.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.FavoriteLogCB; -import jp.sf.fess.db.cbean.cq.FavoriteLogCQ; -import jp.sf.fess.db.cbean.cq.UserInfoCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsFavoriteLogCQ; -import jp.sf.fess.db.cbean.cq.bs.BsFavoriteLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of FAVORITE_LOG. - * @author DBFlute(AutoGenerator) - */ -public class FavoriteLogCIQ extends AbstractBsFavoriteLogCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsFavoriteLogCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public FavoriteLogCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsFavoriteLogCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueUserId() { - return _myCQ.getUserId(); - } - - @Override - public String keepUserId_InScopeRelation_UserInfo(final UserInfoCQ sq) { - return _myCQ.keepUserId_InScopeRelation_UserInfo(sq); - } - - @Override - public String keepUserId_NotInScopeRelation_UserInfo(final UserInfoCQ sq) { - return _myCQ.keepUserId_NotInScopeRelation_UserInfo(sq); - } - - @Override - protected ConditionValue getCValueUrl() { - return _myCQ.getUrl(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final FavoriteLogCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final FavoriteLogCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final FavoriteLogCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final FavoriteLogCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final FavoriteLogCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return FavoriteLogCB.class.getName(); - } - - protected String xinCQ() { - return FavoriteLogCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileAuthenticationCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileAuthenticationCIQ.java deleted file mode 100644 index 42be79dc4..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileAuthenticationCIQ.java +++ /dev/null @@ -1,246 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.FileAuthenticationCB; -import jp.sf.fess.db.cbean.cq.FileAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsFileAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.bs.BsFileAuthenticationCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of FILE_AUTHENTICATION. - * @author DBFlute(AutoGenerator) - */ -public class FileAuthenticationCIQ extends AbstractBsFileAuthenticationCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsFileAuthenticationCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public FileAuthenticationCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsFileAuthenticationCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueHostname() { - return _myCQ.getHostname(); - } - - @Override - protected ConditionValue getCValuePort() { - return _myCQ.getPort(); - } - - @Override - protected ConditionValue getCValueProtocolScheme() { - return _myCQ.getProtocolScheme(); - } - - @Override - protected ConditionValue getCValueUsername() { - return _myCQ.getUsername(); - } - - @Override - protected ConditionValue getCValuePassword() { - return _myCQ.getPassword(); - } - - @Override - protected ConditionValue getCValueParameters() { - return _myCQ.getParameters(); - } - - @Override - protected ConditionValue getCValueFileCrawlingConfigId() { - return _myCQ.getFileCrawlingConfigId(); - } - - @Override - public String keepFileCrawlingConfigId_InScopeRelation_FileCrawlingConfig( - final FileCrawlingConfigCQ sq) { - return _myCQ - .keepFileCrawlingConfigId_InScopeRelation_FileCrawlingConfig(sq); - } - - @Override - public String keepFileCrawlingConfigId_NotInScopeRelation_FileCrawlingConfig( - final FileCrawlingConfigCQ sq) { - return _myCQ - .keepFileCrawlingConfigId_NotInScopeRelation_FileCrawlingConfig(sq); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final FileAuthenticationCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final FileAuthenticationCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final FileAuthenticationCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final FileAuthenticationCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final FileAuthenticationCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return FileAuthenticationCB.class.getName(); - } - - protected String xinCQ() { - return FileAuthenticationCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileConfigToLabelTypeMappingCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileConfigToLabelTypeMappingCIQ.java deleted file mode 100644 index 2fec127d4..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileConfigToLabelTypeMappingCIQ.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.cq.FileConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsFileConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.bs.BsFileConfigToLabelTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of FILE_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class FileConfigToLabelTypeMappingCIQ extends - AbstractBsFileConfigToLabelTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsFileConfigToLabelTypeMappingCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public FileConfigToLabelTypeMappingCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsFileConfigToLabelTypeMappingCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueFileConfigId() { - return _myCQ.getFileConfigId(); - } - - @Override - public String keepFileConfigId_InScopeRelation_FileCrawlingConfig( - final FileCrawlingConfigCQ sq) { - return _myCQ.keepFileConfigId_InScopeRelation_FileCrawlingConfig(sq); - } - - @Override - public String keepFileConfigId_NotInScopeRelation_FileCrawlingConfig( - final FileCrawlingConfigCQ sq) { - return _myCQ.keepFileConfigId_NotInScopeRelation_FileCrawlingConfig(sq); - } - - @Override - protected ConditionValue getCValueLabelTypeId() { - return _myCQ.getLabelTypeId(); - } - - @Override - public String keepLabelTypeId_InScopeRelation_LabelType(final LabelTypeCQ sq) { - return _myCQ.keepLabelTypeId_InScopeRelation_LabelType(sq); - } - - @Override - public String keepLabelTypeId_NotInScopeRelation_LabelType( - final LabelTypeCQ sq) { - return _myCQ.keepLabelTypeId_NotInScopeRelation_LabelType(sq); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived( - final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return FileConfigToLabelTypeMappingCB.class.getName(); - } - - protected String xinCQ() { - return FileConfigToLabelTypeMappingCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileConfigToRoleTypeMappingCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileConfigToRoleTypeMappingCIQ.java deleted file mode 100644 index 3c5b77120..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileConfigToRoleTypeMappingCIQ.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.cq.FileConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsFileConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.bs.BsFileConfigToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of FILE_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class FileConfigToRoleTypeMappingCIQ extends - AbstractBsFileConfigToRoleTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsFileConfigToRoleTypeMappingCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public FileConfigToRoleTypeMappingCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsFileConfigToRoleTypeMappingCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueFileConfigId() { - return _myCQ.getFileConfigId(); - } - - @Override - public String keepFileConfigId_InScopeRelation_FileCrawlingConfig( - final FileCrawlingConfigCQ sq) { - return _myCQ.keepFileConfigId_InScopeRelation_FileCrawlingConfig(sq); - } - - @Override - public String keepFileConfigId_NotInScopeRelation_FileCrawlingConfig( - final FileCrawlingConfigCQ sq) { - return _myCQ.keepFileConfigId_NotInScopeRelation_FileCrawlingConfig(sq); - } - - @Override - protected ConditionValue getCValueRoleTypeId() { - return _myCQ.getRoleTypeId(); - } - - @Override - public String keepRoleTypeId_InScopeRelation_RoleType(final RoleTypeCQ sq) { - return _myCQ.keepRoleTypeId_InScopeRelation_RoleType(sq); - } - - @Override - public String keepRoleTypeId_NotInScopeRelation_RoleType(final RoleTypeCQ sq) { - return _myCQ.keepRoleTypeId_NotInScopeRelation_RoleType(sq); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived( - final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return FileConfigToRoleTypeMappingCB.class.getName(); - } - - protected String xinCQ() { - return FileConfigToRoleTypeMappingCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileCrawlingConfigCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileCrawlingConfigCIQ.java deleted file mode 100644 index a0b8030cb..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/FileCrawlingConfigCIQ.java +++ /dev/null @@ -1,413 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.FileAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.FileConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsFileCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.bs.BsFileCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of FILE_CRAWLING_CONFIG. - * @author DBFlute(AutoGenerator) - */ -public class FileCrawlingConfigCIQ extends AbstractBsFileCrawlingConfigCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsFileCrawlingConfigCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public FileCrawlingConfigCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsFileCrawlingConfigCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - public String keepId_ExistsReferrer_FileAuthenticationList( - final FileAuthenticationCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_FileAuthenticationList( - final FileAuthenticationCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_InScopeRelation_FileAuthenticationList( - final FileAuthenticationCQ sq) { - return _myCQ.keepId_InScopeRelation_FileAuthenticationList(sq); - } - - @Override - public String keepId_InScopeRelation_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return _myCQ - .keepId_InScopeRelation_FileConfigToLabelTypeMappingList(sq); - } - - @Override - public String keepId_InScopeRelation_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return _myCQ.keepId_InScopeRelation_FileConfigToRoleTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_FileAuthenticationList( - final FileAuthenticationCQ sq) { - return _myCQ.keepId_NotInScopeRelation_FileAuthenticationList(sq); - } - - @Override - public String keepId_NotInScopeRelation_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_FileConfigToLabelTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_FileConfigToRoleTypeMappingList(sq); - } - - @Override - public String keepId_SpecifyDerivedReferrer_FileAuthenticationList( - final FileAuthenticationCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_FileAuthenticationList( - final FileAuthenticationCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_FileAuthenticationListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - protected ConditionValue getCValueName() { - return _myCQ.getName(); - } - - @Override - protected ConditionValue getCValuePaths() { - return _myCQ.getPaths(); - } - - @Override - protected ConditionValue getCValueIncludedPaths() { - return _myCQ.getIncludedPaths(); - } - - @Override - protected ConditionValue getCValueExcludedPaths() { - return _myCQ.getExcludedPaths(); - } - - @Override - protected ConditionValue getCValueIncludedDocPaths() { - return _myCQ.getIncludedDocPaths(); - } - - @Override - protected ConditionValue getCValueExcludedDocPaths() { - return _myCQ.getExcludedDocPaths(); - } - - @Override - protected ConditionValue getCValueConfigParameter() { - return _myCQ.getConfigParameter(); - } - - @Override - protected ConditionValue getCValueDepth() { - return _myCQ.getDepth(); - } - - @Override - protected ConditionValue getCValueMaxAccessCount() { - return _myCQ.getMaxAccessCount(); - } - - @Override - protected ConditionValue getCValueNumOfThread() { - return _myCQ.getNumOfThread(); - } - - @Override - protected ConditionValue getCValueIntervalTime() { - return _myCQ.getIntervalTime(); - } - - @Override - protected ConditionValue getCValueBoost() { - return _myCQ.getBoost(); - } - - @Override - protected ConditionValue getCValueAvailable() { - return _myCQ.getAvailable(); - } - - @Override - protected ConditionValue getCValueSortOrder() { - return _myCQ.getSortOrder(); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final FileCrawlingConfigCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final FileCrawlingConfigCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final FileCrawlingConfigCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final FileCrawlingConfigCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final FileCrawlingConfigCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return FileCrawlingConfigCB.class.getName(); - } - - protected String xinCQ() { - return FileCrawlingConfigCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/JobLogCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/JobLogCIQ.java deleted file mode 100644 index 64c9f63ce..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/JobLogCIQ.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.JobLogCB; -import jp.sf.fess.db.cbean.cq.JobLogCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsJobLogCQ; -import jp.sf.fess.db.cbean.cq.bs.BsJobLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of JOB_LOG. - * @author DBFlute(AutoGenerator) - */ -public class JobLogCIQ extends AbstractBsJobLogCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsJobLogCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public JobLogCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsJobLogCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueJobName() { - return _myCQ.getJobName(); - } - - @Override - protected ConditionValue getCValueJobStatus() { - return _myCQ.getJobStatus(); - } - - @Override - protected ConditionValue getCValueTarget() { - return _myCQ.getTarget(); - } - - @Override - protected ConditionValue getCValueScriptType() { - return _myCQ.getScriptType(); - } - - @Override - protected ConditionValue getCValueScriptData() { - return _myCQ.getScriptData(); - } - - @Override - protected ConditionValue getCValueScriptResult() { - return _myCQ.getScriptResult(); - } - - @Override - protected ConditionValue getCValueStartTime() { - return _myCQ.getStartTime(); - } - - @Override - protected ConditionValue getCValueEndTime() { - return _myCQ.getEndTime(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final JobLogCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final JobLogCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final JobLogCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final JobLogCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final JobLogCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return JobLogCB.class.getName(); - } - - protected String xinCQ() { - return JobLogCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/KeyMatchCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/KeyMatchCIQ.java deleted file mode 100644 index 7cbbe9bf1..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/KeyMatchCIQ.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.KeyMatchCB; -import jp.sf.fess.db.cbean.cq.KeyMatchCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsKeyMatchCQ; -import jp.sf.fess.db.cbean.cq.bs.BsKeyMatchCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of KEY_MATCH. - * @author DBFlute(AutoGenerator) - */ -public class KeyMatchCIQ extends AbstractBsKeyMatchCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsKeyMatchCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public KeyMatchCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsKeyMatchCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueTerm() { - return _myCQ.getTerm(); - } - - @Override - protected ConditionValue getCValueQuery() { - return _myCQ.getQuery(); - } - - @Override - protected ConditionValue getCValueMaxSize() { - return _myCQ.getMaxSize(); - } - - @Override - protected ConditionValue getCValueBoost() { - return _myCQ.getBoost(); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final KeyMatchCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final KeyMatchCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final KeyMatchCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final KeyMatchCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final KeyMatchCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return KeyMatchCB.class.getName(); - } - - protected String xinCQ() { - return KeyMatchCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/LabelTypeCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/LabelTypeCIQ.java deleted file mode 100644 index d89675744..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/LabelTypeCIQ.java +++ /dev/null @@ -1,419 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.cq.DataConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsLabelTypeCQ; -import jp.sf.fess.db.cbean.cq.bs.BsLabelTypeCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of LABEL_TYPE. - * @author DBFlute(AutoGenerator) - */ -public class LabelTypeCIQ extends AbstractBsLabelTypeCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsLabelTypeCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public LabelTypeCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsLabelTypeCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - public String keepId_ExistsReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_InScopeRelation_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return _myCQ - .keepId_InScopeRelation_DataConfigToLabelTypeMappingList(sq); - } - - @Override - public String keepId_InScopeRelation_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return _myCQ - .keepId_InScopeRelation_FileConfigToLabelTypeMappingList(sq); - } - - @Override - public String keepId_InScopeRelation_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return _myCQ.keepId_InScopeRelation_LabelTypeToRoleTypeMappingList(sq); - } - - @Override - public String keepId_InScopeRelation_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return _myCQ.keepId_InScopeRelation_WebConfigToLabelTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_DataConfigToLabelTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_FileConfigToLabelTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_LabelTypeToRoleTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_WebConfigToLabelTypeMappingList(sq); - } - - @Override - public String keepId_SpecifyDerivedReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingList( - final DataConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToLabelTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingList( - final FileConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToLabelTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - protected ConditionValue getCValueName() { - return _myCQ.getName(); - } - - @Override - protected ConditionValue getCValueValue() { - return _myCQ.getValue(); - } - - @Override - protected ConditionValue getCValueIncludedPaths() { - return _myCQ.getIncludedPaths(); - } - - @Override - protected ConditionValue getCValueExcludedPaths() { - return _myCQ.getExcludedPaths(); - } - - @Override - protected ConditionValue getCValueSortOrder() { - return _myCQ.getSortOrder(); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final LabelTypeCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final LabelTypeCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final LabelTypeCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final LabelTypeCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final LabelTypeCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return LabelTypeCB.class.getName(); - } - - protected String xinCQ() { - return LabelTypeCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/LabelTypeToRoleTypeMappingCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/LabelTypeToRoleTypeMappingCIQ.java deleted file mode 100644 index a6afbc414..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/LabelTypeToRoleTypeMappingCIQ.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsLabelTypeToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.bs.BsLabelTypeToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of LABEL_TYPE_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class LabelTypeToRoleTypeMappingCIQ extends - AbstractBsLabelTypeToRoleTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsLabelTypeToRoleTypeMappingCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public LabelTypeToRoleTypeMappingCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsLabelTypeToRoleTypeMappingCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueLabelTypeId() { - return _myCQ.getLabelTypeId(); - } - - @Override - public String keepLabelTypeId_InScopeRelation_LabelType(final LabelTypeCQ sq) { - return _myCQ.keepLabelTypeId_InScopeRelation_LabelType(sq); - } - - @Override - public String keepLabelTypeId_NotInScopeRelation_LabelType( - final LabelTypeCQ sq) { - return _myCQ.keepLabelTypeId_NotInScopeRelation_LabelType(sq); - } - - @Override - protected ConditionValue getCValueRoleTypeId() { - return _myCQ.getRoleTypeId(); - } - - @Override - public String keepRoleTypeId_InScopeRelation_RoleType(final RoleTypeCQ sq) { - return _myCQ.keepRoleTypeId_InScopeRelation_RoleType(sq); - } - - @Override - public String keepRoleTypeId_NotInScopeRelation_RoleType(final RoleTypeCQ sq) { - return _myCQ.keepRoleTypeId_NotInScopeRelation_RoleType(sq); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return LabelTypeToRoleTypeMappingCB.class.getName(); - } - - protected String xinCQ() { - return LabelTypeToRoleTypeMappingCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/OverlappingHostCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/OverlappingHostCIQ.java deleted file mode 100644 index 34cdb5ec1..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/OverlappingHostCIQ.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.OverlappingHostCB; -import jp.sf.fess.db.cbean.cq.OverlappingHostCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsOverlappingHostCQ; -import jp.sf.fess.db.cbean.cq.bs.BsOverlappingHostCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of OVERLAPPING_HOST. - * @author DBFlute(AutoGenerator) - */ -public class OverlappingHostCIQ extends AbstractBsOverlappingHostCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsOverlappingHostCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public OverlappingHostCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsOverlappingHostCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueRegularName() { - return _myCQ.getRegularName(); - } - - @Override - protected ConditionValue getCValueOverlappingName() { - return _myCQ.getOverlappingName(); - } - - @Override - protected ConditionValue getCValueSortOrder() { - return _myCQ.getSortOrder(); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final OverlappingHostCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final OverlappingHostCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final OverlappingHostCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final OverlappingHostCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final OverlappingHostCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return OverlappingHostCB.class.getName(); - } - - protected String xinCQ() { - return OverlappingHostCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/PathMappingCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/PathMappingCIQ.java deleted file mode 100644 index f632db2d0..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/PathMappingCIQ.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.PathMappingCB; -import jp.sf.fess.db.cbean.cq.PathMappingCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsPathMappingCQ; -import jp.sf.fess.db.cbean.cq.bs.BsPathMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of PATH_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class PathMappingCIQ extends AbstractBsPathMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsPathMappingCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public PathMappingCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsPathMappingCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueRegex() { - return _myCQ.getRegex(); - } - - @Override - protected ConditionValue getCValueReplacement() { - return _myCQ.getReplacement(); - } - - @Override - protected ConditionValue getCValueProcessType() { - return _myCQ.getProcessType(); - } - - @Override - protected ConditionValue getCValueSortOrder() { - return _myCQ.getSortOrder(); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final PathMappingCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final PathMappingCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final PathMappingCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final PathMappingCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final PathMappingCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return PathMappingCB.class.getName(); - } - - protected String xinCQ() { - return PathMappingCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/RequestHeaderCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/RequestHeaderCIQ.java deleted file mode 100644 index b73b4c034..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/RequestHeaderCIQ.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.RequestHeaderCB; -import jp.sf.fess.db.cbean.cq.RequestHeaderCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsRequestHeaderCQ; -import jp.sf.fess.db.cbean.cq.bs.BsRequestHeaderCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of REQUEST_HEADER. - * @author DBFlute(AutoGenerator) - */ -public class RequestHeaderCIQ extends AbstractBsRequestHeaderCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsRequestHeaderCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public RequestHeaderCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsRequestHeaderCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueName() { - return _myCQ.getName(); - } - - @Override - protected ConditionValue getCValueValue() { - return _myCQ.getValue(); - } - - @Override - protected ConditionValue getCValueWebCrawlingConfigId() { - return _myCQ.getWebCrawlingConfigId(); - } - - @Override - public String keepWebCrawlingConfigId_InScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return _myCQ - .keepWebCrawlingConfigId_InScopeRelation_WebCrawlingConfig(sq); - } - - @Override - public String keepWebCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return _myCQ - .keepWebCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig(sq); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final RequestHeaderCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final RequestHeaderCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final RequestHeaderCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final RequestHeaderCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final RequestHeaderCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return RequestHeaderCB.class.getName(); - } - - protected String xinCQ() { - return RequestHeaderCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/RoleTypeCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/RoleTypeCIQ.java deleted file mode 100644 index 14399899c..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/RoleTypeCIQ.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.cq.DataConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.FileConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.LabelTypeToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsRoleTypeCQ; -import jp.sf.fess.db.cbean.cq.bs.BsRoleTypeCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of ROLE_TYPE. - * @author DBFlute(AutoGenerator) - */ -public class RoleTypeCIQ extends AbstractBsRoleTypeCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsRoleTypeCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public RoleTypeCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsRoleTypeCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - public String keepId_ExistsReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_InScopeRelation_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return _myCQ.keepId_InScopeRelation_DataConfigToRoleTypeMappingList(sq); - } - - @Override - public String keepId_InScopeRelation_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return _myCQ.keepId_InScopeRelation_FileConfigToRoleTypeMappingList(sq); - } - - @Override - public String keepId_InScopeRelation_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return _myCQ.keepId_InScopeRelation_LabelTypeToRoleTypeMappingList(sq); - } - - @Override - public String keepId_InScopeRelation_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return _myCQ.keepId_InScopeRelation_WebConfigToRoleTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_DataConfigToRoleTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_FileConfigToRoleTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_LabelTypeToRoleTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_WebConfigToRoleTypeMappingList(sq); - } - - @Override - public String keepId_SpecifyDerivedReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingList( - final DataConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_DataConfigToRoleTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingList( - final FileConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_FileConfigToRoleTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingList( - final LabelTypeToRoleTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_LabelTypeToRoleTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - protected ConditionValue getCValueName() { - return _myCQ.getName(); - } - - @Override - protected ConditionValue getCValueValue() { - return _myCQ.getValue(); - } - - @Override - protected ConditionValue getCValueSortOrder() { - return _myCQ.getSortOrder(); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final RoleTypeCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final RoleTypeCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final RoleTypeCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final RoleTypeCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final RoleTypeCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return RoleTypeCB.class.getName(); - } - - protected String xinCQ() { - return RoleTypeCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/ScheduledJobCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/ScheduledJobCIQ.java deleted file mode 100644 index b42b160bb..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/ScheduledJobCIQ.java +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.ScheduledJobCB; -import jp.sf.fess.db.cbean.cq.ScheduledJobCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsScheduledJobCQ; -import jp.sf.fess.db.cbean.cq.bs.BsScheduledJobCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of SCHEDULED_JOB. - * @author DBFlute(AutoGenerator) - */ -public class ScheduledJobCIQ extends AbstractBsScheduledJobCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsScheduledJobCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public ScheduledJobCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsScheduledJobCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueName() { - return _myCQ.getName(); - } - - @Override - protected ConditionValue getCValueTarget() { - return _myCQ.getTarget(); - } - - @Override - protected ConditionValue getCValueCronExpression() { - return _myCQ.getCronExpression(); - } - - @Override - protected ConditionValue getCValueScriptType() { - return _myCQ.getScriptType(); - } - - @Override - protected ConditionValue getCValueScriptData() { - return _myCQ.getScriptData(); - } - - @Override - protected ConditionValue getCValueCrawler() { - return _myCQ.getCrawler(); - } - - @Override - protected ConditionValue getCValueJobLogging() { - return _myCQ.getJobLogging(); - } - - @Override - protected ConditionValue getCValueAvailable() { - return _myCQ.getAvailable(); - } - - @Override - protected ConditionValue getCValueSortOrder() { - return _myCQ.getSortOrder(); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final ScheduledJobCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final ScheduledJobCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final ScheduledJobCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final ScheduledJobCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final ScheduledJobCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return ScheduledJobCB.class.getName(); - } - - protected String xinCQ() { - return ScheduledJobCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/SearchFieldLogCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/SearchFieldLogCIQ.java deleted file mode 100644 index a140016d9..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/SearchFieldLogCIQ.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.SearchFieldLogCB; -import jp.sf.fess.db.cbean.cq.SearchFieldLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsSearchFieldLogCQ; -import jp.sf.fess.db.cbean.cq.bs.BsSearchFieldLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of SEARCH_FIELD_LOG. - * @author DBFlute(AutoGenerator) - */ -public class SearchFieldLogCIQ extends AbstractBsSearchFieldLogCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsSearchFieldLogCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public SearchFieldLogCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsSearchFieldLogCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueSearchId() { - return _myCQ.getSearchId(); - } - - @Override - public String keepSearchId_InScopeRelation_SearchLog(final SearchLogCQ sq) { - return _myCQ.keepSearchId_InScopeRelation_SearchLog(sq); - } - - @Override - public String keepSearchId_NotInScopeRelation_SearchLog(final SearchLogCQ sq) { - return _myCQ.keepSearchId_NotInScopeRelation_SearchLog(sq); - } - - @Override - protected ConditionValue getCValueName() { - return _myCQ.getName(); - } - - @Override - protected ConditionValue getCValueValue() { - return _myCQ.getValue(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final SearchFieldLogCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final SearchFieldLogCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final SearchFieldLogCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final SearchFieldLogCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final SearchFieldLogCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return SearchFieldLogCB.class.getName(); - } - - protected String xinCQ() { - return SearchFieldLogCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/SearchLogCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/SearchLogCIQ.java deleted file mode 100644 index f112a31db..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/SearchLogCIQ.java +++ /dev/null @@ -1,322 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.cq.ClickLogCQ; -import jp.sf.fess.db.cbean.cq.SearchFieldLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.cq.UserInfoCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsSearchLogCQ; -import jp.sf.fess.db.cbean.cq.bs.BsSearchLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of SEARCH_LOG. - * @author DBFlute(AutoGenerator) - */ -public class SearchLogCIQ extends AbstractBsSearchLogCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsSearchLogCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public SearchLogCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsSearchLogCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - public String keepId_ExistsReferrer_ClickLogList(final ClickLogCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_SearchFieldLogList( - final SearchFieldLogCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_ClickLogList(final ClickLogCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_SearchFieldLogList( - final SearchFieldLogCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_InScopeRelation_ClickLogList(final ClickLogCQ sq) { - return _myCQ.keepId_InScopeRelation_ClickLogList(sq); - } - - @Override - public String keepId_InScopeRelation_SearchFieldLogList( - final SearchFieldLogCQ sq) { - return _myCQ.keepId_InScopeRelation_SearchFieldLogList(sq); - } - - @Override - public String keepId_NotInScopeRelation_ClickLogList(final ClickLogCQ sq) { - return _myCQ.keepId_NotInScopeRelation_ClickLogList(sq); - } - - @Override - public String keepId_NotInScopeRelation_SearchFieldLogList( - final SearchFieldLogCQ sq) { - return _myCQ.keepId_NotInScopeRelation_SearchFieldLogList(sq); - } - - @Override - public String keepId_SpecifyDerivedReferrer_ClickLogList(final ClickLogCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_SearchFieldLogList( - final SearchFieldLogCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_ClickLogList(final ClickLogCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_ClickLogListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_SearchFieldLogList( - final SearchFieldLogCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_SearchFieldLogListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - protected ConditionValue getCValueSearchWord() { - return _myCQ.getSearchWord(); - } - - @Override - protected ConditionValue getCValueRequestedTime() { - return _myCQ.getRequestedTime(); - } - - @Override - protected ConditionValue getCValueResponseTime() { - return _myCQ.getResponseTime(); - } - - @Override - protected ConditionValue getCValueHitCount() { - return _myCQ.getHitCount(); - } - - @Override - protected ConditionValue getCValueQueryOffset() { - return _myCQ.getQueryOffset(); - } - - @Override - protected ConditionValue getCValueQueryPageSize() { - return _myCQ.getQueryPageSize(); - } - - @Override - protected ConditionValue getCValueUserAgent() { - return _myCQ.getUserAgent(); - } - - @Override - protected ConditionValue getCValueReferer() { - return _myCQ.getReferer(); - } - - @Override - protected ConditionValue getCValueClientIp() { - return _myCQ.getClientIp(); - } - - @Override - protected ConditionValue getCValueUserSessionId() { - return _myCQ.getUserSessionId(); - } - - @Override - protected ConditionValue getCValueAccessType() { - return _myCQ.getAccessType(); - } - - @Override - protected ConditionValue getCValueUserId() { - return _myCQ.getUserId(); - } - - @Override - public String keepUserId_InScopeRelation_UserInfo(final UserInfoCQ sq) { - return _myCQ.keepUserId_InScopeRelation_UserInfo(sq); - } - - @Override - public String keepUserId_NotInScopeRelation_UserInfo(final UserInfoCQ sq) { - return _myCQ.keepUserId_NotInScopeRelation_UserInfo(sq); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final SearchLogCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final SearchLogCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final SearchLogCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final SearchLogCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final SearchLogCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return SearchLogCB.class.getName(); - } - - protected String xinCQ() { - return SearchLogCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/SuggestBadWordCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/SuggestBadWordCIQ.java deleted file mode 100644 index 214e7c5b1..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/SuggestBadWordCIQ.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.SuggestBadWordCB; -import jp.sf.fess.db.cbean.cq.SuggestBadWordCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsSuggestBadWordCQ; -import jp.sf.fess.db.cbean.cq.bs.BsSuggestBadWordCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of SUGGEST_BAD_WORD. - * @author DBFlute(AutoGenerator) - */ -public class SuggestBadWordCIQ extends AbstractBsSuggestBadWordCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsSuggestBadWordCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public SuggestBadWordCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsSuggestBadWordCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueSuggestWord() { - return _myCQ.getSuggestWord(); - } - - @Override - protected ConditionValue getCValueTargetRole() { - return _myCQ.getTargetRole(); - } - - @Override - protected ConditionValue getCValueTargetLabel() { - return _myCQ.getTargetLabel(); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final SuggestBadWordCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final SuggestBadWordCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final SuggestBadWordCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final SuggestBadWordCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final SuggestBadWordCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return SuggestBadWordCB.class.getName(); - } - - protected String xinCQ() { - return SuggestBadWordCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/SuggestElevateWordCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/SuggestElevateWordCIQ.java deleted file mode 100644 index 26864f921..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/SuggestElevateWordCIQ.java +++ /dev/null @@ -1,221 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.SuggestElevateWordCB; -import jp.sf.fess.db.cbean.cq.SuggestElevateWordCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsSuggestElevateWordCQ; -import jp.sf.fess.db.cbean.cq.bs.BsSuggestElevateWordCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of SUGGEST_ELEVATE_WORD. - * @author DBFlute(AutoGenerator) - */ -public class SuggestElevateWordCIQ extends AbstractBsSuggestElevateWordCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsSuggestElevateWordCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public SuggestElevateWordCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsSuggestElevateWordCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueSuggestWord() { - return _myCQ.getSuggestWord(); - } - - @Override - protected ConditionValue getCValueReading() { - return _myCQ.getReading(); - } - - @Override - protected ConditionValue getCValueTargetRole() { - return _myCQ.getTargetRole(); - } - - @Override - protected ConditionValue getCValueTargetLabel() { - return _myCQ.getTargetLabel(); - } - - @Override - protected ConditionValue getCValueBoost() { - return _myCQ.getBoost(); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final SuggestElevateWordCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final SuggestElevateWordCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final SuggestElevateWordCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final SuggestElevateWordCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final SuggestElevateWordCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return SuggestElevateWordCB.class.getName(); - } - - protected String xinCQ() { - return SuggestElevateWordCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/UserInfoCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/UserInfoCIQ.java deleted file mode 100644 index 389c370e5..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/UserInfoCIQ.java +++ /dev/null @@ -1,265 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.cbean.cq.FavoriteLogCQ; -import jp.sf.fess.db.cbean.cq.SearchLogCQ; -import jp.sf.fess.db.cbean.cq.UserInfoCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsUserInfoCQ; -import jp.sf.fess.db.cbean.cq.bs.BsUserInfoCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of USER_INFO. - * @author DBFlute(AutoGenerator) - */ -public class UserInfoCIQ extends AbstractBsUserInfoCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsUserInfoCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public UserInfoCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsUserInfoCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - public String keepId_ExistsReferrer_FavoriteLogList(final FavoriteLogCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_SearchLogList(final SearchLogCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_FavoriteLogList( - final FavoriteLogCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_SearchLogList(final SearchLogCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_InScopeRelation_FavoriteLogList(final FavoriteLogCQ sq) { - return _myCQ.keepId_InScopeRelation_FavoriteLogList(sq); - } - - @Override - public String keepId_InScopeRelation_SearchLogList(final SearchLogCQ sq) { - return _myCQ.keepId_InScopeRelation_SearchLogList(sq); - } - - @Override - public String keepId_NotInScopeRelation_FavoriteLogList( - final FavoriteLogCQ sq) { - return _myCQ.keepId_NotInScopeRelation_FavoriteLogList(sq); - } - - @Override - public String keepId_NotInScopeRelation_SearchLogList(final SearchLogCQ sq) { - return _myCQ.keepId_NotInScopeRelation_SearchLogList(sq); - } - - @Override - public String keepId_SpecifyDerivedReferrer_FavoriteLogList( - final FavoriteLogCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_SearchLogList( - final SearchLogCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_FavoriteLogList( - final FavoriteLogCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_FavoriteLogListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_SearchLogList(final SearchLogCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_SearchLogListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - protected ConditionValue getCValueCode() { - return _myCQ.getCode(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final UserInfoCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final UserInfoCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final UserInfoCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final UserInfoCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final UserInfoCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return UserInfoCB.class.getName(); - } - - protected String xinCQ() { - return UserInfoCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebAuthenticationCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebAuthenticationCIQ.java deleted file mode 100644 index e48d48722..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebAuthenticationCIQ.java +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.WebAuthenticationCB; -import jp.sf.fess.db.cbean.cq.WebAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsWebAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.bs.BsWebAuthenticationCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of WEB_AUTHENTICATION. - * @author DBFlute(AutoGenerator) - */ -public class WebAuthenticationCIQ extends AbstractBsWebAuthenticationCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsWebAuthenticationCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public WebAuthenticationCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsWebAuthenticationCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueHostname() { - return _myCQ.getHostname(); - } - - @Override - protected ConditionValue getCValuePort() { - return _myCQ.getPort(); - } - - @Override - protected ConditionValue getCValueAuthRealm() { - return _myCQ.getAuthRealm(); - } - - @Override - protected ConditionValue getCValueProtocolScheme() { - return _myCQ.getProtocolScheme(); - } - - @Override - protected ConditionValue getCValueUsername() { - return _myCQ.getUsername(); - } - - @Override - protected ConditionValue getCValuePassword() { - return _myCQ.getPassword(); - } - - @Override - protected ConditionValue getCValueParameters() { - return _myCQ.getParameters(); - } - - @Override - protected ConditionValue getCValueWebCrawlingConfigId() { - return _myCQ.getWebCrawlingConfigId(); - } - - @Override - public String keepWebCrawlingConfigId_InScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return _myCQ - .keepWebCrawlingConfigId_InScopeRelation_WebCrawlingConfig(sq); - } - - @Override - public String keepWebCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return _myCQ - .keepWebCrawlingConfigId_NotInScopeRelation_WebCrawlingConfig(sq); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final WebAuthenticationCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final WebAuthenticationCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final WebAuthenticationCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final WebAuthenticationCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final WebAuthenticationCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return WebAuthenticationCB.class.getName(); - } - - protected String xinCQ() { - return WebAuthenticationCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebConfigToLabelTypeMappingCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebConfigToLabelTypeMappingCIQ.java deleted file mode 100644 index 7b01ba606..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebConfigToLabelTypeMappingCIQ.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.cq.LabelTypeCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsWebConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.bs.BsWebConfigToLabelTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of WEB_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class WebConfigToLabelTypeMappingCIQ extends - AbstractBsWebConfigToLabelTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsWebConfigToLabelTypeMappingCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public WebConfigToLabelTypeMappingCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsWebConfigToLabelTypeMappingCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueWebConfigId() { - return _myCQ.getWebConfigId(); - } - - @Override - public String keepWebConfigId_InScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return _myCQ.keepWebConfigId_InScopeRelation_WebCrawlingConfig(sq); - } - - @Override - public String keepWebConfigId_NotInScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return _myCQ.keepWebConfigId_NotInScopeRelation_WebCrawlingConfig(sq); - } - - @Override - protected ConditionValue getCValueLabelTypeId() { - return _myCQ.getLabelTypeId(); - } - - @Override - public String keepLabelTypeId_InScopeRelation_LabelType(final LabelTypeCQ sq) { - return _myCQ.keepLabelTypeId_InScopeRelation_LabelType(sq); - } - - @Override - public String keepLabelTypeId_NotInScopeRelation_LabelType( - final LabelTypeCQ sq) { - return _myCQ.keepLabelTypeId_NotInScopeRelation_LabelType(sq); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived( - final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return WebConfigToLabelTypeMappingCB.class.getName(); - } - - protected String xinCQ() { - return WebConfigToLabelTypeMappingCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebConfigToRoleTypeMappingCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebConfigToRoleTypeMappingCIQ.java deleted file mode 100644 index 0af88760f..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebConfigToRoleTypeMappingCIQ.java +++ /dev/null @@ -1,196 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.cq.RoleTypeCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsWebConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.bs.BsWebConfigToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of WEB_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class WebConfigToRoleTypeMappingCIQ extends - AbstractBsWebConfigToRoleTypeMappingCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsWebConfigToRoleTypeMappingCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public WebConfigToRoleTypeMappingCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsWebConfigToRoleTypeMappingCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - protected ConditionValue getCValueWebConfigId() { - return _myCQ.getWebConfigId(); - } - - @Override - public String keepWebConfigId_InScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return _myCQ.keepWebConfigId_InScopeRelation_WebCrawlingConfig(sq); - } - - @Override - public String keepWebConfigId_NotInScopeRelation_WebCrawlingConfig( - final WebCrawlingConfigCQ sq) { - return _myCQ.keepWebConfigId_NotInScopeRelation_WebCrawlingConfig(sq); - } - - @Override - protected ConditionValue getCValueRoleTypeId() { - return _myCQ.getRoleTypeId(); - } - - @Override - public String keepRoleTypeId_InScopeRelation_RoleType(final RoleTypeCQ sq) { - return _myCQ.keepRoleTypeId_InScopeRelation_RoleType(sq); - } - - @Override - public String keepRoleTypeId_NotInScopeRelation_RoleType(final RoleTypeCQ sq) { - return _myCQ.keepRoleTypeId_NotInScopeRelation_RoleType(sq); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return WebConfigToRoleTypeMappingCB.class.getName(); - } - - protected String xinCQ() { - return WebConfigToRoleTypeMappingCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebCrawlingConfigCIQ.java b/src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebCrawlingConfigCIQ.java deleted file mode 100644 index 8a37db361..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/cq/ciq/WebCrawlingConfigCIQ.java +++ /dev/null @@ -1,465 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.cq.ciq; - -import java.util.Map; - -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.cbean.cq.RequestHeaderCQ; -import jp.sf.fess.db.cbean.cq.WebAuthenticationCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToLabelTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebConfigToRoleTypeMappingCQ; -import jp.sf.fess.db.cbean.cq.WebCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.bs.AbstractBsWebCrawlingConfigCQ; -import jp.sf.fess.db.cbean.cq.bs.BsWebCrawlingConfigCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; -import org.seasar.dbflute.cbean.ckey.ConditionKey; -import org.seasar.dbflute.cbean.coption.ConditionOption; -import org.seasar.dbflute.cbean.cvalue.ConditionValue; -import org.seasar.dbflute.cbean.sqlclause.SqlClause; -import org.seasar.dbflute.exception.IllegalConditionBeanOperationException; - -/** - * The condition-query for in-line of WEB_CRAWLING_CONFIG. - * @author DBFlute(AutoGenerator) - */ -public class WebCrawlingConfigCIQ extends AbstractBsWebCrawlingConfigCQ { - - // =================================================================================== - // Attribute - // ========= - protected BsWebCrawlingConfigCQ _myCQ; - - // =================================================================================== - // Constructor - // =========== - public WebCrawlingConfigCIQ(final ConditionQuery referrerQuery, - final SqlClause sqlClause, final String aliasName, - final int nestLevel, final BsWebCrawlingConfigCQ myCQ) { - super(referrerQuery, sqlClause, aliasName, nestLevel); - _myCQ = myCQ; - _foreignPropertyName = _myCQ.xgetForeignPropertyName(); // accept foreign property name - _relationPath = _myCQ.xgetRelationPath(); // accept relation path - _inline = true; - } - - // =================================================================================== - // Override about Register - // ======================= - @Override - protected void reflectRelationOnUnionQuery(final ConditionQuery bq, - final ConditionQuery uq) { - throw new IllegalConditionBeanOperationException( - "InlineView cannot use Union: " + bq + " : " + uq); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col) { - regIQ(k, v, cv, col); - } - - @Override - protected void setupConditionValueAndRegisterWhereClause( - final ConditionKey k, final Object v, final ConditionValue cv, - final String col, final ConditionOption op) { - regIQ(k, v, cv, col, op); - } - - @Override - protected void registerWhereClause(final String wc) { - registerInlineWhereClause(wc); - } - - @Override - protected boolean isInScopeRelationSuppressLocalAliasName() { - if (_onClause) { - throw new IllegalConditionBeanOperationException( - "InScopeRelation on OnClause is unsupported."); - } - return true; - } - - // =================================================================================== - // Override about Query - // ==================== - @Override - protected ConditionValue getCValueId() { - return _myCQ.getId(); - } - - @Override - public String keepId_ExistsReferrer_RequestHeaderList( - final RequestHeaderCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_WebAuthenticationList( - final WebAuthenticationCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_ExistsReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("ExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_RequestHeaderList( - final RequestHeaderCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_WebAuthenticationList( - final WebAuthenticationCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_NotExistsReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("NotExistsReferrer"); - return null; - } - - @Override - public String keepId_InScopeRelation_RequestHeaderList( - final RequestHeaderCQ sq) { - return _myCQ.keepId_InScopeRelation_RequestHeaderList(sq); - } - - @Override - public String keepId_InScopeRelation_WebAuthenticationList( - final WebAuthenticationCQ sq) { - return _myCQ.keepId_InScopeRelation_WebAuthenticationList(sq); - } - - @Override - public String keepId_InScopeRelation_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return _myCQ.keepId_InScopeRelation_WebConfigToLabelTypeMappingList(sq); - } - - @Override - public String keepId_InScopeRelation_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return _myCQ.keepId_InScopeRelation_WebConfigToRoleTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_RequestHeaderList( - final RequestHeaderCQ sq) { - return _myCQ.keepId_NotInScopeRelation_RequestHeaderList(sq); - } - - @Override - public String keepId_NotInScopeRelation_WebAuthenticationList( - final WebAuthenticationCQ sq) { - return _myCQ.keepId_NotInScopeRelation_WebAuthenticationList(sq); - } - - @Override - public String keepId_NotInScopeRelation_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_WebConfigToLabelTypeMappingList(sq); - } - - @Override - public String keepId_NotInScopeRelation_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - return _myCQ - .keepId_NotInScopeRelation_WebConfigToRoleTypeMappingList(sq); - } - - @Override - public String keepId_SpecifyDerivedReferrer_RequestHeaderList( - final RequestHeaderCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_WebAuthenticationList( - final WebAuthenticationCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_SpecifyDerivedReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Specify)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_RequestHeaderList( - final RequestHeaderCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_RequestHeaderListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_WebAuthenticationList( - final WebAuthenticationCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_WebAuthenticationListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingList( - final WebConfigToLabelTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToLabelTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingList( - final WebConfigToRoleTypeMappingCQ sq) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - public String keepId_QueryDerivedReferrer_WebConfigToRoleTypeMappingListParameter( - final Object vl) { - throwIICBOE("(Query)DerivedReferrer"); - return null; - } - - @Override - protected ConditionValue getCValueName() { - return _myCQ.getName(); - } - - @Override - protected ConditionValue getCValueUrls() { - return _myCQ.getUrls(); - } - - @Override - protected ConditionValue getCValueIncludedUrls() { - return _myCQ.getIncludedUrls(); - } - - @Override - protected ConditionValue getCValueExcludedUrls() { - return _myCQ.getExcludedUrls(); - } - - @Override - protected ConditionValue getCValueIncludedDocUrls() { - return _myCQ.getIncludedDocUrls(); - } - - @Override - protected ConditionValue getCValueExcludedDocUrls() { - return _myCQ.getExcludedDocUrls(); - } - - @Override - protected ConditionValue getCValueConfigParameter() { - return _myCQ.getConfigParameter(); - } - - @Override - protected ConditionValue getCValueDepth() { - return _myCQ.getDepth(); - } - - @Override - protected ConditionValue getCValueMaxAccessCount() { - return _myCQ.getMaxAccessCount(); - } - - @Override - protected ConditionValue getCValueUserAgent() { - return _myCQ.getUserAgent(); - } - - @Override - protected ConditionValue getCValueNumOfThread() { - return _myCQ.getNumOfThread(); - } - - @Override - protected ConditionValue getCValueIntervalTime() { - return _myCQ.getIntervalTime(); - } - - @Override - protected ConditionValue getCValueBoost() { - return _myCQ.getBoost(); - } - - @Override - protected ConditionValue getCValueAvailable() { - return _myCQ.getAvailable(); - } - - @Override - protected ConditionValue getCValueSortOrder() { - return _myCQ.getSortOrder(); - } - - @Override - protected ConditionValue getCValueCreatedBy() { - return _myCQ.getCreatedBy(); - } - - @Override - protected ConditionValue getCValueCreatedTime() { - return _myCQ.getCreatedTime(); - } - - @Override - protected ConditionValue getCValueUpdatedBy() { - return _myCQ.getUpdatedBy(); - } - - @Override - protected ConditionValue getCValueUpdatedTime() { - return _myCQ.getUpdatedTime(); - } - - @Override - protected ConditionValue getCValueDeletedBy() { - return _myCQ.getDeletedBy(); - } - - @Override - protected ConditionValue getCValueDeletedTime() { - return _myCQ.getDeletedTime(); - } - - @Override - protected ConditionValue getCValueVersionNo() { - return _myCQ.getVersionNo(); - } - - @Override - protected Map<String, Object> xfindFixedConditionDynamicParameterMap( - final String pp) { - return null; - } - - @Override - public String keepScalarCondition(final WebCrawlingConfigCQ sq) { - throwIICBOE("ScalarCondition"); - return null; - } - - @Override - public String keepSpecifyMyselfDerived(final WebCrawlingConfigCQ sq) { - throwIICBOE("(Specify)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerived(final WebCrawlingConfigCQ sq) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepQueryMyselfDerivedParameter(final Object vl) { - throwIICBOE("(Query)MyselfDerived"); - return null; - } - - @Override - public String keepMyselfExists(final WebCrawlingConfigCQ sq) { - throwIICBOE("MyselfExists"); - return null; - } - - @Override - public String keepMyselfInScope(final WebCrawlingConfigCQ sq) { - throwIICBOE("MyselfInScope"); - return null; - } - - protected void throwIICBOE(final String name) { - throw new IllegalConditionBeanOperationException(name - + " at InlineView is unsupported."); - } - - // =================================================================================== - // Very Internal - // ============= - // very internal (for suppressing warn about 'Not Use Import') - protected String xinCB() { - return WebCrawlingConfigCB.class.getName(); - } - - protected String xinCQ() { - return WebCrawlingConfigCQ.class.getName(); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/ClickLogNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/ClickLogNss.java deleted file mode 100644 index 8fd65b6f4..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/ClickLogNss.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.ClickLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of CLICK_LOG. - * @author DBFlute(AutoGenerator) - */ -public class ClickLogNss { - - // =================================================================================== - // Attribute - // ========= - protected ClickLogCQ _query; - - public ClickLogNss(final ClickLogCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @return The set-upper of more nested relation. {...with[nested-relation].with[more-nested-relation]} (NotNull) - */ - public SearchLogNss withSearchLog() { - _query.doNss(new ClickLogCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.querySearchLog(); - } - }); - return new SearchLogNss(_query.querySearchLog()); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/CrawlingSessionInfoNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/CrawlingSessionInfoNss.java deleted file mode 100644 index 0c9ffa189..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/CrawlingSessionInfoNss.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.CrawlingSessionInfoCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of CRAWLING_SESSION_INFO. - * @author DBFlute(AutoGenerator) - */ -public class CrawlingSessionInfoNss { - - // =================================================================================== - // Attribute - // ========= - protected CrawlingSessionInfoCQ _query; - - public CrawlingSessionInfoNss(final CrawlingSessionInfoCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * CRAWLING_SESSION by my CRAWLING_SESSION_ID, named 'crawlingSession'. - */ - public void withCrawlingSession() { - _query.doNss(new CrawlingSessionInfoCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryCrawlingSession(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/DataConfigToLabelTypeMappingNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/DataConfigToLabelTypeMappingNss.java deleted file mode 100644 index 453f421b9..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/DataConfigToLabelTypeMappingNss.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.DataConfigToLabelTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of DATA_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class DataConfigToLabelTypeMappingNss { - - // =================================================================================== - // Attribute - // ========= - protected DataConfigToLabelTypeMappingCQ _query; - - public DataConfigToLabelTypeMappingNss( - final DataConfigToLabelTypeMappingCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - */ - public void withDataCrawlingConfig() { - _query.doNss(new DataConfigToLabelTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryDataCrawlingConfig(); - } - }); - } - - /** - * With nested relation columns to select clause. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - */ - public void withLabelType() { - _query.doNss(new DataConfigToLabelTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryLabelType(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/DataConfigToRoleTypeMappingNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/DataConfigToRoleTypeMappingNss.java deleted file mode 100644 index 991fee636..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/DataConfigToRoleTypeMappingNss.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.DataConfigToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of DATA_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class DataConfigToRoleTypeMappingNss { - - // =================================================================================== - // Attribute - // ========= - protected DataConfigToRoleTypeMappingCQ _query; - - public DataConfigToRoleTypeMappingNss( - final DataConfigToRoleTypeMappingCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * DATA_CRAWLING_CONFIG by my DATA_CONFIG_ID, named 'dataCrawlingConfig'. - */ - public void withDataCrawlingConfig() { - _query.doNss(new DataConfigToRoleTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryDataCrawlingConfig(); - } - }); - } - - /** - * With nested relation columns to select clause. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - */ - public void withRoleType() { - _query.doNss(new DataConfigToRoleTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryRoleType(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/FavoriteLogNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/FavoriteLogNss.java deleted file mode 100644 index e0ea81286..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/FavoriteLogNss.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.FavoriteLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of FAVORITE_LOG. - * @author DBFlute(AutoGenerator) - */ -public class FavoriteLogNss { - - // =================================================================================== - // Attribute - // ========= - protected FavoriteLogCQ _query; - - public FavoriteLogNss(final FavoriteLogCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * USER_INFO by my USER_ID, named 'userInfo'. - */ - public void withUserInfo() { - _query.doNss(new FavoriteLogCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryUserInfo(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/FileAuthenticationNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/FileAuthenticationNss.java deleted file mode 100644 index 79363ee60..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/FileAuthenticationNss.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.FileAuthenticationCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of FILE_AUTHENTICATION. - * @author DBFlute(AutoGenerator) - */ -public class FileAuthenticationNss { - - // =================================================================================== - // Attribute - // ========= - protected FileAuthenticationCQ _query; - - public FileAuthenticationNss(final FileAuthenticationCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * FILE_CRAWLING_CONFIG by my FILE_CRAWLING_CONFIG_ID, named 'fileCrawlingConfig'. - */ - public void withFileCrawlingConfig() { - _query.doNss(new FileAuthenticationCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryFileCrawlingConfig(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/FileConfigToLabelTypeMappingNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/FileConfigToLabelTypeMappingNss.java deleted file mode 100644 index 7379ce8b7..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/FileConfigToLabelTypeMappingNss.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.FileConfigToLabelTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of FILE_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class FileConfigToLabelTypeMappingNss { - - // =================================================================================== - // Attribute - // ========= - protected FileConfigToLabelTypeMappingCQ _query; - - public FileConfigToLabelTypeMappingNss( - final FileConfigToLabelTypeMappingCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - */ - public void withFileCrawlingConfig() { - _query.doNss(new FileConfigToLabelTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryFileCrawlingConfig(); - } - }); - } - - /** - * With nested relation columns to select clause. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - */ - public void withLabelType() { - _query.doNss(new FileConfigToLabelTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryLabelType(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/FileConfigToRoleTypeMappingNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/FileConfigToRoleTypeMappingNss.java deleted file mode 100644 index 23d3633e1..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/FileConfigToRoleTypeMappingNss.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.FileConfigToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of FILE_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class FileConfigToRoleTypeMappingNss { - - // =================================================================================== - // Attribute - // ========= - protected FileConfigToRoleTypeMappingCQ _query; - - public FileConfigToRoleTypeMappingNss( - final FileConfigToRoleTypeMappingCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * FILE_CRAWLING_CONFIG by my FILE_CONFIG_ID, named 'fileCrawlingConfig'. - */ - public void withFileCrawlingConfig() { - _query.doNss(new FileConfigToRoleTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryFileCrawlingConfig(); - } - }); - } - - /** - * With nested relation columns to select clause. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - */ - public void withRoleType() { - _query.doNss(new FileConfigToRoleTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryRoleType(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/LabelTypeToRoleTypeMappingNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/LabelTypeToRoleTypeMappingNss.java deleted file mode 100644 index 1e21420ca..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/LabelTypeToRoleTypeMappingNss.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.LabelTypeToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of LABEL_TYPE_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class LabelTypeToRoleTypeMappingNss { - - // =================================================================================== - // Attribute - // ========= - protected LabelTypeToRoleTypeMappingCQ _query; - - public LabelTypeToRoleTypeMappingNss( - final LabelTypeToRoleTypeMappingCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - */ - public void withLabelType() { - _query.doNss(new LabelTypeToRoleTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryLabelType(); - } - }); - } - - /** - * With nested relation columns to select clause. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - */ - public void withRoleType() { - _query.doNss(new LabelTypeToRoleTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryRoleType(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/RequestHeaderNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/RequestHeaderNss.java deleted file mode 100644 index 92f807326..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/RequestHeaderNss.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.RequestHeaderCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of REQUEST_HEADER. - * @author DBFlute(AutoGenerator) - */ -public class RequestHeaderNss { - - // =================================================================================== - // Attribute - // ========= - protected RequestHeaderCQ _query; - - public RequestHeaderNss(final RequestHeaderCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - */ - public void withWebCrawlingConfig() { - _query.doNss(new RequestHeaderCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryWebCrawlingConfig(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/SearchFieldLogNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/SearchFieldLogNss.java deleted file mode 100644 index 6174d05d4..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/SearchFieldLogNss.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.SearchFieldLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of SEARCH_FIELD_LOG. - * @author DBFlute(AutoGenerator) - */ -public class SearchFieldLogNss { - - // =================================================================================== - // Attribute - // ========= - protected SearchFieldLogCQ _query; - - public SearchFieldLogNss(final SearchFieldLogCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * SEARCH_LOG by my SEARCH_ID, named 'searchLog'. - * @return The set-upper of more nested relation. {...with[nested-relation].with[more-nested-relation]} (NotNull) - */ - public SearchLogNss withSearchLog() { - _query.doNss(new SearchFieldLogCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.querySearchLog(); - } - }); - return new SearchLogNss(_query.querySearchLog()); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/SearchLogNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/SearchLogNss.java deleted file mode 100644 index f36ccb1da..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/SearchLogNss.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.SearchLogCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of SEARCH_LOG. - * @author DBFlute(AutoGenerator) - */ -public class SearchLogNss { - - // =================================================================================== - // Attribute - // ========= - protected SearchLogCQ _query; - - public SearchLogNss(final SearchLogCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * USER_INFO by my USER_ID, named 'userInfo'. - */ - public void withUserInfo() { - _query.doNss(new SearchLogCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryUserInfo(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/WebAuthenticationNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/WebAuthenticationNss.java deleted file mode 100644 index bcf2fa136..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/WebAuthenticationNss.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.WebAuthenticationCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of WEB_AUTHENTICATION. - * @author DBFlute(AutoGenerator) - */ -public class WebAuthenticationNss { - - // =================================================================================== - // Attribute - // ========= - protected WebAuthenticationCQ _query; - - public WebAuthenticationNss(final WebAuthenticationCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CRAWLING_CONFIG_ID, named 'webCrawlingConfig'. - */ - public void withWebCrawlingConfig() { - _query.doNss(new WebAuthenticationCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryWebCrawlingConfig(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/WebConfigToLabelTypeMappingNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/WebConfigToLabelTypeMappingNss.java deleted file mode 100644 index a757bd30b..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/WebConfigToLabelTypeMappingNss.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.WebConfigToLabelTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of WEB_CONFIG_TO_LABEL_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class WebConfigToLabelTypeMappingNss { - - // =================================================================================== - // Attribute - // ========= - protected WebConfigToLabelTypeMappingCQ _query; - - public WebConfigToLabelTypeMappingNss( - final WebConfigToLabelTypeMappingCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * LABEL_TYPE by my LABEL_TYPE_ID, named 'labelType'. - */ - public void withLabelType() { - _query.doNss(new WebConfigToLabelTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryLabelType(); - } - }); - } - - /** - * With nested relation columns to select clause. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - */ - public void withWebCrawlingConfig() { - _query.doNss(new WebConfigToLabelTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryWebCrawlingConfig(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/nss/WebConfigToRoleTypeMappingNss.java b/src/main/java/jp/sf/fess/db/cbean/nss/WebConfigToRoleTypeMappingNss.java deleted file mode 100644 index e0d5c9279..000000000 --- a/src/main/java/jp/sf/fess/db/cbean/nss/WebConfigToRoleTypeMappingNss.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2015 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.cbean.nss; - -import jp.sf.fess.db.cbean.cq.WebConfigToRoleTypeMappingCQ; - -import org.seasar.dbflute.cbean.ConditionQuery; - -/** - * The nest select set-upper of WEB_CONFIG_TO_ROLE_TYPE_MAPPING. - * @author DBFlute(AutoGenerator) - */ -public class WebConfigToRoleTypeMappingNss { - - // =================================================================================== - // Attribute - // ========= - protected WebConfigToRoleTypeMappingCQ _query; - - public WebConfigToRoleTypeMappingNss( - final WebConfigToRoleTypeMappingCQ query) { - _query = query; - } - - public boolean hasConditionQuery() { - return _query != null; - } - - // =================================================================================== - // Nested Relation - // =============== - /** - * With nested relation columns to select clause. <br /> - * ROLE_TYPE by my ROLE_TYPE_ID, named 'roleType'. - */ - public void withRoleType() { - _query.doNss(new WebConfigToRoleTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryRoleType(); - } - }); - } - - /** - * With nested relation columns to select clause. <br /> - * WEB_CRAWLING_CONFIG by my WEB_CONFIG_ID, named 'webCrawlingConfig'. - */ - public void withWebCrawlingConfig() { - _query.doNss(new WebConfigToRoleTypeMappingCQ.NssCall() { - @Override - public ConditionQuery qf() { - return _query.queryWebCrawlingConfig(); - } - }); - } -} diff --git a/src/main/java/jp/sf/fess/db/cbean/sqlclause/.gitkeep b/src/main/java/jp/sf/fess/db/cbean/sqlclause/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/main/java/jp/sf/fess/helper/HotSearchWordHelper.java b/src/main/java/jp/sf/fess/helper/HotSearchWordHelper.java deleted file mode 100644 index acd0bb1f1..000000000 --- a/src/main/java/jp/sf/fess/helper/HotSearchWordHelper.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2009-2015 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.helper; - -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Timestamp; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; -import java.util.regex.Pattern; - -import javax.annotation.Resource; - -import jp.sf.fess.db.bsbhv.BsSearchLogBhv; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exbhv.pmbean.HotSearchWordPmb; - -import org.codelibs.core.util.StringUtil; -import org.seasar.dbflute.jdbc.CursorHandler; -import org.seasar.framework.container.annotation.tiger.InitMethod; - -public class HotSearchWordHelper { - - @Resource - protected SearchLogBhv searchLogBhv; - - protected Map<Range, List<String>> cacheMap = new ConcurrentHashMap<HotSearchWordHelper.Range, List<String>>(); - - public int size = 10; - - public Pattern excludedWordPattern; - - @InitMethod - public void init() { - final long now = System.currentTimeMillis(); - cacheMap.put(Range.ONE_DAY, getHotSearchWordListByFromDate(new Date(now - - Range.ONE_DAY.getTime()))); - cacheMap.put(Range.ONE_WEEK, getHotSearchWordListByFromDate(new Date( - now - Range.ONE_WEEK.getTime()))); - cacheMap.put(Range.ONE_MONTH, getHotSearchWordListByFromDate(new Date( - now - Range.ONE_MONTH.getTime()))); - cacheMap.put(Range.ONE_YEAR, getHotSearchWordListByFromDate(new Date( - now - Range.ONE_YEAR.getTime()))); - cacheMap.put(Range.ENTIRE, getHotSearchWordListByFromDate(null)); - } - - protected List<String> getHotSearchWordListByFromDate(final Date fromDate) { - final HotSearchWordPmb pmb = new HotSearchWordPmb(); - - if (fromDate != null) { - pmb.setFromRequestedTime(new Timestamp(fromDate.getTime())); - } - - final List<String> wordList = new ArrayList<String>(); - - final String path = BsSearchLogBhv.PATH_selectHotSearchWord; - searchLogBhv.outsideSql().cursorHandling() - .selectCursor(path, pmb, new CursorHandler() { - @Override - public Object handle(final ResultSet rs) - throws SQLException { - while (rs.next()) { - final String word = rs.getString("name"); - if (StringUtil.isBlank(word)) { - continue; - } - if (excludedWordPattern != null) { - if (!excludedWordPattern.matcher(word) - .matches()) { - wordList.add(word); - } - } else { - wordList.add(word); - } - if (wordList.size() >= size) { - break; - } - } - return null; - } - }); - - return wordList; - } - - public void reload() { - init(); - } - - public List<String> getHotSearchWordList(final Range range) { - return cacheMap.get(range); - } - - public enum Range { - ONE_DAY(1), ONE_WEEK(7), ONE_MONTH(30), ONE_YEAR(365), ENTIRE(0); - private final long time; - - private Range(final long t) { - time = t * 24L * 60L * 60L * 1000L; - } - - public long getTime() { - return time; - } - } -} diff --git a/src/main/java/jp/sf/fess/job/DailyJob.java b/src/main/java/jp/sf/fess/job/DailyJob.java deleted file mode 100644 index 5d3efdacf..000000000 --- a/src/main/java/jp/sf/fess/job/DailyJob.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2009-2015 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.job; - -import java.util.Date; - -import jp.sf.fess.Constants; -import jp.sf.fess.helper.HotSearchWordHelper; -import jp.sf.fess.service.CrawlingSessionService; -import jp.sf.fess.service.JobLogService; -import jp.sf.fess.service.SearchLogService; -import jp.sf.fess.service.UserInfoService; -import jp.sf.fess.util.ComponentUtil; - -import org.codelibs.core.util.DynamicProperties; -import org.seasar.framework.container.SingletonS2Container; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@Deprecated -public class DailyJob { - - private static final Logger logger = LoggerFactory - .getLogger(DailyJob.class); - - public String execute() { - final CrawlingSessionService crawlingSessionService = SingletonS2Container - .getComponent(CrawlingSessionService.class); - final SearchLogService searchLogService = SingletonS2Container - .getComponent(SearchLogService.class); - final JobLogService jobLogService = SingletonS2Container - .getComponent(JobLogService.class); - final UserInfoService userInfoService = SingletonS2Container - .getComponent(UserInfoService.class); - final HotSearchWordHelper hotSearchWordHelper = ComponentUtil - .getHotSearchWordHelper(); - final DynamicProperties crawlerProperties = ComponentUtil - .getCrawlerProperties(); - - final StringBuilder resultBuf = new StringBuilder(); - - // hot words - try { - hotSearchWordHelper.reload(); - } catch (final Exception e) { - logger.error("Failed to store a search log.", e); - resultBuf.append(e.getMessage()).append("\n"); - } - - // purge crawling sessions - try { - crawlingSessionService.deleteBefore(new Date()); - } catch (final Exception e) { - logger.error("Failed to purge crawling sessions.", e); - resultBuf.append(e.getMessage()).append("\n"); - } - - // purge search logs - try { - final String value = crawlerProperties.getProperty( - Constants.PURGE_SEARCH_LOG_DAY_PROPERTY, - Constants.DEFAULT_PURGE_DAY); - final int days = Integer.parseInt(value); - searchLogService.deleteBefore(days); - } catch (final Exception e) { - logger.error("Failed to purge search logs.", e); - resultBuf.append(e.getMessage()).append("\n"); - } - - // purge job logs - try { - final String value = crawlerProperties.getProperty( - Constants.PURGE_JOB_LOG_DAY_PROPERTY, - Constants.DEFAULT_PURGE_DAY); - final int days = Integer.parseInt(value); - jobLogService.deleteBefore(days); - } catch (final Exception e) { - logger.error("Failed to purge job logs.", e); - resultBuf.append(e.getMessage()).append("\n"); - } - - // purge user info - try { - final String value = crawlerProperties.getProperty( - Constants.PURGE_USER_INFO_DAY_PROPERTY, - Constants.DEFAULT_PURGE_DAY); - final int days = Integer.parseInt(value); - userInfoService.deleteBefore(days); - } catch (final Exception e) { - logger.error("Failed to purge user info.", e); - resultBuf.append(e.getMessage()).append("\n"); - } - - return resultBuf.toString(); - } - -} diff --git a/src/main/java/jp/sf/fess/job/HourlyJob.java b/src/main/java/jp/sf/fess/job/HourlyJob.java deleted file mode 100644 index 56f3cf78f..000000000 --- a/src/main/java/jp/sf/fess/job/HourlyJob.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2009-2015 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.job; - -import jp.sf.fess.service.SearchFieldLogService; -import jp.sf.fess.util.ComponentUtil; - -import org.seasar.framework.container.SingletonS2Container; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@Deprecated -public class HourlyJob { - - private static final Logger logger = LoggerFactory - .getLogger(HourlyJob.class); - - public String execute() { - final SearchFieldLogService searchFieldLogService = SingletonS2Container - .getComponent(SearchFieldLogService.class); - - final StringBuilder resultBuf = new StringBuilder(); - - try { - // update stats fields - searchFieldLogService.updateFieldLabels(); - } catch (final Exception e) { - logger.error("Failed to execute the hourly task.", e); - resultBuf.append(e.getMessage()).append("\n"); - } - - try { - ComponentUtil.getKeyMatchHelper().update(); - } catch (final Exception e) { - logger.error("Failed to execute the hourly task.", e); - resultBuf.append(e.getMessage()).append("\n"); - } - - return resultBuf.toString(); - } - -} diff --git a/src/main/java/jp/sf/fess/job/MinutelyJob.java b/src/main/java/jp/sf/fess/job/MinutelyJob.java deleted file mode 100644 index cefce7e84..000000000 --- a/src/main/java/jp/sf/fess/job/MinutelyJob.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2009-2015 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.job; - -import jp.sf.fess.helper.SearchLogHelper; -import jp.sf.fess.util.ComponentUtil; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@Deprecated -public class MinutelyJob { - - private static final Logger logger = LoggerFactory - .getLogger(MinutelyJob.class); - - public String execute() { - final SearchLogHelper searchLogHelper = ComponentUtil - .getSearchLogHelper(); - - final StringBuilder resultBuf = new StringBuilder(); - - try { - searchLogHelper.storeSearchLog(); - } catch (final Exception e) { - logger.error("Failed to store a search log.", e); - resultBuf.append(e.getMessage()).append("\n"); - } - - return resultBuf.toString(); - } - -} diff --git a/src/main/java/jp/sf/fess/service/CrawlingSessionService.java b/src/main/java/jp/sf/fess/service/CrawlingSessionService.java deleted file mode 100644 index 577a12bb0..000000000 --- a/src/main/java/jp/sf/fess/service/CrawlingSessionService.java +++ /dev/null @@ -1,307 +0,0 @@ -/* - * Copyright 2009-2015 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.service; - -import java.io.IOException; -import java.io.Reader; -import java.io.Serializable; -import java.io.Writer; -import java.sql.Timestamp; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Date; -import java.util.List; -import java.util.Set; - -import javax.annotation.Resource; - -import jp.sf.fess.FessSystemException; -import jp.sf.fess.crud.service.BsCrawlingSessionService; -import jp.sf.fess.db.cbean.CrawlingSessionCB; -import jp.sf.fess.db.cbean.CrawlingSessionInfoCB; -import jp.sf.fess.db.exbhv.CrawlingSessionInfoBhv; -import jp.sf.fess.db.exentity.CrawlingSession; -import jp.sf.fess.db.exentity.CrawlingSessionInfo; -import jp.sf.fess.pager.CrawlingSessionPager; -import jp.sf.orangesignal.csv.CsvConfig; -import jp.sf.orangesignal.csv.CsvReader; -import jp.sf.orangesignal.csv.CsvWriter; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.codelibs.core.CoreLibConstants; -import org.codelibs.core.util.StringUtil; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; - -import com.ibm.icu.text.SimpleDateFormat; - -public class CrawlingSessionService extends BsCrawlingSessionService implements - Serializable { - - private static final long serialVersionUID = 1L; - - private static final Log log = LogFactory - .getLog(CrawlingSessionService.class); - - @Resource - protected CrawlingSessionInfoBhv crawlingSessionInfoBhv; - - @Override - protected void setupListCondition(final CrawlingSessionCB cb, - final CrawlingSessionPager crawlingSessionPager) { - super.setupListCondition(cb, crawlingSessionPager); - if (StringUtil.isNotBlank(crawlingSessionPager.sessionId)) { - cb.query().setSessionId_LikeSearch(crawlingSessionPager.sessionId, - new LikeSearchOption().likeContain()); - } - cb.query().addOrderBy_CreatedTime_Desc(); - } - - @Override - protected void setupStoreCondition(final CrawlingSession crawlingSession) { - if (crawlingSession == null) { - throw new FessSystemException("Crawling Session is null."); - } - final Timestamp now = new Timestamp(System.currentTimeMillis()); - if (crawlingSession.getCreatedTime() == null) { - crawlingSession.setCreatedTime(now); - } - } - - @Override - protected void setupDeleteCondition(final CrawlingSession crawlingSession) { - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.query().setCrawlingSessionId_Equal(crawlingSession.getId()); - crawlingSessionInfoBhv - .varyingQueryDelete(cb, - new DeleteOption<CrawlingSessionInfoCB>() - .allowNonQueryDelete()); - } - - public void deleteSessionIdsBefore(final String activeSessionId, - final String name, final Date date) { - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.query().setExpiredTime_LessEqual(new Timestamp(date.getTime())); - if (StringUtil.isNotBlank(name)) { - cb.query().setName_Equal(name); - } - if (activeSessionId != null) { - cb.query().setSessionId_NotEqual(activeSessionId); - } - cb.specify().columnId(); - final List<CrawlingSession> crawlingSessionList = crawlingSessionBhv - .selectList(cb); - if (!crawlingSessionList.isEmpty()) { - final List<Long> crawlingSessionIdList = new ArrayList<Long>(); - for (final CrawlingSession cs : crawlingSessionList) { - crawlingSessionIdList.add(cs.getId()); - } - - final CrawlingSessionInfoCB cb2 = new CrawlingSessionInfoCB(); - cb2.query().setCrawlingSessionId_InScope(crawlingSessionIdList); - crawlingSessionInfoBhv.varyingQueryDelete(cb2, - new DeleteOption<CrawlingSessionInfoCB>() - .allowNonQueryDelete()); - - crawlingSessionBhv.batchDelete(crawlingSessionList); - } - } - - public CrawlingSession get(final String sessionId) { - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.query().setSessionId_Equal(sessionId); - return crawlingSessionBhv.selectEntity(cb); - } - - public void storeInfo( - final List<CrawlingSessionInfo> crawlingSessionInfoList) { - if (crawlingSessionInfoList == null) { - throw new FessSystemException("Crawling Session Info is null."); - } - - final Timestamp now = new Timestamp(System.currentTimeMillis()); - for (final CrawlingSessionInfo crawlingSessionInfo : crawlingSessionInfoList) { - if (crawlingSessionInfo.getCreatedTime() == null) { - crawlingSessionInfo.setCreatedTime(now); - } - } - crawlingSessionInfoBhv.batchInsert(crawlingSessionInfoList); - } - - public List<CrawlingSessionInfo> getCrawlingSessionInfoList(final Long id) { - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.query().queryCrawlingSession().setId_Equal(id); - cb.query().addOrderBy_Id_Asc(); - return crawlingSessionInfoBhv.selectList(cb); - } - - public List<CrawlingSessionInfo> getLastCrawlingSessionInfoList( - final String sessionId) { - final CrawlingSession crawlingSession = getLast(sessionId); - if (crawlingSession == null) { - return Collections.emptyList(); - } - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.query().setCrawlingSessionId_Equal(crawlingSession.getId()); - cb.query().addOrderBy_Id_Asc(); - return crawlingSessionInfoBhv.selectList(cb); - } - - public void deleteOldSessions(final Set<String> activeSessionId) { - final CrawlingSessionInfoCB cb1 = new CrawlingSessionInfoCB(); - if (!activeSessionId.isEmpty()) { - cb1.query().queryCrawlingSession() - .setSessionId_NotInScope(activeSessionId); - } - crawlingSessionInfoBhv - .varyingQueryDelete(cb1, - new DeleteOption<CrawlingSessionInfoCB>() - .allowNonQueryDelete()); - final CrawlingSessionCB cb2 = new CrawlingSessionCB(); - if (!activeSessionId.isEmpty()) { - cb2.query().setSessionId_NotInScope(activeSessionId); - } - crawlingSessionBhv.varyingQueryDelete(cb2, - new DeleteOption<CrawlingSessionCB>().allowNonQueryDelete()); - } - - public void importCsv(final Reader reader) { - final CsvReader csvReader = new CsvReader(reader, new CsvConfig()); - final SimpleDateFormat sdf = new SimpleDateFormat( - CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); - try { - List<String> list; - csvReader.readValues(); // ignore header - while ((list = csvReader.readValues()) != null) { - try { - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.query().setSessionId_Equal(list.get(0)); - cb.specify().columnSessionId(); - CrawlingSession crawlingSession = crawlingSessionBhv - .selectEntity(cb); - if (crawlingSession == null) { - crawlingSession = new CrawlingSession(); - crawlingSession.setSessionId(list.get(0)); - crawlingSession.setCreatedTime(new Timestamp(sdf.parse( - list.get(1)).getTime())); - crawlingSessionBhv.insert(crawlingSession); - } - - final CrawlingSessionInfo entity = new CrawlingSessionInfo(); - entity.setCrawlingSessionId(crawlingSession.getId()); - entity.setKey(list.get(2)); - entity.setValue(list.get(3)); - entity.setCreatedTime(new Timestamp(sdf.parse(list.get(4)) - .getTime())); - crawlingSessionInfoBhv.insert(entity); - } catch (final Exception e) { - log.warn("Failed to read a click log: " + list, e); - } - } - } catch (final IOException e) { - log.warn("Failed to read a click log.", e); - } - } - - public void exportCsv(final Writer writer) { - final CsvConfig cfg = new CsvConfig(',', '"', '"'); - cfg.setEscapeDisabled(false); - cfg.setQuoteDisabled(false); - @SuppressWarnings("resource") - final CsvWriter csvWriter = new CsvWriter(writer, cfg); - final CrawlingSessionInfoCB cb = new CrawlingSessionInfoCB(); - cb.setupSelect_CrawlingSession(); - try { - final List<String> list = new ArrayList<String>(); - list.add("SessionId"); - list.add("SessionCreatedTime"); - list.add("Key"); - list.add("Value"); - list.add("CreatedTime"); - csvWriter.writeValues(list); - final SimpleDateFormat sdf = new SimpleDateFormat( - CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); - crawlingSessionInfoBhv.selectCursor(cb, - new EntityRowHandler<CrawlingSessionInfo>() { - @Override - public void handle(final CrawlingSessionInfo entity) { - final List<String> list = new ArrayList<String>(); - addToList(list, entity.getCrawlingSession() - .getSessionId()); - addToList(list, entity.getCrawlingSession() - .getCreatedTime()); - addToList(list, entity.getKey()); - addToList(list, entity.getValue()); - addToList(list, entity.getCreatedTime()); - try { - csvWriter.writeValues(list); - } catch (final IOException e) { - log.warn( - "Failed to write a crawling session info: " - + entity, e); - } - } - - private void addToList(final List<String> list, - final Object value) { - if (value == null) { - list.add(StringUtil.EMPTY); - } else if (value instanceof Timestamp) { - list.add(sdf.format((Date) value)); - } else { - list.add(value.toString()); - } - } - }); - csvWriter.flush(); - } catch (final IOException e) { - log.warn("Failed to write a crawling session info.", e); - } - } - - public void deleteBefore(final Date date) { - final Timestamp timestamp = new Timestamp(date.getTime()); - final CrawlingSessionInfoCB cb1 = new CrawlingSessionInfoCB(); - cb1.setupSelect_CrawlingSession(); - cb1.query().queryCrawlingSession().setExpiredTime_LessThan(timestamp); - crawlingSessionInfoBhv - .varyingQueryDelete(cb1, - new DeleteOption<CrawlingSessionInfoCB>() - .allowNonQueryDelete()); - final CrawlingSessionCB cb2 = new CrawlingSessionCB(); - cb2.query().setExpiredTime_LessThan(timestamp); - crawlingSessionBhv.varyingQueryDelete(cb2, - new DeleteOption<CrawlingSessionCB>().allowNonQueryDelete()); - } - - public CrawlingSession getLast(final String sessionId) { - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.query().setSessionId_Equal(sessionId); - cb.query().addOrderBy_CreatedTime_Desc(); - cb.fetchFirst(1); - final ListResultBean<CrawlingSession> list = crawlingSessionBhv - .selectList(cb); - if (list.isEmpty()) { - return null; - } - return list.get(0); - } - -} diff --git a/src/main/java/jp/sf/fess/service/UserInfoService.java b/src/main/java/jp/sf/fess/service/UserInfoService.java deleted file mode 100644 index 38f13c662..000000000 --- a/src/main/java/jp/sf/fess/service/UserInfoService.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright 2009-2015 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.service; - -import java.io.Serializable; -import java.sql.Timestamp; -import java.util.Map; - -import javax.annotation.Resource; - -import jp.sf.fess.crud.service.BsUserInfoService; -import jp.sf.fess.db.cbean.FavoriteLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.exbhv.FavoriteLogBhv; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.db.exentity.UserInfo; -import jp.sf.fess.pager.UserInfoPager; - -import org.codelibs.core.util.StringUtil; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.bhv.UpdateOption; - -public class UserInfoService extends BsUserInfoService implements Serializable { - - private static final long serialVersionUID = 1L; - - @Resource - protected SearchLogBhv searchLogBhv; - - @Resource - protected FavoriteLogBhv favoriteLogBhv; - - @Override - protected void setupListCondition(final UserInfoCB cb, - final UserInfoPager userInfoPager) { - // setup condition - cb.query().addOrderBy_UpdatedTime_Desc(); - - // search - if (StringUtil.isNotBlank(userInfoPager.code)) { - cb.query().setCode_Equal(userInfoPager.code); - } - } - - @Override - protected void setupEntityCondition(final UserInfoCB cb, - final Map<String, String> keys) { - super.setupEntityCondition(cb, keys); - - // setup condition - - } - - @Override - protected void setupStoreCondition(final UserInfo userInfo) { - super.setupStoreCondition(userInfo); - - // setup condition - - } - - @Override - protected void setupDeleteCondition(final UserInfo userInfo) { - final Long userInfoId = userInfo.getId(); - final SearchLogCB cb1 = new SearchLogCB(); - cb1.query().setUserId_Equal(userInfoId); - final SearchLog searchLog = new SearchLog(); - searchLog.setUserId(null); - searchLogBhv.queryUpdate(searchLog, cb1); - - final FavoriteLogCB cb2 = new FavoriteLogCB(); - cb2.query().setUserId_Equal(userInfoId); - favoriteLogBhv.queryDelete(cb2); - - super.setupDeleteCondition(userInfo); - - // setup condition - - } - - public UserInfo getUserInfo(final String userCode) { - final UserInfoCB cb = new UserInfoCB(); - cb.query().setCode_Equal(userCode); - return userInfoBhv.selectEntity(cb); - } - - public void deleteAll(final UserInfoPager userInfoPager) { - deleteInternal(userInfoPager); - } - - public void deleteBefore(final int days) { - final UserInfoPager userInfoPager = new UserInfoPager(); - userInfoPager.updatedTimeBefore = new Timestamp( - System.currentTimeMillis() - days * 24L * 60L * 60L * 1000L); - deleteInternal(userInfoPager); - } - - protected void deleteInternal(final UserInfoPager userInfoPager) { - final UserInfoCB cb = new UserInfoCB(); - final SearchLogCB cb1 = new SearchLogCB(); - final FavoriteLogCB cb2 = new FavoriteLogCB(); - - boolean hasCb = false; - // search - if (StringUtil.isNotBlank(userInfoPager.code)) { - cb.query().setCode_Equal(userInfoPager.code); - cb1.query().queryUserInfo().setCode_Equal(userInfoPager.code); - cb2.query().queryUserInfo().setCode_Equal(userInfoPager.code); - hasCb = true; - } - - if (userInfoPager.updatedTimeBefore != null) { - cb.query() - .setUpdatedTime_LessEqual(userInfoPager.updatedTimeBefore); - cb1.query().queryUserInfo() - .setUpdatedTime_LessEqual(userInfoPager.updatedTimeBefore); - cb2.query().queryUserInfo() - .setUpdatedTime_LessEqual(userInfoPager.updatedTimeBefore); - hasCb = true; - } - - if (hasCb) { - final SearchLog searchLog = new SearchLog(); - searchLog.setUserId(null); - searchLogBhv.queryUpdate(searchLog, cb1); - - favoriteLogBhv.queryDelete(cb2); - } else { - final SearchLog searchLog = new SearchLog(); - searchLog.setUserId(null); - searchLogBhv.varyingQueryUpdate(searchLog, cb1, - new UpdateOption<SearchLogCB>().allowNonQueryUpdate()); - - favoriteLogBhv.varyingQueryDelete(cb2, - new DeleteOption<FavoriteLogCB>().allowNonQueryDelete()); - } - - userInfoBhv.varyingQueryDelete(cb, - new DeleteOption<UserInfoCB>().allowNonQueryDelete()); - } - -} diff --git a/src/main/java/jp/sf/fess/Constants.java b/src/main/java/org/codelibs/fess/Constants.java similarity index 92% rename from src/main/java/jp/sf/fess/Constants.java rename to src/main/java/org/codelibs/fess/Constants.java index 2b92fdb46..09b05e13a 100644 --- a/src/main/java/jp/sf/fess/Constants.java +++ b/src/main/java/org/codelibs/fess/Constants.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess; +package org.codelibs.fess; import java.util.regex.Pattern; @@ -171,11 +171,11 @@ public class Constants extends CoreLibConstants { public static final String AUTH_CIPHER = "authenticationCipher"; - public static final String RETURN_PATH = "jp.sf.fess.ReturnPath"; + public static final String RETURN_PATH = "org.codelibs.fess.ReturnPath"; - public static final String HIGHLIGHT_QUERIES = "jp.sf.fess.Queries"; + public static final String HIGHLIGHT_QUERIES = "org.codelibs.fess.Queries"; - public static final String FIELD_LOGS = "jp.sf.fess.FieldLogs"; + public static final String FIELD_LOGS = "org.codelibs.fess.FieldLogs"; public static final String DEFAULT_DATETIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss"; @@ -285,19 +285,19 @@ public class Constants extends CoreLibConstants { // view parameters - public static final String FACET_QUERY = "jp.sf.fess.tag.FacetQuery"; + public static final String FACET_QUERY = "org.codelibs.fess.tag.FacetQuery"; - public static final String MLT_QUERY = "jp.sf.fess.tag.MLTQuery"; + public static final String MLT_QUERY = "org.codelibs.fess.tag.MLTQuery"; - public static final String GEO_QUERY = "jp.sf.fess.tag.GeoQuery"; + public static final String GEO_QUERY = "org.codelibs.fess.tag.GeoQuery"; - public static final String FACET_FORM = "jp.sf.fess.tag.FacetForm"; + public static final String FACET_FORM = "org.codelibs.fess.tag.FacetForm"; - public static final String MLT_FORM = "jp.sf.fess.tag.MLTForm"; + public static final String MLT_FORM = "org.codelibs.fess.tag.MLTForm"; - public static final String GEO_FORM = "jp.sf.fess.tag.GeoForm"; + public static final String GEO_FORM = "org.codelibs.fess.tag.GeoForm"; - public static final String LABEL_VALUE_MAP = "jp.sf.fess.LabelValueMap"; + public static final String LABEL_VALUE_MAP = "org.codelibs.fess.LabelValueMap"; public static final String OPTION_QUERY_Q = "q"; diff --git a/src/main/java/jp/sf/fess/FessSystemException.java b/src/main/java/org/codelibs/fess/FessSystemException.java similarity index 97% rename from src/main/java/jp/sf/fess/FessSystemException.java rename to src/main/java/org/codelibs/fess/FessSystemException.java index 30f617e6a..e222964d9 100644 --- a/src/main/java/jp/sf/fess/FessSystemException.java +++ b/src/main/java/org/codelibs/fess/FessSystemException.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess; +package org.codelibs.fess; public class FessSystemException extends RuntimeException { diff --git a/src/main/java/jp/sf/fess/InvalidQueryException.java b/src/main/java/org/codelibs/fess/InvalidQueryException.java similarity index 97% rename from src/main/java/jp/sf/fess/InvalidQueryException.java rename to src/main/java/org/codelibs/fess/InvalidQueryException.java index d0ccfdd8c..32d2c4283 100644 --- a/src/main/java/jp/sf/fess/InvalidQueryException.java +++ b/src/main/java/org/codelibs/fess/InvalidQueryException.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess; +package org.codelibs.fess; public class InvalidQueryException extends FessSystemException { diff --git a/src/main/java/jp/sf/fess/ResultOffsetExceededException.java b/src/main/java/org/codelibs/fess/ResultOffsetExceededException.java similarity index 96% rename from src/main/java/jp/sf/fess/ResultOffsetExceededException.java rename to src/main/java/org/codelibs/fess/ResultOffsetExceededException.java index 16206eb1d..d98084c8b 100644 --- a/src/main/java/jp/sf/fess/ResultOffsetExceededException.java +++ b/src/main/java/org/codelibs/fess/ResultOffsetExceededException.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess; +package org.codelibs.fess; public class ResultOffsetExceededException extends FessSystemException { private static final long serialVersionUID = 1L; diff --git a/src/main/java/jp/sf/fess/UnsupportedSearchException.java b/src/main/java/org/codelibs/fess/UnsupportedSearchException.java similarity index 96% rename from src/main/java/jp/sf/fess/UnsupportedSearchException.java rename to src/main/java/org/codelibs/fess/UnsupportedSearchException.java index 22dbbbe0a..22d4877db 100644 --- a/src/main/java/jp/sf/fess/UnsupportedSearchException.java +++ b/src/main/java/org/codelibs/fess/UnsupportedSearchException.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess; +package org.codelibs.fess; public class UnsupportedSearchException extends FessSystemException { diff --git a/src/main/java/jp/sf/fess/WebApiException.java b/src/main/java/org/codelibs/fess/WebApiException.java similarity index 97% rename from src/main/java/jp/sf/fess/WebApiException.java rename to src/main/java/org/codelibs/fess/WebApiException.java index 2f237f77f..3caa334af 100644 --- a/src/main/java/jp/sf/fess/WebApiException.java +++ b/src/main/java/org/codelibs/fess/WebApiException.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess; +package org.codelibs.fess; public class WebApiException extends FessSystemException { diff --git a/src/main/java/jp/sf/fess/action/AppletAction.java b/src/main/java/org/codelibs/fess/action/AppletAction.java similarity index 94% rename from src/main/java/jp/sf/fess/action/AppletAction.java rename to src/main/java/org/codelibs/fess/action/AppletAction.java index 79fe1bc52..321490e2c 100644 --- a/src/main/java/jp/sf/fess/action/AppletAction.java +++ b/src/main/java/org/codelibs/fess/action/AppletAction.java @@ -14,18 +14,17 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action; +package org.codelibs.fess.action; import java.io.IOException; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.form.AppletForm; -import jp.sf.fess.helper.SystemHelper; - import org.apache.commons.lang.StringEscapeUtils; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.form.AppletForm; +import org.codelibs.fess.helper.SystemHelper; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.ActionForm; import org.seasar.struts.annotation.Execute; diff --git a/src/main/java/jp/sf/fess/action/ErrorAction.java b/src/main/java/org/codelibs/fess/action/ErrorAction.java similarity index 94% rename from src/main/java/jp/sf/fess/action/ErrorAction.java rename to src/main/java/org/codelibs/fess/action/ErrorAction.java index 2d918b313..3dbf50355 100644 --- a/src/main/java/jp/sf/fess/action/ErrorAction.java +++ b/src/main/java/org/codelibs/fess/action/ErrorAction.java @@ -14,12 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action; +package org.codelibs.fess.action; import javax.annotation.Resource; -import jp.sf.fess.form.ErrorForm; - +import org.codelibs.fess.form.ErrorForm; import org.seasar.struts.annotation.ActionForm; import org.seasar.struts.annotation.Execute; diff --git a/src/main/java/jp/sf/fess/action/IndexAction.java b/src/main/java/org/codelibs/fess/action/IndexAction.java similarity index 94% rename from src/main/java/jp/sf/fess/action/IndexAction.java rename to src/main/java/org/codelibs/fess/action/IndexAction.java index 79ede4904..db3fd5807 100644 --- a/src/main/java/jp/sf/fess/action/IndexAction.java +++ b/src/main/java/org/codelibs/fess/action/IndexAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action; +package org.codelibs.fess.action; import java.awt.Desktop; import java.io.BufferedInputStream; @@ -25,8 +25,11 @@ import java.io.OutputStream; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; -import java.sql.Timestamp; import java.text.NumberFormat; +import java.time.Clock; +import java.time.Instant; +import java.time.LocalDateTime; +import java.time.ZoneId; import java.util.ArrayList; import java.util.Arrays; import java.util.Enumeration; @@ -44,52 +47,53 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; -import jp.sf.fess.Constants; -import jp.sf.fess.InvalidQueryException; -import jp.sf.fess.ResultOffsetExceededException; -import jp.sf.fess.UnsupportedSearchException; -import jp.sf.fess.db.allcommon.CDef; -import jp.sf.fess.db.exentity.ClickLog; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.db.exentity.UserInfo; -import jp.sf.fess.entity.FieldAnalysisResponse; -import jp.sf.fess.entity.LoginInfo; -import jp.sf.fess.form.IndexForm; -import jp.sf.fess.helper.CrawlingConfigHelper; -import jp.sf.fess.helper.DocumentHelper; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.HotSearchWordHelper; -import jp.sf.fess.helper.HotSearchWordHelper.Range; -import jp.sf.fess.helper.LabelTypeHelper; -import jp.sf.fess.helper.OpenSearchHelper; -import jp.sf.fess.helper.QueryHelper; -import jp.sf.fess.helper.RoleQueryHelper; -import jp.sf.fess.helper.SearchLogHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.helper.UserInfoHelper; -import jp.sf.fess.helper.ViewHelper; -import jp.sf.fess.screenshot.ScreenShotManager; -import jp.sf.fess.service.FavoriteLogService; -import jp.sf.fess.service.SearchService; import jp.sf.fess.suggest.Suggester; import jp.sf.fess.suggest.entity.SpellCheckResponse; import jp.sf.fess.suggest.entity.SuggestResponse; import jp.sf.fess.suggest.service.SuggestService; -import jp.sf.fess.util.ComponentUtil; -import jp.sf.fess.util.FacetResponse; -import jp.sf.fess.util.MoreLikeThisResponse; -import jp.sf.fess.util.QueryResponseList; -import jp.sf.fess.util.WebApiUtil; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.lang.StringUtils; import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.InvalidQueryException; +import org.codelibs.fess.ResultOffsetExceededException; +import org.codelibs.fess.UnsupportedSearchException; +import org.codelibs.fess.db.allcommon.CDef; +import org.codelibs.fess.db.exentity.ClickLog; +import org.codelibs.fess.db.exentity.SearchLog; +import org.codelibs.fess.db.exentity.UserInfo; +import org.codelibs.fess.entity.FieldAnalysisResponse; +import org.codelibs.fess.entity.LoginInfo; +import org.codelibs.fess.form.IndexForm; +import org.codelibs.fess.helper.CrawlingConfigHelper; +import org.codelibs.fess.helper.DocumentHelper; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.HotSearchWordHelper; +import org.codelibs.fess.helper.HotSearchWordHelper.Range; +import org.codelibs.fess.helper.LabelTypeHelper; +import org.codelibs.fess.helper.OpenSearchHelper; +import org.codelibs.fess.helper.QueryHelper; +import org.codelibs.fess.helper.RoleQueryHelper; +import org.codelibs.fess.helper.SearchLogHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.helper.UserInfoHelper; +import org.codelibs.fess.helper.ViewHelper; +import org.codelibs.fess.screenshot.ScreenShotManager; +import org.codelibs.fess.service.FavoriteLogService; +import org.codelibs.fess.service.SearchService; +import org.codelibs.fess.util.ComponentUtil; +import org.codelibs.fess.util.FacetResponse; +import org.codelibs.fess.util.MoreLikeThisResponse; +import org.codelibs.fess.util.QueryResponseList; +import org.codelibs.fess.util.WebApiUtil; import org.codelibs.robot.util.CharUtil; import org.codelibs.sastruts.core.SSCConstants; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.codelibs.solr.lib.exception.SolrLibQueryException; +import org.dbflute.optional.OptionalEntity; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.container.annotation.tiger.Binding; import org.seasar.framework.container.annotation.tiger.BindingType; @@ -413,10 +417,11 @@ public class IndexAction { .getSearchLogHelper(); final ClickLog clickLog = new ClickLog(); clickLog.setUrl(url); - clickLog.setRequestedTime(new Timestamp(System - .currentTimeMillis())); - clickLog.setQueryRequestedTime(new Timestamp(Long - .parseLong(indexForm.rt))); + LocalDateTime now = systemHelper.getCurrentTime(); + clickLog.setRequestedTime(now); + clickLog.setQueryRequestedTime(LocalDateTime.ofInstant( + Instant.ofEpochMilli(Long.parseLong(indexForm.rt)), + ZoneId.systemDefault())); clickLog.setUserSessionId(userSessionId); clickLog.setDocId(indexForm.docId); long clickCount = 0; @@ -1079,8 +1084,8 @@ public class IndexAction { // ignore } - final long rt = System.currentTimeMillis(); - indexForm.rt = Long.toString(rt); + final Clock clock = Clock.systemDefaultZone(); + indexForm.rt = Long.toString(clock.millis()); // favorite if (favoriteSupport || screenShotManager != null) { @@ -1095,7 +1100,7 @@ public class IndexAction { // search log if (searchLogSupport) { - final Timestamp now = new Timestamp(rt); + final LocalDateTime now = systemHelper.getCurrentTime(); final SearchLogHelper searchLogHelper = ComponentUtil .getSearchLogHelper(); @@ -1110,7 +1115,7 @@ public class IndexAction { userInfo.setCode(userCode); userInfo.setCreatedTime(now); userInfo.setUpdatedTime(now); - searchLog.setUserInfo(userInfo); + searchLog.setUserInfo(OptionalEntity.of(userInfo)); } } @@ -1138,9 +1143,24 @@ public class IndexAction { final Object accessType = request .getAttribute(Constants.SEARCH_LOG_ACCESS_TYPE); if (accessType instanceof CDef.AccessType) { - searchLog.setAccessType(((CDef.AccessType) accessType).code()); + switch ((CDef.AccessType) accessType) { + case Json: + searchLog.setAccessType_Json(); + searchLog.setAccessType_Others(); + searchLog.setAccessType_Xml(); + break; + case Xml: + searchLog.setAccessType_Xml(); + break; + case Others: + searchLog.setAccessType_Others(); + break; + default: + searchLog.setAccessType_Web(); + break; + } } else { - searchLog.setAccessType(CDef.AccessType.Web.code()); + searchLog.setAccessType_Web(); } @SuppressWarnings("unchecked") diff --git a/src/main/java/jp/sf/fess/action/LoginAction.java b/src/main/java/org/codelibs/fess/action/LoginAction.java similarity index 96% rename from src/main/java/jp/sf/fess/action/LoginAction.java rename to src/main/java/org/codelibs/fess/action/LoginAction.java index cbe0a4b21..1f52a38ad 100644 --- a/src/main/java/jp/sf/fess/action/LoginAction.java +++ b/src/main/java/org/codelibs/fess/action/LoginAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action; +package org.codelibs.fess.action; import java.io.IOException; import java.io.Serializable; @@ -29,16 +29,15 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.entity.LoginInfo; -import jp.sf.fess.form.LoginForm; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.util.ComponentUtil; - import org.apache.struts.Globals; import org.codelibs.core.crypto.CachedCipher; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.entity.LoginInfo; +import org.codelibs.fess.form.LoginForm; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.sastruts.core.SSCConstants; import org.codelibs.sastruts.core.util.ActivityUtil; import org.seasar.struts.annotation.ActionForm; diff --git a/src/main/java/jp/sf/fess/action/admin/BoostDocumentRuleAction.java b/src/main/java/org/codelibs/fess/action/admin/BoostDocumentRuleAction.java similarity index 86% rename from src/main/java/jp/sf/fess/action/admin/BoostDocumentRuleAction.java rename to src/main/java/org/codelibs/fess/action/admin/BoostDocumentRuleAction.java index 6f7c02c3d..dd03b153b 100644 --- a/src/main/java/jp/sf/fess/action/admin/BoostDocumentRuleAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/BoostDocumentRuleAction.java @@ -14,22 +14,21 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsBoostDocumentRuleAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.BoostDocumentRule; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsBoostDocumentRuleAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.BoostDocumentRule; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; import org.seasar.struts.exception.ActionMessagesException; @@ -69,7 +68,7 @@ public class BoostDocumentRuleAction extends BsBoostDocumentRuleAction { protected BoostDocumentRule createBoostDocumentRule() { BoostDocumentRule boostDocumentRule; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (boostDocumentRuleForm.crudMode == CommonConstants.EDIT_MODE) { boostDocumentRule = boostDocumentRuleService .getBoostDocumentRule(createKeyMap()); @@ -82,10 +81,10 @@ public class BoostDocumentRuleAction extends BsBoostDocumentRuleAction { } else { boostDocumentRule = new BoostDocumentRule(); boostDocumentRule.setCreatedBy(username); - boostDocumentRule.setCreatedTime(timestamp); + boostDocumentRule.setCreatedTime(currentTime); } boostDocumentRule.setUpdatedBy(username); - boostDocumentRule.setUpdatedTime(timestamp); + boostDocumentRule.setUpdatedTime(currentTime); FessBeans.copy(boostDocumentRuleForm, boostDocumentRule) .excludesCommonColumns().execute(); @@ -113,9 +112,9 @@ public class BoostDocumentRuleAction extends BsBoostDocumentRuleAction { // boostDocumentRuleService.delete(boostDocumentRule); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); boostDocumentRule.setDeletedBy(username); - boostDocumentRule.setDeletedTime(timestamp); + boostDocumentRule.setDeletedTime(currentTime); boostDocumentRuleService.store(boostDocumentRule); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/CrawlAction.java b/src/main/java/org/codelibs/fess/action/admin/CrawlAction.java similarity index 98% rename from src/main/java/jp/sf/fess/action/admin/CrawlAction.java rename to src/main/java/org/codelibs/fess/action/admin/CrawlAction.java index e858a11bd..409ac1695 100644 --- a/src/main/java/jp/sf/fess/action/admin/CrawlAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/CrawlAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.Serializable; import java.util.ArrayList; @@ -24,13 +24,12 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.form.admin.CrawlForm; -import jp.sf.fess.helper.SystemHelper; - import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.form.admin.CrawlForm; +import org.codelibs.fess.helper.SystemHelper; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.ActionForm; diff --git a/src/main/java/jp/sf/fess/action/admin/CrawlingSessionAction.java b/src/main/java/org/codelibs/fess/action/admin/CrawlingSessionAction.java similarity index 84% rename from src/main/java/jp/sf/fess/action/admin/CrawlingSessionAction.java rename to src/main/java/org/codelibs/fess/action/admin/CrawlingSessionAction.java index f55729971..a7763a96d 100644 --- a/src/main/java/jp/sf/fess/action/admin/CrawlingSessionAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/CrawlingSessionAction.java @@ -14,19 +14,18 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.util.Collections; import java.util.List; import javax.annotation.Resource; -import jp.sf.fess.crud.action.admin.BsCrawlingSessionAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.CrawlingSessionInfo; -import jp.sf.fess.helper.JobHelper; -import jp.sf.fess.helper.SystemHelper; - +import org.codelibs.fess.crud.action.admin.BsCrawlingSessionAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.CrawlingSessionInfo; +import org.codelibs.fess.helper.JobHelper; +import org.codelibs.fess.helper.SystemHelper; import org.seasar.struts.annotation.Execute; public class CrawlingSessionAction extends BsCrawlingSessionAction { diff --git a/src/main/java/jp/sf/fess/action/admin/DataAction.java b/src/main/java/org/codelibs/fess/action/admin/DataAction.java similarity index 96% rename from src/main/java/jp/sf/fess/action/admin/DataAction.java rename to src/main/java/org/codelibs/fess/action/admin/DataAction.java index f1467332b..689b188cb 100644 --- a/src/main/java/jp/sf/fess/action/admin/DataAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/DataAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.BufferedInputStream; import java.io.BufferedReader; @@ -35,19 +35,18 @@ import javax.annotation.Resource; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletResponse; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.form.admin.DataForm; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.service.ClickLogService; -import jp.sf.fess.service.CrawlingSessionService; -import jp.sf.fess.service.DatabaseService; -import jp.sf.fess.service.SearchLogService; - import org.apache.commons.io.IOUtils; import org.codelibs.core.CoreLibConstants; import org.codelibs.core.util.DynamicProperties; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.form.admin.DataForm; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.service.ClickLogService; +import org.codelibs.fess.service.CrawlingSessionService; +import org.codelibs.fess.service.DatabaseService; +import org.codelibs.fess.service.SearchLogService; import org.codelibs.robot.util.StreamUtil; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.ActionForm; diff --git a/src/main/java/jp/sf/fess/action/admin/DataCrawlingConfigAction.java b/src/main/java/org/codelibs/fess/action/admin/DataCrawlingConfigAction.java similarity index 85% rename from src/main/java/jp/sf/fess/action/admin/DataCrawlingConfigAction.java rename to src/main/java/org/codelibs/fess/action/admin/DataCrawlingConfigAction.java index 54d41d8d7..350ae0c8f 100644 --- a/src/main/java/jp/sf/fess/action/admin/DataCrawlingConfigAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/DataCrawlingConfigAction.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -24,23 +24,22 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsDataCrawlingConfigAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.ds.DataStoreFactory; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.service.FailureUrlService; -import jp.sf.fess.service.LabelTypeService; -import jp.sf.fess.service.RoleTypeService; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsDataCrawlingConfigAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.DataCrawlingConfig; +import org.codelibs.fess.db.exentity.LabelType; +import org.codelibs.fess.db.exentity.RoleType; +import org.codelibs.fess.ds.DataStoreFactory; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.service.FailureUrlService; +import org.codelibs.fess.service.LabelTypeService; +import org.codelibs.fess.service.RoleTypeService; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; import org.seasar.struts.exception.ActionMessagesException; @@ -99,7 +98,7 @@ public class DataCrawlingConfigAction extends BsDataCrawlingConfigAction { protected DataCrawlingConfig createDataCrawlingConfig() { DataCrawlingConfig dataCrawlingConfig; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (dataCrawlingConfigForm.crudMode == CommonConstants.EDIT_MODE) { dataCrawlingConfig = dataCrawlingConfigService .getDataCrawlingConfig(createKeyMap()); @@ -112,10 +111,10 @@ public class DataCrawlingConfigAction extends BsDataCrawlingConfigAction { } else { dataCrawlingConfig = new DataCrawlingConfig(); dataCrawlingConfig.setCreatedBy(username); - dataCrawlingConfig.setCreatedTime(timestamp); + dataCrawlingConfig.setCreatedTime(currentTime); } dataCrawlingConfig.setUpdatedBy(username); - dataCrawlingConfig.setUpdatedTime(timestamp); + dataCrawlingConfig.setUpdatedTime(currentTime); FessBeans.copy(dataCrawlingConfigForm, dataCrawlingConfig) .excludesCommonColumns().execute(); @@ -146,9 +145,9 @@ public class DataCrawlingConfigAction extends BsDataCrawlingConfigAction { //dataCrawlingConfigService.delete(dataCrawlingConfig); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); dataCrawlingConfig.setDeletedBy(username); - dataCrawlingConfig.setDeletedTime(timestamp); + dataCrawlingConfig.setDeletedTime(currentTime); dataCrawlingConfigService.store(dataCrawlingConfig); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/DesignAction.java b/src/main/java/org/codelibs/fess/action/admin/DesignAction.java similarity index 97% rename from src/main/java/jp/sf/fess/action/admin/DesignAction.java rename to src/main/java/org/codelibs/fess/action/admin/DesignAction.java index 1f9c16bc0..dfd6b7d6e 100644 --- a/src/main/java/jp/sf/fess/action/admin/DesignAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/DesignAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.BufferedInputStream; import java.io.File; @@ -27,16 +27,15 @@ import java.util.Locale; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.form.admin.DesignForm; -import jp.sf.fess.helper.SystemHelper; - import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.form.admin.DesignForm; +import org.codelibs.fess.helper.SystemHelper; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.framework.util.FileUtil; diff --git a/src/main/java/jp/sf/fess/action/admin/DictAction.java b/src/main/java/org/codelibs/fess/action/admin/DictAction.java similarity index 83% rename from src/main/java/jp/sf/fess/action/admin/DictAction.java rename to src/main/java/org/codelibs/fess/action/admin/DictAction.java index 762d0b797..83069ac6c 100644 --- a/src/main/java/jp/sf/fess/action/admin/DictAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/DictAction.java @@ -14,18 +14,17 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.Serializable; import javax.annotation.Resource; -import jp.sf.fess.dict.DictionaryFile; -import jp.sf.fess.dict.DictionaryItem; -import jp.sf.fess.dict.DictionaryManager; -import jp.sf.fess.form.admin.DictForm; -import jp.sf.fess.helper.SystemHelper; - +import org.codelibs.fess.dict.DictionaryFile; +import org.codelibs.fess.dict.DictionaryItem; +import org.codelibs.fess.dict.DictionaryManager; +import org.codelibs.fess.form.admin.DictForm; +import org.codelibs.fess.helper.SystemHelper; import org.seasar.struts.annotation.ActionForm; import org.seasar.struts.annotation.Execute; diff --git a/src/main/java/jp/sf/fess/action/admin/DocumentAction.java b/src/main/java/org/codelibs/fess/action/admin/DocumentAction.java similarity index 97% rename from src/main/java/jp/sf/fess/action/admin/DocumentAction.java rename to src/main/java/org/codelibs/fess/action/admin/DocumentAction.java index f544a181b..4afa6cd53 100644 --- a/src/main/java/jp/sf/fess/action/admin/DocumentAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/DocumentAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.Serializable; import java.util.ArrayList; @@ -25,17 +25,9 @@ import java.util.Set; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.form.admin.DocumentForm; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.JobHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.helper.WebManagementHelper; import jp.sf.fess.suggest.SuggestConstants; import jp.sf.fess.suggest.server.SuggestSolrServer; import jp.sf.fess.suggest.service.SuggestService; -import jp.sf.fess.util.ComponentUtil; import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrQuery.ORDER; @@ -43,6 +35,14 @@ import org.apache.solr.client.solrj.response.FacetField; import org.apache.solr.client.solrj.response.QueryResponse; import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.form.admin.DocumentForm; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.JobHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.helper.WebManagementHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.codelibs.solr.lib.SolrGroup; diff --git a/src/main/java/jp/sf/fess/action/admin/FailureUrlAction.java b/src/main/java/org/codelibs/fess/action/admin/FailureUrlAction.java similarity index 86% rename from src/main/java/jp/sf/fess/action/admin/FailureUrlAction.java rename to src/main/java/org/codelibs/fess/action/admin/FailureUrlAction.java index 774423306..272c1fd31 100644 --- a/src/main/java/jp/sf/fess/action/admin/FailureUrlAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/FailureUrlAction.java @@ -14,14 +14,13 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import javax.annotation.Resource; -import jp.sf.fess.crud.action.admin.BsFailureUrlAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.helper.SystemHelper; - +import org.codelibs.fess.crud.action.admin.BsFailureUrlAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.helper.SystemHelper; import org.seasar.struts.annotation.Execute; public class FailureUrlAction extends BsFailureUrlAction { diff --git a/src/main/java/jp/sf/fess/action/admin/FavoriteLogAction.java b/src/main/java/org/codelibs/fess/action/admin/FavoriteLogAction.java similarity index 93% rename from src/main/java/jp/sf/fess/action/admin/FavoriteLogAction.java rename to src/main/java/org/codelibs/fess/action/admin/FavoriteLogAction.java index 51f9fd240..095eb6436 100644 --- a/src/main/java/jp/sf/fess/action/admin/FavoriteLogAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/FavoriteLogAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.BufferedWriter; import java.io.OutputStreamWriter; @@ -24,15 +24,14 @@ import java.util.Locale; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.action.admin.BsFavoriteLogAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.helper.SystemHelper; - import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.action.admin.BsFavoriteLogAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.helper.SystemHelper; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; import org.seasar.struts.util.RequestUtil; diff --git a/src/main/java/jp/sf/fess/action/admin/FileAuthenticationAction.java b/src/main/java/org/codelibs/fess/action/admin/FileAuthenticationAction.java similarity index 87% rename from src/main/java/jp/sf/fess/action/admin/FileAuthenticationAction.java rename to src/main/java/org/codelibs/fess/action/admin/FileAuthenticationAction.java index 741a9f2c7..9ebb5140a 100644 --- a/src/main/java/jp/sf/fess/action/admin/FileAuthenticationAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/FileAuthenticationAction.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -24,20 +24,19 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsFileAuthenticationAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.FileAuthentication; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.service.FileCrawlingConfigService; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsFileAuthenticationAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.FileAuthentication; +import org.codelibs.fess.db.exentity.FileCrawlingConfig; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.service.FileCrawlingConfigService; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; import org.seasar.struts.exception.ActionMessagesException; @@ -85,7 +84,7 @@ public class FileAuthenticationAction extends BsFileAuthenticationAction { protected FileAuthentication createFileAuthentication() { FileAuthentication fileAuthentication; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (fileAuthenticationForm.crudMode == CommonConstants.EDIT_MODE) { fileAuthentication = fileAuthenticationService .getFileAuthentication(createKeyMap()); @@ -98,10 +97,10 @@ public class FileAuthenticationAction extends BsFileAuthenticationAction { } else { fileAuthentication = new FileAuthentication(); fileAuthentication.setCreatedBy(username); - fileAuthentication.setCreatedTime(timestamp); + fileAuthentication.setCreatedTime(currentTime); } fileAuthentication.setUpdatedBy(username); - fileAuthentication.setUpdatedTime(timestamp); + fileAuthentication.setUpdatedTime(currentTime); if (StringUtil.isBlank(fileAuthenticationForm.port)) { fileAuthenticationForm.port = "-1"; } @@ -132,9 +131,9 @@ public class FileAuthenticationAction extends BsFileAuthenticationAction { // fileAuthenticationService.delete(fileAuthentication); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); fileAuthentication.setDeletedBy(username); - fileAuthentication.setDeletedTime(timestamp); + fileAuthentication.setDeletedTime(currentTime); fileAuthenticationService.store(fileAuthentication); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/FileCrawlingConfigAction.java b/src/main/java/org/codelibs/fess/action/admin/FileCrawlingConfigAction.java similarity index 84% rename from src/main/java/jp/sf/fess/action/admin/FileCrawlingConfigAction.java rename to src/main/java/org/codelibs/fess/action/admin/FileCrawlingConfigAction.java index 3d7227eff..d4da5154e 100644 --- a/src/main/java/jp/sf/fess/action/admin/FileCrawlingConfigAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/FileCrawlingConfigAction.java @@ -14,28 +14,27 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsFileCrawlingConfigAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.service.FailureUrlService; -import jp.sf.fess.service.LabelTypeService; -import jp.sf.fess.service.RoleTypeService; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsFileCrawlingConfigAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.FileCrawlingConfig; +import org.codelibs.fess.db.exentity.LabelType; +import org.codelibs.fess.db.exentity.RoleType; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.service.FailureUrlService; +import org.codelibs.fess.service.LabelTypeService; +import org.codelibs.fess.service.RoleTypeService; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; import org.seasar.struts.exception.ActionMessagesException; @@ -90,7 +89,7 @@ public class FileCrawlingConfigAction extends BsFileCrawlingConfigAction { protected FileCrawlingConfig createFileCrawlingConfig() { FileCrawlingConfig fileCrawlingConfig; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (fileCrawlingConfigForm.crudMode == CommonConstants.EDIT_MODE) { fileCrawlingConfig = fileCrawlingConfigService .getFileCrawlingConfig(createKeyMap()); @@ -103,10 +102,10 @@ public class FileCrawlingConfigAction extends BsFileCrawlingConfigAction { } else { fileCrawlingConfig = new FileCrawlingConfig(); fileCrawlingConfig.setCreatedBy(username); - fileCrawlingConfig.setCreatedTime(timestamp); + fileCrawlingConfig.setCreatedTime(currentTime); } fileCrawlingConfig.setUpdatedBy(username); - fileCrawlingConfig.setUpdatedTime(timestamp); + fileCrawlingConfig.setUpdatedTime(currentTime); FessBeans.copy(fileCrawlingConfigForm, fileCrawlingConfig) .excludesCommonColumns().execute(); @@ -137,9 +136,9 @@ public class FileCrawlingConfigAction extends BsFileCrawlingConfigAction { //fileCrawlingConfigService.delete(fileCrawlingConfig); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); fileCrawlingConfig.setDeletedBy(username); - fileCrawlingConfig.setDeletedTime(timestamp); + fileCrawlingConfig.setDeletedTime(currentTime); fileCrawlingConfigService.store(fileCrawlingConfig); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/IndexAction.java b/src/main/java/org/codelibs/fess/action/admin/IndexAction.java similarity index 94% rename from src/main/java/jp/sf/fess/action/admin/IndexAction.java rename to src/main/java/org/codelibs/fess/action/admin/IndexAction.java index 092749e60..2cecb47b7 100644 --- a/src/main/java/jp/sf/fess/action/admin/IndexAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/IndexAction.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; -import jp.sf.fess.helper.SystemHelper; - +import org.codelibs.fess.helper.SystemHelper; import org.codelibs.sastruts.core.util.ActivityUtil; import org.seasar.struts.annotation.Execute; import org.seasar.struts.util.RequestUtil; diff --git a/src/main/java/jp/sf/fess/action/admin/JobLogAction.java b/src/main/java/org/codelibs/fess/action/admin/JobLogAction.java similarity index 86% rename from src/main/java/jp/sf/fess/action/admin/JobLogAction.java rename to src/main/java/org/codelibs/fess/action/admin/JobLogAction.java index 802a50a6e..fb17183f1 100644 --- a/src/main/java/jp/sf/fess/action/admin/JobLogAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/JobLogAction.java @@ -14,18 +14,17 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.util.ArrayList; import java.util.List; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.action.admin.BsJobLogAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.helper.SystemHelper; - +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.action.admin.BsJobLogAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.helper.SystemHelper; import org.seasar.struts.annotation.Execute; public class JobLogAction extends BsJobLogAction { diff --git a/src/main/java/jp/sf/fess/action/admin/KeyMatchAction.java b/src/main/java/org/codelibs/fess/action/admin/KeyMatchAction.java similarity index 86% rename from src/main/java/jp/sf/fess/action/admin/KeyMatchAction.java rename to src/main/java/org/codelibs/fess/action/admin/KeyMatchAction.java index 348a96836..1e0dd6607 100644 --- a/src/main/java/jp/sf/fess/action/admin/KeyMatchAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/KeyMatchAction.java @@ -14,23 +14,22 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsKeyMatchAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.KeyMatch; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.util.ComponentUtil; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsKeyMatchAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.KeyMatch; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.util.ComponentUtil; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; @@ -68,7 +67,7 @@ public class KeyMatchAction extends BsKeyMatchAction { protected KeyMatch createKeyMatch() { KeyMatch keyMatch; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (keyMatchForm.crudMode == CommonConstants.EDIT_MODE) { keyMatch = keyMatchService.getKeyMatch(createKeyMap()); if (keyMatch == null) { @@ -80,10 +79,10 @@ public class KeyMatchAction extends BsKeyMatchAction { } else { keyMatch = new KeyMatch(); keyMatch.setCreatedBy(username); - keyMatch.setCreatedTime(timestamp); + keyMatch.setCreatedTime(currentTime); } keyMatch.setUpdatedBy(username); - keyMatch.setUpdatedTime(timestamp); + keyMatch.setUpdatedTime(currentTime); FessBeans.copy(keyMatchForm, keyMatch).excludesCommonColumns() .execute(); @@ -129,9 +128,9 @@ public class KeyMatchAction extends BsKeyMatchAction { // keyMatchService.delete(keyMatch); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); keyMatch.setDeletedBy(username); - keyMatch.setDeletedTime(timestamp); + keyMatch.setDeletedTime(currentTime); keyMatchService.store(keyMatch); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/LabelTypeAction.java b/src/main/java/org/codelibs/fess/action/admin/LabelTypeAction.java similarity index 84% rename from src/main/java/jp/sf/fess/action/admin/LabelTypeAction.java rename to src/main/java/org/codelibs/fess/action/admin/LabelTypeAction.java index 025a83ccf..3f95b2d08 100644 --- a/src/main/java/jp/sf/fess/action/admin/LabelTypeAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/LabelTypeAction.java @@ -14,25 +14,24 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsLabelTypeAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.service.RoleTypeService; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsLabelTypeAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.LabelType; +import org.codelibs.fess.db.exentity.RoleType; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.service.RoleTypeService; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; import org.seasar.struts.exception.ActionMessagesException; @@ -72,7 +71,7 @@ public class LabelTypeAction extends BsLabelTypeAction { protected LabelType createLabelType() { LabelType labelType; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (labelTypeForm.crudMode == CommonConstants.EDIT_MODE) { labelType = labelTypeService.getLabelType(createKeyMap()); if (labelType == null) { @@ -84,10 +83,10 @@ public class LabelTypeAction extends BsLabelTypeAction { } else { labelType = new LabelType(); labelType.setCreatedBy(username); - labelType.setCreatedTime(timestamp); + labelType.setCreatedTime(currentTime); } labelType.setUpdatedBy(username); - labelType.setUpdatedTime(timestamp); + labelType.setUpdatedTime(currentTime); FessBeans.copy(labelTypeForm, labelType).excludesCommonColumns() .execute(); @@ -115,9 +114,9 @@ public class LabelTypeAction extends BsLabelTypeAction { // labelTypeService.delete(labelType); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); labelType.setDeletedBy(username); - labelType.setDeletedTime(timestamp); + labelType.setDeletedTime(currentTime); labelTypeService.store(labelType); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/LogAction.java b/src/main/java/org/codelibs/fess/action/admin/LogAction.java similarity index 96% rename from src/main/java/jp/sf/fess/action/admin/LogAction.java rename to src/main/java/org/codelibs/fess/action/admin/LogAction.java index e9308876a..15fa6441e 100644 --- a/src/main/java/jp/sf/fess/action/admin/LogAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/LogAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.File; import java.io.FileInputStream; @@ -33,13 +33,12 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.form.admin.LogForm; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.util.ComponentUtil; - import org.apache.commons.codec.binary.Base64; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.form.admin.LogForm; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.ActionForm; import org.seasar.struts.annotation.Execute; diff --git a/src/main/java/jp/sf/fess/action/admin/OverlappingHostAction.java b/src/main/java/org/codelibs/fess/action/admin/OverlappingHostAction.java similarity index 86% rename from src/main/java/jp/sf/fess/action/admin/OverlappingHostAction.java rename to src/main/java/org/codelibs/fess/action/admin/OverlappingHostAction.java index 72377f8ac..89ee9b510 100644 --- a/src/main/java/jp/sf/fess/action/admin/OverlappingHostAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/OverlappingHostAction.java @@ -14,22 +14,21 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsOverlappingHostAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.OverlappingHost; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsOverlappingHostAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.OverlappingHost; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; import org.seasar.struts.exception.ActionMessagesException; @@ -69,7 +68,7 @@ public class OverlappingHostAction extends BsOverlappingHostAction { protected OverlappingHost createOverlappingHost() { OverlappingHost overlappingHost; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (overlappingHostForm.crudMode == CommonConstants.EDIT_MODE) { overlappingHost = overlappingHostService .getOverlappingHost(createKeyMap()); @@ -82,10 +81,10 @@ public class OverlappingHostAction extends BsOverlappingHostAction { } else { overlappingHost = new OverlappingHost(); overlappingHost.setCreatedBy(username); - overlappingHost.setCreatedTime(timestamp); + overlappingHost.setCreatedTime(currentTime); } overlappingHost.setUpdatedBy(username); - overlappingHost.setUpdatedTime(timestamp); + overlappingHost.setUpdatedTime(currentTime); FessBeans.copy(overlappingHostForm, overlappingHost) .excludesCommonColumns().execute(); @@ -113,9 +112,9 @@ public class OverlappingHostAction extends BsOverlappingHostAction { // overlappingHostService.delete(overlappingHost); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); overlappingHost.setDeletedBy(username); - overlappingHost.setDeletedTime(timestamp); + overlappingHost.setDeletedTime(currentTime); overlappingHostService.store(overlappingHost); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/PathMappingAction.java b/src/main/java/org/codelibs/fess/action/admin/PathMappingAction.java similarity index 85% rename from src/main/java/jp/sf/fess/action/admin/PathMappingAction.java rename to src/main/java/org/codelibs/fess/action/admin/PathMappingAction.java index e285936e7..afa1fd1a1 100644 --- a/src/main/java/jp/sf/fess/action/admin/PathMappingAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/PathMappingAction.java @@ -14,23 +14,22 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsPathMappingAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.PathMapping; -import jp.sf.fess.helper.PathMappingHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsPathMappingAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.PathMapping; +import org.codelibs.fess.helper.PathMappingHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; import org.seasar.struts.exception.ActionMessagesException; @@ -80,7 +79,7 @@ public class PathMappingAction extends BsPathMappingAction { protected PathMapping createPathMapping() { PathMapping pathMapping; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (pathMappingForm.crudMode == CommonConstants.EDIT_MODE) { pathMapping = pathMappingService.getPathMapping(createKeyMap()); if (pathMapping == null) { @@ -92,10 +91,10 @@ public class PathMappingAction extends BsPathMappingAction { } else { pathMapping = new PathMapping(); pathMapping.setCreatedBy(username); - pathMapping.setCreatedTime(timestamp); + pathMapping.setCreatedTime(currentTime); } pathMapping.setUpdatedBy(username); - pathMapping.setUpdatedTime(timestamp); + pathMapping.setUpdatedTime(currentTime); FessBeans.copy(pathMappingForm, pathMapping).excludesCommonColumns() .execute(); @@ -123,9 +122,9 @@ public class PathMappingAction extends BsPathMappingAction { // pathMappingService.delete(pathMapping); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); pathMapping.setDeletedBy(username); - pathMapping.setDeletedTime(timestamp); + pathMapping.setDeletedTime(currentTime); pathMappingService.store(pathMapping); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/RequestHeaderAction.java b/src/main/java/org/codelibs/fess/action/admin/RequestHeaderAction.java similarity index 88% rename from src/main/java/jp/sf/fess/action/admin/RequestHeaderAction.java rename to src/main/java/org/codelibs/fess/action/admin/RequestHeaderAction.java index bed6c2fdb..82daa99f3 100644 --- a/src/main/java/jp/sf/fess/action/admin/RequestHeaderAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/RequestHeaderAction.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -24,18 +24,17 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsRequestHeaderAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.RequestHeader; -import jp.sf.fess.db.exentity.WebCrawlingConfig; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.service.WebCrawlingConfigService; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsRequestHeaderAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.RequestHeader; +import org.codelibs.fess.db.exentity.WebCrawlingConfig; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.service.WebCrawlingConfigService; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; import org.seasar.struts.exception.ActionMessagesException; @@ -79,7 +78,7 @@ public class RequestHeaderAction extends BsRequestHeaderAction { protected RequestHeader createRequestHeader() { RequestHeader requestHeader; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (requestHeaderForm.crudMode == CommonConstants.EDIT_MODE) { requestHeader = requestHeaderService .getRequestHeader(createKeyMap()); @@ -92,10 +91,10 @@ public class RequestHeaderAction extends BsRequestHeaderAction { } else { requestHeader = new RequestHeader(); requestHeader.setCreatedBy(username); - requestHeader.setCreatedTime(timestamp); + requestHeader.setCreatedTime(currentTime); } requestHeader.setUpdatedBy(username); - requestHeader.setUpdatedTime(timestamp); + requestHeader.setUpdatedTime(currentTime); FessBeans.copy(requestHeaderForm, requestHeader) .excludesCommonColumns().execute(); @@ -123,9 +122,9 @@ public class RequestHeaderAction extends BsRequestHeaderAction { // requestHeaderService.delete(requestHeader); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); requestHeader.setDeletedBy(username); - requestHeader.setDeletedTime(timestamp); + requestHeader.setDeletedTime(currentTime); requestHeaderService.store(requestHeader); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/RoleTypeAction.java b/src/main/java/org/codelibs/fess/action/admin/RoleTypeAction.java similarity index 87% rename from src/main/java/jp/sf/fess/action/admin/RoleTypeAction.java rename to src/main/java/org/codelibs/fess/action/admin/RoleTypeAction.java index 953ec4ada..44c7c7eea 100644 --- a/src/main/java/jp/sf/fess/action/admin/RoleTypeAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/RoleTypeAction.java @@ -14,22 +14,21 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsRoleTypeAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsRoleTypeAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.RoleType; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; @@ -82,7 +81,7 @@ public class RoleTypeAction extends BsRoleTypeAction { protected RoleType createRoleType() { RoleType roleType; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (roleTypeForm.crudMode == CommonConstants.EDIT_MODE) { roleType = roleTypeService.getRoleType(createKeyMap()); if (roleType == null) { @@ -94,10 +93,10 @@ public class RoleTypeAction extends BsRoleTypeAction { } else { roleType = new RoleType(); roleType.setCreatedBy(username); - roleType.setCreatedTime(timestamp); + roleType.setCreatedTime(currentTime); } roleType.setUpdatedBy(username); - roleType.setUpdatedTime(timestamp); + roleType.setUpdatedTime(currentTime); roleTypeForm.value = roleTypeForm.value.trim(); FessBeans.copy(roleTypeForm, roleType).excludesCommonColumns() .execute(); @@ -127,9 +126,9 @@ public class RoleTypeAction extends BsRoleTypeAction { // roleTypeService.delete(roleType); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); roleType.setDeletedBy(username); - roleType.setDeletedTime(timestamp); + roleType.setDeletedTime(currentTime); roleTypeService.store(roleType); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/ScheduledJobAction.java b/src/main/java/org/codelibs/fess/action/admin/ScheduledJobAction.java similarity index 87% rename from src/main/java/jp/sf/fess/action/admin/ScheduledJobAction.java rename to src/main/java/org/codelibs/fess/action/admin/ScheduledJobAction.java index b381e240b..ec2f46bc3 100644 --- a/src/main/java/jp/sf/fess/action/admin/ScheduledJobAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/ScheduledJobAction.java @@ -14,28 +14,27 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsScheduledJobAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.db.exentity.ScheduledJob; -import jp.sf.fess.helper.JobHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.job.JobExecutor; -import jp.sf.fess.service.RoleTypeService; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsScheduledJobAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.RoleType; +import org.codelibs.fess.db.exentity.ScheduledJob; +import org.codelibs.fess.helper.JobHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.job.JobExecutor; +import org.codelibs.fess.service.RoleTypeService; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; import org.seasar.struts.exception.ActionMessagesException; @@ -82,7 +81,7 @@ public class ScheduledJobAction extends BsScheduledJobAction { protected ScheduledJob createScheduledJob() { ScheduledJob scheduledJob; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (scheduledJobForm.crudMode == CommonConstants.EDIT_MODE) { scheduledJob = scheduledJobService.getScheduledJob(createKeyMap()); if (scheduledJob == null) { @@ -94,10 +93,10 @@ public class ScheduledJobAction extends BsScheduledJobAction { } else { scheduledJob = new ScheduledJob(); scheduledJob.setCreatedBy(username); - scheduledJob.setCreatedTime(timestamp); + scheduledJob.setCreatedTime(currentTime); } scheduledJob.setUpdatedBy(username); - scheduledJob.setUpdatedTime(timestamp); + scheduledJob.setUpdatedTime(currentTime); FessBeans.copy(scheduledJobForm, scheduledJob).excludesCommonColumns() .execute(); scheduledJob.setJobLogging(Constants.ON @@ -126,9 +125,9 @@ public class ScheduledJobAction extends BsScheduledJobAction { final ScheduledJob scheduledJob = getScheduledJob(); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); scheduledJob.setDeletedBy(username); - scheduledJob.setDeletedTime(timestamp); + scheduledJob.setDeletedTime(currentTime); scheduledJobService.store(scheduledJob); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/SearchListAction.java b/src/main/java/org/codelibs/fess/action/admin/SearchListAction.java similarity index 95% rename from src/main/java/jp/sf/fess/action/admin/SearchListAction.java rename to src/main/java/org/codelibs/fess/action/admin/SearchListAction.java index 514b3df97..a91a7e860 100644 --- a/src/main/java/jp/sf/fess/action/admin/SearchListAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/SearchListAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.Serializable; import java.text.NumberFormat; @@ -24,19 +24,18 @@ import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; -import jp.sf.fess.InvalidQueryException; -import jp.sf.fess.ResultOffsetExceededException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.form.admin.SearchListForm; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.JobHelper; -import jp.sf.fess.helper.QueryHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.service.SearchService; -import jp.sf.fess.util.QueryResponseList; - import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.InvalidQueryException; +import org.codelibs.fess.ResultOffsetExceededException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.form.admin.SearchListForm; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.JobHelper; +import org.codelibs.fess.helper.QueryHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.service.SearchService; +import org.codelibs.fess.util.QueryResponseList; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.codelibs.solr.lib.SolrGroup; diff --git a/src/main/java/jp/sf/fess/action/admin/SearchLogAction.java b/src/main/java/org/codelibs/fess/action/admin/SearchLogAction.java similarity index 93% rename from src/main/java/jp/sf/fess/action/admin/SearchLogAction.java rename to src/main/java/org/codelibs/fess/action/admin/SearchLogAction.java index bf3132bf8..dcbe05153 100644 --- a/src/main/java/jp/sf/fess/action/admin/SearchLogAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/SearchLogAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.BufferedWriter; import java.io.OutputStreamWriter; @@ -25,16 +25,15 @@ import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.action.admin.BsSearchLogAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.helper.SystemHelper; - import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.action.admin.BsSearchLogAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.helper.SystemHelper; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.framework.beans.util.Beans; import org.seasar.struts.annotation.Execute; diff --git a/src/main/java/jp/sf/fess/action/admin/StatsAction.java b/src/main/java/org/codelibs/fess/action/admin/StatsAction.java similarity index 90% rename from src/main/java/jp/sf/fess/action/admin/StatsAction.java rename to src/main/java/org/codelibs/fess/action/admin/StatsAction.java index 75e0fd522..dcabc990d 100644 --- a/src/main/java/jp/sf/fess/action/admin/StatsAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/StatsAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.Serializable; import java.util.List; @@ -22,16 +22,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.form.admin.StatsForm; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.pager.StatsPager; -import jp.sf.fess.service.SearchFieldLogService; -import jp.sf.fess.service.StatsService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.form.admin.StatsForm; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.pager.StatsPager; +import org.codelibs.fess.service.SearchFieldLogService; +import org.codelibs.fess.service.StatsService; import org.seasar.framework.beans.util.Beans; import org.seasar.struts.annotation.ActionForm; import org.seasar.struts.annotation.Execute; diff --git a/src/main/java/jp/sf/fess/action/admin/SuggestBadWordAction.java b/src/main/java/org/codelibs/fess/action/admin/SuggestBadWordAction.java similarity index 93% rename from src/main/java/jp/sf/fess/action/admin/SuggestBadWordAction.java rename to src/main/java/org/codelibs/fess/action/admin/SuggestBadWordAction.java index a2e64fd3b..6924fc123 100644 --- a/src/main/java/jp/sf/fess/action/admin/SuggestBadWordAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/SuggestBadWordAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.BufferedInputStream; import java.io.BufferedReader; @@ -26,26 +26,25 @@ import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.Reader; import java.io.Writer; -import java.sql.Timestamp; +import java.time.LocalDateTime; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsSuggestBadWordAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.SuggestBadWord; -import jp.sf.fess.helper.SuggestHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.util.DynamicProperties; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsSuggestBadWordAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.SuggestBadWord; +import org.codelibs.fess.helper.SuggestHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.util.FessBeans; import org.codelibs.robot.util.StreamUtil; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; @@ -94,7 +93,7 @@ public class SuggestBadWordAction extends BsSuggestBadWordAction { protected SuggestBadWord createSuggestBadWord() { SuggestBadWord suggestBadWord; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (suggestBadWordForm.crudMode == CommonConstants.EDIT_MODE) { suggestBadWord = suggestBadWordService .getSuggestBadWord(createKeyMap()); @@ -107,10 +106,10 @@ public class SuggestBadWordAction extends BsSuggestBadWordAction { } else { suggestBadWord = new SuggestBadWord(); suggestBadWord.setCreatedBy(username); - suggestBadWord.setCreatedTime(timestamp); + suggestBadWord.setCreatedTime(currentTime); } suggestBadWord.setUpdatedBy(username); - suggestBadWord.setUpdatedTime(timestamp); + suggestBadWord.setUpdatedTime(currentTime); FessBeans.copy(suggestBadWordForm, suggestBadWord) .excludesCommonColumns().execute(); @@ -138,9 +137,9 @@ public class SuggestBadWordAction extends BsSuggestBadWordAction { // suggestBadWordService.delete(suggestBadWord); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); suggestBadWord.setDeletedBy(username); - suggestBadWord.setDeletedTime(timestamp); + suggestBadWord.setDeletedTime(currentTime); suggestBadWordService.store(suggestBadWord); suggestHelper.deleteAllBadWord(); suggestHelper.updateSolrBadwordFile(); diff --git a/src/main/java/jp/sf/fess/action/admin/SuggestElevateWordAction.java b/src/main/java/org/codelibs/fess/action/admin/SuggestElevateWordAction.java similarity index 93% rename from src/main/java/jp/sf/fess/action/admin/SuggestElevateWordAction.java rename to src/main/java/org/codelibs/fess/action/admin/SuggestElevateWordAction.java index 68b374c88..a5ff1aa19 100644 --- a/src/main/java/jp/sf/fess/action/admin/SuggestElevateWordAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/SuggestElevateWordAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.BufferedInputStream; import java.io.BufferedReader; @@ -26,26 +26,25 @@ import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.Reader; import java.io.Writer; -import java.sql.Timestamp; +import java.time.LocalDateTime; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsSuggestElevateWordAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.SuggestElevateWord; -import jp.sf.fess.helper.SuggestHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.util.DynamicProperties; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsSuggestElevateWordAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.SuggestElevateWord; +import org.codelibs.fess.helper.SuggestHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.util.FessBeans; import org.codelibs.robot.util.StreamUtil; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; @@ -94,7 +93,7 @@ public class SuggestElevateWordAction extends BsSuggestElevateWordAction { protected SuggestElevateWord createSuggestElevateWord() { SuggestElevateWord suggestElevateWord; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (suggestElevateWordForm.crudMode == CommonConstants.EDIT_MODE) { suggestElevateWord = suggestElevateWordService .getSuggestElevateWord(createKeyMap()); @@ -107,10 +106,10 @@ public class SuggestElevateWordAction extends BsSuggestElevateWordAction { } else { suggestElevateWord = new SuggestElevateWord(); suggestElevateWord.setCreatedBy(username); - suggestElevateWord.setCreatedTime(timestamp); + suggestElevateWord.setCreatedTime(currentTime); } suggestElevateWord.setUpdatedBy(username); - suggestElevateWord.setUpdatedTime(timestamp); + suggestElevateWord.setUpdatedTime(currentTime); FessBeans.copy(suggestElevateWordForm, suggestElevateWord) .excludesCommonColumns().execute(); @@ -186,9 +185,9 @@ public class SuggestElevateWordAction extends BsSuggestElevateWordAction { // suggestElevateWordService.delete(suggestElevateWord); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); suggestElevateWord.setDeletedBy(username); - suggestElevateWord.setDeletedTime(timestamp); + suggestElevateWord.setDeletedTime(currentTime); suggestElevateWordService.store(suggestElevateWord); suggestHelper.storeAllElevateWords(); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/SystemAction.java b/src/main/java/org/codelibs/fess/action/admin/SystemAction.java similarity index 96% rename from src/main/java/jp/sf/fess/action/admin/SystemAction.java rename to src/main/java/org/codelibs/fess/action/admin/SystemAction.java index d27d2b646..93431fb75 100644 --- a/src/main/java/jp/sf/fess/action/admin/SystemAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/SystemAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.Serializable; import java.util.ArrayList; @@ -27,18 +27,17 @@ import java.util.Set; import javax.annotation.Resource; import javax.servlet.http.HttpSession; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.ScheduledJob; -import jp.sf.fess.form.admin.SystemForm; -import jp.sf.fess.helper.JobHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.helper.WebManagementHelper; -import jp.sf.fess.service.ScheduledJobService; -import jp.sf.fess.util.ComponentUtil; - import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.ScheduledJob; +import org.codelibs.fess.form.admin.SystemForm; +import org.codelibs.fess.helper.JobHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.helper.WebManagementHelper; +import org.codelibs.fess.service.ScheduledJobService; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.codelibs.solr.lib.SolrGroup; diff --git a/src/main/java/jp/sf/fess/action/admin/SystemInfoAction.java b/src/main/java/org/codelibs/fess/action/admin/SystemInfoAction.java similarity index 96% rename from src/main/java/jp/sf/fess/action/admin/SystemInfoAction.java rename to src/main/java/org/codelibs/fess/action/admin/SystemInfoAction.java index 008eb166b..4c628b5b5 100644 --- a/src/main/java/jp/sf/fess/action/admin/SystemInfoAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/SystemInfoAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.Serializable; import java.util.ArrayList; @@ -24,12 +24,11 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.form.admin.SystemInfoForm; -import jp.sf.fess.helper.SystemHelper; - import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.form.admin.SystemInfoForm; +import org.codelibs.fess.helper.SystemHelper; import org.seasar.struts.annotation.ActionForm; import org.seasar.struts.annotation.Execute; diff --git a/src/main/java/jp/sf/fess/action/admin/UserInfoAction.java b/src/main/java/org/codelibs/fess/action/admin/UserInfoAction.java similarity index 86% rename from src/main/java/jp/sf/fess/action/admin/UserInfoAction.java rename to src/main/java/org/codelibs/fess/action/admin/UserInfoAction.java index 1d69ecf7f..cdaab1bac 100644 --- a/src/main/java/jp/sf/fess/action/admin/UserInfoAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/UserInfoAction.java @@ -14,14 +14,13 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import javax.annotation.Resource; -import jp.sf.fess.crud.action.admin.BsUserInfoAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.helper.SystemHelper; - +import org.codelibs.fess.crud.action.admin.BsUserInfoAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.helper.SystemHelper; import org.seasar.struts.annotation.Execute; public class UserInfoAction extends BsUserInfoAction { diff --git a/src/main/java/jp/sf/fess/action/admin/WebAuthenticationAction.java b/src/main/java/org/codelibs/fess/action/admin/WebAuthenticationAction.java similarity index 88% rename from src/main/java/jp/sf/fess/action/admin/WebAuthenticationAction.java rename to src/main/java/org/codelibs/fess/action/admin/WebAuthenticationAction.java index a8c4e68aa..8756abad9 100644 --- a/src/main/java/jp/sf/fess/action/admin/WebAuthenticationAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/WebAuthenticationAction.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -24,20 +24,19 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsWebAuthenticationAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.WebAuthentication; -import jp.sf.fess.db.exentity.WebCrawlingConfig; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.service.WebCrawlingConfigService; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsWebAuthenticationAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.WebAuthentication; +import org.codelibs.fess.db.exentity.WebCrawlingConfig; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.service.WebCrawlingConfigService; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; @@ -86,7 +85,7 @@ public class WebAuthenticationAction extends BsWebAuthenticationAction { protected WebAuthentication createWebAuthentication() { WebAuthentication webAuthentication; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (webAuthenticationForm.crudMode == CommonConstants.EDIT_MODE) { webAuthentication = webAuthenticationService .getWebAuthentication(createKeyMap()); @@ -99,10 +98,10 @@ public class WebAuthenticationAction extends BsWebAuthenticationAction { } else { webAuthentication = new WebAuthentication(); webAuthentication.setCreatedBy(username); - webAuthentication.setCreatedTime(timestamp); + webAuthentication.setCreatedTime(currentTime); } webAuthentication.setUpdatedBy(username); - webAuthentication.setUpdatedTime(timestamp); + webAuthentication.setUpdatedTime(currentTime); if (StringUtil.isBlank(webAuthenticationForm.port)) { webAuthenticationForm.port = "-1"; } @@ -134,9 +133,9 @@ public class WebAuthenticationAction extends BsWebAuthenticationAction { // webAuthenticationService.delete(webAuthentication); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); webAuthentication.setDeletedBy(username); - webAuthentication.setDeletedTime(timestamp); + webAuthentication.setDeletedTime(currentTime); webAuthenticationService.store(webAuthentication); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/WebCrawlingConfigAction.java b/src/main/java/org/codelibs/fess/action/admin/WebCrawlingConfigAction.java similarity index 83% rename from src/main/java/jp/sf/fess/action/admin/WebCrawlingConfigAction.java rename to src/main/java/org/codelibs/fess/action/admin/WebCrawlingConfigAction.java index eedbdf9c5..51259a587 100644 --- a/src/main/java/jp/sf/fess/action/admin/WebCrawlingConfigAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/WebCrawlingConfigAction.java @@ -14,29 +14,28 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.action.admin.BsWebCrawlingConfigAction; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.CrawlingConfig; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.db.exentity.WebCrawlingConfig; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.service.FailureUrlService; -import jp.sf.fess.service.LabelTypeService; -import jp.sf.fess.service.RoleTypeService; -import jp.sf.fess.util.FessBeans; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.action.admin.BsWebCrawlingConfigAction; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.CrawlingConfig; +import org.codelibs.fess.db.exentity.LabelType; +import org.codelibs.fess.db.exentity.RoleType; +import org.codelibs.fess.db.exentity.WebCrawlingConfig; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.service.FailureUrlService; +import org.codelibs.fess.service.LabelTypeService; +import org.codelibs.fess.service.RoleTypeService; +import org.codelibs.fess.util.FessBeans; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.struts.annotation.Execute; import org.seasar.struts.exception.ActionMessagesException; @@ -92,7 +91,7 @@ public class WebCrawlingConfigAction extends BsWebCrawlingConfigAction { protected WebCrawlingConfig createWebCrawlingConfig() { WebCrawlingConfig webCrawlingConfig; final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); if (webCrawlingConfigForm.crudMode == CommonConstants.EDIT_MODE) { webCrawlingConfig = webCrawlingConfigService .getWebCrawlingConfig(createKeyMap()); @@ -105,10 +104,10 @@ public class WebCrawlingConfigAction extends BsWebCrawlingConfigAction { } else { webCrawlingConfig = new WebCrawlingConfig(); webCrawlingConfig.setCreatedBy(username); - webCrawlingConfig.setCreatedTime(timestamp); + webCrawlingConfig.setCreatedTime(currentTime); } webCrawlingConfig.setUpdatedBy(username); - webCrawlingConfig.setUpdatedTime(timestamp); + webCrawlingConfig.setUpdatedTime(currentTime); FessBeans.copy(webCrawlingConfigForm, webCrawlingConfig) .excludesCommonColumns().execute(); @@ -138,9 +137,9 @@ public class WebCrawlingConfigAction extends BsWebCrawlingConfigAction { // webCrawlingConfigService.delete(webCrawlingConfig); final String username = systemHelper.getUsername(); - final Timestamp timestamp = systemHelper.getCurrentTimestamp(); + final LocalDateTime currentTime = systemHelper.getCurrentTime(); webCrawlingConfig.setDeletedBy(username); - webCrawlingConfig.setDeletedTime(timestamp); + webCrawlingConfig.setDeletedTime(currentTime); webCrawlingConfigService.store(webCrawlingConfig); SAStrutsUtil.addSessionMessage("success.crud_delete_crud_table"); diff --git a/src/main/java/jp/sf/fess/action/admin/WizardAction.java b/src/main/java/org/codelibs/fess/action/admin/WizardAction.java similarity index 93% rename from src/main/java/jp/sf/fess/action/admin/WizardAction.java rename to src/main/java/org/codelibs/fess/action/admin/WizardAction.java index 4a667f07b..80bac1371 100644 --- a/src/main/java/jp/sf/fess/action/admin/WizardAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/WizardAction.java @@ -14,34 +14,33 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin; +package org.codelibs.fess.action.admin; import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.math.BigDecimal; import java.net.URLEncoder; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.db.exentity.ScheduledJob; -import jp.sf.fess.db.exentity.WebCrawlingConfig; -import jp.sf.fess.form.admin.WizardForm; -import jp.sf.fess.helper.JobHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.job.TriggeredJob; -import jp.sf.fess.service.FileCrawlingConfigService; -import jp.sf.fess.service.ScheduledJobService; -import jp.sf.fess.service.WebCrawlingConfigService; -import jp.sf.fess.util.ComponentUtil; - import org.apache.commons.lang.StringUtils; import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.FileCrawlingConfig; +import org.codelibs.fess.db.exentity.ScheduledJob; +import org.codelibs.fess.db.exentity.WebCrawlingConfig; +import org.codelibs.fess.form.admin.WizardForm; +import org.codelibs.fess.helper.JobHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.job.TriggeredJob; +import org.codelibs.fess.service.FileCrawlingConfigService; +import org.codelibs.fess.service.ScheduledJobService; +import org.codelibs.fess.service.WebCrawlingConfigService; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.util.CharUtil; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; @@ -143,7 +142,7 @@ public class WizardAction implements Serializable { configPath = convertCrawlingPath(buf.toString()); final String username = systemHelper.getUsername(); - final Timestamp now = new Timestamp(System.currentTimeMillis()); + final LocalDateTime now = systemHelper.getCurrentTime(); try { if (isWebCrawlingPath(configPath)) { diff --git a/src/main/java/jp/sf/fess/action/admin/dict/SynonymAction.java b/src/main/java/org/codelibs/fess/action/admin/dict/SynonymAction.java similarity index 96% rename from src/main/java/jp/sf/fess/action/admin/dict/SynonymAction.java rename to src/main/java/org/codelibs/fess/action/admin/dict/SynonymAction.java index 203187b64..59b4f3660 100644 --- a/src/main/java/jp/sf/fess/action/admin/dict/SynonymAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/dict/SynonymAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin.dict; +package org.codelibs.fess.action.admin.dict; import java.io.IOException; import java.io.InputStream; @@ -25,21 +25,20 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.dict.DictionaryExpiredException; -import jp.sf.fess.dict.synonym.SynonymFile; -import jp.sf.fess.dict.synonym.SynonymItem; -import jp.sf.fess.form.admin.dict.SynonymForm; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.pager.SynonymPager; -import jp.sf.fess.service.SynonymService; - import org.apache.commons.lang3.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.dict.DictionaryExpiredException; +import org.codelibs.fess.dict.synonym.SynonymFile; +import org.codelibs.fess.dict.synonym.SynonymItem; +import org.codelibs.fess.form.admin.dict.SynonymForm; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.pager.SynonymPager; +import org.codelibs.fess.service.SynonymService; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.framework.beans.util.Beans; diff --git a/src/main/java/jp/sf/fess/action/admin/dict/UserDictAction.java b/src/main/java/org/codelibs/fess/action/admin/dict/UserDictAction.java similarity index 96% rename from src/main/java/jp/sf/fess/action/admin/dict/UserDictAction.java rename to src/main/java/org/codelibs/fess/action/admin/dict/UserDictAction.java index e1a804f00..defb056f3 100644 --- a/src/main/java/jp/sf/fess/action/admin/dict/UserDictAction.java +++ b/src/main/java/org/codelibs/fess/action/admin/dict/UserDictAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.action.admin.dict; +package org.codelibs.fess.action.admin.dict; import java.io.IOException; import java.io.InputStream; @@ -24,20 +24,19 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.dict.DictionaryExpiredException; -import jp.sf.fess.dict.userdict.UserDictFile; -import jp.sf.fess.dict.userdict.UserDictItem; -import jp.sf.fess.form.admin.dict.UserDictForm; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.pager.UserDictPager; -import jp.sf.fess.service.UserDictService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.dict.DictionaryExpiredException; +import org.codelibs.fess.dict.userdict.UserDictFile; +import org.codelibs.fess.dict.userdict.UserDictItem; +import org.codelibs.fess.form.admin.dict.UserDictForm; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.pager.UserDictPager; +import org.codelibs.fess.service.UserDictService; import org.codelibs.sastruts.core.annotation.Token; import org.codelibs.sastruts.core.exception.SSCActionMessagesException; import org.seasar.framework.beans.util.Beans; diff --git a/src/main/java/jp/sf/fess/annotation/CronExpression.java b/src/main/java/org/codelibs/fess/annotation/CronExpression.java similarity index 97% rename from src/main/java/jp/sf/fess/annotation/CronExpression.java rename to src/main/java/org/codelibs/fess/annotation/CronExpression.java index ab23341d5..876cd2115 100644 --- a/src/main/java/jp/sf/fess/annotation/CronExpression.java +++ b/src/main/java/org/codelibs/fess/annotation/CronExpression.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.annotation; +package org.codelibs.fess.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/src/main/java/jp/sf/fess/annotation/UriType.java b/src/main/java/org/codelibs/fess/annotation/UriType.java similarity index 97% rename from src/main/java/jp/sf/fess/annotation/UriType.java rename to src/main/java/org/codelibs/fess/annotation/UriType.java index 30eff89c8..06b676414 100644 --- a/src/main/java/jp/sf/fess/annotation/UriType.java +++ b/src/main/java/org/codelibs/fess/annotation/UriType.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.annotation; +package org.codelibs.fess.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/src/main/java/jp/sf/fess/api/BaseApiManager.java b/src/main/java/org/codelibs/fess/api/BaseApiManager.java similarity index 98% rename from src/main/java/jp/sf/fess/api/BaseApiManager.java rename to src/main/java/org/codelibs/fess/api/BaseApiManager.java index a445f4b98..aca70b3cf 100644 --- a/src/main/java/jp/sf/fess/api/BaseApiManager.java +++ b/src/main/java/org/codelibs/fess/api/BaseApiManager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.api; +package org.codelibs.fess.api; public class BaseApiManager { protected static final String FAVORITES_API = "/favoritesApi"; diff --git a/src/main/java/jp/sf/fess/api/WebApiManager.java b/src/main/java/org/codelibs/fess/api/WebApiManager.java similarity index 97% rename from src/main/java/jp/sf/fess/api/WebApiManager.java rename to src/main/java/org/codelibs/fess/api/WebApiManager.java index ed7e0027f..fdc4f10af 100644 --- a/src/main/java/jp/sf/fess/api/WebApiManager.java +++ b/src/main/java/org/codelibs/fess/api/WebApiManager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.api; +package org.codelibs.fess.api; import java.io.IOException; diff --git a/src/main/java/jp/sf/fess/api/WebApiManagerFactory.java b/src/main/java/org/codelibs/fess/api/WebApiManagerFactory.java similarity index 97% rename from src/main/java/jp/sf/fess/api/WebApiManagerFactory.java rename to src/main/java/org/codelibs/fess/api/WebApiManagerFactory.java index 1c977d4ee..7e140bd6d 100644 --- a/src/main/java/jp/sf/fess/api/WebApiManagerFactory.java +++ b/src/main/java/org/codelibs/fess/api/WebApiManagerFactory.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.api; +package org.codelibs.fess.api; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/jp/sf/fess/api/WebApiRequest.java b/src/main/java/org/codelibs/fess/api/WebApiRequest.java similarity index 97% rename from src/main/java/jp/sf/fess/api/WebApiRequest.java rename to src/main/java/org/codelibs/fess/api/WebApiRequest.java index 66d68ba45..f3a69b919 100644 --- a/src/main/java/jp/sf/fess/api/WebApiRequest.java +++ b/src/main/java/org/codelibs/fess/api/WebApiRequest.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.api; +package org.codelibs.fess.api; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequestWrapper; diff --git a/src/main/java/jp/sf/fess/api/WebApiResponse.java b/src/main/java/org/codelibs/fess/api/WebApiResponse.java similarity index 97% rename from src/main/java/jp/sf/fess/api/WebApiResponse.java rename to src/main/java/org/codelibs/fess/api/WebApiResponse.java index 5c8548dfa..beca5a4f2 100644 --- a/src/main/java/jp/sf/fess/api/WebApiResponse.java +++ b/src/main/java/org/codelibs/fess/api/WebApiResponse.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.api; +package org.codelibs.fess.api; import java.io.IOException; import java.io.PrintWriter; diff --git a/src/main/java/jp/sf/fess/api/json/JsonApiManager.java b/src/main/java/org/codelibs/fess/api/json/JsonApiManager.java similarity index 97% rename from src/main/java/jp/sf/fess/api/json/JsonApiManager.java rename to src/main/java/org/codelibs/fess/api/json/JsonApiManager.java index 3a71a58a4..381355615 100644 --- a/src/main/java/jp/sf/fess/api/json/JsonApiManager.java +++ b/src/main/java/org/codelibs/fess/api/json/JsonApiManager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.api.json; +package org.codelibs.fess.api.json; import java.io.IOException; import java.io.StringWriter; @@ -28,29 +28,29 @@ import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import jp.sf.fess.Constants; -import jp.sf.fess.WebApiException; -import jp.sf.fess.api.BaseApiManager; -import jp.sf.fess.api.WebApiManager; -import jp.sf.fess.api.WebApiRequest; -import jp.sf.fess.api.WebApiResponse; -import jp.sf.fess.db.allcommon.CDef; -import jp.sf.fess.entity.FieldAnalysisResponse; -import jp.sf.fess.entity.PingResponse; -import jp.sf.fess.entity.PingResponse.Target; -import jp.sf.fess.service.SearchService; import jp.sf.fess.suggest.entity.SpellCheckResponse; import jp.sf.fess.suggest.entity.SuggestResponse; import jp.sf.fess.suggest.entity.SuggestResponse.SuggestResponseList; -import jp.sf.fess.util.ComponentUtil; -import jp.sf.fess.util.FacetResponse; -import jp.sf.fess.util.FacetResponse.Field; -import jp.sf.fess.util.MoreLikeThisResponse; -import jp.sf.fess.util.WebApiUtil; import org.apache.commons.lang.StringEscapeUtils; import org.codelibs.core.CoreLibConstants; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.WebApiException; +import org.codelibs.fess.api.BaseApiManager; +import org.codelibs.fess.api.WebApiManager; +import org.codelibs.fess.api.WebApiRequest; +import org.codelibs.fess.api.WebApiResponse; +import org.codelibs.fess.db.allcommon.CDef; +import org.codelibs.fess.entity.FieldAnalysisResponse; +import org.codelibs.fess.entity.PingResponse; +import org.codelibs.fess.entity.PingResponse.Target; +import org.codelibs.fess.service.SearchService; +import org.codelibs.fess.util.ComponentUtil; +import org.codelibs.fess.util.FacetResponse; +import org.codelibs.fess.util.FacetResponse.Field; +import org.codelibs.fess.util.MoreLikeThisResponse; +import org.codelibs.fess.util.WebApiUtil; import org.seasar.struts.util.RequestUtil; import org.seasar.struts.util.ResponseUtil; import org.slf4j.Logger; diff --git a/src/main/java/jp/sf/fess/api/xml/XmlApiManager.java b/src/main/java/org/codelibs/fess/api/xml/XmlApiManager.java similarity index 97% rename from src/main/java/jp/sf/fess/api/xml/XmlApiManager.java rename to src/main/java/org/codelibs/fess/api/xml/XmlApiManager.java index d4f884fef..4ebd48672 100644 --- a/src/main/java/jp/sf/fess/api/xml/XmlApiManager.java +++ b/src/main/java/org/codelibs/fess/api/xml/XmlApiManager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.api.xml; +package org.codelibs.fess.api.xml; import java.io.IOException; import java.text.SimpleDateFormat; @@ -27,29 +27,29 @@ import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import jp.sf.fess.Constants; -import jp.sf.fess.WebApiException; -import jp.sf.fess.api.BaseApiManager; -import jp.sf.fess.api.WebApiManager; -import jp.sf.fess.api.WebApiRequest; -import jp.sf.fess.api.WebApiResponse; -import jp.sf.fess.db.allcommon.CDef; -import jp.sf.fess.entity.FieldAnalysisResponse; -import jp.sf.fess.entity.PingResponse; -import jp.sf.fess.entity.PingResponse.Target; -import jp.sf.fess.service.SearchService; import jp.sf.fess.suggest.entity.SpellCheckResponse; import jp.sf.fess.suggest.entity.SuggestResponse; import jp.sf.fess.suggest.entity.SuggestResponse.SuggestResponseList; -import jp.sf.fess.util.ComponentUtil; -import jp.sf.fess.util.FacetResponse; -import jp.sf.fess.util.FacetResponse.Field; -import jp.sf.fess.util.MoreLikeThisResponse; -import jp.sf.fess.util.WebApiUtil; import org.apache.commons.lang.StringEscapeUtils; import org.codelibs.core.CoreLibConstants; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.WebApiException; +import org.codelibs.fess.api.BaseApiManager; +import org.codelibs.fess.api.WebApiManager; +import org.codelibs.fess.api.WebApiRequest; +import org.codelibs.fess.api.WebApiResponse; +import org.codelibs.fess.db.allcommon.CDef; +import org.codelibs.fess.entity.FieldAnalysisResponse; +import org.codelibs.fess.entity.PingResponse; +import org.codelibs.fess.entity.PingResponse.Target; +import org.codelibs.fess.service.SearchService; +import org.codelibs.fess.util.ComponentUtil; +import org.codelibs.fess.util.FacetResponse; +import org.codelibs.fess.util.FacetResponse.Field; +import org.codelibs.fess.util.MoreLikeThisResponse; +import org.codelibs.fess.util.WebApiUtil; import org.seasar.struts.util.ResponseUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/crud/CommonConstants.java b/src/main/java/org/codelibs/fess/crud/CommonConstants.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/CommonConstants.java rename to src/main/java/org/codelibs/fess/crud/CommonConstants.java index 660b58f32..66dcfab0a 100644 --- a/src/main/java/jp/sf/fess/crud/CommonConstants.java +++ b/src/main/java/org/codelibs/fess/crud/CommonConstants.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud; +package org.codelibs.fess.crud; public class CommonConstants { public static final int LIST_MODE = 0; diff --git a/src/main/java/jp/sf/fess/crud/CrudMessageException.java b/src/main/java/org/codelibs/fess/crud/CrudMessageException.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/CrudMessageException.java rename to src/main/java/org/codelibs/fess/crud/CrudMessageException.java index d4d784de3..3c4168cc7 100644 --- a/src/main/java/jp/sf/fess/crud/CrudMessageException.java +++ b/src/main/java/org/codelibs/fess/crud/CrudMessageException.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud; +package org.codelibs.fess.crud; /** * @author shinsuke diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsBoostDocumentRuleAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsBoostDocumentRuleAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsBoostDocumentRuleAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsBoostDocumentRuleAction.java index 0818b8fe6..8cf4f9430 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsBoostDocumentRuleAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsBoostDocumentRuleAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.BoostDocumentRule; -import jp.sf.fess.form.admin.BoostDocumentRuleForm; -import jp.sf.fess.pager.BoostDocumentRulePager; -import jp.sf.fess.service.BoostDocumentRuleService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.BoostDocumentRule; +import org.codelibs.fess.form.admin.BoostDocumentRuleForm; +import org.codelibs.fess.pager.BoostDocumentRulePager; +import org.codelibs.fess.service.BoostDocumentRuleService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsCrawlingSessionAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsCrawlingSessionAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsCrawlingSessionAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsCrawlingSessionAction.java index 49f2143fd..41fc5c788 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsCrawlingSessionAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsCrawlingSessionAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.CrawlingSession; -import jp.sf.fess.form.admin.CrawlingSessionForm; -import jp.sf.fess.pager.CrawlingSessionPager; -import jp.sf.fess.service.CrawlingSessionService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.CrawlingSession; +import org.codelibs.fess.form.admin.CrawlingSessionForm; +import org.codelibs.fess.pager.CrawlingSessionPager; +import org.codelibs.fess.service.CrawlingSessionService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsDataCrawlingConfigAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsDataCrawlingConfigAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsDataCrawlingConfigAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsDataCrawlingConfigAction.java index 8a4c246eb..1504fdb56 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsDataCrawlingConfigAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsDataCrawlingConfigAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.form.admin.DataCrawlingConfigForm; -import jp.sf.fess.pager.DataCrawlingConfigPager; -import jp.sf.fess.service.DataCrawlingConfigService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.DataCrawlingConfig; +import org.codelibs.fess.form.admin.DataCrawlingConfigForm; +import org.codelibs.fess.pager.DataCrawlingConfigPager; +import org.codelibs.fess.service.DataCrawlingConfigService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsFailureUrlAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsFailureUrlAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsFailureUrlAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsFailureUrlAction.java index c79b74fd4..c6b04439e 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsFailureUrlAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsFailureUrlAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.FailureUrl; -import jp.sf.fess.form.admin.FailureUrlForm; -import jp.sf.fess.pager.FailureUrlPager; -import jp.sf.fess.service.FailureUrlService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.FailureUrl; +import org.codelibs.fess.form.admin.FailureUrlForm; +import org.codelibs.fess.pager.FailureUrlPager; +import org.codelibs.fess.service.FailureUrlService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsFavoriteLogAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsFavoriteLogAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsFavoriteLogAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsFavoriteLogAction.java index d315d4474..9bc8b3474 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsFavoriteLogAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsFavoriteLogAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.FavoriteLog; -import jp.sf.fess.form.admin.FavoriteLogForm; -import jp.sf.fess.pager.FavoriteLogPager; -import jp.sf.fess.service.FavoriteLogService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.FavoriteLog; +import org.codelibs.fess.form.admin.FavoriteLogForm; +import org.codelibs.fess.pager.FavoriteLogPager; +import org.codelibs.fess.service.FavoriteLogService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsFileAuthenticationAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsFileAuthenticationAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsFileAuthenticationAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsFileAuthenticationAction.java index aa9ff0f51..7f33ebf9b 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsFileAuthenticationAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsFileAuthenticationAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.FileAuthentication; -import jp.sf.fess.form.admin.FileAuthenticationForm; -import jp.sf.fess.pager.FileAuthenticationPager; -import jp.sf.fess.service.FileAuthenticationService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.FileAuthentication; +import org.codelibs.fess.form.admin.FileAuthenticationForm; +import org.codelibs.fess.pager.FileAuthenticationPager; +import org.codelibs.fess.service.FileAuthenticationService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsFileCrawlingConfigAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsFileCrawlingConfigAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsFileCrawlingConfigAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsFileCrawlingConfigAction.java index 70e533736..0dd5fa898 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsFileCrawlingConfigAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsFileCrawlingConfigAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.form.admin.FileCrawlingConfigForm; -import jp.sf.fess.pager.FileCrawlingConfigPager; -import jp.sf.fess.service.FileCrawlingConfigService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.FileCrawlingConfig; +import org.codelibs.fess.form.admin.FileCrawlingConfigForm; +import org.codelibs.fess.pager.FileCrawlingConfigPager; +import org.codelibs.fess.service.FileCrawlingConfigService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsJobLogAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsJobLogAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsJobLogAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsJobLogAction.java index a7952f8c7..2432f3c41 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsJobLogAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsJobLogAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.JobLog; -import jp.sf.fess.form.admin.JobLogForm; -import jp.sf.fess.pager.JobLogPager; -import jp.sf.fess.service.JobLogService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.JobLog; +import org.codelibs.fess.form.admin.JobLogForm; +import org.codelibs.fess.pager.JobLogPager; +import org.codelibs.fess.service.JobLogService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsKeyMatchAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsKeyMatchAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsKeyMatchAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsKeyMatchAction.java index 238ae4cb8..f86e6151e 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsKeyMatchAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsKeyMatchAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.KeyMatch; -import jp.sf.fess.form.admin.KeyMatchForm; -import jp.sf.fess.pager.KeyMatchPager; -import jp.sf.fess.service.KeyMatchService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.KeyMatch; +import org.codelibs.fess.form.admin.KeyMatchForm; +import org.codelibs.fess.pager.KeyMatchPager; +import org.codelibs.fess.service.KeyMatchService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsLabelTypeAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsLabelTypeAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsLabelTypeAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsLabelTypeAction.java index 1ab94a766..b12690684 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsLabelTypeAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsLabelTypeAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.form.admin.LabelTypeForm; -import jp.sf.fess.pager.LabelTypePager; -import jp.sf.fess.service.LabelTypeService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.LabelType; +import org.codelibs.fess.form.admin.LabelTypeForm; +import org.codelibs.fess.pager.LabelTypePager; +import org.codelibs.fess.service.LabelTypeService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsOverlappingHostAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsOverlappingHostAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsOverlappingHostAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsOverlappingHostAction.java index 23d4e8f90..aabf808b4 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsOverlappingHostAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsOverlappingHostAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.OverlappingHost; -import jp.sf.fess.form.admin.OverlappingHostForm; -import jp.sf.fess.pager.OverlappingHostPager; -import jp.sf.fess.service.OverlappingHostService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.OverlappingHost; +import org.codelibs.fess.form.admin.OverlappingHostForm; +import org.codelibs.fess.pager.OverlappingHostPager; +import org.codelibs.fess.service.OverlappingHostService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsPathMappingAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsPathMappingAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsPathMappingAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsPathMappingAction.java index 6dc1baf5d..2599f4543 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsPathMappingAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsPathMappingAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.PathMapping; -import jp.sf.fess.form.admin.PathMappingForm; -import jp.sf.fess.pager.PathMappingPager; -import jp.sf.fess.service.PathMappingService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.PathMapping; +import org.codelibs.fess.form.admin.PathMappingForm; +import org.codelibs.fess.pager.PathMappingPager; +import org.codelibs.fess.service.PathMappingService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsRequestHeaderAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsRequestHeaderAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsRequestHeaderAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsRequestHeaderAction.java index f88cc8067..a5f0a5128 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsRequestHeaderAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsRequestHeaderAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.RequestHeader; -import jp.sf.fess.form.admin.RequestHeaderForm; -import jp.sf.fess.pager.RequestHeaderPager; -import jp.sf.fess.service.RequestHeaderService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.RequestHeader; +import org.codelibs.fess.form.admin.RequestHeaderForm; +import org.codelibs.fess.pager.RequestHeaderPager; +import org.codelibs.fess.service.RequestHeaderService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsRoleTypeAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsRoleTypeAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsRoleTypeAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsRoleTypeAction.java index 2e52464cb..dda93edbc 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsRoleTypeAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsRoleTypeAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.form.admin.RoleTypeForm; -import jp.sf.fess.pager.RoleTypePager; -import jp.sf.fess.service.RoleTypeService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.RoleType; +import org.codelibs.fess.form.admin.RoleTypeForm; +import org.codelibs.fess.pager.RoleTypePager; +import org.codelibs.fess.service.RoleTypeService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsScheduledJobAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsScheduledJobAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsScheduledJobAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsScheduledJobAction.java index 298456db8..d89d914f6 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsScheduledJobAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsScheduledJobAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.ScheduledJob; -import jp.sf.fess.form.admin.ScheduledJobForm; -import jp.sf.fess.pager.ScheduledJobPager; -import jp.sf.fess.service.ScheduledJobService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.ScheduledJob; +import org.codelibs.fess.form.admin.ScheduledJobForm; +import org.codelibs.fess.pager.ScheduledJobPager; +import org.codelibs.fess.service.ScheduledJobService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsSearchLogAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsSearchLogAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsSearchLogAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsSearchLogAction.java index eba4e7108..84cbbd743 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsSearchLogAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsSearchLogAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.form.admin.SearchLogForm; -import jp.sf.fess.pager.SearchLogPager; -import jp.sf.fess.service.SearchLogService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.SearchLog; +import org.codelibs.fess.form.admin.SearchLogForm; +import org.codelibs.fess.pager.SearchLogPager; +import org.codelibs.fess.service.SearchLogService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsSuggestBadWordAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsSuggestBadWordAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsSuggestBadWordAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsSuggestBadWordAction.java index 049444c3b..9e9b8ff9e 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsSuggestBadWordAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsSuggestBadWordAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.SuggestBadWord; -import jp.sf.fess.form.admin.SuggestBadWordForm; -import jp.sf.fess.pager.SuggestBadWordPager; -import jp.sf.fess.service.SuggestBadWordService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.SuggestBadWord; +import org.codelibs.fess.form.admin.SuggestBadWordForm; +import org.codelibs.fess.pager.SuggestBadWordPager; +import org.codelibs.fess.service.SuggestBadWordService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsSuggestElevateWordAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsSuggestElevateWordAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsSuggestElevateWordAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsSuggestElevateWordAction.java index c7b4a385f..8bc7f4f08 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsSuggestElevateWordAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsSuggestElevateWordAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.SuggestElevateWord; -import jp.sf.fess.form.admin.SuggestElevateWordForm; -import jp.sf.fess.pager.SuggestElevateWordPager; -import jp.sf.fess.service.SuggestElevateWordService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.SuggestElevateWord; +import org.codelibs.fess.form.admin.SuggestElevateWordForm; +import org.codelibs.fess.pager.SuggestElevateWordPager; +import org.codelibs.fess.service.SuggestElevateWordService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsUserInfoAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsUserInfoAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsUserInfoAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsUserInfoAction.java index ac09d26a6..df81dbe27 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsUserInfoAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsUserInfoAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,17 +23,16 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.UserInfo; -import jp.sf.fess.form.admin.UserInfoForm; -import jp.sf.fess.pager.UserInfoPager; -import jp.sf.fess.service.UserInfoService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.UserInfo; +import org.codelibs.fess.form.admin.UserInfoForm; +import org.codelibs.fess.pager.UserInfoPager; +import org.codelibs.fess.service.UserInfoService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsWebAuthenticationAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsWebAuthenticationAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsWebAuthenticationAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsWebAuthenticationAction.java index b06bbc999..c78f986aa 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsWebAuthenticationAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsWebAuthenticationAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.WebAuthentication; -import jp.sf.fess.form.admin.WebAuthenticationForm; -import jp.sf.fess.pager.WebAuthenticationPager; -import jp.sf.fess.service.WebAuthenticationService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.WebAuthentication; +import org.codelibs.fess.form.admin.WebAuthenticationForm; +import org.codelibs.fess.pager.WebAuthenticationPager; +import org.codelibs.fess.service.WebAuthenticationService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/action/admin/BsWebCrawlingConfigAction.java b/src/main/java/org/codelibs/fess/crud/action/admin/BsWebCrawlingConfigAction.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/action/admin/BsWebCrawlingConfigAction.java rename to src/main/java/org/codelibs/fess/crud/action/admin/BsWebCrawlingConfigAction.java index b729e1d41..b80bd0c12 100644 --- a/src/main/java/jp/sf/fess/crud/action/admin/BsWebCrawlingConfigAction.java +++ b/src/main/java/org/codelibs/fess/crud/action/admin/BsWebCrawlingConfigAction.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.action.admin; +package org.codelibs.fess.crud.action.admin; import java.io.Serializable; import java.util.HashMap; @@ -23,16 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.crud.util.SAStrutsUtil; -import jp.sf.fess.db.exentity.WebCrawlingConfig; -import jp.sf.fess.form.admin.WebCrawlingConfigForm; -import jp.sf.fess.pager.WebCrawlingConfigPager; -import jp.sf.fess.service.WebCrawlingConfigService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.crud.util.SAStrutsUtil; +import org.codelibs.fess.db.exentity.WebCrawlingConfig; +import org.codelibs.fess.form.admin.WebCrawlingConfigForm; +import org.codelibs.fess.pager.WebCrawlingConfigPager; +import org.codelibs.fess.service.WebCrawlingConfigService; import org.codelibs.sastruts.core.annotation.Token; import org.seasar.framework.beans.util.Beans; import org.seasar.framework.util.StringUtil; diff --git a/src/main/java/jp/sf/fess/crud/creator/PagerCreator.java b/src/main/java/org/codelibs/fess/crud/creator/PagerCreator.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/creator/PagerCreator.java rename to src/main/java/org/codelibs/fess/crud/creator/PagerCreator.java index 11282cc4d..c4fc5e1d8 100644 --- a/src/main/java/jp/sf/fess/crud/creator/PagerCreator.java +++ b/src/main/java/org/codelibs/fess/crud/creator/PagerCreator.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.creator; +package org.codelibs.fess.crud.creator; import org.seasar.framework.container.ComponentCustomizer; import org.seasar.framework.container.assembler.AutoBindingDefFactory; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsBoostDocumentRuleForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsBoostDocumentRuleForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsBoostDocumentRuleForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsBoostDocumentRuleForm.java index 455c9271c..6fd27f4c3 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsBoostDocumentRuleForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsBoostDocumentRuleForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsCrawlingSessionForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsCrawlingSessionForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsCrawlingSessionForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsCrawlingSessionForm.java index f49a22afd..2a35394f4 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsCrawlingSessionForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsCrawlingSessionForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsDataCrawlingConfigForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsDataCrawlingConfigForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsDataCrawlingConfigForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsDataCrawlingConfigForm.java index 088463aec..42f65ce8f 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsDataCrawlingConfigForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsDataCrawlingConfigForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsFailureUrlForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsFailureUrlForm.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/form/admin/BsFailureUrlForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsFailureUrlForm.java index e62c87bdb..5dac88cab 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsFailureUrlForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsFailureUrlForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntegerType; import org.seasar.struts.annotation.LongType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsFavoriteLogForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsFavoriteLogForm.java similarity index 95% rename from src/main/java/jp/sf/fess/crud/form/admin/BsFavoriteLogForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsFavoriteLogForm.java index 6861f0be1..61b7f1ad9 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsFavoriteLogForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsFavoriteLogForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntegerType; import org.seasar.struts.annotation.LongType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsFileAuthenticationForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsFileAuthenticationForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsFileAuthenticationForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsFileAuthenticationForm.java index 3d9b30939..86b43ab9d 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsFileAuthenticationForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsFileAuthenticationForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsFileCrawlingConfigForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsFileCrawlingConfigForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsFileCrawlingConfigForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsFileCrawlingConfigForm.java index 4510c3c94..a4e26d928 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsFileCrawlingConfigForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsFileCrawlingConfigForm.java @@ -14,14 +14,13 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; -import jp.sf.fess.annotation.UriType; - +import org.codelibs.fess.Constants; +import org.codelibs.fess.annotation.UriType; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsJobLogForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsJobLogForm.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/form/admin/BsJobLogForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsJobLogForm.java index d1ebbcf35..13f5d929e 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsJobLogForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsJobLogForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntegerType; import org.seasar.struts.annotation.LongType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsKeyMatchForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsKeyMatchForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsKeyMatchForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsKeyMatchForm.java index 8d9dca618..31bc0c2cb 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsKeyMatchForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsKeyMatchForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsLabelTypeForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsLabelTypeForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsLabelTypeForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsLabelTypeForm.java index ce31c2517..8601710d9 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsLabelTypeForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsLabelTypeForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsOverlappingHostForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsOverlappingHostForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsOverlappingHostForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsOverlappingHostForm.java index d9ec07321..31853f17a 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsOverlappingHostForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsOverlappingHostForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsPathMappingForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsPathMappingForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsPathMappingForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsPathMappingForm.java index 955e3e05a..2e3967f52 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsPathMappingForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsPathMappingForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsRequestHeaderForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsRequestHeaderForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsRequestHeaderForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsRequestHeaderForm.java index 6acf0e53b..e3c736dc3 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsRequestHeaderForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsRequestHeaderForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntegerType; import org.seasar.struts.annotation.LongType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsRoleTypeForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsRoleTypeForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsRoleTypeForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsRoleTypeForm.java index d1a2c30e8..8c945df4b 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsRoleTypeForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsRoleTypeForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsScheduledJobForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsScheduledJobForm.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/form/admin/BsScheduledJobForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsScheduledJobForm.java index da55bbc88..99947f619 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsScheduledJobForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsScheduledJobForm.java @@ -14,14 +14,13 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; -import jp.sf.fess.annotation.CronExpression; - +import org.codelibs.fess.Constants; +import org.codelibs.fess.annotation.CronExpression; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsSearchLogForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsSearchLogForm.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/form/admin/BsSearchLogForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsSearchLogForm.java index 59b2582e1..e285f65e1 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsSearchLogForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsSearchLogForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsSuggestBadWordForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsSuggestBadWordForm.java similarity index 96% rename from src/main/java/jp/sf/fess/crud/form/admin/BsSuggestBadWordForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsSuggestBadWordForm.java index ffc1ac05c..362187386 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsSuggestBadWordForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsSuggestBadWordForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntegerType; import org.seasar.struts.annotation.LongType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsSuggestElevateWordForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsSuggestElevateWordForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsSuggestElevateWordForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsSuggestElevateWordForm.java index 15fefa4f3..60e54d902 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsSuggestElevateWordForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsSuggestElevateWordForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsUserInfoForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsUserInfoForm.java similarity index 95% rename from src/main/java/jp/sf/fess/crud/form/admin/BsUserInfoForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsUserInfoForm.java index ad3be20dd..556f1358c 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsUserInfoForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsUserInfoForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntegerType; import org.seasar.struts.annotation.LongType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsWebAuthenticationForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsWebAuthenticationForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsWebAuthenticationForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsWebAuthenticationForm.java index fa4536cc2..f86cc17f6 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsWebAuthenticationForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsWebAuthenticationForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/form/admin/BsWebCrawlingConfigForm.java b/src/main/java/org/codelibs/fess/crud/form/admin/BsWebCrawlingConfigForm.java similarity index 97% rename from src/main/java/jp/sf/fess/crud/form/admin/BsWebCrawlingConfigForm.java rename to src/main/java/org/codelibs/fess/crud/form/admin/BsWebCrawlingConfigForm.java index e8ac299d7..486a6ee46 100644 --- a/src/main/java/jp/sf/fess/crud/form/admin/BsWebCrawlingConfigForm.java +++ b/src/main/java/org/codelibs/fess/crud/form/admin/BsWebCrawlingConfigForm.java @@ -14,14 +14,13 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.form.admin; +package org.codelibs.fess.crud.form.admin; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; -import jp.sf.fess.annotation.UriType; - +import org.codelibs.fess.Constants; +import org.codelibs.fess.annotation.UriType; import org.seasar.struts.annotation.DateType; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.IntegerType; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsBoostDocumentRulePager.java b/src/main/java/org/codelibs/fess/crud/pager/BsBoostDocumentRulePager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsBoostDocumentRulePager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsBoostDocumentRulePager.java index 8cd2e7678..74c2aefca 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsBoostDocumentRulePager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsBoostDocumentRulePager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsCrawlingSessionPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsCrawlingSessionPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsCrawlingSessionPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsCrawlingSessionPager.java index 4ef91bde3..78fddb266 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsCrawlingSessionPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsCrawlingSessionPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsDataCrawlingConfigPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsDataCrawlingConfigPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsDataCrawlingConfigPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsDataCrawlingConfigPager.java index e9c6c2572..1c6099832 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsDataCrawlingConfigPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsDataCrawlingConfigPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsFailureUrlPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsFailureUrlPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsFailureUrlPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsFailureUrlPager.java index c9da02cf0..92b021c22 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsFailureUrlPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsFailureUrlPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsFavoriteLogPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsFavoriteLogPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsFavoriteLogPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsFavoriteLogPager.java index 8bc66ccc0..381b589a9 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsFavoriteLogPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsFavoriteLogPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsFileAuthenticationPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsFileAuthenticationPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsFileAuthenticationPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsFileAuthenticationPager.java index e64544584..07fc31a1e 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsFileAuthenticationPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsFileAuthenticationPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsFileCrawlingConfigPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsFileCrawlingConfigPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsFileCrawlingConfigPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsFileCrawlingConfigPager.java index fea16f95a..f8f9dd07d 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsFileCrawlingConfigPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsFileCrawlingConfigPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsJobLogPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsJobLogPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsJobLogPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsJobLogPager.java index 6afe96fd4..71d87a9d3 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsJobLogPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsJobLogPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsKeyMatchPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsKeyMatchPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsKeyMatchPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsKeyMatchPager.java index 770697e07..49d8b813b 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsKeyMatchPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsKeyMatchPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsLabelTypePager.java b/src/main/java/org/codelibs/fess/crud/pager/BsLabelTypePager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsLabelTypePager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsLabelTypePager.java index 39e547e2e..825d33133 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsLabelTypePager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsLabelTypePager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsOverlappingHostPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsOverlappingHostPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsOverlappingHostPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsOverlappingHostPager.java index 43d4da214..8915e12a6 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsOverlappingHostPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsOverlappingHostPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsPathMappingPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsPathMappingPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsPathMappingPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsPathMappingPager.java index 76b1fb97f..37f36695a 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsPathMappingPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsPathMappingPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsRequestHeaderPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsRequestHeaderPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsRequestHeaderPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsRequestHeaderPager.java index 7dc6eaeba..da3745bb5 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsRequestHeaderPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsRequestHeaderPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsRoleTypePager.java b/src/main/java/org/codelibs/fess/crud/pager/BsRoleTypePager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsRoleTypePager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsRoleTypePager.java index 483a046c2..5f6fedd77 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsRoleTypePager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsRoleTypePager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsScheduledJobPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsScheduledJobPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsScheduledJobPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsScheduledJobPager.java index 720e85b38..279e89bb5 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsScheduledJobPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsScheduledJobPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsSearchLogPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsSearchLogPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsSearchLogPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsSearchLogPager.java index 43bb32775..2983039da 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsSearchLogPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsSearchLogPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsSuggestBadWordPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsSuggestBadWordPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsSuggestBadWordPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsSuggestBadWordPager.java index 07316be01..b2c7d7903 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsSuggestBadWordPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsSuggestBadWordPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsSuggestElevateWordPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsSuggestElevateWordPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsSuggestElevateWordPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsSuggestElevateWordPager.java index 82f69c46a..932be7cf8 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsSuggestElevateWordPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsSuggestElevateWordPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsUserInfoPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsUserInfoPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsUserInfoPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsUserInfoPager.java index 410339e67..0934a7b6a 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsUserInfoPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsUserInfoPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsWebAuthenticationPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsWebAuthenticationPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsWebAuthenticationPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsWebAuthenticationPager.java index 53bbc7a3a..aadf6a78f 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsWebAuthenticationPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsWebAuthenticationPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/pager/BsWebCrawlingConfigPager.java b/src/main/java/org/codelibs/fess/crud/pager/BsWebCrawlingConfigPager.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/pager/BsWebCrawlingConfigPager.java rename to src/main/java/org/codelibs/fess/crud/pager/BsWebCrawlingConfigPager.java index 2a4c4dcfa..a8c19ee96 100644 --- a/src/main/java/jp/sf/fess/crud/pager/BsWebCrawlingConfigPager.java +++ b/src/main/java/org/codelibs/fess/crud/pager/BsWebCrawlingConfigPager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.pager; +package org.codelibs.fess.crud.pager; import java.io.Serializable; import java.util.List; diff --git a/src/main/java/jp/sf/fess/crud/service/BsBoostDocumentRuleService.java b/src/main/java/org/codelibs/fess/crud/service/BsBoostDocumentRuleService.java similarity index 73% rename from src/main/java/jp/sf/fess/crud/service/BsBoostDocumentRuleService.java rename to src/main/java/org/codelibs/fess/crud/service/BsBoostDocumentRuleService.java index d8d8157c2..c33d92d74 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsBoostDocumentRuleService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsBoostDocumentRuleService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.BoostDocumentRuleCB; -import jp.sf.fess.db.exbhv.BoostDocumentRuleBhv; -import jp.sf.fess.db.exentity.BoostDocumentRule; -import jp.sf.fess.pager.BoostDocumentRulePager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.BoostDocumentRuleCB; +import org.codelibs.fess.db.exbhv.BoostDocumentRuleBhv; +import org.codelibs.fess.db.exentity.BoostDocumentRule; +import org.codelibs.fess.pager.BoostDocumentRulePager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsBoostDocumentRuleService { @@ -43,36 +42,30 @@ public abstract class BsBoostDocumentRuleService { public List<BoostDocumentRule> getBoostDocumentRuleList( final BoostDocumentRulePager boostDocumentRulePager) { - final BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - - cb.fetchFirst(boostDocumentRulePager.getPageSize()); - cb.fetchPage(boostDocumentRulePager.getCurrentPageNumber()); - - setupListCondition(cb, boostDocumentRulePager); - final PagingResultBean<BoostDocumentRule> boostDocumentRuleList = boostDocumentRuleBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(boostDocumentRulePager.getPageSize(), + boostDocumentRulePager.getCurrentPageNumber()); + setupListCondition(cb, boostDocumentRulePager); + }); // update pager Beans.copy(boostDocumentRuleList, boostDocumentRulePager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - boostDocumentRuleList.setPageRangeSize(5); boostDocumentRulePager.setPageNumberList(boostDocumentRuleList - .pageRange().createPageNumberList()); + .pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return boostDocumentRuleList; } public BoostDocumentRule getBoostDocumentRule(final Map<String, String> keys) { - final BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - final BoostDocumentRule boostDocumentRule = boostDocumentRuleBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (boostDocumentRule == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsCrawlingSessionService.java b/src/main/java/org/codelibs/fess/crud/service/BsCrawlingSessionService.java similarity index 73% rename from src/main/java/jp/sf/fess/crud/service/BsCrawlingSessionService.java rename to src/main/java/org/codelibs/fess/crud/service/BsCrawlingSessionService.java index 9dabd4a7a..f3316c21f 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsCrawlingSessionService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsCrawlingSessionService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.CrawlingSessionCB; -import jp.sf.fess.db.exbhv.CrawlingSessionBhv; -import jp.sf.fess.db.exentity.CrawlingSession; -import jp.sf.fess.pager.CrawlingSessionPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.CrawlingSessionCB; +import org.codelibs.fess.db.exbhv.CrawlingSessionBhv; +import org.codelibs.fess.db.exentity.CrawlingSession; +import org.codelibs.fess.pager.CrawlingSessionPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsCrawlingSessionService { @@ -43,36 +42,30 @@ public abstract class BsCrawlingSessionService { public List<CrawlingSession> getCrawlingSessionList( final CrawlingSessionPager crawlingSessionPager) { - final CrawlingSessionCB cb = new CrawlingSessionCB(); - - cb.fetchFirst(crawlingSessionPager.getPageSize()); - cb.fetchPage(crawlingSessionPager.getCurrentPageNumber()); - - setupListCondition(cb, crawlingSessionPager); - final PagingResultBean<CrawlingSession> crawlingSessionList = crawlingSessionBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(crawlingSessionPager.getPageSize(), + crawlingSessionPager.getCurrentPageNumber()); + setupListCondition(cb, crawlingSessionPager); + }); // update pager Beans.copy(crawlingSessionList, crawlingSessionPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - crawlingSessionList.setPageRangeSize(5); - crawlingSessionPager.setPageNumberList(crawlingSessionList.pageRange() - .createPageNumberList()); + crawlingSessionPager.setPageNumberList(crawlingSessionList.pageRange( + op -> { + op.rangeSize(5); + }).createPageNumberList()); return crawlingSessionList; } public CrawlingSession getCrawlingSession(final Map<String, String> keys) { - final CrawlingSessionCB cb = new CrawlingSessionCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - final CrawlingSession crawlingSession = crawlingSessionBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (crawlingSession == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsDataCrawlingConfigService.java b/src/main/java/org/codelibs/fess/crud/service/BsDataCrawlingConfigService.java similarity index 74% rename from src/main/java/jp/sf/fess/crud/service/BsDataCrawlingConfigService.java rename to src/main/java/org/codelibs/fess/crud/service/BsDataCrawlingConfigService.java index c5824da59..5ad6db673 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsDataCrawlingConfigService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsDataCrawlingConfigService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.DataCrawlingConfigCB; -import jp.sf.fess.db.exbhv.DataCrawlingConfigBhv; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.pager.DataCrawlingConfigPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.DataCrawlingConfigCB; +import org.codelibs.fess.db.exbhv.DataCrawlingConfigBhv; +import org.codelibs.fess.db.exentity.DataCrawlingConfig; +import org.codelibs.fess.pager.DataCrawlingConfigPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsDataCrawlingConfigService { @@ -43,37 +42,32 @@ public abstract class BsDataCrawlingConfigService { public List<DataCrawlingConfig> getDataCrawlingConfigList( final DataCrawlingConfigPager dataCrawlingConfigPager) { - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - - cb.fetchFirst(dataCrawlingConfigPager.getPageSize()); - cb.fetchPage(dataCrawlingConfigPager.getCurrentPageNumber()); - - setupListCondition(cb, dataCrawlingConfigPager); - final PagingResultBean<DataCrawlingConfig> dataCrawlingConfigList = dataCrawlingConfigBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(dataCrawlingConfigPager.getPageSize(), + dataCrawlingConfigPager.getCurrentPageNumber()); + + setupListCondition(cb, dataCrawlingConfigPager); + }); // update pager Beans.copy(dataCrawlingConfigList, dataCrawlingConfigPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - dataCrawlingConfigList.setPageRangeSize(5); dataCrawlingConfigPager.setPageNumberList(dataCrawlingConfigList - .pageRange().createPageNumberList()); + .pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return dataCrawlingConfigList; } public DataCrawlingConfig getDataCrawlingConfig( final Map<String, String> keys) { - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - final DataCrawlingConfig dataCrawlingConfig = dataCrawlingConfigBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (dataCrawlingConfig == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsFailureUrlService.java b/src/main/java/org/codelibs/fess/crud/service/BsFailureUrlService.java similarity index 73% rename from src/main/java/jp/sf/fess/crud/service/BsFailureUrlService.java rename to src/main/java/org/codelibs/fess/crud/service/BsFailureUrlService.java index 61e6bd5d4..8b3b383bc 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsFailureUrlService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsFailureUrlService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.FailureUrlCB; -import jp.sf.fess.db.exbhv.FailureUrlBhv; -import jp.sf.fess.db.exentity.FailureUrl; -import jp.sf.fess.pager.FailureUrlPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.FailureUrlCB; +import org.codelibs.fess.db.exbhv.FailureUrlBhv; +import org.codelibs.fess.db.exentity.FailureUrl; +import org.codelibs.fess.pager.FailureUrlPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsFailureUrlService { @@ -43,35 +42,28 @@ public abstract class BsFailureUrlService { public List<FailureUrl> getFailureUrlList( final FailureUrlPager failureUrlPager) { - final FailureUrlCB cb = new FailureUrlCB(); - - cb.fetchFirst(failureUrlPager.getPageSize()); - cb.fetchPage(failureUrlPager.getCurrentPageNumber()); - - setupListCondition(cb, failureUrlPager); - final PagingResultBean<FailureUrl> failureUrlList = failureUrlBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(failureUrlPager.getPageSize(), + failureUrlPager.getCurrentPageNumber()); + setupListCondition(cb, failureUrlPager); + }); // update pager Beans.copy(failureUrlList, failureUrlPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - failureUrlList.setPageRangeSize(5); - failureUrlPager.setPageNumberList(failureUrlList.pageRange() - .createPageNumberList()); + failureUrlPager.setPageNumberList(failureUrlList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return failureUrlList; } public FailureUrl getFailureUrl(final Map<String, String> keys) { - final FailureUrlCB cb = new FailureUrlCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - - final FailureUrl failureUrl = failureUrlBhv.selectEntity(cb); + final FailureUrl failureUrl = failureUrlBhv.selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null); if (failureUrl == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsFavoriteLogService.java b/src/main/java/org/codelibs/fess/crud/service/BsFavoriteLogService.java similarity index 74% rename from src/main/java/jp/sf/fess/crud/service/BsFavoriteLogService.java rename to src/main/java/org/codelibs/fess/crud/service/BsFavoriteLogService.java index cb7d8346e..6e45b3657 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsFavoriteLogService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsFavoriteLogService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.FavoriteLogCB; -import jp.sf.fess.db.exbhv.FavoriteLogBhv; -import jp.sf.fess.db.exentity.FavoriteLog; -import jp.sf.fess.pager.FavoriteLogPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.FavoriteLogCB; +import org.codelibs.fess.db.exbhv.FavoriteLogBhv; +import org.codelibs.fess.db.exentity.FavoriteLog; +import org.codelibs.fess.pager.FavoriteLogPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsFavoriteLogService { @@ -43,35 +42,28 @@ public abstract class BsFavoriteLogService { public List<FavoriteLog> getFavoriteLogList( final FavoriteLogPager favoriteLogPager) { - final FavoriteLogCB cb = new FavoriteLogCB(); - - cb.fetchFirst(favoriteLogPager.getPageSize()); - cb.fetchPage(favoriteLogPager.getCurrentPageNumber()); - - setupListCondition(cb, favoriteLogPager); - final PagingResultBean<FavoriteLog> favoriteLogList = favoriteLogBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(favoriteLogPager.getPageSize(), + favoriteLogPager.getCurrentPageNumber()); + setupListCondition(cb, favoriteLogPager); + }); // update pager Beans.copy(favoriteLogList, favoriteLogPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - favoriteLogList.setPageRangeSize(5); - favoriteLogPager.setPageNumberList(favoriteLogList.pageRange() - .createPageNumberList()); + favoriteLogPager.setPageNumberList(favoriteLogList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return favoriteLogList; } public FavoriteLog getFavoriteLog(final Map<String, String> keys) { - final FavoriteLogCB cb = new FavoriteLogCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - - final FavoriteLog favoriteLog = favoriteLogBhv.selectEntity(cb); + final FavoriteLog favoriteLog = favoriteLogBhv.selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (favoriteLog == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsFileAuthenticationService.java b/src/main/java/org/codelibs/fess/crud/service/BsFileAuthenticationService.java similarity index 74% rename from src/main/java/jp/sf/fess/crud/service/BsFileAuthenticationService.java rename to src/main/java/org/codelibs/fess/crud/service/BsFileAuthenticationService.java index 57f7581fa..acf0ed571 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsFileAuthenticationService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsFileAuthenticationService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.FileAuthenticationCB; -import jp.sf.fess.db.exbhv.FileAuthenticationBhv; -import jp.sf.fess.db.exentity.FileAuthentication; -import jp.sf.fess.pager.FileAuthenticationPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.FileAuthenticationCB; +import org.codelibs.fess.db.exbhv.FileAuthenticationBhv; +import org.codelibs.fess.db.exentity.FileAuthentication; +import org.codelibs.fess.pager.FileAuthenticationPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsFileAuthenticationService { @@ -43,37 +42,31 @@ public abstract class BsFileAuthenticationService { public List<FileAuthentication> getFileAuthenticationList( final FileAuthenticationPager fileAuthenticationPager) { - final FileAuthenticationCB cb = new FileAuthenticationCB(); - - cb.fetchFirst(fileAuthenticationPager.getPageSize()); - cb.fetchPage(fileAuthenticationPager.getCurrentPageNumber()); - - setupListCondition(cb, fileAuthenticationPager); - final PagingResultBean<FileAuthentication> fileAuthenticationList = fileAuthenticationBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(fileAuthenticationPager.getPageSize(), + fileAuthenticationPager.getCurrentPageNumber()); + setupListCondition(cb, fileAuthenticationPager); + }); // update pager Beans.copy(fileAuthenticationList, fileAuthenticationPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - fileAuthenticationList.setPageRangeSize(5); fileAuthenticationPager.setPageNumberList(fileAuthenticationList - .pageRange().createPageNumberList()); + .pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return fileAuthenticationList; } public FileAuthentication getFileAuthentication( final Map<String, String> keys) { - final FileAuthenticationCB cb = new FileAuthenticationCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - final FileAuthentication fileAuthentication = fileAuthenticationBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (fileAuthentication == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsFileCrawlingConfigService.java b/src/main/java/org/codelibs/fess/crud/service/BsFileCrawlingConfigService.java similarity index 74% rename from src/main/java/jp/sf/fess/crud/service/BsFileCrawlingConfigService.java rename to src/main/java/org/codelibs/fess/crud/service/BsFileCrawlingConfigService.java index 4a5d2bb39..71227e2c7 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsFileCrawlingConfigService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsFileCrawlingConfigService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.exbhv.FileCrawlingConfigBhv; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.pager.FileCrawlingConfigPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.FileCrawlingConfigCB; +import org.codelibs.fess.db.exbhv.FileCrawlingConfigBhv; +import org.codelibs.fess.db.exentity.FileCrawlingConfig; +import org.codelibs.fess.pager.FileCrawlingConfigPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsFileCrawlingConfigService { @@ -43,37 +42,31 @@ public abstract class BsFileCrawlingConfigService { public List<FileCrawlingConfig> getFileCrawlingConfigList( final FileCrawlingConfigPager fileCrawlingConfigPager) { - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - - cb.fetchFirst(fileCrawlingConfigPager.getPageSize()); - cb.fetchPage(fileCrawlingConfigPager.getCurrentPageNumber()); - - setupListCondition(cb, fileCrawlingConfigPager); - final PagingResultBean<FileCrawlingConfig> fileCrawlingConfigList = fileCrawlingConfigBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(fileCrawlingConfigPager.getPageSize(), + fileCrawlingConfigPager.getCurrentPageNumber()); + setupListCondition(cb, fileCrawlingConfigPager); + }); // update pager Beans.copy(fileCrawlingConfigList, fileCrawlingConfigPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - fileCrawlingConfigList.setPageRangeSize(5); fileCrawlingConfigPager.setPageNumberList(fileCrawlingConfigList - .pageRange().createPageNumberList()); + .pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return fileCrawlingConfigList; } public FileCrawlingConfig getFileCrawlingConfig( final Map<String, String> keys) { - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - final FileCrawlingConfig fileCrawlingConfig = fileCrawlingConfigBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (fileCrawlingConfig == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsJobLogService.java b/src/main/java/org/codelibs/fess/crud/service/BsJobLogService.java similarity index 68% rename from src/main/java/jp/sf/fess/crud/service/BsJobLogService.java rename to src/main/java/org/codelibs/fess/crud/service/BsJobLogService.java index 24025cc06..35095c33c 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsJobLogService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsJobLogService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.JobLogCB; -import jp.sf.fess.db.exbhv.JobLogBhv; -import jp.sf.fess.db.exentity.JobLog; -import jp.sf.fess.pager.JobLogPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.JobLogCB; +import org.codelibs.fess.db.exbhv.JobLogBhv; +import org.codelibs.fess.db.exentity.JobLog; +import org.codelibs.fess.pager.JobLogPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsJobLogService { @@ -42,34 +41,28 @@ public abstract class BsJobLogService { public List<JobLog> getJobLogList(final JobLogPager jobLogPager) { - final JobLogCB cb = new JobLogCB(); - - cb.fetchFirst(jobLogPager.getPageSize()); - cb.fetchPage(jobLogPager.getCurrentPageNumber()); - - setupListCondition(cb, jobLogPager); - - final PagingResultBean<JobLog> jobLogList = jobLogBhv.selectPage(cb); + final PagingResultBean<JobLog> jobLogList = jobLogBhv + .selectPage(cb -> { + cb.paging(jobLogPager.getPageSize(), + jobLogPager.getCurrentPageNumber()); + setupListCondition(cb, jobLogPager); + }); // update pager Beans.copy(jobLogList, jobLogPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - jobLogList.setPageRangeSize(5); - jobLogPager.setPageNumberList(jobLogList.pageRange() - .createPageNumberList()); + jobLogPager.setPageNumberList(jobLogList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return jobLogList; } public JobLog getJobLog(final Map<String, String> keys) { - final JobLogCB cb = new JobLogCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - - final JobLog jobLog = jobLogBhv.selectEntity(cb); + final JobLog jobLog = jobLogBhv.selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (jobLog == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsKeyMatchService.java b/src/main/java/org/codelibs/fess/crud/service/BsKeyMatchService.java similarity index 70% rename from src/main/java/jp/sf/fess/crud/service/BsKeyMatchService.java rename to src/main/java/org/codelibs/fess/crud/service/BsKeyMatchService.java index feab7fd52..e46b261a6 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsKeyMatchService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsKeyMatchService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.KeyMatchCB; -import jp.sf.fess.db.exbhv.KeyMatchBhv; -import jp.sf.fess.db.exentity.KeyMatch; -import jp.sf.fess.pager.KeyMatchPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.KeyMatchCB; +import org.codelibs.fess.db.exbhv.KeyMatchBhv; +import org.codelibs.fess.db.exentity.KeyMatch; +import org.codelibs.fess.pager.KeyMatchPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsKeyMatchService { @@ -42,35 +41,28 @@ public abstract class BsKeyMatchService { public List<KeyMatch> getKeyMatchList(final KeyMatchPager keyMatchPager) { - final KeyMatchCB cb = new KeyMatchCB(); - - cb.fetchFirst(keyMatchPager.getPageSize()); - cb.fetchPage(keyMatchPager.getCurrentPageNumber()); - - setupListCondition(cb, keyMatchPager); - final PagingResultBean<KeyMatch> keyMatchList = keyMatchBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(keyMatchPager.getPageSize(), + keyMatchPager.getCurrentPageNumber()); + setupListCondition(cb, keyMatchPager); + }); // update pager Beans.copy(keyMatchList, keyMatchPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - keyMatchList.setPageRangeSize(5); - keyMatchPager.setPageNumberList(keyMatchList.pageRange() - .createPageNumberList()); + keyMatchPager.setPageNumberList(keyMatchList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return keyMatchList; } public KeyMatch getKeyMatch(final Map<String, String> keys) { - final KeyMatchCB cb = new KeyMatchCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - - final KeyMatch keyMatch = keyMatchBhv.selectEntity(cb); + final KeyMatch keyMatch = keyMatchBhv.selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (keyMatch == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsLabelTypeService.java b/src/main/java/org/codelibs/fess/crud/service/BsLabelTypeService.java similarity index 73% rename from src/main/java/jp/sf/fess/crud/service/BsLabelTypeService.java rename to src/main/java/org/codelibs/fess/crud/service/BsLabelTypeService.java index b3174de02..6888a49cd 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsLabelTypeService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsLabelTypeService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.exbhv.LabelTypeBhv; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.pager.LabelTypePager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.LabelTypeCB; +import org.codelibs.fess.db.exbhv.LabelTypeBhv; +import org.codelibs.fess.db.exentity.LabelType; +import org.codelibs.fess.pager.LabelTypePager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsLabelTypeService { @@ -42,35 +41,28 @@ public abstract class BsLabelTypeService { public List<LabelType> getLabelTypeList(final LabelTypePager labelTypePager) { - final LabelTypeCB cb = new LabelTypeCB(); - - cb.fetchFirst(labelTypePager.getPageSize()); - cb.fetchPage(labelTypePager.getCurrentPageNumber()); - - setupListCondition(cb, labelTypePager); - final PagingResultBean<LabelType> labelTypeList = labelTypeBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(labelTypePager.getPageSize(), + labelTypePager.getCurrentPageNumber()); + setupListCondition(cb, labelTypePager); + }); // update pager Beans.copy(labelTypeList, labelTypePager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - labelTypeList.setPageRangeSize(5); - labelTypePager.setPageNumberList(labelTypeList.pageRange() - .createPageNumberList()); + labelTypePager.setPageNumberList(labelTypeList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return labelTypeList; } public LabelType getLabelType(final Map<String, String> keys) { - final LabelTypeCB cb = new LabelTypeCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - - final LabelType labelType = labelTypeBhv.selectEntity(cb); + final LabelType labelType = labelTypeBhv.selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (labelType == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsOverlappingHostService.java b/src/main/java/org/codelibs/fess/crud/service/BsOverlappingHostService.java similarity index 73% rename from src/main/java/jp/sf/fess/crud/service/BsOverlappingHostService.java rename to src/main/java/org/codelibs/fess/crud/service/BsOverlappingHostService.java index 1202056a5..44a193cf7 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsOverlappingHostService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsOverlappingHostService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.OverlappingHostCB; -import jp.sf.fess.db.exbhv.OverlappingHostBhv; -import jp.sf.fess.db.exentity.OverlappingHost; -import jp.sf.fess.pager.OverlappingHostPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.OverlappingHostCB; +import org.codelibs.fess.db.exbhv.OverlappingHostBhv; +import org.codelibs.fess.db.exentity.OverlappingHost; +import org.codelibs.fess.pager.OverlappingHostPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsOverlappingHostService { @@ -43,36 +42,30 @@ public abstract class BsOverlappingHostService { public List<OverlappingHost> getOverlappingHostList( final OverlappingHostPager overlappingHostPager) { - final OverlappingHostCB cb = new OverlappingHostCB(); - - cb.fetchFirst(overlappingHostPager.getPageSize()); - cb.fetchPage(overlappingHostPager.getCurrentPageNumber()); - - setupListCondition(cb, overlappingHostPager); - final PagingResultBean<OverlappingHost> overlappingHostList = overlappingHostBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(overlappingHostPager.getPageSize(), + overlappingHostPager.getCurrentPageNumber()); + setupListCondition(cb, overlappingHostPager); + }); // update pager Beans.copy(overlappingHostList, overlappingHostPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - overlappingHostList.setPageRangeSize(5); - overlappingHostPager.setPageNumberList(overlappingHostList.pageRange() - .createPageNumberList()); + overlappingHostPager.setPageNumberList(overlappingHostList.pageRange( + op -> { + op.rangeSize(5); + }).createPageNumberList()); return overlappingHostList; } public OverlappingHost getOverlappingHost(final Map<String, String> keys) { - final OverlappingHostCB cb = new OverlappingHostCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - final OverlappingHost overlappingHost = overlappingHostBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (overlappingHost == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsPathMappingService.java b/src/main/java/org/codelibs/fess/crud/service/BsPathMappingService.java similarity index 74% rename from src/main/java/jp/sf/fess/crud/service/BsPathMappingService.java rename to src/main/java/org/codelibs/fess/crud/service/BsPathMappingService.java index 7b3772286..7ba72e952 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsPathMappingService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsPathMappingService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.PathMappingCB; -import jp.sf.fess.db.exbhv.PathMappingBhv; -import jp.sf.fess.db.exentity.PathMapping; -import jp.sf.fess.pager.PathMappingPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.PathMappingCB; +import org.codelibs.fess.db.exbhv.PathMappingBhv; +import org.codelibs.fess.db.exentity.PathMapping; +import org.codelibs.fess.pager.PathMappingPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsPathMappingService { @@ -43,35 +42,28 @@ public abstract class BsPathMappingService { public List<PathMapping> getPathMappingList( final PathMappingPager pathMappingPager) { - final PathMappingCB cb = new PathMappingCB(); - - cb.fetchFirst(pathMappingPager.getPageSize()); - cb.fetchPage(pathMappingPager.getCurrentPageNumber()); - - setupListCondition(cb, pathMappingPager); - final PagingResultBean<PathMapping> pathMappingList = pathMappingBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(pathMappingPager.getPageSize(), + pathMappingPager.getCurrentPageNumber()); + setupListCondition(cb, pathMappingPager); + }); // update pager Beans.copy(pathMappingList, pathMappingPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - pathMappingList.setPageRangeSize(5); - pathMappingPager.setPageNumberList(pathMappingList.pageRange() - .createPageNumberList()); + pathMappingPager.setPageNumberList(pathMappingList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return pathMappingList; } public PathMapping getPathMapping(final Map<String, String> keys) { - final PathMappingCB cb = new PathMappingCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - - final PathMapping pathMapping = pathMappingBhv.selectEntity(cb); + final PathMapping pathMapping = pathMappingBhv.selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (pathMapping == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsRequestHeaderService.java b/src/main/java/org/codelibs/fess/crud/service/BsRequestHeaderService.java similarity index 73% rename from src/main/java/jp/sf/fess/crud/service/BsRequestHeaderService.java rename to src/main/java/org/codelibs/fess/crud/service/BsRequestHeaderService.java index 5ef896e32..fc20521ca 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsRequestHeaderService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsRequestHeaderService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.RequestHeaderCB; -import jp.sf.fess.db.exbhv.RequestHeaderBhv; -import jp.sf.fess.db.exentity.RequestHeader; -import jp.sf.fess.pager.RequestHeaderPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.RequestHeaderCB; +import org.codelibs.fess.db.exbhv.RequestHeaderBhv; +import org.codelibs.fess.db.exentity.RequestHeader; +import org.codelibs.fess.pager.RequestHeaderPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsRequestHeaderService { @@ -43,35 +42,30 @@ public abstract class BsRequestHeaderService { public List<RequestHeader> getRequestHeaderList( final RequestHeaderPager requestHeaderPager) { - final RequestHeaderCB cb = new RequestHeaderCB(); - - cb.fetchFirst(requestHeaderPager.getPageSize()); - cb.fetchPage(requestHeaderPager.getCurrentPageNumber()); - - setupListCondition(cb, requestHeaderPager); - final PagingResultBean<RequestHeader> requestHeaderList = requestHeaderBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(requestHeaderPager.getPageSize(), + requestHeaderPager.getCurrentPageNumber()); + setupListCondition(cb, requestHeaderPager); + }); // update pager Beans.copy(requestHeaderList, requestHeaderPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - requestHeaderList.setPageRangeSize(5); - requestHeaderPager.setPageNumberList(requestHeaderList.pageRange() - .createPageNumberList()); + requestHeaderPager.setPageNumberList(requestHeaderList.pageRange( + op -> { + op.rangeSize(5); + }).createPageNumberList()); return requestHeaderList; } public RequestHeader getRequestHeader(final Map<String, String> keys) { - final RequestHeaderCB cb = new RequestHeaderCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - - final RequestHeader requestHeader = requestHeaderBhv.selectEntity(cb); + final RequestHeader requestHeader = requestHeaderBhv.selectEntity( + cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (requestHeader == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsRoleTypeService.java b/src/main/java/org/codelibs/fess/crud/service/BsRoleTypeService.java similarity index 70% rename from src/main/java/jp/sf/fess/crud/service/BsRoleTypeService.java rename to src/main/java/org/codelibs/fess/crud/service/BsRoleTypeService.java index 0cac32408..a887177b0 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsRoleTypeService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsRoleTypeService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.exbhv.RoleTypeBhv; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.pager.RoleTypePager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.RoleTypeCB; +import org.codelibs.fess.db.exbhv.RoleTypeBhv; +import org.codelibs.fess.db.exentity.RoleType; +import org.codelibs.fess.pager.RoleTypePager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsRoleTypeService { @@ -42,35 +41,28 @@ public abstract class BsRoleTypeService { public List<RoleType> getRoleTypeList(final RoleTypePager roleTypePager) { - final RoleTypeCB cb = new RoleTypeCB(); - - cb.fetchFirst(roleTypePager.getPageSize()); - cb.fetchPage(roleTypePager.getCurrentPageNumber()); - - setupListCondition(cb, roleTypePager); - final PagingResultBean<RoleType> roleTypeList = roleTypeBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(roleTypePager.getPageSize(), + roleTypePager.getCurrentPageNumber()); + setupListCondition(cb, roleTypePager); + }); // update pager Beans.copy(roleTypeList, roleTypePager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - roleTypeList.setPageRangeSize(5); - roleTypePager.setPageNumberList(roleTypeList.pageRange() - .createPageNumberList()); + roleTypePager.setPageNumberList(roleTypeList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return roleTypeList; } public RoleType getRoleType(final Map<String, String> keys) { - final RoleTypeCB cb = new RoleTypeCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - - final RoleType roleType = roleTypeBhv.selectEntity(cb); + final RoleType roleType = roleTypeBhv.selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (roleType == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsScheduledJobService.java b/src/main/java/org/codelibs/fess/crud/service/BsScheduledJobService.java similarity index 73% rename from src/main/java/jp/sf/fess/crud/service/BsScheduledJobService.java rename to src/main/java/org/codelibs/fess/crud/service/BsScheduledJobService.java index c99768d31..654341ef4 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsScheduledJobService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsScheduledJobService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.ScheduledJobCB; -import jp.sf.fess.db.exbhv.ScheduledJobBhv; -import jp.sf.fess.db.exentity.ScheduledJob; -import jp.sf.fess.pager.ScheduledJobPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.ScheduledJobCB; +import org.codelibs.fess.db.exbhv.ScheduledJobBhv; +import org.codelibs.fess.db.exentity.ScheduledJob; +import org.codelibs.fess.pager.ScheduledJobPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsScheduledJobService { @@ -43,35 +42,28 @@ public abstract class BsScheduledJobService { public List<ScheduledJob> getScheduledJobList( final ScheduledJobPager scheduledJobPager) { - final ScheduledJobCB cb = new ScheduledJobCB(); - - cb.fetchFirst(scheduledJobPager.getPageSize()); - cb.fetchPage(scheduledJobPager.getCurrentPageNumber()); - - setupListCondition(cb, scheduledJobPager); - final PagingResultBean<ScheduledJob> scheduledJobList = scheduledJobBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(scheduledJobPager.getPageSize(), + scheduledJobPager.getCurrentPageNumber()); + setupListCondition(cb, scheduledJobPager); + }); // update pager Beans.copy(scheduledJobList, scheduledJobPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - scheduledJobList.setPageRangeSize(5); - scheduledJobPager.setPageNumberList(scheduledJobList.pageRange() - .createPageNumberList()); + scheduledJobPager.setPageNumberList(scheduledJobList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return scheduledJobList; } public ScheduledJob getScheduledJob(final Map<String, String> keys) { - final ScheduledJobCB cb = new ScheduledJobCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - - final ScheduledJob scheduledJob = scheduledJobBhv.selectEntity(cb); + final ScheduledJob scheduledJob = scheduledJobBhv.selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (scheduledJob == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsSearchLogService.java b/src/main/java/org/codelibs/fess/crud/service/BsSearchLogService.java similarity index 73% rename from src/main/java/jp/sf/fess/crud/service/BsSearchLogService.java rename to src/main/java/org/codelibs/fess/crud/service/BsSearchLogService.java index 1af427085..3007e2c6b 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsSearchLogService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsSearchLogService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.pager.SearchLogPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.SearchLogCB; +import org.codelibs.fess.db.exbhv.SearchLogBhv; +import org.codelibs.fess.db.exentity.SearchLog; +import org.codelibs.fess.pager.SearchLogPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsSearchLogService { @@ -42,35 +41,28 @@ public abstract class BsSearchLogService { public List<SearchLog> getSearchLogList(final SearchLogPager searchLogPager) { - final SearchLogCB cb = new SearchLogCB(); - - cb.fetchFirst(searchLogPager.getPageSize()); - cb.fetchPage(searchLogPager.getCurrentPageNumber()); - - setupListCondition(cb, searchLogPager); - final PagingResultBean<SearchLog> searchLogList = searchLogBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(searchLogPager.getPageSize(), + searchLogPager.getCurrentPageNumber()); + setupListCondition(cb, searchLogPager); + }); // update pager Beans.copy(searchLogList, searchLogPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - searchLogList.setPageRangeSize(5); - searchLogPager.setPageNumberList(searchLogList.pageRange() - .createPageNumberList()); + searchLogPager.setPageNumberList(searchLogList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return searchLogList; } public SearchLog getSearchLog(final Map<String, String> keys) { - final SearchLogCB cb = new SearchLogCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - - final SearchLog searchLog = searchLogBhv.selectEntity(cb); + final SearchLog searchLog = searchLogBhv.selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (searchLog == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsSuggestBadWordService.java b/src/main/java/org/codelibs/fess/crud/service/BsSuggestBadWordService.java similarity index 71% rename from src/main/java/jp/sf/fess/crud/service/BsSuggestBadWordService.java rename to src/main/java/org/codelibs/fess/crud/service/BsSuggestBadWordService.java index 247065730..938c65d7c 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsSuggestBadWordService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsSuggestBadWordService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.SuggestBadWordCB; -import jp.sf.fess.db.exbhv.SuggestBadWordBhv; -import jp.sf.fess.db.exentity.SuggestBadWord; -import jp.sf.fess.pager.SuggestBadWordPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.SuggestBadWordCB; +import org.codelibs.fess.db.exbhv.SuggestBadWordBhv; +import org.codelibs.fess.db.exentity.SuggestBadWord; +import org.codelibs.fess.pager.SuggestBadWordPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsSuggestBadWordService { @@ -43,36 +42,30 @@ public abstract class BsSuggestBadWordService { public List<SuggestBadWord> getSuggestBadWordList( final SuggestBadWordPager suggestBadWordPager) { - final SuggestBadWordCB cb = new SuggestBadWordCB(); - - cb.fetchFirst(suggestBadWordPager.getPageSize()); - cb.fetchPage(suggestBadWordPager.getCurrentPageNumber()); - - setupListCondition(cb, suggestBadWordPager); - final PagingResultBean<SuggestBadWord> suggestBadWordList = suggestBadWordBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(suggestBadWordPager.getPageSize(), + suggestBadWordPager.getCurrentPageNumber()); + setupListCondition(cb, suggestBadWordPager); + }); // update pager Beans.copy(suggestBadWordList, suggestBadWordPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - suggestBadWordList.setPageRangeSize(5); - suggestBadWordPager.setPageNumberList(suggestBadWordList.pageRange() - .createPageNumberList()); + suggestBadWordPager.setPageNumberList(suggestBadWordList.pageRange( + op -> { + op.rangeSize(5); + }).createPageNumberList()); return suggestBadWordList; } public SuggestBadWord getSuggestBadWord(final Map<String, String> keys) { - final SuggestBadWordCB cb = new SuggestBadWordCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - - final SuggestBadWord suggestBadWord = suggestBadWordBhv - .selectEntity(cb); + final SuggestBadWord suggestBadWord = suggestBadWordBhv.selectEntity( + cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (suggestBadWord == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsSuggestElevateWordService.java b/src/main/java/org/codelibs/fess/crud/service/BsSuggestElevateWordService.java similarity index 74% rename from src/main/java/jp/sf/fess/crud/service/BsSuggestElevateWordService.java rename to src/main/java/org/codelibs/fess/crud/service/BsSuggestElevateWordService.java index 718a22830..a957ba5cf 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsSuggestElevateWordService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsSuggestElevateWordService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.SuggestElevateWordCB; -import jp.sf.fess.db.exbhv.SuggestElevateWordBhv; -import jp.sf.fess.db.exentity.SuggestElevateWord; -import jp.sf.fess.pager.SuggestElevateWordPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.SuggestElevateWordCB; +import org.codelibs.fess.db.exbhv.SuggestElevateWordBhv; +import org.codelibs.fess.db.exentity.SuggestElevateWord; +import org.codelibs.fess.pager.SuggestElevateWordPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsSuggestElevateWordService { @@ -43,37 +42,31 @@ public abstract class BsSuggestElevateWordService { public List<SuggestElevateWord> getSuggestElevateWordList( final SuggestElevateWordPager suggestElevateWordPager) { - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - - cb.fetchFirst(suggestElevateWordPager.getPageSize()); - cb.fetchPage(suggestElevateWordPager.getCurrentPageNumber()); - - setupListCondition(cb, suggestElevateWordPager); - final PagingResultBean<SuggestElevateWord> suggestElevateWordList = suggestElevateWordBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(suggestElevateWordPager.getPageSize(), + suggestElevateWordPager.getCurrentPageNumber()); + setupListCondition(cb, suggestElevateWordPager); + }); // update pager Beans.copy(suggestElevateWordList, suggestElevateWordPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - suggestElevateWordList.setPageRangeSize(5); suggestElevateWordPager.setPageNumberList(suggestElevateWordList - .pageRange().createPageNumberList()); + .pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return suggestElevateWordList; } public SuggestElevateWord getSuggestElevateWord( final Map<String, String> keys) { - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - final SuggestElevateWord suggestElevateWord = suggestElevateWordBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (suggestElevateWord == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsUserInfoService.java b/src/main/java/org/codelibs/fess/crud/service/BsUserInfoService.java similarity index 70% rename from src/main/java/jp/sf/fess/crud/service/BsUserInfoService.java rename to src/main/java/org/codelibs/fess/crud/service/BsUserInfoService.java index b38a7d564..9d8830e0a 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsUserInfoService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsUserInfoService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.exbhv.UserInfoBhv; -import jp.sf.fess.db.exentity.UserInfo; -import jp.sf.fess.pager.UserInfoPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.UserInfoCB; +import org.codelibs.fess.db.exbhv.UserInfoBhv; +import org.codelibs.fess.db.exentity.UserInfo; +import org.codelibs.fess.pager.UserInfoPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsUserInfoService { @@ -42,35 +41,28 @@ public abstract class BsUserInfoService { public List<UserInfo> getUserInfoList(final UserInfoPager userInfoPager) { - final UserInfoCB cb = new UserInfoCB(); - - cb.fetchFirst(userInfoPager.getPageSize()); - cb.fetchPage(userInfoPager.getCurrentPageNumber()); - - setupListCondition(cb, userInfoPager); - final PagingResultBean<UserInfo> userInfoList = userInfoBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(userInfoPager.getPageSize(), + userInfoPager.getCurrentPageNumber()); + setupListCondition(cb, userInfoPager); + }); // update pager Beans.copy(userInfoList, userInfoPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - userInfoList.setPageRangeSize(5); - userInfoPager.setPageNumberList(userInfoList.pageRange() - .createPageNumberList()); + userInfoPager.setPageNumberList(userInfoList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return userInfoList; } public UserInfo getUserInfo(final Map<String, String> keys) { - final UserInfoCB cb = new UserInfoCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - - final UserInfo userInfo = userInfoBhv.selectEntity(cb); + final UserInfo userInfo = userInfoBhv.selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (userInfo == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsWebAuthenticationService.java b/src/main/java/org/codelibs/fess/crud/service/BsWebAuthenticationService.java similarity index 73% rename from src/main/java/jp/sf/fess/crud/service/BsWebAuthenticationService.java rename to src/main/java/org/codelibs/fess/crud/service/BsWebAuthenticationService.java index 53a68a65a..81f641342 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsWebAuthenticationService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsWebAuthenticationService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.WebAuthenticationCB; -import jp.sf.fess.db.exbhv.WebAuthenticationBhv; -import jp.sf.fess.db.exentity.WebAuthentication; -import jp.sf.fess.pager.WebAuthenticationPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.WebAuthenticationCB; +import org.codelibs.fess.db.exbhv.WebAuthenticationBhv; +import org.codelibs.fess.db.exentity.WebAuthentication; +import org.codelibs.fess.pager.WebAuthenticationPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsWebAuthenticationService { @@ -43,36 +42,30 @@ public abstract class BsWebAuthenticationService { public List<WebAuthentication> getWebAuthenticationList( final WebAuthenticationPager webAuthenticationPager) { - final WebAuthenticationCB cb = new WebAuthenticationCB(); - - cb.fetchFirst(webAuthenticationPager.getPageSize()); - cb.fetchPage(webAuthenticationPager.getCurrentPageNumber()); - - setupListCondition(cb, webAuthenticationPager); - final PagingResultBean<WebAuthentication> webAuthenticationList = webAuthenticationBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(webAuthenticationPager.getPageSize(), + webAuthenticationPager.getCurrentPageNumber()); + setupListCondition(cb, webAuthenticationPager); + }); // update pager Beans.copy(webAuthenticationList, webAuthenticationPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - webAuthenticationList.setPageRangeSize(5); webAuthenticationPager.setPageNumberList(webAuthenticationList - .pageRange().createPageNumberList()); + .pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return webAuthenticationList; } public WebAuthentication getWebAuthentication(final Map<String, String> keys) { - final WebAuthenticationCB cb = new WebAuthenticationCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - final WebAuthentication webAuthentication = webAuthenticationBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (webAuthentication == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/service/BsWebCrawlingConfigService.java b/src/main/java/org/codelibs/fess/crud/service/BsWebCrawlingConfigService.java similarity index 73% rename from src/main/java/jp/sf/fess/crud/service/BsWebCrawlingConfigService.java rename to src/main/java/org/codelibs/fess/crud/service/BsWebCrawlingConfigService.java index 74d5cda92..fd1e61684 100644 --- a/src/main/java/jp/sf/fess/crud/service/BsWebCrawlingConfigService.java +++ b/src/main/java/org/codelibs/fess/crud/service/BsWebCrawlingConfigService.java @@ -14,21 +14,20 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.service; +package org.codelibs.fess.crud.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.crud.CrudMessageException; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.exbhv.WebCrawlingConfigBhv; -import jp.sf.fess.db.exentity.WebCrawlingConfig; -import jp.sf.fess.pager.WebCrawlingConfigPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.crud.CrudMessageException; +import org.codelibs.fess.db.cbean.WebCrawlingConfigCB; +import org.codelibs.fess.db.exbhv.WebCrawlingConfigBhv; +import org.codelibs.fess.db.exentity.WebCrawlingConfig; +import org.codelibs.fess.pager.WebCrawlingConfigPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public abstract class BsWebCrawlingConfigService { @@ -43,36 +42,30 @@ public abstract class BsWebCrawlingConfigService { public List<WebCrawlingConfig> getWebCrawlingConfigList( final WebCrawlingConfigPager webCrawlingConfigPager) { - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - - cb.fetchFirst(webCrawlingConfigPager.getPageSize()); - cb.fetchPage(webCrawlingConfigPager.getCurrentPageNumber()); - - setupListCondition(cb, webCrawlingConfigPager); - final PagingResultBean<WebCrawlingConfig> webCrawlingConfigList = webCrawlingConfigBhv - .selectPage(cb); + .selectPage(cb -> { + cb.paging(webCrawlingConfigPager.getPageSize(), + webCrawlingConfigPager.getCurrentPageNumber()); + setupListCondition(cb, webCrawlingConfigPager); + }); // update pager Beans.copy(webCrawlingConfigList, webCrawlingConfigPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - webCrawlingConfigList.setPageRangeSize(5); webCrawlingConfigPager.setPageNumberList(webCrawlingConfigList - .pageRange().createPageNumberList()); + .pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); return webCrawlingConfigList; } public WebCrawlingConfig getWebCrawlingConfig(final Map<String, String> keys) { - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - - cb.query().setId_Equal(Long.parseLong(keys.get("id"))); - // TODO Long, Integer, String supported only. - - setupEntityCondition(cb, keys); - final WebCrawlingConfig webCrawlingConfig = webCrawlingConfigBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setId_Equal(Long.parseLong(keys.get("id"))); + setupEntityCondition(cb, keys); + }).orElse(null);//TODO if (webCrawlingConfig == null) { // TODO exception? return null; diff --git a/src/main/java/jp/sf/fess/crud/util/SAStrutsUtil.java b/src/main/java/org/codelibs/fess/crud/util/SAStrutsUtil.java similarity index 98% rename from src/main/java/jp/sf/fess/crud/util/SAStrutsUtil.java rename to src/main/java/org/codelibs/fess/crud/util/SAStrutsUtil.java index d0549b262..367ed7615 100644 --- a/src/main/java/jp/sf/fess/crud/util/SAStrutsUtil.java +++ b/src/main/java/org/codelibs/fess/crud/util/SAStrutsUtil.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.crud.util; +package org.codelibs.fess.crud.util; import javax.servlet.http.HttpServletRequest; diff --git a/src/main/java/jp/sf/fess/db/exbhv/BoostDocumentRuleBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/BoostDocumentRuleBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/BoostDocumentRuleBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/BoostDocumentRuleBhv.java index d6f5c39a5..9e01cda16 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/BoostDocumentRuleBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/BoostDocumentRuleBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsBoostDocumentRuleBhv; +import org.codelibs.fess.db.bsbhv.BsBoostDocumentRuleBhv; /** * The behavior of BOOST_DOCUMENT_RULE. diff --git a/src/main/java/jp/sf/fess/db/exbhv/ClickLogBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/ClickLogBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/ClickLogBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/ClickLogBhv.java index b566edafd..b9ebd7d79 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/ClickLogBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/ClickLogBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsClickLogBhv; +import org.codelibs.fess.db.bsbhv.BsClickLogBhv; /** * The behavior of CLICK_LOG. diff --git a/src/main/java/jp/sf/fess/db/exbhv/CrawlingSessionBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/CrawlingSessionBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/CrawlingSessionBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/CrawlingSessionBhv.java index 8d4f0fbe6..cba883ec2 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/CrawlingSessionBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/CrawlingSessionBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsCrawlingSessionBhv; +import org.codelibs.fess.db.bsbhv.BsCrawlingSessionBhv; /** * The behavior of CRAWLING_SESSION. diff --git a/src/main/java/jp/sf/fess/db/exbhv/CrawlingSessionInfoBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/CrawlingSessionInfoBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/CrawlingSessionInfoBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/CrawlingSessionInfoBhv.java index 46a7af486..c94b60b4d 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/CrawlingSessionInfoBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/CrawlingSessionInfoBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsCrawlingSessionInfoBhv; +import org.codelibs.fess.db.bsbhv.BsCrawlingSessionInfoBhv; /** * The behavior of CRAWLING_SESSION_INFO. diff --git a/src/main/java/jp/sf/fess/db/exbhv/DataConfigToLabelTypeMappingBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/DataConfigToLabelTypeMappingBhv.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exbhv/DataConfigToLabelTypeMappingBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/DataConfigToLabelTypeMappingBhv.java index c691f6ea0..675078969 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/DataConfigToLabelTypeMappingBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/DataConfigToLabelTypeMappingBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsDataConfigToLabelTypeMappingBhv; +import org.codelibs.fess.db.bsbhv.BsDataConfigToLabelTypeMappingBhv; /** * The behavior of DATA_CONFIG_TO_LABEL_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exbhv/DataConfigToRoleTypeMappingBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/DataConfigToRoleTypeMappingBhv.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exbhv/DataConfigToRoleTypeMappingBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/DataConfigToRoleTypeMappingBhv.java index 89425972f..79ced2b2b 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/DataConfigToRoleTypeMappingBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/DataConfigToRoleTypeMappingBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsDataConfigToRoleTypeMappingBhv; +import org.codelibs.fess.db.bsbhv.BsDataConfigToRoleTypeMappingBhv; /** * The behavior of DATA_CONFIG_TO_ROLE_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exbhv/DataCrawlingConfigBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/DataCrawlingConfigBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/DataCrawlingConfigBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/DataCrawlingConfigBhv.java index 4ea02d560..3591b2f36 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/DataCrawlingConfigBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/DataCrawlingConfigBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsDataCrawlingConfigBhv; +import org.codelibs.fess.db.bsbhv.BsDataCrawlingConfigBhv; /** * The behavior of DATA_CRAWLING_CONFIG. diff --git a/src/main/java/jp/sf/fess/db/exbhv/FailureUrlBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/FailureUrlBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/FailureUrlBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/FailureUrlBhv.java index 0cfdee6ed..e0509fbeb 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/FailureUrlBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/FailureUrlBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsFailureUrlBhv; +import org.codelibs.fess.db.bsbhv.BsFailureUrlBhv; /** * The behavior of FAILURE_URL. diff --git a/src/main/java/jp/sf/fess/db/exbhv/FavoriteLogBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/FavoriteLogBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/FavoriteLogBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/FavoriteLogBhv.java index fb10d9d97..4db58d5ea 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/FavoriteLogBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/FavoriteLogBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsFavoriteLogBhv; +import org.codelibs.fess.db.bsbhv.BsFavoriteLogBhv; /** * The behavior of FAVORITE_LOG. diff --git a/src/main/java/jp/sf/fess/db/exbhv/FileAuthenticationBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/FileAuthenticationBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/FileAuthenticationBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/FileAuthenticationBhv.java index 43da96e23..289897c75 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/FileAuthenticationBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/FileAuthenticationBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsFileAuthenticationBhv; +import org.codelibs.fess.db.bsbhv.BsFileAuthenticationBhv; /** * The behavior of FILE_AUTHENTICATION. diff --git a/src/main/java/jp/sf/fess/db/exbhv/FileConfigToLabelTypeMappingBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/FileConfigToLabelTypeMappingBhv.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exbhv/FileConfigToLabelTypeMappingBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/FileConfigToLabelTypeMappingBhv.java index 009da7b9a..596db9707 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/FileConfigToLabelTypeMappingBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/FileConfigToLabelTypeMappingBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsFileConfigToLabelTypeMappingBhv; +import org.codelibs.fess.db.bsbhv.BsFileConfigToLabelTypeMappingBhv; /** * The behavior of FILE_CONFIG_TO_LABEL_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exbhv/FileConfigToRoleTypeMappingBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/FileConfigToRoleTypeMappingBhv.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exbhv/FileConfigToRoleTypeMappingBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/FileConfigToRoleTypeMappingBhv.java index 78a99bec9..f2616cf7b 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/FileConfigToRoleTypeMappingBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/FileConfigToRoleTypeMappingBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsFileConfigToRoleTypeMappingBhv; +import org.codelibs.fess.db.bsbhv.BsFileConfigToRoleTypeMappingBhv; /** * The behavior of FILE_CONFIG_TO_ROLE_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exbhv/FileCrawlingConfigBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/FileCrawlingConfigBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/FileCrawlingConfigBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/FileCrawlingConfigBhv.java index c845feff7..ada2c3667 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/FileCrawlingConfigBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/FileCrawlingConfigBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsFileCrawlingConfigBhv; +import org.codelibs.fess.db.bsbhv.BsFileCrawlingConfigBhv; /** * The behavior of FILE_CRAWLING_CONFIG. diff --git a/src/main/java/jp/sf/fess/db/exbhv/JobLogBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/JobLogBhv.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/JobLogBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/JobLogBhv.java index 1f5c22bf5..21cd84651 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/JobLogBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/JobLogBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsJobLogBhv; +import org.codelibs.fess.db.bsbhv.BsJobLogBhv; /** * The behavior of JOB_LOG. diff --git a/src/main/java/jp/sf/fess/db/exbhv/KeyMatchBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/KeyMatchBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/KeyMatchBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/KeyMatchBhv.java index 7090249f7..b6ad86d6e 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/KeyMatchBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/KeyMatchBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsKeyMatchBhv; +import org.codelibs.fess.db.bsbhv.BsKeyMatchBhv; /** * The behavior of KEY_MATCH. diff --git a/src/main/java/jp/sf/fess/db/exbhv/LabelTypeBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/LabelTypeBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/LabelTypeBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/LabelTypeBhv.java index 5c02934be..a71100f97 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/LabelTypeBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/LabelTypeBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsLabelTypeBhv; +import org.codelibs.fess.db.bsbhv.BsLabelTypeBhv; /** * The behavior of LABEL_TYPE. diff --git a/src/main/java/jp/sf/fess/db/exbhv/LabelTypeToRoleTypeMappingBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/LabelTypeToRoleTypeMappingBhv.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exbhv/LabelTypeToRoleTypeMappingBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/LabelTypeToRoleTypeMappingBhv.java index 5fb5d0a61..f7289c32e 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/LabelTypeToRoleTypeMappingBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/LabelTypeToRoleTypeMappingBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsLabelTypeToRoleTypeMappingBhv; +import org.codelibs.fess.db.bsbhv.BsLabelTypeToRoleTypeMappingBhv; /** * The behavior of LABEL_TYPE_TO_ROLE_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exbhv/OverlappingHostBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/OverlappingHostBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/OverlappingHostBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/OverlappingHostBhv.java index b1581e9b6..3485590e3 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/OverlappingHostBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/OverlappingHostBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsOverlappingHostBhv; +import org.codelibs.fess.db.bsbhv.BsOverlappingHostBhv; /** * The behavior of OVERLAPPING_HOST. diff --git a/src/main/java/jp/sf/fess/db/exbhv/PathMappingBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/PathMappingBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/PathMappingBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/PathMappingBhv.java index c62492452..d6bf03998 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/PathMappingBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/PathMappingBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsPathMappingBhv; +import org.codelibs.fess.db.bsbhv.BsPathMappingBhv; /** * The behavior of PATH_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exbhv/RequestHeaderBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/RequestHeaderBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/RequestHeaderBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/RequestHeaderBhv.java index 72561e658..4411d8ae6 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/RequestHeaderBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/RequestHeaderBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsRequestHeaderBhv; +import org.codelibs.fess.db.bsbhv.BsRequestHeaderBhv; /** * The behavior of REQUEST_HEADER. diff --git a/src/main/java/jp/sf/fess/db/exbhv/RoleTypeBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/RoleTypeBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/RoleTypeBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/RoleTypeBhv.java index b53707737..bc1ca4b61 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/RoleTypeBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/RoleTypeBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsRoleTypeBhv; +import org.codelibs.fess.db.bsbhv.BsRoleTypeBhv; /** * The behavior of ROLE_TYPE. diff --git a/src/main/java/jp/sf/fess/db/exbhv/ScheduledJobBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/ScheduledJobBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/ScheduledJobBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/ScheduledJobBhv.java index 19c9b102a..8d5ab7a6d 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/ScheduledJobBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/ScheduledJobBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsScheduledJobBhv; +import org.codelibs.fess.db.bsbhv.BsScheduledJobBhv; /** * The behavior of SCHEDULED_JOB. diff --git a/src/main/java/jp/sf/fess/db/exbhv/SearchFieldLogBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/SearchFieldLogBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/SearchFieldLogBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/SearchFieldLogBhv.java index ee50d1ccd..202a645aa 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/SearchFieldLogBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/SearchFieldLogBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsSearchFieldLogBhv; +import org.codelibs.fess.db.bsbhv.BsSearchFieldLogBhv; /** * The behavior of SEARCH_FIELD_LOG. diff --git a/src/main/java/jp/sf/fess/db/exbhv/SearchLogBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/SearchLogBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/SearchLogBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/SearchLogBhv.java index 9f69ddf12..65856804a 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/SearchLogBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/SearchLogBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsSearchLogBhv; +import org.codelibs.fess.db.bsbhv.BsSearchLogBhv; /** * The behavior of SEARCH_LOG. diff --git a/src/main/java/jp/sf/fess/db/exbhv/SuggestBadWordBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/SuggestBadWordBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/SuggestBadWordBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/SuggestBadWordBhv.java index 4fa1d4931..15f229031 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/SuggestBadWordBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/SuggestBadWordBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsSuggestBadWordBhv; +import org.codelibs.fess.db.bsbhv.BsSuggestBadWordBhv; /** * The behavior of SUGGEST_BAD_WORD. diff --git a/src/main/java/jp/sf/fess/db/exbhv/SuggestElevateWordBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/SuggestElevateWordBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/SuggestElevateWordBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/SuggestElevateWordBhv.java index 02995eae5..cba20d642 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/SuggestElevateWordBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/SuggestElevateWordBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsSuggestElevateWordBhv; +import org.codelibs.fess.db.bsbhv.BsSuggestElevateWordBhv; /** * The behavior of SUGGEST_ELEVATE_WORD. diff --git a/src/main/java/jp/sf/fess/db/exbhv/UserInfoBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/UserInfoBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/UserInfoBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/UserInfoBhv.java index 6a8e211cf..230299033 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/UserInfoBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/UserInfoBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsUserInfoBhv; +import org.codelibs.fess.db.bsbhv.BsUserInfoBhv; /** * The behavior of USER_INFO. diff --git a/src/main/java/jp/sf/fess/db/exbhv/WebAuthenticationBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/WebAuthenticationBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/WebAuthenticationBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/WebAuthenticationBhv.java index 5cf4a0ee3..c0753822b 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/WebAuthenticationBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/WebAuthenticationBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsWebAuthenticationBhv; +import org.codelibs.fess.db.bsbhv.BsWebAuthenticationBhv; /** * The behavior of WEB_AUTHENTICATION. diff --git a/src/main/java/jp/sf/fess/db/exbhv/WebConfigToLabelTypeMappingBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/WebConfigToLabelTypeMappingBhv.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exbhv/WebConfigToLabelTypeMappingBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/WebConfigToLabelTypeMappingBhv.java index c2689ef24..a0f0f4cdc 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/WebConfigToLabelTypeMappingBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/WebConfigToLabelTypeMappingBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsWebConfigToLabelTypeMappingBhv; +import org.codelibs.fess.db.bsbhv.BsWebConfigToLabelTypeMappingBhv; /** * The behavior of WEB_CONFIG_TO_LABEL_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exbhv/WebConfigToRoleTypeMappingBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/WebConfigToRoleTypeMappingBhv.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exbhv/WebConfigToRoleTypeMappingBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/WebConfigToRoleTypeMappingBhv.java index 1e187bbc4..5a1914b7a 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/WebConfigToRoleTypeMappingBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/WebConfigToRoleTypeMappingBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsWebConfigToRoleTypeMappingBhv; +import org.codelibs.fess.db.bsbhv.BsWebConfigToRoleTypeMappingBhv; /** * The behavior of WEB_CONFIG_TO_ROLE_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exbhv/WebCrawlingConfigBhv.java b/src/main/java/org/codelibs/fess/db/exbhv/WebCrawlingConfigBhv.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exbhv/WebCrawlingConfigBhv.java rename to src/main/java/org/codelibs/fess/db/exbhv/WebCrawlingConfigBhv.java index 2c71f5f3e..e36e9e16c 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/WebCrawlingConfigBhv.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/WebCrawlingConfigBhv.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv; +package org.codelibs.fess.db.exbhv; -import jp.sf.fess.db.bsbhv.BsWebCrawlingConfigBhv; +import org.codelibs.fess.db.bsbhv.BsWebCrawlingConfigBhv; /** * The behavior of WEB_CRAWLING_CONFIG. diff --git a/src/main/java/jp/sf/fess/db/exbhv/pmbean/ClickUrlRankingPmb.java b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/ClickUrlRankingPmb.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/pmbean/ClickUrlRankingPmb.java rename to src/main/java/org/codelibs/fess/db/exbhv/pmbean/ClickUrlRankingPmb.java index 79ecb7aa1..4d7b86799 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/pmbean/ClickUrlRankingPmb.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/ClickUrlRankingPmb.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv.pmbean; +package org.codelibs.fess.db.exbhv.pmbean; -import jp.sf.fess.db.bsbhv.pmbean.BsClickUrlRankingPmb; +import org.codelibs.fess.db.bsbhv.pmbean.BsClickUrlRankingPmb; /** * <!-- df:beginClassDescription --> diff --git a/src/main/java/jp/sf/fess/db/exbhv/pmbean/ClientIpRankingPmb.java b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/ClientIpRankingPmb.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/pmbean/ClientIpRankingPmb.java rename to src/main/java/org/codelibs/fess/db/exbhv/pmbean/ClientIpRankingPmb.java index 412df5bec..af703e277 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/pmbean/ClientIpRankingPmb.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/ClientIpRankingPmb.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv.pmbean; +package org.codelibs.fess.db.exbhv.pmbean; -import jp.sf.fess.db.bsbhv.pmbean.BsClientIpRankingPmb; +import org.codelibs.fess.db.bsbhv.pmbean.BsClientIpRankingPmb; /** * <!-- df:beginClassDescription --> diff --git a/src/main/java/jp/sf/fess/db/exbhv/pmbean/FavoriteUrlCountPmb.java b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/FavoriteUrlCountPmb.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/pmbean/FavoriteUrlCountPmb.java rename to src/main/java/org/codelibs/fess/db/exbhv/pmbean/FavoriteUrlCountPmb.java index dcde23c32..e00271f60 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/pmbean/FavoriteUrlCountPmb.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/FavoriteUrlCountPmb.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv.pmbean; +package org.codelibs.fess.db.exbhv.pmbean; -import jp.sf.fess.db.bsbhv.pmbean.BsFavoriteUrlCountPmb; +import org.codelibs.fess.db.bsbhv.pmbean.BsFavoriteUrlCountPmb; /** * <!-- df:beginClassDescription --> diff --git a/src/main/java/jp/sf/fess/db/exbhv/pmbean/FavoriteUrlRankingPmb.java b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/FavoriteUrlRankingPmb.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/pmbean/FavoriteUrlRankingPmb.java rename to src/main/java/org/codelibs/fess/db/exbhv/pmbean/FavoriteUrlRankingPmb.java index 929ffc5f3..b7e508a73 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/pmbean/FavoriteUrlRankingPmb.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/FavoriteUrlRankingPmb.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv.pmbean; +package org.codelibs.fess.db.exbhv.pmbean; -import jp.sf.fess.db.bsbhv.pmbean.BsFavoriteUrlRankingPmb; +import org.codelibs.fess.db.bsbhv.pmbean.BsFavoriteUrlRankingPmb; /** * <!-- df:beginClassDescription --> diff --git a/src/main/java/jp/sf/fess/db/exbhv/pmbean/GroupedFieldNamePmb.java b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/GroupedFieldNamePmb.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/pmbean/GroupedFieldNamePmb.java rename to src/main/java/org/codelibs/fess/db/exbhv/pmbean/GroupedFieldNamePmb.java index 7c71c108b..638d4a554 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/pmbean/GroupedFieldNamePmb.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/GroupedFieldNamePmb.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv.pmbean; +package org.codelibs.fess.db.exbhv.pmbean; -import jp.sf.fess.db.bsbhv.pmbean.BsGroupedFieldNamePmb; +import org.codelibs.fess.db.bsbhv.pmbean.BsGroupedFieldNamePmb; /** * <!-- df:beginClassDescription --> diff --git a/src/main/java/jp/sf/fess/db/exbhv/pmbean/HotSearchWordPmb.java b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/HotSearchWordPmb.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/pmbean/HotSearchWordPmb.java rename to src/main/java/org/codelibs/fess/db/exbhv/pmbean/HotSearchWordPmb.java index e86525488..e5d4eb8a6 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/pmbean/HotSearchWordPmb.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/HotSearchWordPmb.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv.pmbean; +package org.codelibs.fess.db.exbhv.pmbean; -import jp.sf.fess.db.bsbhv.pmbean.BsHotSearchWordPmb; +import org.codelibs.fess.db.bsbhv.pmbean.BsHotSearchWordPmb; /** * <!-- df:beginClassDescription --> diff --git a/src/main/java/jp/sf/fess/db/exbhv/pmbean/RefererRankingPmb.java b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/RefererRankingPmb.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/pmbean/RefererRankingPmb.java rename to src/main/java/org/codelibs/fess/db/exbhv/pmbean/RefererRankingPmb.java index 8b647f7e2..a92fa9619 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/pmbean/RefererRankingPmb.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/RefererRankingPmb.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv.pmbean; +package org.codelibs.fess.db.exbhv.pmbean; -import jp.sf.fess.db.bsbhv.pmbean.BsRefererRankingPmb; +import org.codelibs.fess.db.bsbhv.pmbean.BsRefererRankingPmb; /** * <!-- df:beginClassDescription --> diff --git a/src/main/java/jp/sf/fess/db/exbhv/pmbean/SearchFieldRankingPmb.java b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/SearchFieldRankingPmb.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/pmbean/SearchFieldRankingPmb.java rename to src/main/java/org/codelibs/fess/db/exbhv/pmbean/SearchFieldRankingPmb.java index 31f3fb5bd..13e08b57b 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/pmbean/SearchFieldRankingPmb.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/SearchFieldRankingPmb.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv.pmbean; +package org.codelibs.fess.db.exbhv.pmbean; -import jp.sf.fess.db.bsbhv.pmbean.BsSearchFieldRankingPmb; +import org.codelibs.fess.db.bsbhv.pmbean.BsSearchFieldRankingPmb; /** * <!-- df:beginClassDescription --> diff --git a/src/main/java/jp/sf/fess/db/exbhv/pmbean/SearchQueryRankingPmb.java b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/SearchQueryRankingPmb.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/pmbean/SearchQueryRankingPmb.java rename to src/main/java/org/codelibs/fess/db/exbhv/pmbean/SearchQueryRankingPmb.java index 448990c48..1d05d4254 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/pmbean/SearchQueryRankingPmb.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/SearchQueryRankingPmb.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv.pmbean; +package org.codelibs.fess.db.exbhv.pmbean; -import jp.sf.fess.db.bsbhv.pmbean.BsSearchQueryRankingPmb; +import org.codelibs.fess.db.bsbhv.pmbean.BsSearchQueryRankingPmb; /** * <!-- df:beginClassDescription --> diff --git a/src/main/java/jp/sf/fess/db/exbhv/pmbean/SearchWordRankingPmb.java b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/SearchWordRankingPmb.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/pmbean/SearchWordRankingPmb.java rename to src/main/java/org/codelibs/fess/db/exbhv/pmbean/SearchWordRankingPmb.java index b8331eec3..77d6e50d7 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/pmbean/SearchWordRankingPmb.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/SearchWordRankingPmb.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv.pmbean; +package org.codelibs.fess.db.exbhv.pmbean; -import jp.sf.fess.db.bsbhv.pmbean.BsSearchWordRankingPmb; +import org.codelibs.fess.db.bsbhv.pmbean.BsSearchWordRankingPmb; /** * <!-- df:beginClassDescription --> diff --git a/src/main/java/jp/sf/fess/db/exbhv/pmbean/SolrQueryRankingPmb.java b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/SolrQueryRankingPmb.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/pmbean/SolrQueryRankingPmb.java rename to src/main/java/org/codelibs/fess/db/exbhv/pmbean/SolrQueryRankingPmb.java index a157b0a01..381544867 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/pmbean/SolrQueryRankingPmb.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/SolrQueryRankingPmb.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv.pmbean; +package org.codelibs.fess.db.exbhv.pmbean; -import jp.sf.fess.db.bsbhv.pmbean.BsSolrQueryRankingPmb; +import org.codelibs.fess.db.bsbhv.pmbean.BsSolrQueryRankingPmb; /** * <!-- df:beginClassDescription --> diff --git a/src/main/java/jp/sf/fess/db/exbhv/pmbean/UserAgentRankingPmb.java b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/UserAgentRankingPmb.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exbhv/pmbean/UserAgentRankingPmb.java rename to src/main/java/org/codelibs/fess/db/exbhv/pmbean/UserAgentRankingPmb.java index 2e33683c7..b666afa8b 100644 --- a/src/main/java/jp/sf/fess/db/exbhv/pmbean/UserAgentRankingPmb.java +++ b/src/main/java/org/codelibs/fess/db/exbhv/pmbean/UserAgentRankingPmb.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exbhv.pmbean; +package org.codelibs.fess.db.exbhv.pmbean; -import jp.sf.fess.db.bsbhv.pmbean.BsUserAgentRankingPmb; +import org.codelibs.fess.db.bsbhv.pmbean.BsUserAgentRankingPmb; /** * <!-- df:beginClassDescription --> diff --git a/src/main/java/jp/sf/fess/db/exentity/BoostDocumentRule.java b/src/main/java/org/codelibs/fess/db/exentity/BoostDocumentRule.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exentity/BoostDocumentRule.java rename to src/main/java/org/codelibs/fess/db/exentity/BoostDocumentRule.java index a3e3e1885..816f1a278 100644 --- a/src/main/java/jp/sf/fess/db/exentity/BoostDocumentRule.java +++ b/src/main/java/org/codelibs/fess/db/exentity/BoostDocumentRule.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsBoostDocumentRule; +import org.codelibs.fess.db.bsentity.BsBoostDocumentRule; /** * The entity of BOOST_DOCUMENT_RULE. diff --git a/src/main/java/jp/sf/fess/db/exentity/ClickLog.java b/src/main/java/org/codelibs/fess/db/exentity/ClickLog.java similarity index 87% rename from src/main/java/jp/sf/fess/db/exentity/ClickLog.java rename to src/main/java/org/codelibs/fess/db/exentity/ClickLog.java index 825fcedb1..57f0d398f 100644 --- a/src/main/java/jp/sf/fess/db/exentity/ClickLog.java +++ b/src/main/java/org/codelibs/fess/db/exentity/ClickLog.java @@ -14,13 +14,13 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import java.sql.Timestamp; import java.text.SimpleDateFormat; +import java.time.LocalDateTime; -import jp.sf.fess.Constants; -import jp.sf.fess.db.bsentity.BsClickLog; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.bsentity.BsClickLog; /** * The entity of CLICK_LOG. @@ -35,7 +35,7 @@ public class ClickLog extends BsClickLog { /** Serial version UID. (Default) */ private static final long serialVersionUID = 1L; - private Timestamp queryRequestedTime; + private LocalDateTime queryRequestedTime; private String userSessionId; @@ -51,11 +51,11 @@ public class ClickLog extends BsClickLog { this.userSessionId = userSessionId; } - public Timestamp getQueryRequestedTime() { + public LocalDateTime getQueryRequestedTime() { return queryRequestedTime; } - public void setQueryRequestedTime(final Timestamp queryRequestedTime) { + public void setQueryRequestedTime(final LocalDateTime queryRequestedTime) { this.queryRequestedTime = queryRequestedTime; } diff --git a/src/main/java/jp/sf/fess/db/exentity/CrawlingConfig.java b/src/main/java/org/codelibs/fess/db/exentity/CrawlingConfig.java similarity index 97% rename from src/main/java/jp/sf/fess/db/exentity/CrawlingConfig.java rename to src/main/java/org/codelibs/fess/db/exentity/CrawlingConfig.java index 33aba0aba..ceef721a2 100644 --- a/src/main/java/jp/sf/fess/db/exentity/CrawlingConfig.java +++ b/src/main/java/org/codelibs/fess/db/exentity/CrawlingConfig.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; import java.util.Map; diff --git a/src/main/java/jp/sf/fess/db/exentity/CrawlingSession.java b/src/main/java/org/codelibs/fess/db/exentity/CrawlingSession.java similarity index 92% rename from src/main/java/jp/sf/fess/db/exentity/CrawlingSession.java rename to src/main/java/org/codelibs/fess/db/exentity/CrawlingSession.java index afffa2228..671a74ed2 100644 --- a/src/main/java/jp/sf/fess/db/exentity/CrawlingSession.java +++ b/src/main/java/org/codelibs/fess/db/exentity/CrawlingSession.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsCrawlingSession; +import org.codelibs.fess.db.bsentity.BsCrawlingSession; /** * The entity of CRAWLING_SESSION. diff --git a/src/main/java/jp/sf/fess/db/exentity/CrawlingSessionInfo.java b/src/main/java/org/codelibs/fess/db/exentity/CrawlingSessionInfo.java similarity index 94% rename from src/main/java/jp/sf/fess/db/exentity/CrawlingSessionInfo.java rename to src/main/java/org/codelibs/fess/db/exentity/CrawlingSessionInfo.java index b5bee36d0..a4de8202f 100644 --- a/src/main/java/jp/sf/fess/db/exentity/CrawlingSessionInfo.java +++ b/src/main/java/org/codelibs/fess/db/exentity/CrawlingSessionInfo.java @@ -14,12 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; import java.util.Locale; -import jp.sf.fess.db.bsentity.BsCrawlingSessionInfo; - +import org.codelibs.fess.db.bsentity.BsCrawlingSessionInfo; import org.seasar.struts.util.MessageResourcesUtil; import org.seasar.struts.util.RequestUtil; diff --git a/src/main/java/jp/sf/fess/db/exentity/DataConfigToLabelTypeMapping.java b/src/main/java/org/codelibs/fess/db/exentity/DataConfigToLabelTypeMapping.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exentity/DataConfigToLabelTypeMapping.java rename to src/main/java/org/codelibs/fess/db/exentity/DataConfigToLabelTypeMapping.java index ea9a3f3d1..47a6dcdac 100644 --- a/src/main/java/jp/sf/fess/db/exentity/DataConfigToLabelTypeMapping.java +++ b/src/main/java/org/codelibs/fess/db/exentity/DataConfigToLabelTypeMapping.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsDataConfigToLabelTypeMapping; +import org.codelibs.fess.db.bsentity.BsDataConfigToLabelTypeMapping; /** * The entity of DATA_CONFIG_TO_LABEL_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exentity/DataConfigToRoleTypeMapping.java b/src/main/java/org/codelibs/fess/db/exentity/DataConfigToRoleTypeMapping.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exentity/DataConfigToRoleTypeMapping.java rename to src/main/java/org/codelibs/fess/db/exentity/DataConfigToRoleTypeMapping.java index e59457441..fd10e5255 100644 --- a/src/main/java/jp/sf/fess/db/exentity/DataConfigToRoleTypeMapping.java +++ b/src/main/java/org/codelibs/fess/db/exentity/DataConfigToRoleTypeMapping.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsDataConfigToRoleTypeMapping; +import org.codelibs.fess.db.bsentity.BsDataConfigToRoleTypeMapping; /** * The entity of DATA_CONFIG_TO_ROLE_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exentity/DataCrawlingConfig.java b/src/main/java/org/codelibs/fess/db/exentity/DataCrawlingConfig.java similarity index 96% rename from src/main/java/jp/sf/fess/db/exentity/DataCrawlingConfig.java rename to src/main/java/org/codelibs/fess/db/exentity/DataCrawlingConfig.java index 5bd8219df..67a471bf2 100644 --- a/src/main/java/jp/sf/fess/db/exentity/DataCrawlingConfig.java +++ b/src/main/java/org/codelibs/fess/db/exentity/DataCrawlingConfig.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; import java.math.BigDecimal; import java.util.ArrayList; @@ -24,10 +24,6 @@ import java.util.List; import java.util.Map; import java.util.regex.Pattern; -import jp.sf.fess.Constants; -import jp.sf.fess.db.bsentity.BsDataCrawlingConfig; -import jp.sf.fess.util.ParameterUtil; - import org.apache.http.auth.AuthScheme; import org.apache.http.auth.AuthScope; import org.apache.http.auth.Credentials; @@ -37,6 +33,9 @@ import org.apache.http.impl.auth.BasicScheme; import org.apache.http.impl.auth.DigestScheme; import org.apache.http.impl.auth.NTLMScheme; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.bsentity.BsDataCrawlingConfig; +import org.codelibs.fess.util.ParameterUtil; import org.codelibs.robot.client.S2RobotClientFactory; import org.codelibs.robot.client.http.Authentication; import org.codelibs.robot.client.http.HcHttpClient; @@ -108,7 +107,9 @@ public class DataCrawlingConfig extends BsDataCrawlingConfig implements final List<DataConfigToLabelTypeMapping> list = getDataConfigToLabelTypeMappingList(); if (list != null && !list.isEmpty()) { for (final DataConfigToLabelTypeMapping mapping : list) { - values.add(mapping.getLabelType().getValue()); + mapping.getLabelType().ifPresent(entity -> { + values.add(entity.getValue()); + }); } } return values.toArray(new String[values.size()]); @@ -131,7 +132,9 @@ public class DataCrawlingConfig extends BsDataCrawlingConfig implements final List<DataConfigToRoleTypeMapping> list = getDataConfigToRoleTypeMappingList(); if (list != null && !list.isEmpty()) { for (final DataConfigToRoleTypeMapping mapping : list) { - values.add(mapping.getRoleType().getValue()); + mapping.getRoleType().ifPresent(entity -> { + values.add(entity.getValue()); + }); } } return values.toArray(new String[values.size()]); diff --git a/src/main/java/jp/sf/fess/db/exentity/FailureUrl.java b/src/main/java/org/codelibs/fess/db/exentity/FailureUrl.java similarity index 92% rename from src/main/java/jp/sf/fess/db/exentity/FailureUrl.java rename to src/main/java/org/codelibs/fess/db/exentity/FailureUrl.java index 790ea03d9..936f5f797 100644 --- a/src/main/java/jp/sf/fess/db/exentity/FailureUrl.java +++ b/src/main/java/org/codelibs/fess/db/exentity/FailureUrl.java @@ -14,15 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; import java.text.SimpleDateFormat; -import jp.sf.fess.Constants; -import jp.sf.fess.db.bsentity.BsFailureUrl; -import jp.sf.fess.util.ComponentUtil; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.bsentity.BsFailureUrl; +import org.codelibs.fess.util.ComponentUtil; /** * The entity of FAILURE_URL. diff --git a/src/main/java/jp/sf/fess/db/exentity/FavoriteLog.java b/src/main/java/org/codelibs/fess/db/exentity/FavoriteLog.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exentity/FavoriteLog.java rename to src/main/java/org/codelibs/fess/db/exentity/FavoriteLog.java index e4ac5c6c9..43a4605c8 100644 --- a/src/main/java/jp/sf/fess/db/exentity/FavoriteLog.java +++ b/src/main/java/org/codelibs/fess/db/exentity/FavoriteLog.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsFavoriteLog; +import org.codelibs.fess.db.bsentity.BsFavoriteLog; /** * The entity of FAVORITE_LOG. diff --git a/src/main/java/jp/sf/fess/db/exentity/FileAuthentication.java b/src/main/java/org/codelibs/fess/db/exentity/FileAuthentication.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exentity/FileAuthentication.java rename to src/main/java/org/codelibs/fess/db/exentity/FileAuthentication.java index ff424b762..0143abfa4 100644 --- a/src/main/java/jp/sf/fess/db/exentity/FileAuthentication.java +++ b/src/main/java/org/codelibs/fess/db/exentity/FileAuthentication.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsFileAuthentication; +import org.codelibs.fess.db.bsentity.BsFileAuthentication; /** * The entity of FILE_AUTHENTICATION. diff --git a/src/main/java/jp/sf/fess/db/exentity/FileConfigToLabelTypeMapping.java b/src/main/java/org/codelibs/fess/db/exentity/FileConfigToLabelTypeMapping.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exentity/FileConfigToLabelTypeMapping.java rename to src/main/java/org/codelibs/fess/db/exentity/FileConfigToLabelTypeMapping.java index 02b3319eb..e443c5c56 100644 --- a/src/main/java/jp/sf/fess/db/exentity/FileConfigToLabelTypeMapping.java +++ b/src/main/java/org/codelibs/fess/db/exentity/FileConfigToLabelTypeMapping.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsFileConfigToLabelTypeMapping; +import org.codelibs.fess.db.bsentity.BsFileConfigToLabelTypeMapping; /** * The entity of FILE_CONFIG_TO_LABEL_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exentity/FileConfigToRoleTypeMapping.java b/src/main/java/org/codelibs/fess/db/exentity/FileConfigToRoleTypeMapping.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exentity/FileConfigToRoleTypeMapping.java rename to src/main/java/org/codelibs/fess/db/exentity/FileConfigToRoleTypeMapping.java index ba1256be5..3e2004256 100644 --- a/src/main/java/jp/sf/fess/db/exentity/FileConfigToRoleTypeMapping.java +++ b/src/main/java/org/codelibs/fess/db/exentity/FileConfigToRoleTypeMapping.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsFileConfigToRoleTypeMapping; +import org.codelibs.fess.db.bsentity.BsFileConfigToRoleTypeMapping; /** * The entity of FILE_CONFIG_TO_ROLE_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exentity/FileCrawlingConfig.java b/src/main/java/org/codelibs/fess/db/exentity/FileCrawlingConfig.java similarity index 93% rename from src/main/java/jp/sf/fess/db/exentity/FileCrawlingConfig.java rename to src/main/java/org/codelibs/fess/db/exentity/FileCrawlingConfig.java index 023cf193d..9c5663278 100644 --- a/src/main/java/jp/sf/fess/db/exentity/FileCrawlingConfig.java +++ b/src/main/java/org/codelibs/fess/db/exentity/FileCrawlingConfig.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; import java.math.BigDecimal; import java.util.ArrayList; @@ -24,14 +24,13 @@ import java.util.List; import java.util.Map; import java.util.regex.Pattern; -import jp.sf.fess.Constants; -import jp.sf.fess.db.bsentity.BsFileCrawlingConfig; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.service.FileAuthenticationService; -import jp.sf.fess.util.ComponentUtil; -import jp.sf.fess.util.ParameterUtil; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.bsentity.BsFileCrawlingConfig; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.service.FileAuthenticationService; +import org.codelibs.fess.util.ComponentUtil; +import org.codelibs.fess.util.ParameterUtil; import org.codelibs.robot.client.S2RobotClientFactory; import org.codelibs.robot.client.smb.SmbAuthentication; import org.codelibs.robot.client.smb.SmbClient; @@ -83,7 +82,9 @@ public class FileCrawlingConfig extends BsFileCrawlingConfig implements final List<FileConfigToLabelTypeMapping> list = getFileConfigToLabelTypeMappingList(); if (list != null && !list.isEmpty()) { for (final FileConfigToLabelTypeMapping mapping : list) { - values.add(mapping.getLabelType().getValue()); + mapping.getLabelType().ifPresent(entity -> { + values.add(entity.getValue()); + }); } } return values.toArray(new String[values.size()]); @@ -106,7 +107,9 @@ public class FileCrawlingConfig extends BsFileCrawlingConfig implements final List<FileConfigToRoleTypeMapping> list = getFileConfigToRoleTypeMappingList(); if (list != null && !list.isEmpty()) { for (final FileConfigToRoleTypeMapping mapping : list) { - values.add(mapping.getRoleType().getValue()); + mapping.getRoleType().ifPresent(entity -> { + values.add(entity.getValue()); + }); } } return values.toArray(new String[values.size()]); diff --git a/src/main/java/jp/sf/fess/db/exentity/JobLog.java b/src/main/java/org/codelibs/fess/db/exentity/JobLog.java similarity index 85% rename from src/main/java/jp/sf/fess/db/exentity/JobLog.java rename to src/main/java/org/codelibs/fess/db/exentity/JobLog.java index 989ac7627..c656a50df 100644 --- a/src/main/java/jp/sf/fess/db/exentity/JobLog.java +++ b/src/main/java/org/codelibs/fess/db/exentity/JobLog.java @@ -14,12 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import java.sql.Timestamp; - -import jp.sf.fess.Constants; -import jp.sf.fess.db.bsentity.BsJobLog; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.bsentity.BsJobLog; +import org.codelibs.fess.util.ComponentUtil; /** * The entity of JOB_LOG. @@ -45,7 +44,7 @@ public class JobLog extends BsJobLog { setScriptType(scheduledJob.getScriptType()); setScriptData(scheduledJob.getScriptData()); setTarget(scheduledJob.getTarget()); - setStartTime(new Timestamp(System.currentTimeMillis())); + setStartTime(ComponentUtil.getSystemHelper().getCurrentTime()); setJobStatus(Constants.RUNNING); } diff --git a/src/main/java/jp/sf/fess/db/exentity/KeyMatch.java b/src/main/java/org/codelibs/fess/db/exentity/KeyMatch.java similarity index 94% rename from src/main/java/jp/sf/fess/db/exentity/KeyMatch.java rename to src/main/java/org/codelibs/fess/db/exentity/KeyMatch.java index e8a733387..78e2bcbbb 100644 --- a/src/main/java/jp/sf/fess/db/exentity/KeyMatch.java +++ b/src/main/java/org/codelibs/fess/db/exentity/KeyMatch.java @@ -14,11 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; import java.math.BigDecimal; -import jp.sf.fess.db.bsentity.BsKeyMatch; +import org.codelibs.fess.db.bsentity.BsKeyMatch; /** * The entity of KEY_MATCH. diff --git a/src/main/java/jp/sf/fess/db/exentity/LabelType.java b/src/main/java/org/codelibs/fess/db/exentity/LabelType.java similarity index 88% rename from src/main/java/jp/sf/fess/db/exentity/LabelType.java rename to src/main/java/org/codelibs/fess/db/exentity/LabelType.java index 514d97095..9634ec25d 100644 --- a/src/main/java/jp/sf/fess/db/exentity/LabelType.java +++ b/src/main/java/org/codelibs/fess/db/exentity/LabelType.java @@ -14,14 +14,13 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; import java.util.ArrayList; import java.util.List; -import jp.sf.fess.db.bsentity.BsLabelType; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.db.bsentity.BsLabelType; /** * The entity of LABEL_TYPE. @@ -55,7 +54,9 @@ public class LabelType extends BsLabelType { if (roleValueList == null) { roleValueList = new ArrayList<String>(); for (final LabelTypeToRoleTypeMapping mapping : getLabelTypeToRoleTypeMappingList()) { - roleValueList.add(mapping.getRoleType().getValue()); + mapping.getRoleType().ifPresent(entity -> { + roleValueList.add(entity.getValue()); + }); } } return roleValueList; diff --git a/src/main/java/jp/sf/fess/db/exentity/LabelTypeToRoleTypeMapping.java b/src/main/java/org/codelibs/fess/db/exentity/LabelTypeToRoleTypeMapping.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exentity/LabelTypeToRoleTypeMapping.java rename to src/main/java/org/codelibs/fess/db/exentity/LabelTypeToRoleTypeMapping.java index 23e3c7f83..414807626 100644 --- a/src/main/java/jp/sf/fess/db/exentity/LabelTypeToRoleTypeMapping.java +++ b/src/main/java/org/codelibs/fess/db/exentity/LabelTypeToRoleTypeMapping.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsLabelTypeToRoleTypeMapping; +import org.codelibs.fess.db.bsentity.BsLabelTypeToRoleTypeMapping; /** * The entity of LABEL_TYPE_TO_ROLE_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exentity/OverlappingHost.java b/src/main/java/org/codelibs/fess/db/exentity/OverlappingHost.java similarity index 93% rename from src/main/java/jp/sf/fess/db/exentity/OverlappingHost.java rename to src/main/java/org/codelibs/fess/db/exentity/OverlappingHost.java index b7bad6706..16ea91d5c 100644 --- a/src/main/java/jp/sf/fess/db/exentity/OverlappingHost.java +++ b/src/main/java/org/codelibs/fess/db/exentity/OverlappingHost.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsOverlappingHost; +import org.codelibs.fess.db.bsentity.BsOverlappingHost; /** * The entity of OVERLAPPING_HOST. diff --git a/src/main/java/jp/sf/fess/db/exentity/PathMapping.java b/src/main/java/org/codelibs/fess/db/exentity/PathMapping.java similarity index 93% rename from src/main/java/jp/sf/fess/db/exentity/PathMapping.java rename to src/main/java/org/codelibs/fess/db/exentity/PathMapping.java index d7c09bdaf..e9c096680 100644 --- a/src/main/java/jp/sf/fess/db/exentity/PathMapping.java +++ b/src/main/java/org/codelibs/fess/db/exentity/PathMapping.java @@ -14,12 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; import java.util.regex.Matcher; import java.util.regex.Pattern; -import jp.sf.fess.db.bsentity.BsPathMapping; +import org.codelibs.fess.db.bsentity.BsPathMapping; /** * The entity of PATH_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exentity/RequestHeader.java b/src/main/java/org/codelibs/fess/db/exentity/RequestHeader.java similarity index 92% rename from src/main/java/jp/sf/fess/db/exentity/RequestHeader.java rename to src/main/java/org/codelibs/fess/db/exentity/RequestHeader.java index 277d9bbaa..216c0dbfe 100644 --- a/src/main/java/jp/sf/fess/db/exentity/RequestHeader.java +++ b/src/main/java/org/codelibs/fess/db/exentity/RequestHeader.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsRequestHeader; +import org.codelibs.fess.db.bsentity.BsRequestHeader; /** * The entity of REQUEST_HEADER. diff --git a/src/main/java/jp/sf/fess/db/exentity/RoleType.java b/src/main/java/org/codelibs/fess/db/exentity/RoleType.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exentity/RoleType.java rename to src/main/java/org/codelibs/fess/db/exentity/RoleType.java index a56777575..de5af488d 100644 --- a/src/main/java/jp/sf/fess/db/exentity/RoleType.java +++ b/src/main/java/org/codelibs/fess/db/exentity/RoleType.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsRoleType; +import org.codelibs.fess.db.bsentity.BsRoleType; /** * The entity of ROLE_TYPE. diff --git a/src/main/java/jp/sf/fess/db/exentity/ScheduledJob.java b/src/main/java/org/codelibs/fess/db/exentity/ScheduledJob.java similarity index 88% rename from src/main/java/jp/sf/fess/db/exentity/ScheduledJob.java rename to src/main/java/org/codelibs/fess/db/exentity/ScheduledJob.java index 1191a09f8..1f81483f1 100644 --- a/src/main/java/jp/sf/fess/db/exentity/ScheduledJob.java +++ b/src/main/java/org/codelibs/fess/db/exentity/ScheduledJob.java @@ -14,12 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.Constants; -import jp.sf.fess.db.bsentity.BsScheduledJob; -import jp.sf.fess.job.TriggeredJob; -import jp.sf.fess.util.ComponentUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.bsentity.BsScheduledJob; +import org.codelibs.fess.job.TriggeredJob; +import org.codelibs.fess.util.ComponentUtil; /** * The entity of SCHEDULED_JOB. diff --git a/src/main/java/jp/sf/fess/db/exentity/SearchFieldLog.java b/src/main/java/org/codelibs/fess/db/exentity/SearchFieldLog.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exentity/SearchFieldLog.java rename to src/main/java/org/codelibs/fess/db/exentity/SearchFieldLog.java index cb7f85d12..d07168845 100644 --- a/src/main/java/jp/sf/fess/db/exentity/SearchFieldLog.java +++ b/src/main/java/org/codelibs/fess/db/exentity/SearchFieldLog.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsSearchFieldLog; +import org.codelibs.fess.db.bsentity.BsSearchFieldLog; /** * The entity of SEARCH_FIELD_LOG. diff --git a/src/main/java/jp/sf/fess/db/exentity/SearchLog.java b/src/main/java/org/codelibs/fess/db/exentity/SearchLog.java similarity index 94% rename from src/main/java/jp/sf/fess/db/exentity/SearchLog.java rename to src/main/java/org/codelibs/fess/db/exentity/SearchLog.java index 02e858532..4e4f9d4b8 100644 --- a/src/main/java/jp/sf/fess/db/exentity/SearchLog.java +++ b/src/main/java/org/codelibs/fess/db/exentity/SearchLog.java @@ -14,14 +14,13 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; import java.text.SimpleDateFormat; -import jp.sf.fess.Constants; -import jp.sf.fess.db.bsentity.BsSearchLog; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.bsentity.BsSearchLog; /** * The entity of SEARCH_LOG. diff --git a/src/main/java/jp/sf/fess/db/exentity/SuggestBadWord.java b/src/main/java/org/codelibs/fess/db/exentity/SuggestBadWord.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exentity/SuggestBadWord.java rename to src/main/java/org/codelibs/fess/db/exentity/SuggestBadWord.java index 04f8d9189..59b917be3 100644 --- a/src/main/java/jp/sf/fess/db/exentity/SuggestBadWord.java +++ b/src/main/java/org/codelibs/fess/db/exentity/SuggestBadWord.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsSuggestBadWord; +import org.codelibs.fess.db.bsentity.BsSuggestBadWord; /** * The entity of SUGGEST_BAD_WORD. diff --git a/src/main/java/jp/sf/fess/db/exentity/SuggestElevateWord.java b/src/main/java/org/codelibs/fess/db/exentity/SuggestElevateWord.java similarity index 93% rename from src/main/java/jp/sf/fess/db/exentity/SuggestElevateWord.java rename to src/main/java/org/codelibs/fess/db/exentity/SuggestElevateWord.java index ab07209f1..ded53a775 100644 --- a/src/main/java/jp/sf/fess/db/exentity/SuggestElevateWord.java +++ b/src/main/java/org/codelibs/fess/db/exentity/SuggestElevateWord.java @@ -14,11 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; import java.math.BigDecimal; -import jp.sf.fess.db.bsentity.BsSuggestElevateWord; +import org.codelibs.fess.db.bsentity.BsSuggestElevateWord; /** * The entity of SUGGEST_ELEVATE_WORD. diff --git a/src/main/java/jp/sf/fess/db/exentity/UserInfo.java b/src/main/java/org/codelibs/fess/db/exentity/UserInfo.java similarity index 91% rename from src/main/java/jp/sf/fess/db/exentity/UserInfo.java rename to src/main/java/org/codelibs/fess/db/exentity/UserInfo.java index 890c047c6..a5522a4d3 100644 --- a/src/main/java/jp/sf/fess/db/exentity/UserInfo.java +++ b/src/main/java/org/codelibs/fess/db/exentity/UserInfo.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsUserInfo; +import org.codelibs.fess.db.bsentity.BsUserInfo; /** * The entity of USER_INFO. diff --git a/src/main/java/jp/sf/fess/db/exentity/WebAuthentication.java b/src/main/java/org/codelibs/fess/db/exentity/WebAuthentication.java similarity index 95% rename from src/main/java/jp/sf/fess/db/exentity/WebAuthentication.java rename to src/main/java/org/codelibs/fess/db/exentity/WebAuthentication.java index bf422bff4..2cc916b10 100644 --- a/src/main/java/jp/sf/fess/db/exentity/WebAuthentication.java +++ b/src/main/java/org/codelibs/fess/db/exentity/WebAuthentication.java @@ -14,14 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; import java.util.Map; -import jp.sf.fess.Constants; -import jp.sf.fess.db.bsentity.BsWebAuthentication; -import jp.sf.fess.util.ParameterUtil; - import org.apache.http.auth.AuthScheme; import org.apache.http.auth.AuthScope; import org.apache.http.auth.Credentials; @@ -31,6 +27,9 @@ import org.apache.http.impl.auth.BasicScheme; import org.apache.http.impl.auth.DigestScheme; import org.apache.http.impl.auth.NTLMScheme; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.bsentity.BsWebAuthentication; +import org.codelibs.fess.util.ParameterUtil; import org.codelibs.robot.RobotSystemException; import org.codelibs.robot.client.http.Authentication; import org.codelibs.robot.client.http.impl.AuthenticationImpl; diff --git a/src/main/java/jp/sf/fess/db/exentity/WebConfigToLabelTypeMapping.java b/src/main/java/org/codelibs/fess/db/exentity/WebConfigToLabelTypeMapping.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exentity/WebConfigToLabelTypeMapping.java rename to src/main/java/org/codelibs/fess/db/exentity/WebConfigToLabelTypeMapping.java index bd4a13772..556878f36 100644 --- a/src/main/java/jp/sf/fess/db/exentity/WebConfigToLabelTypeMapping.java +++ b/src/main/java/org/codelibs/fess/db/exentity/WebConfigToLabelTypeMapping.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsWebConfigToLabelTypeMapping; +import org.codelibs.fess.db.bsentity.BsWebConfigToLabelTypeMapping; /** * The entity of WEB_CONFIG_TO_LABEL_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exentity/WebConfigToRoleTypeMapping.java b/src/main/java/org/codelibs/fess/db/exentity/WebConfigToRoleTypeMapping.java similarity index 90% rename from src/main/java/jp/sf/fess/db/exentity/WebConfigToRoleTypeMapping.java rename to src/main/java/org/codelibs/fess/db/exentity/WebConfigToRoleTypeMapping.java index 7c1eeb8f7..044ce8e70 100644 --- a/src/main/java/jp/sf/fess/db/exentity/WebConfigToRoleTypeMapping.java +++ b/src/main/java/org/codelibs/fess/db/exentity/WebConfigToRoleTypeMapping.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; -import jp.sf.fess.db.bsentity.BsWebConfigToRoleTypeMapping; +import org.codelibs.fess.db.bsentity.BsWebConfigToRoleTypeMapping; /** * The entity of WEB_CONFIG_TO_ROLE_TYPE_MAPPING. diff --git a/src/main/java/jp/sf/fess/db/exentity/WebCrawlingConfig.java b/src/main/java/org/codelibs/fess/db/exentity/WebCrawlingConfig.java similarity index 92% rename from src/main/java/jp/sf/fess/db/exentity/WebCrawlingConfig.java rename to src/main/java/org/codelibs/fess/db/exentity/WebCrawlingConfig.java index 877c348f2..25b38a937 100644 --- a/src/main/java/jp/sf/fess/db/exentity/WebCrawlingConfig.java +++ b/src/main/java/org/codelibs/fess/db/exentity/WebCrawlingConfig.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity; +package org.codelibs.fess.db.exentity; import java.math.BigDecimal; import java.util.ArrayList; @@ -24,13 +24,12 @@ import java.util.List; import java.util.Map; import java.util.regex.Pattern; -import jp.sf.fess.Constants; -import jp.sf.fess.db.bsentity.BsWebCrawlingConfig; -import jp.sf.fess.service.RequestHeaderService; -import jp.sf.fess.service.WebAuthenticationService; -import jp.sf.fess.util.ParameterUtil; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.bsentity.BsWebCrawlingConfig; +import org.codelibs.fess.service.RequestHeaderService; +import org.codelibs.fess.service.WebAuthenticationService; +import org.codelibs.fess.util.ParameterUtil; import org.codelibs.robot.client.S2RobotClientFactory; import org.codelibs.robot.client.http.Authentication; import org.codelibs.robot.client.http.HcHttpClient; @@ -66,7 +65,7 @@ public class WebCrawlingConfig extends BsWebCrawlingConfig implements } /* (non-Javadoc) - * @see jp.sf.fess.db.exentity.CrawlingConfig#getLabelTypeIds() + * @see org.codelibs.fess.db.exentity.CrawlingConfig#getLabelTypeIds() */ public String[] getLabelTypeIds() { if (labelTypeIds == null) { @@ -85,14 +84,16 @@ public class WebCrawlingConfig extends BsWebCrawlingConfig implements final List<WebConfigToLabelTypeMapping> list = getWebConfigToLabelTypeMappingList(); if (list != null && !list.isEmpty()) { for (final WebConfigToLabelTypeMapping mapping : list) { - values.add(mapping.getLabelType().getValue()); + mapping.getLabelType().ifPresent(entity -> { + values.add(entity.getValue()); + }); } } return values.toArray(new String[values.size()]); } /* (non-Javadoc) - * @see jp.sf.fess.db.exentity.CrawlingConfig#getRoleTypeIds() + * @see org.codelibs.fess.db.exentity.CrawlingConfig#getRoleTypeIds() */ public String[] getRoleTypeIds() { if (roleTypeIds == null) { @@ -111,7 +112,9 @@ public class WebCrawlingConfig extends BsWebCrawlingConfig implements final List<WebConfigToRoleTypeMapping> list = getWebConfigToRoleTypeMappingList(); if (list != null && !list.isEmpty()) { for (final WebConfigToRoleTypeMapping mapping : list) { - values.add(mapping.getRoleType().getValue()); + mapping.getRoleType().ifPresent(entity -> { + values.add(entity.getValue()); + }); } } return values.toArray(new String[values.size()]); diff --git a/src/main/java/jp/sf/fess/db/exentity/customize/ClickUrlRanking.java b/src/main/java/org/codelibs/fess/db/exentity/customize/ClickUrlRanking.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exentity/customize/ClickUrlRanking.java rename to src/main/java/org/codelibs/fess/db/exentity/customize/ClickUrlRanking.java index a6841ed4e..84bcf8d69 100644 --- a/src/main/java/jp/sf/fess/db/exentity/customize/ClickUrlRanking.java +++ b/src/main/java/org/codelibs/fess/db/exentity/customize/ClickUrlRanking.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity.customize; +package org.codelibs.fess.db.exentity.customize; -import jp.sf.fess.db.bsentity.customize.BsClickUrlRanking; +import org.codelibs.fess.db.bsentity.customize.BsClickUrlRanking; /** * The entity of ClickUrlRanking. diff --git a/src/main/java/jp/sf/fess/db/exentity/customize/ClientIpRanking.java b/src/main/java/org/codelibs/fess/db/exentity/customize/ClientIpRanking.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exentity/customize/ClientIpRanking.java rename to src/main/java/org/codelibs/fess/db/exentity/customize/ClientIpRanking.java index a28254efc..350e483d1 100644 --- a/src/main/java/jp/sf/fess/db/exentity/customize/ClientIpRanking.java +++ b/src/main/java/org/codelibs/fess/db/exentity/customize/ClientIpRanking.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity.customize; +package org.codelibs.fess.db.exentity.customize; -import jp.sf.fess.db.bsentity.customize.BsClientIpRanking; +import org.codelibs.fess.db.bsentity.customize.BsClientIpRanking; /** * The entity of ClientIpRanking. diff --git a/src/main/java/jp/sf/fess/db/exentity/customize/FavoriteUrlCount.java b/src/main/java/org/codelibs/fess/db/exentity/customize/FavoriteUrlCount.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exentity/customize/FavoriteUrlCount.java rename to src/main/java/org/codelibs/fess/db/exentity/customize/FavoriteUrlCount.java index 0f5906c16..63b3d7768 100644 --- a/src/main/java/jp/sf/fess/db/exentity/customize/FavoriteUrlCount.java +++ b/src/main/java/org/codelibs/fess/db/exentity/customize/FavoriteUrlCount.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity.customize; +package org.codelibs.fess.db.exentity.customize; -import jp.sf.fess.db.bsentity.customize.BsFavoriteUrlCount; +import org.codelibs.fess.db.bsentity.customize.BsFavoriteUrlCount; /** * The entity of FavoriteUrlCount. diff --git a/src/main/java/jp/sf/fess/db/exentity/customize/FavoriteUrlRanking.java b/src/main/java/org/codelibs/fess/db/exentity/customize/FavoriteUrlRanking.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exentity/customize/FavoriteUrlRanking.java rename to src/main/java/org/codelibs/fess/db/exentity/customize/FavoriteUrlRanking.java index 95180650a..36d772743 100644 --- a/src/main/java/jp/sf/fess/db/exentity/customize/FavoriteUrlRanking.java +++ b/src/main/java/org/codelibs/fess/db/exentity/customize/FavoriteUrlRanking.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity.customize; +package org.codelibs.fess.db.exentity.customize; -import jp.sf.fess.db.bsentity.customize.BsFavoriteUrlRanking; +import org.codelibs.fess.db.bsentity.customize.BsFavoriteUrlRanking; /** * The entity of FavoriteUrlRanking. diff --git a/src/main/java/jp/sf/fess/db/exentity/customize/GroupedFieldName.java b/src/main/java/org/codelibs/fess/db/exentity/customize/GroupedFieldName.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exentity/customize/GroupedFieldName.java rename to src/main/java/org/codelibs/fess/db/exentity/customize/GroupedFieldName.java index 33ea22e85..351ac81ec 100644 --- a/src/main/java/jp/sf/fess/db/exentity/customize/GroupedFieldName.java +++ b/src/main/java/org/codelibs/fess/db/exentity/customize/GroupedFieldName.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity.customize; +package org.codelibs.fess.db.exentity.customize; -import jp.sf.fess.db.bsentity.customize.BsGroupedFieldName; +import org.codelibs.fess.db.bsentity.customize.BsGroupedFieldName; /** * The entity of GroupedFieldName. diff --git a/src/main/java/jp/sf/fess/db/exentity/customize/HotSearchWord.java b/src/main/java/org/codelibs/fess/db/exentity/customize/HotSearchWord.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exentity/customize/HotSearchWord.java rename to src/main/java/org/codelibs/fess/db/exentity/customize/HotSearchWord.java index 354e7b985..a16eb9e81 100644 --- a/src/main/java/jp/sf/fess/db/exentity/customize/HotSearchWord.java +++ b/src/main/java/org/codelibs/fess/db/exentity/customize/HotSearchWord.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity.customize; +package org.codelibs.fess.db.exentity.customize; -import jp.sf.fess.db.bsentity.customize.BsHotSearchWord; +import org.codelibs.fess.db.bsentity.customize.BsHotSearchWord; /** * The entity of HotSearchWord. diff --git a/src/main/java/jp/sf/fess/db/exentity/customize/RefererRanking.java b/src/main/java/org/codelibs/fess/db/exentity/customize/RefererRanking.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exentity/customize/RefererRanking.java rename to src/main/java/org/codelibs/fess/db/exentity/customize/RefererRanking.java index e70a03621..aef7fe7eb 100644 --- a/src/main/java/jp/sf/fess/db/exentity/customize/RefererRanking.java +++ b/src/main/java/org/codelibs/fess/db/exentity/customize/RefererRanking.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity.customize; +package org.codelibs.fess.db.exentity.customize; -import jp.sf.fess.db.bsentity.customize.BsRefererRanking; +import org.codelibs.fess.db.bsentity.customize.BsRefererRanking; /** * The entity of RefererRanking. diff --git a/src/main/java/jp/sf/fess/db/exentity/customize/SearchFieldRanking.java b/src/main/java/org/codelibs/fess/db/exentity/customize/SearchFieldRanking.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exentity/customize/SearchFieldRanking.java rename to src/main/java/org/codelibs/fess/db/exentity/customize/SearchFieldRanking.java index e723e5fcd..93a00ec75 100644 --- a/src/main/java/jp/sf/fess/db/exentity/customize/SearchFieldRanking.java +++ b/src/main/java/org/codelibs/fess/db/exentity/customize/SearchFieldRanking.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity.customize; +package org.codelibs.fess.db.exentity.customize; -import jp.sf.fess.db.bsentity.customize.BsSearchFieldRanking; +import org.codelibs.fess.db.bsentity.customize.BsSearchFieldRanking; /** * The entity of SearchFieldRanking. diff --git a/src/main/java/jp/sf/fess/db/exentity/customize/SearchQueryRanking.java b/src/main/java/org/codelibs/fess/db/exentity/customize/SearchQueryRanking.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exentity/customize/SearchQueryRanking.java rename to src/main/java/org/codelibs/fess/db/exentity/customize/SearchQueryRanking.java index 56f4858db..bbc4bb7f2 100644 --- a/src/main/java/jp/sf/fess/db/exentity/customize/SearchQueryRanking.java +++ b/src/main/java/org/codelibs/fess/db/exentity/customize/SearchQueryRanking.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity.customize; +package org.codelibs.fess.db.exentity.customize; -import jp.sf.fess.db.bsentity.customize.BsSearchQueryRanking; +import org.codelibs.fess.db.bsentity.customize.BsSearchQueryRanking; /** * The entity of SearchQueryRanking. diff --git a/src/main/java/jp/sf/fess/db/exentity/customize/SearchWordRanking.java b/src/main/java/org/codelibs/fess/db/exentity/customize/SearchWordRanking.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exentity/customize/SearchWordRanking.java rename to src/main/java/org/codelibs/fess/db/exentity/customize/SearchWordRanking.java index 9836a9e40..fe41c7996 100644 --- a/src/main/java/jp/sf/fess/db/exentity/customize/SearchWordRanking.java +++ b/src/main/java/org/codelibs/fess/db/exentity/customize/SearchWordRanking.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity.customize; +package org.codelibs.fess.db.exentity.customize; -import jp.sf.fess.db.bsentity.customize.BsSearchWordRanking; +import org.codelibs.fess.db.bsentity.customize.BsSearchWordRanking; /** * The entity of SearchWordRanking. diff --git a/src/main/java/jp/sf/fess/db/exentity/customize/SolrQueryRanking.java b/src/main/java/org/codelibs/fess/db/exentity/customize/SolrQueryRanking.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exentity/customize/SolrQueryRanking.java rename to src/main/java/org/codelibs/fess/db/exentity/customize/SolrQueryRanking.java index 5c430e89a..223ec0f9d 100644 --- a/src/main/java/jp/sf/fess/db/exentity/customize/SolrQueryRanking.java +++ b/src/main/java/org/codelibs/fess/db/exentity/customize/SolrQueryRanking.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity.customize; +package org.codelibs.fess.db.exentity.customize; -import jp.sf.fess.db.bsentity.customize.BsSolrQueryRanking; +import org.codelibs.fess.db.bsentity.customize.BsSolrQueryRanking; /** * The entity of SolrQueryRanking. diff --git a/src/main/java/jp/sf/fess/db/exentity/customize/UserAgentRanking.java b/src/main/java/org/codelibs/fess/db/exentity/customize/UserAgentRanking.java similarity index 89% rename from src/main/java/jp/sf/fess/db/exentity/customize/UserAgentRanking.java rename to src/main/java/org/codelibs/fess/db/exentity/customize/UserAgentRanking.java index cd5353aca..04a07903a 100644 --- a/src/main/java/jp/sf/fess/db/exentity/customize/UserAgentRanking.java +++ b/src/main/java/org/codelibs/fess/db/exentity/customize/UserAgentRanking.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.db.exentity.customize; +package org.codelibs.fess.db.exentity.customize; -import jp.sf.fess.db.bsentity.customize.BsUserAgentRanking; +import org.codelibs.fess.db.bsentity.customize.BsUserAgentRanking; /** * The entity of UserAgentRanking. diff --git a/src/main/java/jp/sf/fess/dict/DictionaryException.java b/src/main/java/org/codelibs/fess/dict/DictionaryException.java similarity index 92% rename from src/main/java/jp/sf/fess/dict/DictionaryException.java rename to src/main/java/org/codelibs/fess/dict/DictionaryException.java index 50a9586c8..2998b7509 100644 --- a/src/main/java/jp/sf/fess/dict/DictionaryException.java +++ b/src/main/java/org/codelibs/fess/dict/DictionaryException.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict; +package org.codelibs.fess.dict; -import jp.sf.fess.FessSystemException; +import org.codelibs.fess.FessSystemException; public class DictionaryException extends FessSystemException { diff --git a/src/main/java/jp/sf/fess/dict/DictionaryExpiredException.java b/src/main/java/org/codelibs/fess/dict/DictionaryExpiredException.java similarity index 96% rename from src/main/java/jp/sf/fess/dict/DictionaryExpiredException.java rename to src/main/java/org/codelibs/fess/dict/DictionaryExpiredException.java index 6764497ec..b9302e34a 100644 --- a/src/main/java/jp/sf/fess/dict/DictionaryExpiredException.java +++ b/src/main/java/org/codelibs/fess/dict/DictionaryExpiredException.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict; +package org.codelibs.fess.dict; import org.seasar.struts.exception.ActionMessagesException; diff --git a/src/main/java/jp/sf/fess/dict/DictionaryFile.java b/src/main/java/org/codelibs/fess/dict/DictionaryFile.java similarity index 99% rename from src/main/java/jp/sf/fess/dict/DictionaryFile.java rename to src/main/java/org/codelibs/fess/dict/DictionaryFile.java index 19da4d003..858ab6c64 100644 --- a/src/main/java/jp/sf/fess/dict/DictionaryFile.java +++ b/src/main/java/org/codelibs/fess/dict/DictionaryFile.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict; +package org.codelibs.fess.dict; import java.util.ArrayList; import java.util.Collection; diff --git a/src/main/java/jp/sf/fess/dict/DictionaryItem.java b/src/main/java/org/codelibs/fess/dict/DictionaryItem.java similarity index 95% rename from src/main/java/jp/sf/fess/dict/DictionaryItem.java rename to src/main/java/org/codelibs/fess/dict/DictionaryItem.java index 4b96d0233..fffb45f97 100644 --- a/src/main/java/jp/sf/fess/dict/DictionaryItem.java +++ b/src/main/java/org/codelibs/fess/dict/DictionaryItem.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict; +package org.codelibs.fess.dict; public abstract class DictionaryItem { protected long id; diff --git a/src/main/java/jp/sf/fess/dict/DictionaryLocator.java b/src/main/java/org/codelibs/fess/dict/DictionaryLocator.java similarity index 96% rename from src/main/java/jp/sf/fess/dict/DictionaryLocator.java rename to src/main/java/org/codelibs/fess/dict/DictionaryLocator.java index 76a36308e..7b492a047 100644 --- a/src/main/java/jp/sf/fess/dict/DictionaryLocator.java +++ b/src/main/java/org/codelibs/fess/dict/DictionaryLocator.java @@ -14,17 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict; +package org.codelibs.fess.dict; import java.io.File; import java.util.ArrayList; import java.util.Collection; import java.util.List; -import jp.sf.fess.util.ResourceUtil; - import org.apache.commons.io.FileUtils; import org.apache.commons.io.filefilter.AbstractFileFilter; +import org.codelibs.fess.util.ResourceUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/dict/DictionaryManager.java b/src/main/java/org/codelibs/fess/dict/DictionaryManager.java similarity index 99% rename from src/main/java/jp/sf/fess/dict/DictionaryManager.java rename to src/main/java/org/codelibs/fess/dict/DictionaryManager.java index 10b7b5df4..06b548d78 100644 --- a/src/main/java/jp/sf/fess/dict/DictionaryManager.java +++ b/src/main/java/org/codelibs/fess/dict/DictionaryManager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict; +package org.codelibs.fess.dict; import java.util.ArrayList; import java.util.Collection; diff --git a/src/main/java/jp/sf/fess/dict/synonym/SynonymFile.java b/src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java similarity index 98% rename from src/main/java/jp/sf/fess/dict/synonym/SynonymFile.java rename to src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java index cf2945957..28c710761 100644 --- a/src/main/java/jp/sf/fess/dict/synonym/SynonymFile.java +++ b/src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict.synonym; +package org.codelibs.fess.dict.synonym; import java.io.BufferedInputStream; import java.io.BufferedReader; @@ -31,13 +31,12 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -import jp.sf.fess.Constants; -import jp.sf.fess.dict.DictionaryException; -import jp.sf.fess.dict.DictionaryFile; - import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.dict.DictionaryException; +import org.codelibs.fess.dict.DictionaryFile; import org.codelibs.robot.util.StreamUtil; public class SynonymFile extends DictionaryFile<SynonymItem> { diff --git a/src/main/java/jp/sf/fess/dict/synonym/SynonymItem.java b/src/main/java/org/codelibs/fess/dict/synonym/SynonymItem.java similarity index 97% rename from src/main/java/jp/sf/fess/dict/synonym/SynonymItem.java rename to src/main/java/org/codelibs/fess/dict/synonym/SynonymItem.java index 34e5a37ab..33dce5591 100644 --- a/src/main/java/jp/sf/fess/dict/synonym/SynonymItem.java +++ b/src/main/java/org/codelibs/fess/dict/synonym/SynonymItem.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict.synonym; +package org.codelibs.fess.dict.synonym; import java.util.Arrays; -import jp.sf.fess.dict.DictionaryItem; - import org.apache.commons.lang3.StringUtils; +import org.codelibs.fess.dict.DictionaryItem; public class SynonymItem extends DictionaryItem { private final String[] inputs; diff --git a/src/main/java/jp/sf/fess/dict/synonym/SynonymLocator.java b/src/main/java/org/codelibs/fess/dict/synonym/SynonymLocator.java similarity index 92% rename from src/main/java/jp/sf/fess/dict/synonym/SynonymLocator.java rename to src/main/java/org/codelibs/fess/dict/synonym/SynonymLocator.java index 262df8630..04cde5a68 100644 --- a/src/main/java/jp/sf/fess/dict/synonym/SynonymLocator.java +++ b/src/main/java/org/codelibs/fess/dict/synonym/SynonymLocator.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict.synonym; +package org.codelibs.fess.dict.synonym; import java.io.File; import java.util.ArrayList; @@ -22,10 +22,9 @@ import java.util.Collections; import java.util.Comparator; import java.util.List; -import jp.sf.fess.dict.DictionaryFile; -import jp.sf.fess.dict.DictionaryItem; -import jp.sf.fess.dict.DictionaryLocator; - +import org.codelibs.fess.dict.DictionaryFile; +import org.codelibs.fess.dict.DictionaryItem; +import org.codelibs.fess.dict.DictionaryLocator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/dict/userdict/UserDictFile.java b/src/main/java/org/codelibs/fess/dict/userdict/UserDictFile.java similarity index 98% rename from src/main/java/jp/sf/fess/dict/userdict/UserDictFile.java rename to src/main/java/org/codelibs/fess/dict/userdict/UserDictFile.java index 692dcc1e1..44e8274e8 100644 --- a/src/main/java/jp/sf/fess/dict/userdict/UserDictFile.java +++ b/src/main/java/org/codelibs/fess/dict/userdict/UserDictFile.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict.userdict; +package org.codelibs.fess.dict.userdict; import java.io.BufferedInputStream; import java.io.BufferedReader; @@ -31,14 +31,13 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -import jp.sf.fess.Constants; -import jp.sf.fess.dict.DictionaryException; -import jp.sf.fess.dict.DictionaryFile; - import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.apache.lucene.analysis.ja.util.CSVUtil; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.dict.DictionaryException; +import org.codelibs.fess.dict.DictionaryFile; import org.codelibs.robot.util.StreamUtil; public class UserDictFile extends DictionaryFile<UserDictItem> { diff --git a/src/main/java/jp/sf/fess/dict/userdict/UserDictItem.java b/src/main/java/org/codelibs/fess/dict/userdict/UserDictItem.java similarity index 98% rename from src/main/java/jp/sf/fess/dict/userdict/UserDictItem.java rename to src/main/java/org/codelibs/fess/dict/userdict/UserDictItem.java index 85992eb13..880f8e42e 100644 --- a/src/main/java/jp/sf/fess/dict/userdict/UserDictItem.java +++ b/src/main/java/org/codelibs/fess/dict/userdict/UserDictItem.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict.userdict; +package org.codelibs.fess.dict.userdict; -import jp.sf.fess.dict.DictionaryItem; +import org.codelibs.fess.dict.DictionaryItem; public class UserDictItem extends DictionaryItem { private final String token; diff --git a/src/main/java/jp/sf/fess/dict/userdict/UserDictLocator.java b/src/main/java/org/codelibs/fess/dict/userdict/UserDictLocator.java similarity index 92% rename from src/main/java/jp/sf/fess/dict/userdict/UserDictLocator.java rename to src/main/java/org/codelibs/fess/dict/userdict/UserDictLocator.java index c1e4f339b..464affe2f 100644 --- a/src/main/java/jp/sf/fess/dict/userdict/UserDictLocator.java +++ b/src/main/java/org/codelibs/fess/dict/userdict/UserDictLocator.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict.userdict; +package org.codelibs.fess.dict.userdict; import java.io.File; import java.util.ArrayList; @@ -22,10 +22,9 @@ import java.util.Collections; import java.util.Comparator; import java.util.List; -import jp.sf.fess.dict.DictionaryFile; -import jp.sf.fess.dict.DictionaryItem; -import jp.sf.fess.dict.DictionaryLocator; - +import org.codelibs.fess.dict.DictionaryFile; +import org.codelibs.fess.dict.DictionaryItem; +import org.codelibs.fess.dict.DictionaryLocator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/ds/DataStore.java b/src/main/java/org/codelibs/fess/ds/DataStore.java similarity index 90% rename from src/main/java/jp/sf/fess/ds/DataStore.java rename to src/main/java/org/codelibs/fess/ds/DataStore.java index 11e03419f..0cb4c8953 100644 --- a/src/main/java/jp/sf/fess/ds/DataStore.java +++ b/src/main/java/org/codelibs/fess/ds/DataStore.java @@ -14,11 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.ds; +package org.codelibs.fess.ds; import java.util.Map; -import jp.sf.fess.db.exentity.DataCrawlingConfig; +import org.codelibs.fess.db.exentity.DataCrawlingConfig; public interface DataStore { diff --git a/src/main/java/jp/sf/fess/ds/DataStoreCrawlingException.java b/src/main/java/org/codelibs/fess/ds/DataStoreCrawlingException.java similarity index 97% rename from src/main/java/jp/sf/fess/ds/DataStoreCrawlingException.java rename to src/main/java/org/codelibs/fess/ds/DataStoreCrawlingException.java index 3ea88fc19..40e777454 100644 --- a/src/main/java/jp/sf/fess/ds/DataStoreCrawlingException.java +++ b/src/main/java/org/codelibs/fess/ds/DataStoreCrawlingException.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.ds; +package org.codelibs.fess.ds; import org.codelibs.robot.RobotCrawlAccessException; diff --git a/src/main/java/jp/sf/fess/ds/DataStoreException.java b/src/main/java/org/codelibs/fess/ds/DataStoreException.java similarity index 93% rename from src/main/java/jp/sf/fess/ds/DataStoreException.java rename to src/main/java/org/codelibs/fess/ds/DataStoreException.java index 57842d5f6..d87276012 100644 --- a/src/main/java/jp/sf/fess/ds/DataStoreException.java +++ b/src/main/java/org/codelibs/fess/ds/DataStoreException.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.ds; +package org.codelibs.fess.ds; -import jp.sf.fess.FessSystemException; +import org.codelibs.fess.FessSystemException; public class DataStoreException extends FessSystemException { private static final long serialVersionUID = 1L; diff --git a/src/main/java/jp/sf/fess/ds/DataStoreFactory.java b/src/main/java/org/codelibs/fess/ds/DataStoreFactory.java similarity index 98% rename from src/main/java/jp/sf/fess/ds/DataStoreFactory.java rename to src/main/java/org/codelibs/fess/ds/DataStoreFactory.java index adba82abd..aa8d6ecc1 100644 --- a/src/main/java/jp/sf/fess/ds/DataStoreFactory.java +++ b/src/main/java/org/codelibs/fess/ds/DataStoreFactory.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.ds; +package org.codelibs.fess.ds; import java.util.ArrayList; import java.util.LinkedHashMap; diff --git a/src/main/java/jp/sf/fess/ds/IndexUpdateCallback.java b/src/main/java/org/codelibs/fess/ds/IndexUpdateCallback.java similarity index 97% rename from src/main/java/jp/sf/fess/ds/IndexUpdateCallback.java rename to src/main/java/org/codelibs/fess/ds/IndexUpdateCallback.java index 811703ed5..2afe5eb45 100644 --- a/src/main/java/jp/sf/fess/ds/IndexUpdateCallback.java +++ b/src/main/java/org/codelibs/fess/ds/IndexUpdateCallback.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.ds; +package org.codelibs.fess.ds; import java.util.Map; diff --git a/src/main/java/jp/sf/fess/ds/impl/AbstractDataStoreImpl.java b/src/main/java/org/codelibs/fess/ds/impl/AbstractDataStoreImpl.java similarity index 90% rename from src/main/java/jp/sf/fess/ds/impl/AbstractDataStoreImpl.java rename to src/main/java/org/codelibs/fess/ds/impl/AbstractDataStoreImpl.java index b0cfd23bd..095529ac3 100644 --- a/src/main/java/jp/sf/fess/ds/impl/AbstractDataStoreImpl.java +++ b/src/main/java/org/codelibs/fess/ds/impl/AbstractDataStoreImpl.java @@ -14,24 +14,23 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.ds.impl; +package org.codelibs.fess.ds.impl; +import java.time.LocalDateTime; import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; -import jp.sf.fess.Constants; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.ds.DataStore; -import jp.sf.fess.ds.IndexUpdateCallback; -import jp.sf.fess.helper.CrawlingSessionHelper; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.taglib.FessFunctions; -import jp.sf.fess.util.ComponentUtil; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.exentity.DataCrawlingConfig; +import org.codelibs.fess.ds.DataStore; +import org.codelibs.fess.ds.IndexUpdateCallback; +import org.codelibs.fess.helper.CrawlingSessionHelper; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.taglib.FessFunctions; +import org.codelibs.fess.util.ComponentUtil; import org.seasar.framework.util.OgnlUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -60,7 +59,8 @@ public abstract class AbstractDataStoreImpl implements DataStore { .getHandlerScriptMap(); final CrawlingSessionHelper crawlingSessionHelper = ComponentUtil .getCrawlingSessionHelper(); - final Date documentExpires = crawlingSessionHelper.getDocumentExpires(); + final LocalDateTime documentExpires = crawlingSessionHelper + .getDocumentExpires(); final FieldHelper fieldHelper = ComponentUtil.getFieldHelper(); initParamMap.putAll(configParamMap); diff --git a/src/main/java/jp/sf/fess/ds/impl/CsvDataStoreImpl.java b/src/main/java/org/codelibs/fess/ds/impl/CsvDataStoreImpl.java similarity index 98% rename from src/main/java/jp/sf/fess/ds/impl/CsvDataStoreImpl.java rename to src/main/java/org/codelibs/fess/ds/impl/CsvDataStoreImpl.java index c9d9ef593..f91fb0b0d 100644 --- a/src/main/java/jp/sf/fess/ds/impl/CsvDataStoreImpl.java +++ b/src/main/java/org/codelibs/fess/ds/impl/CsvDataStoreImpl.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.ds.impl; +package org.codelibs.fess.ds.impl; import java.io.BufferedReader; import java.io.File; @@ -28,17 +28,17 @@ import java.util.List; import java.util.Map; import java.util.regex.Pattern; -import jp.sf.fess.Constants; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.ds.DataStoreCrawlingException; -import jp.sf.fess.ds.DataStoreException; -import jp.sf.fess.ds.IndexUpdateCallback; -import jp.sf.fess.service.FailureUrlService; import jp.sf.orangesignal.csv.CsvConfig; import jp.sf.orangesignal.csv.CsvReader; import org.apache.commons.io.IOUtils; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.exentity.DataCrawlingConfig; +import org.codelibs.fess.ds.DataStoreCrawlingException; +import org.codelibs.fess.ds.DataStoreException; +import org.codelibs.fess.ds.IndexUpdateCallback; +import org.codelibs.fess.service.FailureUrlService; import org.codelibs.robot.RobotCrawlAccessException; import org.codelibs.robot.RobotMultipleCrawlAccessException; import org.seasar.framework.container.SingletonS2Container; diff --git a/src/main/java/jp/sf/fess/ds/impl/DatabaseDataStoreImpl.java b/src/main/java/org/codelibs/fess/ds/impl/DatabaseDataStoreImpl.java similarity index 97% rename from src/main/java/jp/sf/fess/ds/impl/DatabaseDataStoreImpl.java rename to src/main/java/org/codelibs/fess/ds/impl/DatabaseDataStoreImpl.java index d6e00a9f2..c6a136c20 100644 --- a/src/main/java/jp/sf/fess/ds/impl/DatabaseDataStoreImpl.java +++ b/src/main/java/org/codelibs/fess/ds/impl/DatabaseDataStoreImpl.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.ds.impl; +package org.codelibs.fess.ds.impl; import java.sql.Connection; import java.sql.DriverManager; @@ -27,12 +27,11 @@ import java.util.HashMap; import java.util.Map; import java.util.Set; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.ds.DataStoreException; -import jp.sf.fess.ds.IndexUpdateCallback; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.db.exentity.DataCrawlingConfig; +import org.codelibs.fess.ds.DataStoreException; +import org.codelibs.fess.ds.IndexUpdateCallback; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/ds/impl/FileListDataStoreImpl.java b/src/main/java/org/codelibs/fess/ds/impl/FileListDataStoreImpl.java similarity index 96% rename from src/main/java/jp/sf/fess/ds/impl/FileListDataStoreImpl.java rename to src/main/java/org/codelibs/fess/ds/impl/FileListDataStoreImpl.java index d8fd25ebc..82d0bd90e 100644 --- a/src/main/java/jp/sf/fess/ds/impl/FileListDataStoreImpl.java +++ b/src/main/java/org/codelibs/fess/ds/impl/FileListDataStoreImpl.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.ds.impl; +package org.codelibs.fess.ds.impl; import java.io.File; import java.util.ArrayList; @@ -22,17 +22,17 @@ import java.util.Collections; import java.util.List; import java.util.Map; -import jp.sf.fess.Constants; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.ds.DataStoreCrawlingException; -import jp.sf.fess.ds.DataStoreException; -import jp.sf.fess.ds.IndexUpdateCallback; -import jp.sf.fess.helper.CrawlingSessionHelper; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.IndexingHelper; -import jp.sf.fess.util.ComponentUtil; import jp.sf.orangesignal.csv.CsvConfig; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.exentity.DataCrawlingConfig; +import org.codelibs.fess.ds.DataStoreCrawlingException; +import org.codelibs.fess.ds.DataStoreException; +import org.codelibs.fess.ds.IndexUpdateCallback; +import org.codelibs.fess.helper.CrawlingSessionHelper; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.IndexingHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.RobotSystemException; import org.codelibs.robot.builder.RequestDataBuilder; import org.codelibs.robot.client.S2RobotClient; diff --git a/src/main/java/jp/sf/fess/ds/impl/IndexUpdateCallbackImpl.java b/src/main/java/org/codelibs/fess/ds/impl/IndexUpdateCallbackImpl.java similarity index 93% rename from src/main/java/jp/sf/fess/ds/impl/IndexUpdateCallbackImpl.java rename to src/main/java/org/codelibs/fess/ds/impl/IndexUpdateCallbackImpl.java index 1d0c605aa..b522103de 100644 --- a/src/main/java/jp/sf/fess/ds/impl/IndexUpdateCallbackImpl.java +++ b/src/main/java/org/codelibs/fess/ds/impl/IndexUpdateCallbackImpl.java @@ -14,23 +14,22 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.ds.impl; +package org.codelibs.fess.ds.impl; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.concurrent.atomic.AtomicLong; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.ds.IndexUpdateCallback; -import jp.sf.fess.helper.CrawlingSessionHelper; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.IndexingHelper; -import jp.sf.fess.helper.SearchLogHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.util.ComponentUtil; - import org.apache.solr.common.SolrInputDocument; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.ds.IndexUpdateCallback; +import org.codelibs.fess.helper.CrawlingSessionHelper; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.IndexingHelper; +import org.codelibs.fess.helper.SearchLogHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.solr.lib.SolrGroup; import org.seasar.framework.container.annotation.tiger.InitMethod; import org.slf4j.Logger; @@ -64,7 +63,7 @@ public class IndexUpdateCallbackImpl implements IndexUpdateCallback { } /* (non-Javadoc) - * @see jp.sf.fess.ds.impl.IndexUpdateCallback#store(java.util.Map) + * @see org.codelibs.fess.ds.impl.IndexUpdateCallback#store(java.util.Map) */ @Override public synchronized boolean store(final Map<String, Object> dataMap) { diff --git a/src/main/java/jp/sf/fess/entity/FacetInfo.java b/src/main/java/org/codelibs/fess/entity/FacetInfo.java similarity index 97% rename from src/main/java/jp/sf/fess/entity/FacetInfo.java rename to src/main/java/org/codelibs/fess/entity/FacetInfo.java index a362b8478..9c4523aeb 100644 --- a/src/main/java/jp/sf/fess/entity/FacetInfo.java +++ b/src/main/java/org/codelibs/fess/entity/FacetInfo.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.entity; +package org.codelibs.fess.entity; import java.util.Arrays; diff --git a/src/main/java/jp/sf/fess/entity/FacetQueryView.java b/src/main/java/org/codelibs/fess/entity/FacetQueryView.java similarity index 97% rename from src/main/java/jp/sf/fess/entity/FacetQueryView.java rename to src/main/java/org/codelibs/fess/entity/FacetQueryView.java index d2529ce05..e55069ac4 100644 --- a/src/main/java/jp/sf/fess/entity/FacetQueryView.java +++ b/src/main/java/org/codelibs/fess/entity/FacetQueryView.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.entity; +package org.codelibs.fess.entity; import java.util.LinkedHashMap; import java.util.Map; diff --git a/src/main/java/jp/sf/fess/entity/FieldAnalysisResponse.java b/src/main/java/org/codelibs/fess/entity/FieldAnalysisResponse.java similarity index 99% rename from src/main/java/jp/sf/fess/entity/FieldAnalysisResponse.java rename to src/main/java/org/codelibs/fess/entity/FieldAnalysisResponse.java index 799eec50d..cd83d725c 100644 --- a/src/main/java/jp/sf/fess/entity/FieldAnalysisResponse.java +++ b/src/main/java/org/codelibs/fess/entity/FieldAnalysisResponse.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.entity; +package org.codelibs.fess.entity; import java.util.ArrayList; import java.util.LinkedHashMap; diff --git a/src/main/java/jp/sf/fess/entity/GeoInfo.java b/src/main/java/org/codelibs/fess/entity/GeoInfo.java similarity index 98% rename from src/main/java/jp/sf/fess/entity/GeoInfo.java rename to src/main/java/org/codelibs/fess/entity/GeoInfo.java index 7a2d90ffe..6cef60830 100644 --- a/src/main/java/jp/sf/fess/entity/GeoInfo.java +++ b/src/main/java/org/codelibs/fess/entity/GeoInfo.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.entity; +package org.codelibs.fess.entity; import org.codelibs.core.util.StringUtil; import org.seasar.struts.annotation.Mask; diff --git a/src/main/java/jp/sf/fess/entity/LoginInfo.java b/src/main/java/org/codelibs/fess/entity/LoginInfo.java similarity index 94% rename from src/main/java/jp/sf/fess/entity/LoginInfo.java rename to src/main/java/org/codelibs/fess/entity/LoginInfo.java index 04a8c54f7..207366123 100644 --- a/src/main/java/jp/sf/fess/entity/LoginInfo.java +++ b/src/main/java/org/codelibs/fess/entity/LoginInfo.java @@ -14,10 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.entity; - -import jp.sf.fess.util.ComponentUtil; +package org.codelibs.fess.entity; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.sastruts.core.entity.UserInfo; public class LoginInfo extends UserInfo { diff --git a/src/main/java/jp/sf/fess/entity/MoreLikeThisInfo.java b/src/main/java/org/codelibs/fess/entity/MoreLikeThisInfo.java similarity index 96% rename from src/main/java/jp/sf/fess/entity/MoreLikeThisInfo.java rename to src/main/java/org/codelibs/fess/entity/MoreLikeThisInfo.java index 1a086f846..ea903131b 100644 --- a/src/main/java/jp/sf/fess/entity/MoreLikeThisInfo.java +++ b/src/main/java/org/codelibs/fess/entity/MoreLikeThisInfo.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.entity; +package org.codelibs.fess.entity; import java.util.Arrays; diff --git a/src/main/java/jp/sf/fess/entity/PingResponse.java b/src/main/java/org/codelibs/fess/entity/PingResponse.java similarity index 98% rename from src/main/java/jp/sf/fess/entity/PingResponse.java rename to src/main/java/org/codelibs/fess/entity/PingResponse.java index 663d09eee..179e3d489 100644 --- a/src/main/java/jp/sf/fess/entity/PingResponse.java +++ b/src/main/java/org/codelibs/fess/entity/PingResponse.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.entity; +package org.codelibs.fess.entity; import java.util.ArrayList; import java.util.Collection; diff --git a/src/main/java/jp/sf/fess/entity/SearchQuery.java b/src/main/java/org/codelibs/fess/entity/SearchQuery.java similarity index 98% rename from src/main/java/jp/sf/fess/entity/SearchQuery.java rename to src/main/java/org/codelibs/fess/entity/SearchQuery.java index 223c862ea..70c62ac31 100644 --- a/src/main/java/jp/sf/fess/entity/SearchQuery.java +++ b/src/main/java/org/codelibs/fess/entity/SearchQuery.java @@ -14,14 +14,13 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.entity; +package org.codelibs.fess.entity; import java.util.ArrayList; import java.util.List; -import jp.sf.fess.Constants; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; public class SearchQuery { private String query; diff --git a/src/main/java/jp/sf/fess/exec/Crawler.java b/src/main/java/org/codelibs/fess/exec/Crawler.java similarity index 95% rename from src/main/java/jp/sf/fess/exec/Crawler.java rename to src/main/java/org/codelibs/fess/exec/Crawler.java index c797f5117..fc670fe5b 100644 --- a/src/main/java/jp/sf/fess/exec/Crawler.java +++ b/src/main/java/org/codelibs/fess/exec/Crawler.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.exec; +package org.codelibs.fess.exec; import java.io.File; import java.io.IOException; @@ -33,27 +33,26 @@ import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.db.allcommon.CDef; -import jp.sf.fess.helper.CrawlingSessionHelper; -import jp.sf.fess.helper.DataIndexHelper; -import jp.sf.fess.helper.DatabaseHelper; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.MailHelper; -import jp.sf.fess.helper.OverlappingHostHelper; -import jp.sf.fess.helper.PathMappingHelper; -import jp.sf.fess.helper.WebFsIndexHelper; -import jp.sf.fess.screenshot.ScreenShotManager; -import jp.sf.fess.service.CrawlingSessionService; -import jp.sf.fess.service.PathMappingService; -import jp.sf.fess.taglib.FessFunctions; -import jp.sf.fess.util.ComponentUtil; -import jp.sf.fess.util.ResourceUtil; - import org.codelibs.core.CoreLibConstants; import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.db.allcommon.CDef; +import org.codelibs.fess.helper.CrawlingSessionHelper; +import org.codelibs.fess.helper.DataIndexHelper; +import org.codelibs.fess.helper.DatabaseHelper; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.MailHelper; +import org.codelibs.fess.helper.OverlappingHostHelper; +import org.codelibs.fess.helper.PathMappingHelper; +import org.codelibs.fess.helper.WebFsIndexHelper; +import org.codelibs.fess.screenshot.ScreenShotManager; +import org.codelibs.fess.service.CrawlingSessionService; +import org.codelibs.fess.service.PathMappingService; +import org.codelibs.fess.taglib.FessFunctions; +import org.codelibs.fess.util.ComponentUtil; +import org.codelibs.fess.util.ResourceUtil; import org.codelibs.solr.lib.SolrGroup; import org.codelibs.solr.lib.SolrGroupManager; import org.codelibs.solr.lib.policy.QueryType; @@ -422,7 +421,8 @@ public class Crawler implements Serializable { // delete expired sessions crawlingSessionService.deleteSessionIdsBefore(options.sessionId, - options.name, new Date()); + options.name, ComponentUtil.getSystemHelper() + .getCurrentTime()); final List<Long> webConfigIdList = options.getWebConfigIdList(); final List<Long> fileConfigIdList = options.getFileConfigIdList(); diff --git a/src/main/java/jp/sf/fess/filter/AdLoginInfoFilter.java b/src/main/java/org/codelibs/fess/filter/AdLoginInfoFilter.java similarity index 96% rename from src/main/java/jp/sf/fess/filter/AdLoginInfoFilter.java rename to src/main/java/org/codelibs/fess/filter/AdLoginInfoFilter.java index 2e80be320..62a901822 100644 --- a/src/main/java/jp/sf/fess/filter/AdLoginInfoFilter.java +++ b/src/main/java/org/codelibs/fess/filter/AdLoginInfoFilter.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.filter; +package org.codelibs.fess.filter; import java.io.IOException; import java.util.HashSet; @@ -31,10 +31,9 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; -import jp.sf.fess.entity.LoginInfo; -import jp.sf.fess.helper.AdRoleHelper; -import jp.sf.fess.util.ComponentUtil; - +import org.codelibs.fess.entity.LoginInfo; +import org.codelibs.fess.helper.AdRoleHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.sastruts.core.SSCConstants; import org.seasar.framework.util.StringUtil; import org.slf4j.Logger; diff --git a/src/main/java/jp/sf/fess/filter/AdminAuthFilter.java b/src/main/java/org/codelibs/fess/filter/AdminAuthFilter.java similarity index 94% rename from src/main/java/jp/sf/fess/filter/AdminAuthFilter.java rename to src/main/java/org/codelibs/fess/filter/AdminAuthFilter.java index d324c5379..5eab12902 100644 --- a/src/main/java/jp/sf/fess/filter/AdminAuthFilter.java +++ b/src/main/java/org/codelibs/fess/filter/AdminAuthFilter.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.filter; +package org.codelibs.fess.filter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; -import jp.sf.fess.entity.LoginInfo; - +import org.codelibs.fess.entity.LoginInfo; import org.codelibs.sastruts.core.SSCConstants; import org.codelibs.sastruts.core.entity.UserInfo; import org.codelibs.sastruts.core.filter.AuthFilter; diff --git a/src/main/java/jp/sf/fess/filter/FessEncodingFilter.java b/src/main/java/org/codelibs/fess/filter/FessEncodingFilter.java similarity index 99% rename from src/main/java/jp/sf/fess/filter/FessEncodingFilter.java rename to src/main/java/org/codelibs/fess/filter/FessEncodingFilter.java index e9653c040..4709d6628 100644 --- a/src/main/java/jp/sf/fess/filter/FessEncodingFilter.java +++ b/src/main/java/org/codelibs/fess/filter/FessEncodingFilter.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.filter; +package org.codelibs.fess.filter; import java.io.IOException; import java.util.ArrayList; diff --git a/src/main/java/jp/sf/fess/filter/LoginInfoFilter.java b/src/main/java/org/codelibs/fess/filter/LoginInfoFilter.java similarity index 94% rename from src/main/java/jp/sf/fess/filter/LoginInfoFilter.java rename to src/main/java/org/codelibs/fess/filter/LoginInfoFilter.java index 95ee277b8..24c4a88ec 100644 --- a/src/main/java/jp/sf/fess/filter/LoginInfoFilter.java +++ b/src/main/java/org/codelibs/fess/filter/LoginInfoFilter.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.filter; +package org.codelibs.fess.filter; import java.io.IOException; import java.util.HashSet; @@ -29,10 +29,9 @@ import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; -import jp.sf.fess.entity.LoginInfo; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.util.ComponentUtil; - +import org.codelibs.fess.entity.LoginInfo; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.sastruts.core.SSCConstants; // TODO refactoring... diff --git a/src/main/java/jp/sf/fess/filter/WebApiFilter.java b/src/main/java/org/codelibs/fess/filter/WebApiFilter.java similarity index 91% rename from src/main/java/jp/sf/fess/filter/WebApiFilter.java rename to src/main/java/org/codelibs/fess/filter/WebApiFilter.java index 1bf58fc80..3150718dc 100644 --- a/src/main/java/jp/sf/fess/filter/WebApiFilter.java +++ b/src/main/java/org/codelibs/fess/filter/WebApiFilter.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.filter; +package org.codelibs.fess.filter; import java.io.IOException; @@ -27,9 +27,9 @@ import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import jp.sf.fess.api.WebApiManager; -import jp.sf.fess.api.WebApiManagerFactory; -import jp.sf.fess.util.ComponentUtil; +import org.codelibs.fess.api.WebApiManager; +import org.codelibs.fess.api.WebApiManagerFactory; +import org.codelibs.fess.util.ComponentUtil; public class WebApiFilter implements Filter { diff --git a/src/main/java/jp/sf/fess/form/AppletForm.java b/src/main/java/org/codelibs/fess/form/AppletForm.java similarity index 96% rename from src/main/java/jp/sf/fess/form/AppletForm.java rename to src/main/java/org/codelibs/fess/form/AppletForm.java index e2f49cfd8..75ff548c4 100644 --- a/src/main/java/jp/sf/fess/form/AppletForm.java +++ b/src/main/java/org/codelibs/fess/form/AppletForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form; +package org.codelibs.fess.form; import org.seasar.struts.annotation.Required; diff --git a/src/main/java/jp/sf/fess/form/ErrorForm.java b/src/main/java/org/codelibs/fess/form/ErrorForm.java similarity index 96% rename from src/main/java/jp/sf/fess/form/ErrorForm.java rename to src/main/java/org/codelibs/fess/form/ErrorForm.java index 21925d80f..2130c9363 100644 --- a/src/main/java/jp/sf/fess/form/ErrorForm.java +++ b/src/main/java/org/codelibs/fess/form/ErrorForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form; +package org.codelibs.fess.form; import java.io.Serializable; diff --git a/src/main/java/jp/sf/fess/form/IndexForm.java b/src/main/java/org/codelibs/fess/form/IndexForm.java similarity index 91% rename from src/main/java/jp/sf/fess/form/IndexForm.java rename to src/main/java/org/codelibs/fess/form/IndexForm.java index e39a1f4ec..cff47a6db 100644 --- a/src/main/java/jp/sf/fess/form/IndexForm.java +++ b/src/main/java/org/codelibs/fess/form/IndexForm.java @@ -14,15 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form; +package org.codelibs.fess.form; import java.io.Serializable; -import jp.sf.fess.entity.FacetInfo; -import jp.sf.fess.entity.GeoInfo; -import jp.sf.fess.entity.MoreLikeThisInfo; -import jp.sf.fess.util.SearchParamMap; - +import org.codelibs.fess.entity.FacetInfo; +import org.codelibs.fess.entity.GeoInfo; +import org.codelibs.fess.entity.MoreLikeThisInfo; +import org.codelibs.fess.util.SearchParamMap; import org.seasar.struts.annotation.IntegerType; import org.seasar.struts.annotation.Maxbytelength; import org.seasar.struts.annotation.Required; diff --git a/src/main/java/jp/sf/fess/form/LoginForm.java b/src/main/java/org/codelibs/fess/form/LoginForm.java similarity index 96% rename from src/main/java/jp/sf/fess/form/LoginForm.java rename to src/main/java/org/codelibs/fess/form/LoginForm.java index aa493f3d0..73a9b4c73 100644 --- a/src/main/java/jp/sf/fess/form/LoginForm.java +++ b/src/main/java/org/codelibs/fess/form/LoginForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form; +package org.codelibs.fess.form; import java.io.Serializable; diff --git a/src/main/java/jp/sf/fess/form/admin/BoostDocumentRuleForm.java b/src/main/java/org/codelibs/fess/form/admin/BoostDocumentRuleForm.java similarity index 89% rename from src/main/java/jp/sf/fess/form/admin/BoostDocumentRuleForm.java rename to src/main/java/org/codelibs/fess/form/admin/BoostDocumentRuleForm.java index 9da1d6ed5..c511bc03e 100644 --- a/src/main/java/jp/sf/fess/form/admin/BoostDocumentRuleForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/BoostDocumentRuleForm.java @@ -14,11 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; -import jp.sf.fess.crud.form.admin.BsBoostDocumentRuleForm; +import org.codelibs.fess.crud.form.admin.BsBoostDocumentRuleForm; public class BoostDocumentRuleForm extends BsBoostDocumentRuleForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/CrawlForm.java b/src/main/java/org/codelibs/fess/form/admin/CrawlForm.java similarity index 98% rename from src/main/java/jp/sf/fess/form/admin/CrawlForm.java rename to src/main/java/org/codelibs/fess/form/admin/CrawlForm.java index b9e1e5a04..ca03622e3 100644 --- a/src/main/java/jp/sf/fess/form/admin/CrawlForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/CrawlForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; diff --git a/src/main/java/jp/sf/fess/form/admin/CrawlingSessionForm.java b/src/main/java/org/codelibs/fess/form/admin/CrawlingSessionForm.java similarity index 89% rename from src/main/java/jp/sf/fess/form/admin/CrawlingSessionForm.java rename to src/main/java/org/codelibs/fess/form/admin/CrawlingSessionForm.java index da1417397..58dab6e0c 100644 --- a/src/main/java/jp/sf/fess/form/admin/CrawlingSessionForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/CrawlingSessionForm.java @@ -14,11 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; -import jp.sf.fess.crud.form.admin.BsCrawlingSessionForm; +import org.codelibs.fess.crud.form.admin.BsCrawlingSessionForm; public class CrawlingSessionForm extends BsCrawlingSessionForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/DataCrawlingConfigForm.java b/src/main/java/org/codelibs/fess/form/admin/DataCrawlingConfigForm.java similarity index 89% rename from src/main/java/jp/sf/fess/form/admin/DataCrawlingConfigForm.java rename to src/main/java/org/codelibs/fess/form/admin/DataCrawlingConfigForm.java index 5655179fe..bbdb184e1 100644 --- a/src/main/java/jp/sf/fess/form/admin/DataCrawlingConfigForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/DataCrawlingConfigForm.java @@ -14,14 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.form.admin.BsDataCrawlingConfigForm; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.form.admin.BsDataCrawlingConfigForm; public class DataCrawlingConfigForm extends BsDataCrawlingConfigForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/DataForm.java b/src/main/java/org/codelibs/fess/form/admin/DataForm.java similarity index 96% rename from src/main/java/jp/sf/fess/form/admin/DataForm.java rename to src/main/java/org/codelibs/fess/form/admin/DataForm.java index 22be149dd..989ec1249 100644 --- a/src/main/java/jp/sf/fess/form/admin/DataForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/DataForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; diff --git a/src/main/java/jp/sf/fess/form/admin/DesignForm.java b/src/main/java/org/codelibs/fess/form/admin/DesignForm.java similarity index 96% rename from src/main/java/jp/sf/fess/form/admin/DesignForm.java rename to src/main/java/org/codelibs/fess/form/admin/DesignForm.java index 104e6d7f4..08384a1e4 100644 --- a/src/main/java/jp/sf/fess/form/admin/DesignForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/DesignForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; diff --git a/src/main/java/jp/sf/fess/form/admin/DictForm.java b/src/main/java/org/codelibs/fess/form/admin/DictForm.java similarity index 95% rename from src/main/java/jp/sf/fess/form/admin/DictForm.java rename to src/main/java/org/codelibs/fess/form/admin/DictForm.java index a7be31dce..bc2a34abb 100644 --- a/src/main/java/jp/sf/fess/form/admin/DictForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/DictForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; diff --git a/src/main/java/jp/sf/fess/form/admin/DocumentForm.java b/src/main/java/org/codelibs/fess/form/admin/DocumentForm.java similarity index 97% rename from src/main/java/jp/sf/fess/form/admin/DocumentForm.java rename to src/main/java/org/codelibs/fess/form/admin/DocumentForm.java index 6714a8ec1..ab8a941bb 100644 --- a/src/main/java/jp/sf/fess/form/admin/DocumentForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/DocumentForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.util.ArrayList; diff --git a/src/main/java/jp/sf/fess/form/admin/FailureUrlForm.java b/src/main/java/org/codelibs/fess/form/admin/FailureUrlForm.java similarity index 90% rename from src/main/java/jp/sf/fess/form/admin/FailureUrlForm.java rename to src/main/java/org/codelibs/fess/form/admin/FailureUrlForm.java index 19aa4b7b4..996ad9416 100644 --- a/src/main/java/jp/sf/fess/form/admin/FailureUrlForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/FailureUrlForm.java @@ -14,11 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; -import jp.sf.fess.crud.form.admin.BsFailureUrlForm; +import org.codelibs.fess.crud.form.admin.BsFailureUrlForm; public class FailureUrlForm extends BsFailureUrlForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/FavoriteLogForm.java b/src/main/java/org/codelibs/fess/form/admin/FavoriteLogForm.java similarity index 90% rename from src/main/java/jp/sf/fess/form/admin/FavoriteLogForm.java rename to src/main/java/org/codelibs/fess/form/admin/FavoriteLogForm.java index a065ab777..3c9a439d2 100644 --- a/src/main/java/jp/sf/fess/form/admin/FavoriteLogForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/FavoriteLogForm.java @@ -14,11 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; -import jp.sf.fess.crud.form.admin.BsFavoriteLogForm; +import org.codelibs.fess.crud.form.admin.BsFavoriteLogForm; public class FavoriteLogForm extends BsFavoriteLogForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/FileAuthenticationForm.java b/src/main/java/org/codelibs/fess/form/admin/FileAuthenticationForm.java similarity index 89% rename from src/main/java/jp/sf/fess/form/admin/FileAuthenticationForm.java rename to src/main/java/org/codelibs/fess/form/admin/FileAuthenticationForm.java index a3b7768ca..3bef877fb 100644 --- a/src/main/java/jp/sf/fess/form/admin/FileAuthenticationForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/FileAuthenticationForm.java @@ -14,14 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.form.admin.BsFileAuthenticationForm; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.form.admin.BsFileAuthenticationForm; public class FileAuthenticationForm extends BsFileAuthenticationForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/FileCrawlingConfigForm.java b/src/main/java/org/codelibs/fess/form/admin/FileCrawlingConfigForm.java similarity index 90% rename from src/main/java/jp/sf/fess/form/admin/FileCrawlingConfigForm.java rename to src/main/java/org/codelibs/fess/form/admin/FileCrawlingConfigForm.java index 8e3e79c48..043ab0ff3 100644 --- a/src/main/java/jp/sf/fess/form/admin/FileCrawlingConfigForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/FileCrawlingConfigForm.java @@ -14,14 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.form.admin.BsFileCrawlingConfigForm; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.form.admin.BsFileCrawlingConfigForm; public class FileCrawlingConfigForm extends BsFileCrawlingConfigForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/JobLogForm.java b/src/main/java/org/codelibs/fess/form/admin/JobLogForm.java similarity index 90% rename from src/main/java/jp/sf/fess/form/admin/JobLogForm.java rename to src/main/java/org/codelibs/fess/form/admin/JobLogForm.java index 0632a4f50..b316bb843 100644 --- a/src/main/java/jp/sf/fess/form/admin/JobLogForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/JobLogForm.java @@ -14,11 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; -import jp.sf.fess.crud.form.admin.BsJobLogForm; +import org.codelibs.fess.crud.form.admin.BsJobLogForm; public class JobLogForm extends BsJobLogForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/KeyMatchForm.java b/src/main/java/org/codelibs/fess/form/admin/KeyMatchForm.java similarity index 90% rename from src/main/java/jp/sf/fess/form/admin/KeyMatchForm.java rename to src/main/java/org/codelibs/fess/form/admin/KeyMatchForm.java index 35ee3b3c6..648468a0e 100644 --- a/src/main/java/jp/sf/fess/form/admin/KeyMatchForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/KeyMatchForm.java @@ -14,11 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; -import jp.sf.fess.crud.form.admin.BsKeyMatchForm; +import org.codelibs.fess.crud.form.admin.BsKeyMatchForm; public class KeyMatchForm extends BsKeyMatchForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/LabelTypeForm.java b/src/main/java/org/codelibs/fess/form/admin/LabelTypeForm.java similarity index 90% rename from src/main/java/jp/sf/fess/form/admin/LabelTypeForm.java rename to src/main/java/org/codelibs/fess/form/admin/LabelTypeForm.java index 312302fcf..ced3a3eb3 100644 --- a/src/main/java/jp/sf/fess/form/admin/LabelTypeForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/LabelTypeForm.java @@ -14,14 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.form.admin.BsLabelTypeForm; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.form.admin.BsLabelTypeForm; public class LabelTypeForm extends BsLabelTypeForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/LogForm.java b/src/main/java/org/codelibs/fess/form/admin/LogForm.java similarity index 95% rename from src/main/java/jp/sf/fess/form/admin/LogForm.java rename to src/main/java/org/codelibs/fess/form/admin/LogForm.java index 21ba0b851..dfb72d480 100644 --- a/src/main/java/jp/sf/fess/form/admin/LogForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/LogForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; diff --git a/src/main/java/jp/sf/fess/form/admin/OverlappingHostForm.java b/src/main/java/org/codelibs/fess/form/admin/OverlappingHostForm.java similarity index 89% rename from src/main/java/jp/sf/fess/form/admin/OverlappingHostForm.java rename to src/main/java/org/codelibs/fess/form/admin/OverlappingHostForm.java index cca2ef1d2..49b36a10b 100644 --- a/src/main/java/jp/sf/fess/form/admin/OverlappingHostForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/OverlappingHostForm.java @@ -14,14 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.form.admin.BsOverlappingHostForm; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.form.admin.BsOverlappingHostForm; public class OverlappingHostForm extends BsOverlappingHostForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/PathMappingForm.java b/src/main/java/org/codelibs/fess/form/admin/PathMappingForm.java similarity index 89% rename from src/main/java/jp/sf/fess/form/admin/PathMappingForm.java rename to src/main/java/org/codelibs/fess/form/admin/PathMappingForm.java index 48bb35571..73deb5de8 100644 --- a/src/main/java/jp/sf/fess/form/admin/PathMappingForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/PathMappingForm.java @@ -14,14 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.form.admin.BsPathMappingForm; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.form.admin.BsPathMappingForm; public class PathMappingForm extends BsPathMappingForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/RequestHeaderForm.java b/src/main/java/org/codelibs/fess/form/admin/RequestHeaderForm.java similarity index 89% rename from src/main/java/jp/sf/fess/form/admin/RequestHeaderForm.java rename to src/main/java/org/codelibs/fess/form/admin/RequestHeaderForm.java index 59d226503..c7a276f4b 100644 --- a/src/main/java/jp/sf/fess/form/admin/RequestHeaderForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/RequestHeaderForm.java @@ -14,14 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.form.admin.BsRequestHeaderForm; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.form.admin.BsRequestHeaderForm; public class RequestHeaderForm extends BsRequestHeaderForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/RoleTypeForm.java b/src/main/java/org/codelibs/fess/form/admin/RoleTypeForm.java similarity index 89% rename from src/main/java/jp/sf/fess/form/admin/RoleTypeForm.java rename to src/main/java/org/codelibs/fess/form/admin/RoleTypeForm.java index f65dcb643..eb98c04c2 100644 --- a/src/main/java/jp/sf/fess/form/admin/RoleTypeForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/RoleTypeForm.java @@ -14,14 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.form.admin.BsRoleTypeForm; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.form.admin.BsRoleTypeForm; public class RoleTypeForm extends BsRoleTypeForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/ScheduledJobForm.java b/src/main/java/org/codelibs/fess/form/admin/ScheduledJobForm.java similarity index 91% rename from src/main/java/jp/sf/fess/form/admin/ScheduledJobForm.java rename to src/main/java/org/codelibs/fess/form/admin/ScheduledJobForm.java index 20b7cf8ff..b3ecb91fa 100644 --- a/src/main/java/jp/sf/fess/form/admin/ScheduledJobForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/ScheduledJobForm.java @@ -14,14 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.form.admin.BsScheduledJobForm; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.form.admin.BsScheduledJobForm; public class ScheduledJobForm extends BsScheduledJobForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/SearchListForm.java b/src/main/java/org/codelibs/fess/form/admin/SearchListForm.java similarity index 97% rename from src/main/java/jp/sf/fess/form/admin/SearchListForm.java rename to src/main/java/org/codelibs/fess/form/admin/SearchListForm.java index dc268d4fd..6323546ed 100644 --- a/src/main/java/jp/sf/fess/form/admin/SearchListForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/SearchListForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; diff --git a/src/main/java/jp/sf/fess/form/admin/SearchLogForm.java b/src/main/java/org/codelibs/fess/form/admin/SearchLogForm.java similarity index 87% rename from src/main/java/jp/sf/fess/form/admin/SearchLogForm.java rename to src/main/java/org/codelibs/fess/form/admin/SearchLogForm.java index 8da1fa5c1..dbca28034 100644 --- a/src/main/java/jp/sf/fess/form/admin/SearchLogForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/SearchLogForm.java @@ -14,13 +14,13 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.util.List; -import jp.sf.fess.crud.form.admin.BsSearchLogForm; -import jp.sf.fess.db.exentity.ClickLog; +import org.codelibs.fess.crud.form.admin.BsSearchLogForm; +import org.codelibs.fess.db.exentity.ClickLog; public class SearchLogForm extends BsSearchLogForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/StatsForm.java b/src/main/java/org/codelibs/fess/form/admin/StatsForm.java similarity index 94% rename from src/main/java/jp/sf/fess/form/admin/StatsForm.java rename to src/main/java/org/codelibs/fess/form/admin/StatsForm.java index b6e581740..b5f2cc468 100644 --- a/src/main/java/jp/sf/fess/form/admin/StatsForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/StatsForm.java @@ -14,15 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; import org.seasar.struts.annotation.IntegerType; public class StatsForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/SuggestBadWordForm.java b/src/main/java/org/codelibs/fess/form/admin/SuggestBadWordForm.java similarity index 91% rename from src/main/java/jp/sf/fess/form/admin/SuggestBadWordForm.java rename to src/main/java/org/codelibs/fess/form/admin/SuggestBadWordForm.java index 4dda646e3..339008e43 100644 --- a/src/main/java/jp/sf/fess/form/admin/SuggestBadWordForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/SuggestBadWordForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; -import jp.sf.fess.crud.form.admin.BsSuggestBadWordForm; - import org.apache.struts.upload.FormFile; +import org.codelibs.fess.crud.form.admin.BsSuggestBadWordForm; import org.seasar.struts.annotation.Required; public class SuggestBadWordForm extends BsSuggestBadWordForm implements diff --git a/src/main/java/jp/sf/fess/form/admin/SuggestElevateWordForm.java b/src/main/java/org/codelibs/fess/form/admin/SuggestElevateWordForm.java similarity index 91% rename from src/main/java/jp/sf/fess/form/admin/SuggestElevateWordForm.java rename to src/main/java/org/codelibs/fess/form/admin/SuggestElevateWordForm.java index b199ee1ae..813d9eec2 100644 --- a/src/main/java/jp/sf/fess/form/admin/SuggestElevateWordForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/SuggestElevateWordForm.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; -import jp.sf.fess.crud.form.admin.BsSuggestElevateWordForm; - import org.apache.struts.upload.FormFile; +import org.codelibs.fess.crud.form.admin.BsSuggestElevateWordForm; import org.seasar.struts.annotation.Required; public class SuggestElevateWordForm extends BsSuggestElevateWordForm implements diff --git a/src/main/java/jp/sf/fess/form/admin/SystemForm.java b/src/main/java/org/codelibs/fess/form/admin/SystemForm.java similarity index 97% rename from src/main/java/jp/sf/fess/form/admin/SystemForm.java rename to src/main/java/org/codelibs/fess/form/admin/SystemForm.java index 334a1c5a5..35dd9b29c 100644 --- a/src/main/java/jp/sf/fess/form/admin/SystemForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/SystemForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.util.ArrayList; diff --git a/src/main/java/jp/sf/fess/form/admin/SystemInfoForm.java b/src/main/java/org/codelibs/fess/form/admin/SystemInfoForm.java similarity index 95% rename from src/main/java/jp/sf/fess/form/admin/SystemInfoForm.java rename to src/main/java/org/codelibs/fess/form/admin/SystemInfoForm.java index 652568f75..7d942e884 100644 --- a/src/main/java/jp/sf/fess/form/admin/SystemInfoForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/SystemInfoForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; diff --git a/src/main/java/jp/sf/fess/form/admin/UserInfoForm.java b/src/main/java/org/codelibs/fess/form/admin/UserInfoForm.java similarity index 90% rename from src/main/java/jp/sf/fess/form/admin/UserInfoForm.java rename to src/main/java/org/codelibs/fess/form/admin/UserInfoForm.java index 3ad8f038a..aed542dcb 100644 --- a/src/main/java/jp/sf/fess/form/admin/UserInfoForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/UserInfoForm.java @@ -14,11 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; -import jp.sf.fess.crud.form.admin.BsUserInfoForm; +import org.codelibs.fess.crud.form.admin.BsUserInfoForm; public class UserInfoForm extends BsUserInfoForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/WebAuthenticationForm.java b/src/main/java/org/codelibs/fess/form/admin/WebAuthenticationForm.java similarity index 89% rename from src/main/java/jp/sf/fess/form/admin/WebAuthenticationForm.java rename to src/main/java/org/codelibs/fess/form/admin/WebAuthenticationForm.java index 986db3bf4..351db3c2e 100644 --- a/src/main/java/jp/sf/fess/form/admin/WebAuthenticationForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/WebAuthenticationForm.java @@ -14,14 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.form.admin.BsWebAuthenticationForm; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.form.admin.BsWebAuthenticationForm; public class WebAuthenticationForm extends BsWebAuthenticationForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/WebCrawlingConfigForm.java b/src/main/java/org/codelibs/fess/form/admin/WebCrawlingConfigForm.java similarity index 89% rename from src/main/java/jp/sf/fess/form/admin/WebCrawlingConfigForm.java rename to src/main/java/org/codelibs/fess/form/admin/WebCrawlingConfigForm.java index f2a5dc2e6..f45dc633b 100644 --- a/src/main/java/jp/sf/fess/form/admin/WebCrawlingConfigForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/WebCrawlingConfigForm.java @@ -14,17 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.form.admin.BsWebCrawlingConfigForm; -import jp.sf.fess.util.ComponentUtil; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.form.admin.BsWebCrawlingConfigForm; +import org.codelibs.fess.util.ComponentUtil; public class WebCrawlingConfigForm extends BsWebCrawlingConfigForm implements Serializable { diff --git a/src/main/java/jp/sf/fess/form/admin/WizardForm.java b/src/main/java/org/codelibs/fess/form/admin/WizardForm.java similarity index 97% rename from src/main/java/jp/sf/fess/form/admin/WizardForm.java rename to src/main/java/org/codelibs/fess/form/admin/WizardForm.java index dd0a20e58..1efaf4717 100644 --- a/src/main/java/jp/sf/fess/form/admin/WizardForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/WizardForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin; +package org.codelibs.fess.form.admin; import java.io.Serializable; diff --git a/src/main/java/jp/sf/fess/form/admin/dict/SynonymForm.java b/src/main/java/org/codelibs/fess/form/admin/dict/SynonymForm.java similarity index 97% rename from src/main/java/jp/sf/fess/form/admin/dict/SynonymForm.java rename to src/main/java/org/codelibs/fess/form/admin/dict/SynonymForm.java index a46898273..ccac78817 100644 --- a/src/main/java/jp/sf/fess/form/admin/dict/SynonymForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/dict/SynonymForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin.dict; +package org.codelibs.fess.form.admin.dict; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/jp/sf/fess/form/admin/dict/UserDictForm.java b/src/main/java/org/codelibs/fess/form/admin/dict/UserDictForm.java similarity index 97% rename from src/main/java/jp/sf/fess/form/admin/dict/UserDictForm.java rename to src/main/java/org/codelibs/fess/form/admin/dict/UserDictForm.java index d21c35212..dcacca45b 100644 --- a/src/main/java/jp/sf/fess/form/admin/dict/UserDictForm.java +++ b/src/main/java/org/codelibs/fess/form/admin/dict/UserDictForm.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.form.admin.dict; +package org.codelibs.fess.form.admin.dict; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/jp/sf/fess/helper/AdRoleHelper.java b/src/main/java/org/codelibs/fess/helper/AdRoleHelper.java similarity index 99% rename from src/main/java/jp/sf/fess/helper/AdRoleHelper.java rename to src/main/java/org/codelibs/fess/helper/AdRoleHelper.java index 6fb75a5dd..d5825651a 100644 --- a/src/main/java/jp/sf/fess/helper/AdRoleHelper.java +++ b/src/main/java/org/codelibs/fess/helper/AdRoleHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/jp/sf/fess/helper/CrawlingConfigHelper.java b/src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java similarity index 95% rename from src/main/java/jp/sf/fess/helper/CrawlingConfigHelper.java rename to src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java index e40adeab4..94747e828 100644 --- a/src/main/java/jp/sf/fess/helper/CrawlingConfigHelper.java +++ b/src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; @@ -29,17 +29,16 @@ import java.util.concurrent.ConcurrentHashMap; import javax.servlet.http.HttpServletResponse; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.db.exentity.CrawlingConfig; -import jp.sf.fess.db.exentity.CrawlingConfig.ConfigType; -import jp.sf.fess.helper.UserAgentHelper.UserAgentType; -import jp.sf.fess.service.DataCrawlingConfigService; -import jp.sf.fess.service.FileCrawlingConfigService; -import jp.sf.fess.service.WebCrawlingConfigService; -import jp.sf.fess.util.ComponentUtil; - import org.apache.commons.io.IOUtils; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.db.exentity.CrawlingConfig; +import org.codelibs.fess.db.exentity.CrawlingConfig.ConfigType; +import org.codelibs.fess.helper.UserAgentHelper.UserAgentType; +import org.codelibs.fess.service.DataCrawlingConfigService; +import org.codelibs.fess.service.FileCrawlingConfigService; +import org.codelibs.fess.service.WebCrawlingConfigService; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.builder.RequestDataBuilder; import org.codelibs.robot.client.S2RobotClient; import org.codelibs.robot.client.S2RobotClientFactory; diff --git a/src/main/java/jp/sf/fess/helper/CrawlingSessionHelper.java b/src/main/java/org/codelibs/fess/helper/CrawlingSessionHelper.java similarity index 90% rename from src/main/java/jp/sf/fess/helper/CrawlingSessionHelper.java rename to src/main/java/org/codelibs/fess/helper/CrawlingSessionHelper.java index 0ce2de012..e1c5b29b1 100644 --- a/src/main/java/jp/sf/fess/helper/CrawlingSessionHelper.java +++ b/src/main/java/org/codelibs/fess/helper/CrawlingSessionHelper.java @@ -14,31 +14,28 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.Serializable; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.Collections; -import java.util.Date; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.db.exentity.CrawlingSession; -import jp.sf.fess.db.exentity.CrawlingSessionInfo; -import jp.sf.fess.service.CrawlingSessionService; -import jp.sf.fess.util.ComponentUtil; - -import org.apache.commons.lang.time.DateUtils; import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrQuery.ORDER; import org.apache.solr.client.solrj.response.FacetField; import org.apache.solr.client.solrj.response.QueryResponse; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.db.exentity.CrawlingSession; +import org.codelibs.fess.db.exentity.CrawlingSessionInfo; +import org.codelibs.fess.service.CrawlingSessionService; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.solr.lib.SolrGroup; import org.seasar.framework.container.SingletonS2Container; import org.slf4j.Logger; @@ -54,7 +51,7 @@ public class CrawlingSessionHelper implements Serializable { protected Map<String, String> infoMap; - protected Date documentExpires; + protected LocalDateTime documentExpires; protected CrawlingSessionService getCrawlingSessionService() { return SingletonS2Container.getComponent(CrawlingSessionService.class); @@ -118,7 +115,7 @@ public class CrawlingSessionHelper implements Serializable { crawlingSession.setName(Constants.CRAWLING_SESSION_SYSTEM_NAME); } if (dayForCleanup >= 0) { - final Timestamp expires = getExpiredTimestamp(dayForCleanup); + final LocalDateTime expires = getExpiredTime(dayForCleanup); crawlingSession.setExpiredTime(expires); documentExpires = expires; } @@ -130,12 +127,14 @@ public class CrawlingSessionHelper implements Serializable { } - public Date getDocumentExpires() { + public LocalDateTime getDocumentExpires() { return documentExpires; } - protected Timestamp getExpiredTimestamp(final int days) { - return new Timestamp(DateUtils.addDays(new Date(), days).getTime()); + protected LocalDateTime getExpiredTime(final int days) { + final LocalDateTime now = ComponentUtil.getSystemHelper() + .getCurrentTime(); + return now.plusDays(days); } public Map<String, String> getInfoMap(final String sessionId) { diff --git a/src/main/java/jp/sf/fess/helper/DataIndexHelper.java b/src/main/java/org/codelibs/fess/helper/DataIndexHelper.java similarity index 97% rename from src/main/java/jp/sf/fess/helper/DataIndexHelper.java rename to src/main/java/org/codelibs/fess/helper/DataIndexHelper.java index 524488cf1..b37cf42fc 100644 --- a/src/main/java/jp/sf/fess/helper/DataIndexHelper.java +++ b/src/main/java/org/codelibs/fess/helper/DataIndexHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.Serializable; import java.util.ArrayList; @@ -25,17 +25,16 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.ds.DataStore; -import jp.sf.fess.ds.DataStoreFactory; -import jp.sf.fess.ds.IndexUpdateCallback; -import jp.sf.fess.service.DataCrawlingConfigService; -import jp.sf.fess.util.ComponentUtil; - import org.apache.solr.client.solrj.util.ClientUtils; import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.exentity.DataCrawlingConfig; +import org.codelibs.fess.ds.DataStore; +import org.codelibs.fess.ds.DataStoreFactory; +import org.codelibs.fess.ds.IndexUpdateCallback; +import org.codelibs.fess.service.DataCrawlingConfigService; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.solr.lib.SolrGroup; import org.seasar.framework.container.SingletonS2Container; import org.slf4j.Logger; diff --git a/src/main/java/jp/sf/fess/helper/DatabaseHelper.java b/src/main/java/org/codelibs/fess/helper/DatabaseHelper.java similarity index 95% rename from src/main/java/jp/sf/fess/helper/DatabaseHelper.java rename to src/main/java/org/codelibs/fess/helper/DatabaseHelper.java index d4d43914e..a14810f9d 100644 --- a/src/main/java/jp/sf/fess/helper/DatabaseHelper.java +++ b/src/main/java/org/codelibs/fess/helper/DatabaseHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; public interface DatabaseHelper { diff --git a/src/main/java/jp/sf/fess/helper/DocumentHelper.java b/src/main/java/org/codelibs/fess/helper/DocumentHelper.java similarity index 96% rename from src/main/java/jp/sf/fess/helper/DocumentHelper.java rename to src/main/java/org/codelibs/fess/helper/DocumentHelper.java index 79a4cb4d6..458e2b60e 100644 --- a/src/main/java/jp/sf/fess/helper/DocumentHelper.java +++ b/src/main/java/org/codelibs/fess/helper/DocumentHelper.java @@ -14,14 +14,13 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import javax.annotation.Resource; -import jp.sf.fess.FessSystemException; - import org.apache.solr.client.solrj.request.UpdateRequest; import org.apache.solr.common.SolrInputDocument; +import org.codelibs.fess.FessSystemException; import org.codelibs.solr.lib.SolrGroup; import org.codelibs.solr.lib.SolrGroupManager; import org.codelibs.solr.lib.policy.QueryType; diff --git a/src/main/java/jp/sf/fess/helper/FieldHelper.java b/src/main/java/org/codelibs/fess/helper/FieldHelper.java similarity index 98% rename from src/main/java/jp/sf/fess/helper/FieldHelper.java rename to src/main/java/org/codelibs/fess/helper/FieldHelper.java index d7f6a134a..23c644f81 100644 --- a/src/main/java/jp/sf/fess/helper/FieldHelper.java +++ b/src/main/java/org/codelibs/fess/helper/FieldHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; public class FieldHelper { public String favoriteCountField = "favoriteCount_l_x_dv"; diff --git a/src/main/java/jp/sf/fess/helper/FileTypeHelper.java b/src/main/java/org/codelibs/fess/helper/FileTypeHelper.java similarity index 97% rename from src/main/java/jp/sf/fess/helper/FileTypeHelper.java rename to src/main/java/org/codelibs/fess/helper/FileTypeHelper.java index 656e7afbb..ba08e2528 100644 --- a/src/main/java/jp/sf/fess/helper/FileTypeHelper.java +++ b/src/main/java/org/codelibs/fess/helper/FileTypeHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/org/codelibs/fess/helper/HotSearchWordHelper.java b/src/main/java/org/codelibs/fess/helper/HotSearchWordHelper.java new file mode 100644 index 000000000..9cc934706 --- /dev/null +++ b/src/main/java/org/codelibs/fess/helper/HotSearchWordHelper.java @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2015 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 org.codelibs.fess.helper; + +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +import java.util.regex.Pattern; + +import javax.annotation.Resource; + +import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.db.exbhv.SearchLogBhv; +import org.codelibs.fess.db.exbhv.pmbean.HotSearchWordPmb; +import org.codelibs.fess.util.ComponentUtil; +import org.seasar.framework.container.annotation.tiger.InitMethod; + +public class HotSearchWordHelper { + + @Resource + protected SearchLogBhv searchLogBhv; + + protected Map<Range, List<String>> cacheMap = new ConcurrentHashMap<HotSearchWordHelper.Range, List<String>>(); + + public int size = 10; + + public Pattern excludedWordPattern; + + @InitMethod + public void init() { + final LocalDateTime now = ComponentUtil.getSystemHelper() + .getCurrentTime(); + cacheMap.put(Range.ONE_DAY, + getHotSearchWordListByFromDate(now.minusDays(1))); + cacheMap.put(Range.ONE_WEEK, + getHotSearchWordListByFromDate(now.minusWeeks(1))); + cacheMap.put(Range.ONE_MONTH, + getHotSearchWordListByFromDate(now.minusMonths(1))); + cacheMap.put(Range.ONE_YEAR, + getHotSearchWordListByFromDate(now.minusYears(1))); + cacheMap.put(Range.ENTIRE, getHotSearchWordListByFromDate(null)); + } + + protected List<String> getHotSearchWordListByFromDate( + final LocalDateTime fromDate) { + final HotSearchWordPmb pmb = new HotSearchWordPmb(); + + if (fromDate != null) { + pmb.setFromRequestedTime(fromDate); + } + + final List<String> wordList = new ArrayList<String>(); + + searchLogBhv.outsideSql().selectCursor(pmb, rs -> { + while (rs.next()) { + final String word = rs.getString("name"); + if (StringUtil.isBlank(word)) { + continue; + } + if (excludedWordPattern != null) { + if (!excludedWordPattern.matcher(word).matches()) { + wordList.add(word); + } + } else { + wordList.add(word); + } + if (wordList.size() >= size) { + break; + } + } + return null; + }); + + return wordList; + } + + public void reload() { + init(); + } + + public List<String> getHotSearchWordList(final Range range) { + return cacheMap.get(range); + } + + public enum Range { + ONE_DAY(1), ONE_WEEK(7), ONE_MONTH(30), ONE_YEAR(365), ENTIRE(0); + private final long time; + + private Range(final long t) { + time = t * 24L * 60L * 60L * 1000L; + } + + public long getTime() { + return time; + } + } +} diff --git a/src/main/java/jp/sf/fess/helper/IndexingHelper.java b/src/main/java/org/codelibs/fess/helper/IndexingHelper.java similarity index 99% rename from src/main/java/jp/sf/fess/helper/IndexingHelper.java rename to src/main/java/org/codelibs/fess/helper/IndexingHelper.java index c867cfb72..10459d55e 100644 --- a/src/main/java/jp/sf/fess/helper/IndexingHelper.java +++ b/src/main/java/org/codelibs/fess/helper/IndexingHelper.java @@ -14,13 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.util.ArrayList; import java.util.List; -import jp.sf.fess.util.ComponentUtil; - import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.response.QueryResponse; import org.apache.solr.client.solrj.response.UpdateResponse; @@ -28,6 +26,7 @@ import org.apache.solr.client.solrj.util.ClientUtils; import org.apache.solr.common.SolrDocument; import org.apache.solr.common.SolrDocumentList; import org.apache.solr.common.SolrInputDocument; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.solr.lib.SolrGroup; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/helper/IntervalControlHelper.java b/src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java similarity index 98% rename from src/main/java/jp/sf/fess/helper/IntervalControlHelper.java rename to src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java index 364183559..de73e55a5 100644 --- a/src/main/java/jp/sf/fess/helper/IntervalControlHelper.java +++ b/src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java @@ -14,13 +14,13 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.util.ArrayList; import java.util.Calendar; import java.util.List; -import jp.sf.fess.FessSystemException; +import org.codelibs.fess.FessSystemException; public class IntervalControlHelper { private volatile boolean crawlerRunning = true; diff --git a/src/main/java/jp/sf/fess/helper/JobHelper.java b/src/main/java/org/codelibs/fess/helper/JobHelper.java similarity index 95% rename from src/main/java/jp/sf/fess/helper/JobHelper.java rename to src/main/java/org/codelibs/fess/helper/JobHelper.java index bfa8826ed..a17604ad7 100644 --- a/src/main/java/jp/sf/fess/helper/JobHelper.java +++ b/src/main/java/org/codelibs/fess/helper/JobHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.IOException; import java.util.Set; @@ -22,12 +22,11 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.job.JobExecutor; -import jp.sf.fess.util.InputStreamThread; -import jp.sf.fess.util.JobProcess; - import org.apache.commons.io.IOUtils; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.job.JobExecutor; +import org.codelibs.fess.util.InputStreamThread; +import org.codelibs.fess.util.JobProcess; import org.seasar.framework.container.annotation.tiger.DestroyMethod; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/helper/KeyMatchHelper.java b/src/main/java/org/codelibs/fess/helper/KeyMatchHelper.java similarity index 94% rename from src/main/java/jp/sf/fess/helper/KeyMatchHelper.java rename to src/main/java/org/codelibs/fess/helper/KeyMatchHelper.java index 905c6f913..d1bd47ca0 100644 --- a/src/main/java/jp/sf/fess/helper/KeyMatchHelper.java +++ b/src/main/java/org/codelibs/fess/helper/KeyMatchHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.util.ArrayList; import java.util.Collections; @@ -22,12 +22,11 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import jp.sf.fess.db.exentity.KeyMatch; -import jp.sf.fess.service.KeyMatchService; -import jp.sf.fess.service.SearchService; -import jp.sf.fess.util.ComponentUtil; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.db.exentity.KeyMatch; +import org.codelibs.fess.service.KeyMatchService; +import org.codelibs.fess.service.SearchService; +import org.codelibs.fess.util.ComponentUtil; import org.seasar.framework.container.SingletonS2Container; import org.seasar.framework.container.annotation.tiger.InitMethod; diff --git a/src/main/java/jp/sf/fess/helper/LabelTypeHelper.java b/src/main/java/org/codelibs/fess/helper/LabelTypeHelper.java similarity index 98% rename from src/main/java/jp/sf/fess/helper/LabelTypeHelper.java rename to src/main/java/org/codelibs/fess/helper/LabelTypeHelper.java index baf850de5..539e59f00 100644 --- a/src/main/java/jp/sf/fess/helper/LabelTypeHelper.java +++ b/src/main/java/org/codelibs/fess/helper/LabelTypeHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.Serializable; import java.util.ArrayList; @@ -28,11 +28,10 @@ import java.util.regex.Pattern; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.service.LabelTypeService; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.exentity.LabelType; +import org.codelibs.fess.service.LabelTypeService; import org.seasar.framework.container.SingletonS2Container; import org.seasar.framework.container.annotation.tiger.InitMethod; import org.slf4j.Logger; diff --git a/src/main/java/jp/sf/fess/helper/MailHelper.java b/src/main/java/org/codelibs/fess/helper/MailHelper.java similarity index 95% rename from src/main/java/jp/sf/fess/helper/MailHelper.java rename to src/main/java/org/codelibs/fess/helper/MailHelper.java index 85a4941c0..d6fad038c 100644 --- a/src/main/java/jp/sf/fess/helper/MailHelper.java +++ b/src/main/java/org/codelibs/fess/helper/MailHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.Serializable; import java.util.Arrays; @@ -28,8 +28,8 @@ import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; public class MailHelper implements Serializable { diff --git a/src/main/java/jp/sf/fess/helper/OpenSearchHelper.java b/src/main/java/org/codelibs/fess/helper/OpenSearchHelper.java similarity index 95% rename from src/main/java/jp/sf/fess/helper/OpenSearchHelper.java rename to src/main/java/org/codelibs/fess/helper/OpenSearchHelper.java index 5ddad8a49..7a5a2d7f9 100644 --- a/src/main/java/jp/sf/fess/helper/OpenSearchHelper.java +++ b/src/main/java/org/codelibs/fess/helper/OpenSearchHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.File; import java.io.IOException; @@ -22,11 +22,10 @@ import java.io.IOException; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletResponse; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; - import org.apache.commons.io.IOUtils; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; import org.seasar.framework.container.annotation.tiger.InitMethod; import org.seasar.framework.util.FileUtil; import org.seasar.struts.util.ServletContextUtil; diff --git a/src/main/java/jp/sf/fess/helper/OverlappingHostHelper.java b/src/main/java/org/codelibs/fess/helper/OverlappingHostHelper.java similarity index 93% rename from src/main/java/jp/sf/fess/helper/OverlappingHostHelper.java rename to src/main/java/org/codelibs/fess/helper/OverlappingHostHelper.java index 5718cb5a4..5969abd6d 100644 --- a/src/main/java/jp/sf/fess/helper/OverlappingHostHelper.java +++ b/src/main/java/org/codelibs/fess/helper/OverlappingHostHelper.java @@ -14,15 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import jp.sf.fess.db.exentity.OverlappingHost; -import jp.sf.fess.service.OverlappingHostService; - +import org.codelibs.fess.db.exentity.OverlappingHost; +import org.codelibs.fess.service.OverlappingHostService; import org.seasar.framework.container.SingletonS2Container; import org.seasar.framework.container.annotation.tiger.InitMethod; diff --git a/src/main/java/jp/sf/fess/helper/PathMappingHelper.java b/src/main/java/org/codelibs/fess/helper/PathMappingHelper.java similarity index 90% rename from src/main/java/jp/sf/fess/helper/PathMappingHelper.java rename to src/main/java/org/codelibs/fess/helper/PathMappingHelper.java index 203418a2d..eab86948f 100644 --- a/src/main/java/jp/sf/fess/helper/PathMappingHelper.java +++ b/src/main/java/org/codelibs/fess/helper/PathMappingHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.Serializable; import java.util.ArrayList; @@ -23,11 +23,9 @@ import java.util.List; import java.util.Map; import java.util.regex.Matcher; -import jp.sf.fess.db.allcommon.CDef; -import jp.sf.fess.db.cbean.PathMappingCB; -import jp.sf.fess.db.exbhv.PathMappingBhv; -import jp.sf.fess.db.exentity.PathMapping; - +import org.codelibs.fess.db.allcommon.CDef; +import org.codelibs.fess.db.exbhv.PathMappingBhv; +import org.codelibs.fess.db.exentity.PathMapping; import org.seasar.framework.container.SingletonS2Container; import org.seasar.framework.container.annotation.tiger.InitMethod; import org.slf4j.Logger; @@ -53,13 +51,11 @@ public class PathMappingHelper implements Serializable { try { final PathMappingBhv pathMappingBhv = SingletonS2Container .getComponent(PathMappingBhv.class); - final PathMappingCB cb = new PathMappingCB(); - - cb.query().setDeletedBy_IsNull(); - cb.query().addOrderBy_SortOrder_Asc(); - cb.query().setProcessType_InScope_AsProcessType(ptList); - - cachedPathMappingList = pathMappingBhv.selectList(cb); + cachedPathMappingList = pathMappingBhv.selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + cb.query().addOrderBy_SortOrder_Asc(); + cb.query().setProcessType_InScope_AsProcessType(ptList); + }); } catch (final Exception e) { logger.warn("Failed to load path mappings.", e); } diff --git a/src/main/java/jp/sf/fess/helper/QueryHelper.java b/src/main/java/org/codelibs/fess/helper/QueryHelper.java similarity index 99% rename from src/main/java/jp/sf/fess/helper/QueryHelper.java rename to src/main/java/org/codelibs/fess/helper/QueryHelper.java index f0644f15b..e150d2001 100644 --- a/src/main/java/jp/sf/fess/helper/QueryHelper.java +++ b/src/main/java/org/codelibs/fess/helper/QueryHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; /* * Copyright 2009-2014 the CodeLibs Project and the Others. @@ -45,18 +45,17 @@ import java.util.Set; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; -import jp.sf.fess.Constants; -import jp.sf.fess.InvalidQueryException; -import jp.sf.fess.entity.FacetInfo; -import jp.sf.fess.entity.GeoInfo; -import jp.sf.fess.entity.MoreLikeThisInfo; -import jp.sf.fess.entity.SearchQuery; -import jp.sf.fess.entity.SearchQuery.SortField; -import jp.sf.fess.util.QueryUtil; -import jp.sf.fess.util.SearchParamMap; - import org.apache.commons.lang.StringUtils; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.InvalidQueryException; +import org.codelibs.fess.entity.FacetInfo; +import org.codelibs.fess.entity.GeoInfo; +import org.codelibs.fess.entity.MoreLikeThisInfo; +import org.codelibs.fess.entity.SearchQuery; +import org.codelibs.fess.entity.SearchQuery.SortField; +import org.codelibs.fess.util.QueryUtil; +import org.codelibs.fess.util.SearchParamMap; import org.seasar.framework.container.annotation.tiger.Binding; import org.seasar.framework.container.annotation.tiger.BindingType; import org.seasar.framework.container.annotation.tiger.InitMethod; @@ -234,7 +233,7 @@ public class QueryHelper implements Serializable { /* * (non-Javadoc) * - * @see jp.sf.fess.helper.QueryHelper#build(java.lang.String) + * @see org.codelibs.fess.helper.QueryHelper#build(java.lang.String) */ public SearchQuery build(final String query, final boolean envCondition) { String q; diff --git a/src/main/java/jp/sf/fess/helper/RobotLogHelper.java b/src/main/java/org/codelibs/fess/helper/RobotLogHelper.java similarity index 95% rename from src/main/java/jp/sf/fess/helper/RobotLogHelper.java rename to src/main/java/org/codelibs/fess/helper/RobotLogHelper.java index f1c358f42..0dc53d742 100644 --- a/src/main/java/jp/sf/fess/helper/RobotLogHelper.java +++ b/src/main/java/org/codelibs/fess/helper/RobotLogHelper.java @@ -14,12 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; - -import jp.sf.fess.db.exentity.CrawlingConfig; -import jp.sf.fess.service.FailureUrlService; -import jp.sf.fess.util.ComponentUtil; +package org.codelibs.fess.helper; +import org.codelibs.fess.db.exentity.CrawlingConfig; +import org.codelibs.fess.service.FailureUrlService; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.RobotMultipleCrawlAccessException; import org.codelibs.robot.S2RobotContext; import org.codelibs.robot.entity.UrlQueue; diff --git a/src/main/java/jp/sf/fess/helper/RoleQueryHelper.java b/src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java similarity index 95% rename from src/main/java/jp/sf/fess/helper/RoleQueryHelper.java rename to src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java index 32fe64349..0f49c7722 100644 --- a/src/main/java/jp/sf/fess/helper/RoleQueryHelper.java +++ b/src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.util.Set; diff --git a/src/main/java/jp/sf/fess/helper/SambaHelper.java b/src/main/java/org/codelibs/fess/helper/SambaHelper.java similarity index 97% rename from src/main/java/jp/sf/fess/helper/SambaHelper.java rename to src/main/java/org/codelibs/fess/helper/SambaHelper.java index accdeff8e..6f6bc28ce 100644 --- a/src/main/java/jp/sf/fess/helper/SambaHelper.java +++ b/src/main/java/org/codelibs/fess/helper/SambaHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import jcifs.smb.SID; diff --git a/src/main/java/jp/sf/fess/helper/SearchLogHelper.java b/src/main/java/org/codelibs/fess/helper/SearchLogHelper.java similarity index 81% rename from src/main/java/jp/sf/fess/helper/SearchLogHelper.java rename to src/main/java/org/codelibs/fess/helper/SearchLogHelper.java index f4e98a528..35ea444d8 100644 --- a/src/main/java/jp/sf/fess/helper/SearchLogHelper.java +++ b/src/main/java/org/codelibs/fess/helper/SearchLogHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.util.Map; import java.util.Queue; @@ -22,19 +22,17 @@ import java.util.concurrent.ConcurrentLinkedQueue; import javax.annotation.Resource; -import jp.sf.fess.db.bsbhv.BsFavoriteLogBhv; -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.exbhv.ClickLogBhv; -import jp.sf.fess.db.exbhv.FavoriteLogBhv; -import jp.sf.fess.db.exbhv.pmbean.FavoriteUrlCountPmb; -import jp.sf.fess.db.exentity.ClickLog; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.db.exentity.customize.FavoriteUrlCount; import jp.sf.fess.suggest.service.SuggestService; import org.codelibs.core.util.DynamicProperties; +import org.codelibs.fess.db.exbhv.ClickLogBhv; +import org.codelibs.fess.db.exbhv.FavoriteLogBhv; +import org.codelibs.fess.db.exbhv.pmbean.FavoriteUrlCountPmb; +import org.codelibs.fess.db.exentity.ClickLog; +import org.codelibs.fess.db.exentity.SearchLog; +import org.codelibs.fess.db.exentity.customize.FavoriteUrlCount; import org.codelibs.robot.util.LruHashMap; -import org.seasar.dbflute.cbean.ListResultBean; +import org.dbflute.cbean.result.ListResultBean; import org.seasar.framework.container.SingletonS2Container; import org.seasar.framework.container.annotation.tiger.InitMethod; @@ -88,9 +86,9 @@ public abstract class SearchLogHelper { public int getClickCount(final String url) { final ClickLogBhv clickLogBhv = SingletonS2Container .getComponent(ClickLogBhv.class); - final ClickLogCB cb = new ClickLogCB(); - cb.query().setUrl_Equal(url); - return clickLogBhv.selectCount(cb); + return clickLogBhv.selectCount(cb -> { + cb.query().setUrl_Equal(url); + }); } public long getFavoriteCount(final String url) { @@ -98,9 +96,8 @@ public abstract class SearchLogHelper { .getComponent(FavoriteLogBhv.class); final FavoriteUrlCountPmb pmb = new FavoriteUrlCountPmb(); pmb.setUrl(url); - final String path = BsFavoriteLogBhv.PATH_selectFavoriteUrlCount; final ListResultBean<FavoriteUrlCount> list = favoriteLogBhv - .outsideSql().selectList(path, pmb, FavoriteUrlCount.class); + .outsideSql().selectList(pmb); long count = 0; if (!list.isEmpty()) { diff --git a/src/main/java/jp/sf/fess/helper/SuggestHelper.java b/src/main/java/org/codelibs/fess/helper/SuggestHelper.java similarity index 86% rename from src/main/java/jp/sf/fess/helper/SuggestHelper.java rename to src/main/java/org/codelibs/fess/helper/SuggestHelper.java index 9b01dfc79..8462ed88d 100644 --- a/src/main/java/jp/sf/fess/helper/SuggestHelper.java +++ b/src/main/java/org/codelibs/fess/helper/SuggestHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.BufferedWriter; import java.io.File; @@ -27,18 +27,16 @@ import java.util.Set; import javax.annotation.Resource; -import jp.sf.fess.db.cbean.SuggestBadWordCB; -import jp.sf.fess.db.cbean.SuggestElevateWordCB; -import jp.sf.fess.db.exbhv.SuggestBadWordBhv; -import jp.sf.fess.db.exbhv.SuggestElevateWordBhv; -import jp.sf.fess.db.exentity.SuggestBadWord; -import jp.sf.fess.db.exentity.SuggestElevateWord; -import jp.sf.fess.entity.PingResponse; -import jp.sf.fess.service.SearchService; import jp.sf.fess.suggest.SuggestConstants; import jp.sf.fess.suggest.service.SuggestService; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.db.exbhv.SuggestBadWordBhv; +import org.codelibs.fess.db.exbhv.SuggestElevateWordBhv; +import org.codelibs.fess.db.exentity.SuggestBadWord; +import org.codelibs.fess.db.exentity.SuggestElevateWord; +import org.codelibs.fess.entity.PingResponse; +import org.codelibs.fess.service.SearchService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -93,10 +91,10 @@ public class SuggestHelper { public void storeAllElevateWords() { suggestService.deleteAllElevateWords(); - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - cb.query().setDeletedBy_IsNull(); final List<SuggestElevateWord> list = suggestElevateWordBhv - .selectList(cb); + .selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + }); for (final SuggestElevateWord suggestElevateWord : list) { final String word = suggestElevateWord.getSuggestWord(); final String reading = suggestElevateWord.getReading(); @@ -117,10 +115,10 @@ public class SuggestHelper { public void addElevateWord(final String word, final String reading, final String labels, final String roles, final long boost, final boolean commit) { - final SuggestBadWordCB badWordCB = new SuggestBadWordCB(); - badWordCB.query().setSuggestWord_Equal(word); final List<SuggestBadWord> badWordList = suggestBadWordBhv - .selectList(badWordCB); + .selectList(badWordCB -> { + badWordCB.query().setSuggestWord_Equal(word); + }); if (badWordList.size() > 0) { return; } @@ -149,9 +147,9 @@ public class SuggestHelper { } public void deleteAllBadWord() { - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.query().setDeletedBy_IsNull(); - final List<SuggestBadWord> list = suggestBadWordBhv.selectList(cb); + final List<SuggestBadWord> list = suggestBadWordBhv.selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + }); final Set<String> badWords = new HashSet<String>(); for (final SuggestBadWord suggestBadWord : list) { final String word = suggestBadWord.getSuggestWord(); @@ -163,9 +161,9 @@ public class SuggestHelper { } public void updateSolrBadwordFile() { - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.query().setDeletedBy_IsNull(); - final List<SuggestBadWord> list = suggestBadWordBhv.selectList(cb); + final List<SuggestBadWord> list = suggestBadWordBhv.selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + }); final File dir = new File(System.getProperty("catalina.home").replace( "Â¥", "/") diff --git a/src/main/java/jp/sf/fess/helper/SystemHelper.java b/src/main/java/org/codelibs/fess/helper/SystemHelper.java similarity index 97% rename from src/main/java/jp/sf/fess/helper/SystemHelper.java rename to src/main/java/org/codelibs/fess/helper/SystemHelper.java index 06ea6ec56..756dbc4fe 100644 --- a/src/main/java/jp/sf/fess/helper/SystemHelper.java +++ b/src/main/java/org/codelibs/fess/helper/SystemHelper.java @@ -14,14 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.File; import java.io.FilenameFilter; import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; @@ -35,15 +35,14 @@ import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.service.RoleTypeService; -import jp.sf.fess.util.ResourceUtil; - import org.apache.commons.lang.LocaleUtils; import org.apache.commons.lang.StringUtils; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.db.exentity.RoleType; +import org.codelibs.fess.service.RoleTypeService; +import org.codelibs.fess.util.ResourceUtil; import org.codelibs.robot.util.CharUtil; import org.codelibs.solr.lib.SolrGroup; import org.codelibs.solr.lib.policy.QueryType; @@ -216,8 +215,8 @@ public class SystemHelper implements Serializable { return username; } - public Timestamp getCurrentTimestamp() { - return new Timestamp(System.currentTimeMillis()); + public LocalDateTime getCurrentTime() { + return LocalDateTime.now(); } public String getLogFilePath() { diff --git a/src/main/java/jp/sf/fess/helper/UserAgentHelper.java b/src/main/java/org/codelibs/fess/helper/UserAgentHelper.java similarity index 98% rename from src/main/java/jp/sf/fess/helper/UserAgentHelper.java rename to src/main/java/org/codelibs/fess/helper/UserAgentHelper.java index ded71edbe..0d62bf8bd 100644 --- a/src/main/java/jp/sf/fess/helper/UserAgentHelper.java +++ b/src/main/java/org/codelibs/fess/helper/UserAgentHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import javax.servlet.http.HttpServletRequest; diff --git a/src/main/java/jp/sf/fess/helper/UserInfoHelper.java b/src/main/java/org/codelibs/fess/helper/UserInfoHelper.java similarity index 96% rename from src/main/java/jp/sf/fess/helper/UserInfoHelper.java rename to src/main/java/org/codelibs/fess/helper/UserInfoHelper.java index 9bf9d66f6..55da1840d 100644 --- a/src/main/java/jp/sf/fess/helper/UserInfoHelper.java +++ b/src/main/java/org/codelibs/fess/helper/UserInfoHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.util.List; import java.util.Map; diff --git a/src/main/java/jp/sf/fess/helper/ViewHelper.java b/src/main/java/org/codelibs/fess/helper/ViewHelper.java similarity index 98% rename from src/main/java/jp/sf/fess/helper/ViewHelper.java rename to src/main/java/org/codelibs/fess/helper/ViewHelper.java index e0018464a..64c0f0ad9 100644 --- a/src/main/java/jp/sf/fess/helper/ViewHelper.java +++ b/src/main/java/org/codelibs/fess/helper/ViewHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.File; import java.io.Serializable; @@ -34,17 +34,16 @@ import java.util.regex.Pattern; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.entity.FacetQueryView; -import jp.sf.fess.helper.UserAgentHelper.UserAgentType; -import jp.sf.fess.util.ComponentUtil; -import jp.sf.fess.util.ResourceUtil; - import org.apache.commons.lang.StringUtils; import org.codelibs.core.CoreLibConstants; import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.entity.FacetQueryView; +import org.codelibs.fess.helper.UserAgentHelper.UserAgentType; +import org.codelibs.fess.util.ComponentUtil; +import org.codelibs.fess.util.ResourceUtil; import org.codelibs.robot.util.CharUtil; import org.seasar.framework.container.annotation.tiger.InitMethod; import org.seasar.framework.util.URLUtil; diff --git a/src/main/java/jp/sf/fess/helper/WebFsIndexHelper.java b/src/main/java/org/codelibs/fess/helper/WebFsIndexHelper.java similarity index 96% rename from src/main/java/jp/sf/fess/helper/WebFsIndexHelper.java rename to src/main/java/org/codelibs/fess/helper/WebFsIndexHelper.java index 04ee72ea2..08baaffd3 100644 --- a/src/main/java/jp/sf/fess/helper/WebFsIndexHelper.java +++ b/src/main/java/org/codelibs/fess/helper/WebFsIndexHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.io.Serializable; import java.util.ArrayList; @@ -23,21 +23,20 @@ import java.util.List; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.db.exentity.BoostDocumentRule; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.db.exentity.WebCrawlingConfig; -import jp.sf.fess.interval.FessIntervalController; -import jp.sf.fess.service.BoostDocumentRuleService; -import jp.sf.fess.service.FailureUrlService; -import jp.sf.fess.service.FileAuthenticationService; -import jp.sf.fess.service.FileCrawlingConfigService; -import jp.sf.fess.service.WebCrawlingConfigService; -import jp.sf.fess.solr.IndexUpdater; -import jp.sf.fess.util.ComponentUtil; - import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.exentity.BoostDocumentRule; +import org.codelibs.fess.db.exentity.FileCrawlingConfig; +import org.codelibs.fess.db.exentity.WebCrawlingConfig; +import org.codelibs.fess.interval.FessIntervalController; +import org.codelibs.fess.service.BoostDocumentRuleService; +import org.codelibs.fess.service.FailureUrlService; +import org.codelibs.fess.service.FileAuthenticationService; +import org.codelibs.fess.service.FileCrawlingConfigService; +import org.codelibs.fess.service.WebCrawlingConfigService; +import org.codelibs.fess.solr.IndexUpdater; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.S2Robot; import org.codelibs.robot.S2RobotContext; import org.codelibs.robot.service.DataService; @@ -436,7 +435,7 @@ public class WebFsIndexHelper implements Serializable { for (final BoostDocumentRule rule : boostDocumentRuleService .getAvailableBoostDocumentRuleList()) { indexUpdater - .addBoostDocumentRule(new jp.sf.fess.solr.BoostDocumentRule( + .addBoostDocumentRule(new org.codelibs.fess.solr.BoostDocumentRule( rule)); } indexUpdater.start(); diff --git a/src/main/java/jp/sf/fess/helper/WebManagementHelper.java b/src/main/java/org/codelibs/fess/helper/WebManagementHelper.java similarity index 96% rename from src/main/java/jp/sf/fess/helper/WebManagementHelper.java rename to src/main/java/org/codelibs/fess/helper/WebManagementHelper.java index 7d73f2a49..0b4fca823 100644 --- a/src/main/java/jp/sf/fess/helper/WebManagementHelper.java +++ b/src/main/java/org/codelibs/fess/helper/WebManagementHelper.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper; +package org.codelibs.fess.helper; import java.util.List; diff --git a/src/main/java/jp/sf/fess/helper/impl/CookieUserInfoHelperImpl.java b/src/main/java/org/codelibs/fess/helper/impl/CookieUserInfoHelperImpl.java similarity index 94% rename from src/main/java/jp/sf/fess/helper/impl/CookieUserInfoHelperImpl.java rename to src/main/java/org/codelibs/fess/helper/impl/CookieUserInfoHelperImpl.java index d88e9c79b..44a3278aa 100644 --- a/src/main/java/jp/sf/fess/helper/impl/CookieUserInfoHelperImpl.java +++ b/src/main/java/org/codelibs/fess/helper/impl/CookieUserInfoHelperImpl.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper.impl; +package org.codelibs.fess.helper.impl; import java.util.ArrayList; import java.util.List; @@ -26,13 +26,12 @@ import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; -import jp.sf.fess.Constants; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.SearchLogHelper; -import jp.sf.fess.helper.UserInfoHelper; -import jp.sf.fess.util.ComponentUtil; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.SearchLogHelper; +import org.codelibs.fess.helper.UserInfoHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.util.LruHashMap; import org.seasar.struts.util.RequestUtil; import org.seasar.struts.util.ResponseUtil; @@ -55,7 +54,7 @@ public class CookieUserInfoHelperImpl implements UserInfoHelper { public Boolean cookieSecure; /* (non-Javadoc) - * @see jp.sf.fess.helper.impl.UserInfoHelper#getUserCode() + * @see org.codelibs.fess.helper.impl.UserInfoHelper#getUserCode() */ @Override public String getUserCode() { diff --git a/src/main/java/jp/sf/fess/helper/impl/DatabaseHelperImpl.java b/src/main/java/org/codelibs/fess/helper/impl/DatabaseHelperImpl.java similarity index 92% rename from src/main/java/jp/sf/fess/helper/impl/DatabaseHelperImpl.java rename to src/main/java/org/codelibs/fess/helper/impl/DatabaseHelperImpl.java index 0253a2938..17b3d406e 100644 --- a/src/main/java/jp/sf/fess/helper/impl/DatabaseHelperImpl.java +++ b/src/main/java/org/codelibs/fess/helper/impl/DatabaseHelperImpl.java @@ -14,10 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper.impl; - -import jp.sf.fess.helper.DatabaseHelper; +package org.codelibs.fess.helper.impl; +import org.codelibs.fess.helper.DatabaseHelper; import org.codelibs.robot.service.DataService; import org.codelibs.robot.service.UrlFilterService; import org.codelibs.robot.service.UrlQueueService; diff --git a/src/main/java/jp/sf/fess/helper/impl/EmptyDatabaseHelperImpl.java b/src/main/java/org/codelibs/fess/helper/impl/EmptyDatabaseHelperImpl.java similarity index 89% rename from src/main/java/jp/sf/fess/helper/impl/EmptyDatabaseHelperImpl.java rename to src/main/java/org/codelibs/fess/helper/impl/EmptyDatabaseHelperImpl.java index 6ab33234e..f3e498cec 100644 --- a/src/main/java/jp/sf/fess/helper/impl/EmptyDatabaseHelperImpl.java +++ b/src/main/java/org/codelibs/fess/helper/impl/EmptyDatabaseHelperImpl.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper.impl; +package org.codelibs.fess.helper.impl; -import jp.sf.fess.helper.DatabaseHelper; +import org.codelibs.fess.helper.DatabaseHelper; public class EmptyDatabaseHelperImpl implements DatabaseHelper { diff --git a/src/main/java/jp/sf/fess/helper/impl/EmptyManagementHelperImpl.java b/src/main/java/org/codelibs/fess/helper/impl/EmptyManagementHelperImpl.java similarity index 93% rename from src/main/java/jp/sf/fess/helper/impl/EmptyManagementHelperImpl.java rename to src/main/java/org/codelibs/fess/helper/impl/EmptyManagementHelperImpl.java index 370bbf724..da75f4edd 100644 --- a/src/main/java/jp/sf/fess/helper/impl/EmptyManagementHelperImpl.java +++ b/src/main/java/org/codelibs/fess/helper/impl/EmptyManagementHelperImpl.java @@ -14,11 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper.impl; +package org.codelibs.fess.helper.impl; import java.util.List; -import jp.sf.fess.helper.WebManagementHelper; +import org.codelibs.fess.helper.WebManagementHelper; public class EmptyManagementHelperImpl implements WebManagementHelper { diff --git a/src/main/java/jp/sf/fess/helper/impl/H2DatabaseHelperImpl.java b/src/main/java/org/codelibs/fess/helper/impl/H2DatabaseHelperImpl.java similarity index 90% rename from src/main/java/jp/sf/fess/helper/impl/H2DatabaseHelperImpl.java rename to src/main/java/org/codelibs/fess/helper/impl/H2DatabaseHelperImpl.java index c1dc6537c..80824471e 100644 --- a/src/main/java/jp/sf/fess/helper/impl/H2DatabaseHelperImpl.java +++ b/src/main/java/org/codelibs/fess/helper/impl/H2DatabaseHelperImpl.java @@ -14,12 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper.impl; - -import jp.sf.fess.helper.DatabaseHelper; -import jp.sf.fess.util.ResourceUtil; +package org.codelibs.fess.helper.impl; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.helper.DatabaseHelper; +import org.codelibs.fess.util.ResourceUtil; import org.h2.tools.DeleteDbFiles; import org.h2.tools.RunScript; import org.slf4j.Logger; @@ -42,7 +41,7 @@ public class H2DatabaseHelperImpl implements DatabaseHelper { public boolean printLogOnError = false; /* (non-Javadoc) - * @see jp.sf.fess.helper.impl.DatabaseHelper#optimize() + * @see org.codelibs.fess.helper.impl.DatabaseHelper#optimize() */ @Override public synchronized void optimize() { diff --git a/src/main/java/jp/sf/fess/helper/impl/RoleQueryHelperImpl.java b/src/main/java/org/codelibs/fess/helper/impl/RoleQueryHelperImpl.java similarity index 96% rename from src/main/java/jp/sf/fess/helper/impl/RoleQueryHelperImpl.java rename to src/main/java/org/codelibs/fess/helper/impl/RoleQueryHelperImpl.java index b91b42b3b..b3efc973e 100644 --- a/src/main/java/jp/sf/fess/helper/impl/RoleQueryHelperImpl.java +++ b/src/main/java/org/codelibs/fess/helper/impl/RoleQueryHelperImpl.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper.impl; +package org.codelibs.fess.helper.impl; import java.io.Serializable; import java.util.Collections; @@ -28,12 +28,11 @@ import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; -import jp.sf.fess.entity.LoginInfo; -import jp.sf.fess.helper.RoleQueryHelper; -import jp.sf.fess.helper.SystemHelper; - import org.codelibs.core.crypto.CachedCipher; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.entity.LoginInfo; +import org.codelibs.fess.helper.RoleQueryHelper; +import org.codelibs.fess.helper.SystemHelper; import org.codelibs.sastruts.core.SSCConstants; import org.seasar.struts.util.RequestUtil; import org.slf4j.Logger; @@ -79,7 +78,7 @@ public class RoleQueryHelperImpl implements RoleQueryHelper, Serializable { public SystemHelper systemHelper; /* (non-Javadoc) - * @see jp.sf.fess.helper.impl.RoleQueryHelper#build() + * @see org.codelibs.fess.helper.impl.RoleQueryHelper#build() */ @Override public Set<String> build() { diff --git a/src/main/java/jp/sf/fess/helper/impl/SearchLogHelperImpl.java b/src/main/java/org/codelibs/fess/helper/impl/SearchLogHelperImpl.java similarity index 85% rename from src/main/java/jp/sf/fess/helper/impl/SearchLogHelperImpl.java rename to src/main/java/org/codelibs/fess/helper/impl/SearchLogHelperImpl.java index 60b33aa17..af5967ac4 100644 --- a/src/main/java/jp/sf/fess/helper/impl/SearchLogHelperImpl.java +++ b/src/main/java/org/codelibs/fess/helper/impl/SearchLogHelperImpl.java @@ -14,34 +14,31 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper.impl; +package org.codelibs.fess.helper.impl; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Queue; -import jp.sf.fess.Constants; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.exbhv.ClickLogBhv; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exbhv.UserInfoBhv; -import jp.sf.fess.db.exentity.ClickLog; -import jp.sf.fess.db.exentity.SearchFieldLog; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.db.exentity.UserInfo; -import jp.sf.fess.helper.DocumentHelper; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.SearchLogHelper; -import jp.sf.fess.service.SearchLogService; -import jp.sf.fess.service.UserInfoService; -import jp.sf.fess.util.ComponentUtil; -import jp.sf.fess.util.FessBeans; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.exbhv.ClickLogBhv; +import org.codelibs.fess.db.exbhv.SearchLogBhv; +import org.codelibs.fess.db.exbhv.UserInfoBhv; +import org.codelibs.fess.db.exentity.ClickLog; +import org.codelibs.fess.db.exentity.SearchFieldLog; +import org.codelibs.fess.db.exentity.SearchLog; +import org.codelibs.fess.db.exentity.UserInfo; +import org.codelibs.fess.helper.DocumentHelper; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.SearchLogHelper; +import org.codelibs.fess.service.SearchLogService; +import org.codelibs.fess.service.UserInfoService; +import org.codelibs.fess.util.ComponentUtil; +import org.codelibs.fess.util.FessBeans; import org.seasar.framework.container.SingletonS2Container; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -59,7 +56,8 @@ public class SearchLogHelperImpl extends SearchLogHelper { .getComponent(UserInfoService.class); UserInfo userInfo = userInfoService.getUserInfo(userCode); if (userInfo == null) { - final Timestamp now = new Timestamp(current); + final LocalDateTime now = ComponentUtil.getSystemHelper() + .getCurrentTime(); userInfo = new UserInfo(); userInfo.setCode(userCode); userInfo.setCreatedTime(now); @@ -105,7 +103,7 @@ public class SearchLogHelperImpl extends SearchLogHelper { } } if (add) { - final UserInfo userInfo = searchLog.getUserInfo(); + final UserInfo userInfo = searchLog.getUserInfo().orElse(null);// TODO if (userInfo != null) { final String code = userInfo.getCode(); final UserInfo oldUserInfo = userInfoMap.get(code); @@ -137,11 +135,11 @@ public class SearchLogHelperImpl extends SearchLogHelper { final List<UserInfo> insertList = new ArrayList<UserInfo>( userInfoMap.values()); final List<UserInfo> updateList = new ArrayList<UserInfo>(); - final UserInfoCB cb = new UserInfoCB(); - cb.query().setCode_InScope(userInfoMap.keySet()); final UserInfoBhv userInfoBhv = SingletonS2Container .getComponent(UserInfoBhv.class); - final List<UserInfo> list = userInfoBhv.selectList(cb); + final List<UserInfo> list = userInfoBhv.selectList(cb -> { + cb.query().setCode_InScope(userInfoMap.keySet()); + }); for (final UserInfo userInfo : list) { final String code = userInfo.getCode(); final UserInfo entity = userInfoMap.get(code); @@ -153,7 +151,7 @@ public class SearchLogHelperImpl extends SearchLogHelper { userInfoBhv.batchInsert(insertList); userInfoBhv.batchUpdate(updateList); for (final SearchLog searchLog : searchLogList) { - final UserInfo userInfo = searchLog.getUserInfo(); + final UserInfo userInfo = searchLog.getUserInfo().orElse(null);//TODO if (userInfo != null) { final UserInfo entity = userInfoMap.get(userInfo.getCode()); searchLog.setUserId(entity.getId()); @@ -174,13 +172,15 @@ public class SearchLogHelperImpl extends SearchLogHelper { final List<ClickLog> clickLogList = new ArrayList<ClickLog>(); for (final ClickLog clickLog : queue) { try { - final SearchLogCB cb = new SearchLogCB(); - cb.query().setRequestedTime_Equal( - clickLog.getQueryRequestedTime()); - cb.query().setUserSessionId_Equal(clickLog.getUserSessionId()); final SearchLogBhv searchLogBhv = SingletonS2Container .getComponent(SearchLogBhv.class); - final SearchLog entity = searchLogBhv.selectEntity(cb); + final SearchLog entity = searchLogBhv.selectEntity( + cb -> { + cb.query().setRequestedTime_Equal( + clickLog.getQueryRequestedTime()); + cb.query().setUserSessionId_Equal( + clickLog.getUserSessionId()); + }).orElse(null);//TODO if (entity != null) { clickLog.setSearchId(entity.getId()); clickLogList.add(clickLog); diff --git a/src/main/java/jp/sf/fess/helper/impl/TomcatManagementHelperImpl.java b/src/main/java/org/codelibs/fess/helper/impl/TomcatManagementHelperImpl.java similarity index 93% rename from src/main/java/jp/sf/fess/helper/impl/TomcatManagementHelperImpl.java rename to src/main/java/org/codelibs/fess/helper/impl/TomcatManagementHelperImpl.java index 83b19db93..f16501ece 100644 --- a/src/main/java/jp/sf/fess/helper/impl/TomcatManagementHelperImpl.java +++ b/src/main/java/org/codelibs/fess/helper/impl/TomcatManagementHelperImpl.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.helper.impl; +package org.codelibs.fess.helper.impl; import java.io.IOException; import java.util.ArrayList; @@ -22,10 +22,6 @@ import java.util.LinkedHashMap; import java.util.List; import java.util.Map; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.helper.WebManagementHelper; - import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; @@ -35,6 +31,9 @@ import org.apache.http.auth.UsernamePasswordCredentials; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.helper.WebManagementHelper; import org.seasar.framework.util.InputStreamUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -54,7 +53,7 @@ public class TomcatManagementHelperImpl implements WebManagementHelper { } /* (non-Javadoc) - * @see jp.sf.fess.helper.WebManagementHelper#hasSolrInstance() + * @see org.codelibs.fess.helper.WebManagementHelper#hasSolrInstance() */ @Override public boolean hasSolrInstance() { @@ -62,7 +61,7 @@ public class TomcatManagementHelperImpl implements WebManagementHelper { } /* (non-Javadoc) - * @see jp.sf.fess.helper.WebManagementHelper#getSolrInstanceNameList() + * @see org.codelibs.fess.helper.WebManagementHelper#getSolrInstanceNameList() */ @Override public List<String> getSolrInstanceNameList() { @@ -72,7 +71,7 @@ public class TomcatManagementHelperImpl implements WebManagementHelper { } /* (non-Javadoc) - * @see jp.sf.fess.helper.WebManagementHelper#getStatus(java.lang.String) + * @see org.codelibs.fess.helper.WebManagementHelper#getStatus(java.lang.String) */ @Override public String getStatus(final String name) { @@ -90,7 +89,7 @@ public class TomcatManagementHelperImpl implements WebManagementHelper { } /* (non-Javadoc) - * @see jp.sf.fess.helper.WebManagementHelper#start(java.lang.String) + * @see org.codelibs.fess.helper.WebManagementHelper#start(java.lang.String) */ @Override public void start(final String name) { @@ -104,7 +103,7 @@ public class TomcatManagementHelperImpl implements WebManagementHelper { } /* (non-Javadoc) - * @see jp.sf.fess.helper.WebManagementHelper#stop(java.lang.String) + * @see org.codelibs.fess.helper.WebManagementHelper#stop(java.lang.String) */ @Override public void stop(final String name) { @@ -118,7 +117,7 @@ public class TomcatManagementHelperImpl implements WebManagementHelper { } /* (non-Javadoc) - * @see jp.sf.fess.helper.WebManagementHelper#reload(java.lang.String) + * @see org.codelibs.fess.helper.WebManagementHelper#reload(java.lang.String) */ @Override public void reload(final String name) { diff --git a/src/main/java/jp/sf/fess/interceptor/FessActionMessagesThrowsInterceptor.java b/src/main/java/org/codelibs/fess/interceptor/FessActionMessagesThrowsInterceptor.java similarity index 95% rename from src/main/java/jp/sf/fess/interceptor/FessActionMessagesThrowsInterceptor.java rename to src/main/java/org/codelibs/fess/interceptor/FessActionMessagesThrowsInterceptor.java index 744db721b..9cfaf882f 100644 --- a/src/main/java/jp/sf/fess/interceptor/FessActionMessagesThrowsInterceptor.java +++ b/src/main/java/org/codelibs/fess/interceptor/FessActionMessagesThrowsInterceptor.java @@ -14,11 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.interceptor; - -import jp.sf.fess.UnsupportedSearchException; +package org.codelibs.fess.interceptor; import org.aopalliance.intercept.MethodInvocation; +import org.codelibs.fess.UnsupportedSearchException; import org.seasar.struts.interceptor.ActionMessagesThrowsInterceptor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/interval/FessIntervalController.java b/src/main/java/org/codelibs/fess/interval/FessIntervalController.java similarity index 94% rename from src/main/java/jp/sf/fess/interval/FessIntervalController.java rename to src/main/java/org/codelibs/fess/interval/FessIntervalController.java index adf99f40b..889bfbb96 100644 --- a/src/main/java/jp/sf/fess/interval/FessIntervalController.java +++ b/src/main/java/org/codelibs/fess/interval/FessIntervalController.java @@ -14,11 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.interval; - -import jp.sf.fess.helper.IntervalControlHelper; -import jp.sf.fess.util.ComponentUtil; +package org.codelibs.fess.interval; +import org.codelibs.fess.helper.IntervalControlHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.interval.impl.DefaultIntervalController; public class FessIntervalController extends DefaultIntervalController { diff --git a/src/main/java/jp/sf/fess/job/AggregateLogJob.java b/src/main/java/org/codelibs/fess/job/AggregateLogJob.java similarity index 91% rename from src/main/java/jp/sf/fess/job/AggregateLogJob.java rename to src/main/java/org/codelibs/fess/job/AggregateLogJob.java index a19e53c93..9ed227c1b 100644 --- a/src/main/java/jp/sf/fess/job/AggregateLogJob.java +++ b/src/main/java/org/codelibs/fess/job/AggregateLogJob.java @@ -14,11 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.job; - -import jp.sf.fess.helper.SearchLogHelper; -import jp.sf.fess.util.ComponentUtil; +package org.codelibs.fess.job; +import org.codelibs.fess.helper.SearchLogHelper; +import org.codelibs.fess.util.ComponentUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/job/CrawlJob.java b/src/main/java/org/codelibs/fess/job/CrawlJob.java similarity index 96% rename from src/main/java/jp/sf/fess/job/CrawlJob.java rename to src/main/java/org/codelibs/fess/job/CrawlJob.java index 8dac2670d..65ca62c79 100644 --- a/src/main/java/jp/sf/fess/job/CrawlJob.java +++ b/src/main/java/org/codelibs/fess/job/CrawlJob.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.job; +package org.codelibs.fess.job; import java.io.File; import java.io.FilenameFilter; @@ -25,19 +25,18 @@ import java.util.List; import javax.servlet.ServletContext; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.exec.Crawler; -import jp.sf.fess.helper.JobHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.job.JobExecutor.ShutdownListener; -import jp.sf.fess.util.ComponentUtil; -import jp.sf.fess.util.InputStreamThread; -import jp.sf.fess.util.JobProcess; - import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.SystemUtils; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.exec.Crawler; +import org.codelibs.fess.helper.JobHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.job.JobExecutor.ShutdownListener; +import org.codelibs.fess.util.ComponentUtil; +import org.codelibs.fess.util.InputStreamThread; +import org.codelibs.fess.util.JobProcess; import org.seasar.framework.container.SingletonS2Container; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/job/JobExecutor.java b/src/main/java/org/codelibs/fess/job/JobExecutor.java similarity index 97% rename from src/main/java/jp/sf/fess/job/JobExecutor.java rename to src/main/java/org/codelibs/fess/job/JobExecutor.java index 77a177611..d6820ca2a 100644 --- a/src/main/java/jp/sf/fess/job/JobExecutor.java +++ b/src/main/java/org/codelibs/fess/job/JobExecutor.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.job; +package org.codelibs.fess.job; public abstract class JobExecutor { protected ShutdownListener shutdownListener; diff --git a/src/main/java/jp/sf/fess/job/JobScheduler.java b/src/main/java/org/codelibs/fess/job/JobScheduler.java similarity index 84% rename from src/main/java/jp/sf/fess/job/JobScheduler.java rename to src/main/java/org/codelibs/fess/job/JobScheduler.java index 2eed50b77..76afb9b47 100644 --- a/src/main/java/jp/sf/fess/job/JobScheduler.java +++ b/src/main/java/org/codelibs/fess/job/JobScheduler.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.job; +package org.codelibs.fess.job; import static org.quartz.CronScheduleBuilder.cronSchedule; import static org.quartz.JobBuilder.newJob; @@ -24,14 +24,12 @@ import static org.quartz.TriggerBuilder.newTrigger; import java.util.ArrayList; import java.util.List; -import jp.sf.fess.Constants; -import jp.sf.fess.db.cbean.ScheduledJobCB; -import jp.sf.fess.db.exbhv.ScheduledJobBhv; -import jp.sf.fess.db.exentity.ScheduledJob; -import jp.sf.fess.helper.JobHelper; -import jp.sf.fess.util.ComponentUtil; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.exbhv.ScheduledJobBhv; +import org.codelibs.fess.db.exentity.ScheduledJob; +import org.codelibs.fess.helper.JobHelper; +import org.codelibs.fess.util.ComponentUtil; import org.quartz.Job; import org.quartz.JobDataMap; import org.quartz.JobDetail; @@ -40,8 +38,6 @@ import org.quartz.SchedulerException; import org.quartz.SchedulerFactory; import org.quartz.Trigger; import org.quartz.impl.StdSchedulerFactory; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.framework.container.SingletonS2Container; import org.seasar.framework.container.annotation.tiger.DestroyMethod; import org.seasar.framework.container.annotation.tiger.InitMethod; import org.slf4j.Logger; @@ -69,18 +65,12 @@ public class JobScheduler { throw new ScheduledJobException("Failed to start a scheduler.", e); } - final ScheduledJobCB cb = new ScheduledJobCB(); - cb.query().setAvailable_Equal(Constants.T); - cb.query().setDeletedBy_IsNull(); - cb.query().addOrderBy_SortOrder_Asc(); - cb.query().addOrderBy_Name_Asc(); - SingletonS2Container.getComponent(ScheduledJobBhv.class).selectCursor( - cb, new EntityRowHandler<ScheduledJob>() { - @Override - public void handle(final ScheduledJob scheduledJob) { - register(scheduledJob); - } - }); + ComponentUtil.getComponent(ScheduledJobBhv.class).selectCursor(cb -> { + cb.query().setAvailable_Equal(Constants.T); + cb.query().setDeletedBy_IsNull(); + cb.query().addOrderBy_SortOrder_Asc(); + cb.query().addOrderBy_Name_Asc(); + }, scheduledJob -> register(scheduledJob)); } @DestroyMethod diff --git a/src/main/java/jp/sf/fess/job/PurgeLogJob.java b/src/main/java/org/codelibs/fess/job/PurgeLogJob.java similarity index 88% rename from src/main/java/jp/sf/fess/job/PurgeLogJob.java rename to src/main/java/org/codelibs/fess/job/PurgeLogJob.java index 602183d1f..041a89703 100644 --- a/src/main/java/jp/sf/fess/job/PurgeLogJob.java +++ b/src/main/java/org/codelibs/fess/job/PurgeLogJob.java @@ -14,18 +14,15 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.job; - -import java.util.Date; - -import jp.sf.fess.Constants; -import jp.sf.fess.service.CrawlingSessionService; -import jp.sf.fess.service.JobLogService; -import jp.sf.fess.service.SearchLogService; -import jp.sf.fess.service.UserInfoService; -import jp.sf.fess.util.ComponentUtil; +package org.codelibs.fess.job; import org.codelibs.core.util.DynamicProperties; +import org.codelibs.fess.Constants; +import org.codelibs.fess.service.CrawlingSessionService; +import org.codelibs.fess.service.JobLogService; +import org.codelibs.fess.service.SearchLogService; +import org.codelibs.fess.service.UserInfoService; +import org.codelibs.fess.util.ComponentUtil; import org.seasar.framework.container.SingletonS2Container; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -51,7 +48,8 @@ public class PurgeLogJob { // purge crawling sessions try { - crawlingSessionService.deleteBefore(new Date()); + crawlingSessionService.deleteBefore(ComponentUtil.getSystemHelper() + .getCurrentTime()); } catch (final Exception e) { logger.error("Failed to purge crawling sessions.", e); resultBuf.append(e.getMessage()).append("\n"); diff --git a/src/main/java/jp/sf/fess/job/ScheduledJobException.java b/src/main/java/org/codelibs/fess/job/ScheduledJobException.java similarity index 93% rename from src/main/java/jp/sf/fess/job/ScheduledJobException.java rename to src/main/java/org/codelibs/fess/job/ScheduledJobException.java index 780e68d92..cd49ea6f1 100644 --- a/src/main/java/jp/sf/fess/job/ScheduledJobException.java +++ b/src/main/java/org/codelibs/fess/job/ScheduledJobException.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.job; +package org.codelibs.fess.job; -import jp.sf.fess.FessSystemException; +import org.codelibs.fess.FessSystemException; public class ScheduledJobException extends FessSystemException { diff --git a/src/main/java/jp/sf/fess/job/TriggeredJob.java b/src/main/java/org/codelibs/fess/job/TriggeredJob.java similarity index 90% rename from src/main/java/jp/sf/fess/job/TriggeredJob.java rename to src/main/java/org/codelibs/fess/job/TriggeredJob.java index 3fd738be2..6e838dd41 100644 --- a/src/main/java/jp/sf/fess/job/TriggeredJob.java +++ b/src/main/java/org/codelibs/fess/job/TriggeredJob.java @@ -14,18 +14,15 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.job; - -import java.sql.Timestamp; - -import jp.sf.fess.Constants; -import jp.sf.fess.db.exentity.JobLog; -import jp.sf.fess.db.exentity.ScheduledJob; -import jp.sf.fess.helper.JobHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.service.JobLogService; -import jp.sf.fess.util.ComponentUtil; +package org.codelibs.fess.job; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.exentity.JobLog; +import org.codelibs.fess.db.exentity.ScheduledJob; +import org.codelibs.fess.helper.JobHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.service.JobLogService; +import org.codelibs.fess.util.ComponentUtil; import org.quartz.Job; import org.quartz.JobDataMap; import org.quartz.JobExecutionContext; @@ -102,7 +99,7 @@ public class TriggeredJob implements Job { .getLocalizedMessage())); } finally { jobHelper.finishJobExecutoer(id); - jobLog.setEndTime(new Timestamp(System.currentTimeMillis())); + jobLog.setEndTime(ComponentUtil.getSystemHelper().getCurrentTime()); if (logger.isDebugEnabled()) { logger.debug("jobLog: " + jobLog); } diff --git a/src/main/java/jp/sf/fess/job/UpdateHotWordJob.java b/src/main/java/org/codelibs/fess/job/UpdateHotWordJob.java similarity index 91% rename from src/main/java/jp/sf/fess/job/UpdateHotWordJob.java rename to src/main/java/org/codelibs/fess/job/UpdateHotWordJob.java index 05d6a04fd..e5d8a7881 100644 --- a/src/main/java/jp/sf/fess/job/UpdateHotWordJob.java +++ b/src/main/java/org/codelibs/fess/job/UpdateHotWordJob.java @@ -14,11 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.job; - -import jp.sf.fess.helper.HotSearchWordHelper; -import jp.sf.fess.util.ComponentUtil; +package org.codelibs.fess.job; +import org.codelibs.fess.helper.HotSearchWordHelper; +import org.codelibs.fess.util.ComponentUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/job/UpdateStatsJob.java b/src/main/java/org/codelibs/fess/job/UpdateStatsJob.java similarity index 92% rename from src/main/java/jp/sf/fess/job/UpdateStatsJob.java rename to src/main/java/org/codelibs/fess/job/UpdateStatsJob.java index 21f5cc1de..313f1d5b2 100644 --- a/src/main/java/jp/sf/fess/job/UpdateStatsJob.java +++ b/src/main/java/org/codelibs/fess/job/UpdateStatsJob.java @@ -14,11 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.job; - -import jp.sf.fess.service.SearchFieldLogService; -import jp.sf.fess.util.ComponentUtil; +package org.codelibs.fess.job; +import org.codelibs.fess.service.SearchFieldLogService; +import org.codelibs.fess.util.ComponentUtil; import org.seasar.framework.container.SingletonS2Container; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/job/impl/GroovyExecutor.java b/src/main/java/org/codelibs/fess/job/impl/GroovyExecutor.java similarity index 93% rename from src/main/java/jp/sf/fess/job/impl/GroovyExecutor.java rename to src/main/java/org/codelibs/fess/job/impl/GroovyExecutor.java index 87059ab75..4c674544b 100644 --- a/src/main/java/jp/sf/fess/job/impl/GroovyExecutor.java +++ b/src/main/java/org/codelibs/fess/job/impl/GroovyExecutor.java @@ -14,12 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.job.impl; +package org.codelibs.fess.job.impl; import groovy.lang.Binding; import groovy.lang.GroovyShell; -import jp.sf.fess.job.JobExecutor; +import org.codelibs.fess.job.JobExecutor; import org.seasar.framework.container.factory.SingletonS2ContainerFactory; public class GroovyExecutor extends JobExecutor { diff --git a/src/main/java/jp/sf/fess/pager/BoostDocumentRulePager.java b/src/main/java/org/codelibs/fess/pager/BoostDocumentRulePager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/BoostDocumentRulePager.java rename to src/main/java/org/codelibs/fess/pager/BoostDocumentRulePager.java index 01464fa39..4d527c57f 100644 --- a/src/main/java/jp/sf/fess/pager/BoostDocumentRulePager.java +++ b/src/main/java/org/codelibs/fess/pager/BoostDocumentRulePager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsBoostDocumentRulePager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsBoostDocumentRulePager; public class BoostDocumentRulePager extends BsBoostDocumentRulePager { diff --git a/src/main/java/jp/sf/fess/pager/CrawlingSessionPager.java b/src/main/java/org/codelibs/fess/pager/CrawlingSessionPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/CrawlingSessionPager.java rename to src/main/java/org/codelibs/fess/pager/CrawlingSessionPager.java index 38b425f6d..125c266f1 100644 --- a/src/main/java/jp/sf/fess/pager/CrawlingSessionPager.java +++ b/src/main/java/org/codelibs/fess/pager/CrawlingSessionPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsCrawlingSessionPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsCrawlingSessionPager; public class CrawlingSessionPager extends BsCrawlingSessionPager { diff --git a/src/main/java/jp/sf/fess/pager/DataCrawlingConfigPager.java b/src/main/java/org/codelibs/fess/pager/DataCrawlingConfigPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/DataCrawlingConfigPager.java rename to src/main/java/org/codelibs/fess/pager/DataCrawlingConfigPager.java index c9a830ef5..751c2bf6e 100644 --- a/src/main/java/jp/sf/fess/pager/DataCrawlingConfigPager.java +++ b/src/main/java/org/codelibs/fess/pager/DataCrawlingConfigPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsDataCrawlingConfigPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsDataCrawlingConfigPager; public class DataCrawlingConfigPager extends BsDataCrawlingConfigPager { diff --git a/src/main/java/jp/sf/fess/pager/FailureUrlPager.java b/src/main/java/org/codelibs/fess/pager/FailureUrlPager.java similarity index 92% rename from src/main/java/jp/sf/fess/pager/FailureUrlPager.java rename to src/main/java/org/codelibs/fess/pager/FailureUrlPager.java index e820a8fa9..1d023a701 100644 --- a/src/main/java/jp/sf/fess/pager/FailureUrlPager.java +++ b/src/main/java/org/codelibs/fess/pager/FailureUrlPager.java @@ -14,11 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; - -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsFailureUrlPager; +package org.codelibs.fess.pager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsFailureUrlPager; import org.seasar.struts.annotation.IntRange; import org.seasar.struts.annotation.Maxbytelength; diff --git a/src/main/java/jp/sf/fess/pager/FavoriteLogPager.java b/src/main/java/org/codelibs/fess/pager/FavoriteLogPager.java similarity index 91% rename from src/main/java/jp/sf/fess/pager/FavoriteLogPager.java rename to src/main/java/org/codelibs/fess/pager/FavoriteLogPager.java index 03a3422f3..46ea1fa84 100644 --- a/src/main/java/jp/sf/fess/pager/FavoriteLogPager.java +++ b/src/main/java/org/codelibs/fess/pager/FavoriteLogPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsFavoriteLogPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsFavoriteLogPager; public class FavoriteLogPager extends BsFavoriteLogPager { diff --git a/src/main/java/jp/sf/fess/pager/FileAuthenticationPager.java b/src/main/java/org/codelibs/fess/pager/FileAuthenticationPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/FileAuthenticationPager.java rename to src/main/java/org/codelibs/fess/pager/FileAuthenticationPager.java index a14c904e6..1e80bc48f 100644 --- a/src/main/java/jp/sf/fess/pager/FileAuthenticationPager.java +++ b/src/main/java/org/codelibs/fess/pager/FileAuthenticationPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsFileAuthenticationPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsFileAuthenticationPager; public class FileAuthenticationPager extends BsFileAuthenticationPager { diff --git a/src/main/java/jp/sf/fess/pager/FileCrawlingConfigPager.java b/src/main/java/org/codelibs/fess/pager/FileCrawlingConfigPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/FileCrawlingConfigPager.java rename to src/main/java/org/codelibs/fess/pager/FileCrawlingConfigPager.java index 6e7a842ef..04a2ece5a 100644 --- a/src/main/java/jp/sf/fess/pager/FileCrawlingConfigPager.java +++ b/src/main/java/org/codelibs/fess/pager/FileCrawlingConfigPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsFileCrawlingConfigPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsFileCrawlingConfigPager; public class FileCrawlingConfigPager extends BsFileCrawlingConfigPager { diff --git a/src/main/java/jp/sf/fess/pager/JobLogPager.java b/src/main/java/org/codelibs/fess/pager/JobLogPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/JobLogPager.java rename to src/main/java/org/codelibs/fess/pager/JobLogPager.java index 63ca1b949..503074f2f 100644 --- a/src/main/java/jp/sf/fess/pager/JobLogPager.java +++ b/src/main/java/org/codelibs/fess/pager/JobLogPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsJobLogPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsJobLogPager; public class JobLogPager extends BsJobLogPager { diff --git a/src/main/java/jp/sf/fess/pager/KeyMatchPager.java b/src/main/java/org/codelibs/fess/pager/KeyMatchPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/KeyMatchPager.java rename to src/main/java/org/codelibs/fess/pager/KeyMatchPager.java index f56dab89f..5226b8bf9 100644 --- a/src/main/java/jp/sf/fess/pager/KeyMatchPager.java +++ b/src/main/java/org/codelibs/fess/pager/KeyMatchPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsKeyMatchPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsKeyMatchPager; public class KeyMatchPager extends BsKeyMatchPager { diff --git a/src/main/java/jp/sf/fess/pager/LabelTypePager.java b/src/main/java/org/codelibs/fess/pager/LabelTypePager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/LabelTypePager.java rename to src/main/java/org/codelibs/fess/pager/LabelTypePager.java index 0257a4f7e..d8f5a0757 100644 --- a/src/main/java/jp/sf/fess/pager/LabelTypePager.java +++ b/src/main/java/org/codelibs/fess/pager/LabelTypePager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsLabelTypePager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsLabelTypePager; public class LabelTypePager extends BsLabelTypePager { diff --git a/src/main/java/jp/sf/fess/pager/OverlappingHostPager.java b/src/main/java/org/codelibs/fess/pager/OverlappingHostPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/OverlappingHostPager.java rename to src/main/java/org/codelibs/fess/pager/OverlappingHostPager.java index 5bc617ec9..2e4529cf4 100644 --- a/src/main/java/jp/sf/fess/pager/OverlappingHostPager.java +++ b/src/main/java/org/codelibs/fess/pager/OverlappingHostPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsOverlappingHostPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsOverlappingHostPager; public class OverlappingHostPager extends BsOverlappingHostPager { diff --git a/src/main/java/jp/sf/fess/pager/PathMappingPager.java b/src/main/java/org/codelibs/fess/pager/PathMappingPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/PathMappingPager.java rename to src/main/java/org/codelibs/fess/pager/PathMappingPager.java index 57a0b947a..e171007c6 100644 --- a/src/main/java/jp/sf/fess/pager/PathMappingPager.java +++ b/src/main/java/org/codelibs/fess/pager/PathMappingPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsPathMappingPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsPathMappingPager; public class PathMappingPager extends BsPathMappingPager { diff --git a/src/main/java/jp/sf/fess/pager/RequestHeaderPager.java b/src/main/java/org/codelibs/fess/pager/RequestHeaderPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/RequestHeaderPager.java rename to src/main/java/org/codelibs/fess/pager/RequestHeaderPager.java index 4d568d295..0cdd0a180 100644 --- a/src/main/java/jp/sf/fess/pager/RequestHeaderPager.java +++ b/src/main/java/org/codelibs/fess/pager/RequestHeaderPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsRequestHeaderPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsRequestHeaderPager; public class RequestHeaderPager extends BsRequestHeaderPager { diff --git a/src/main/java/jp/sf/fess/pager/RoleTypePager.java b/src/main/java/org/codelibs/fess/pager/RoleTypePager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/RoleTypePager.java rename to src/main/java/org/codelibs/fess/pager/RoleTypePager.java index 10a6fa89c..a37316ab2 100644 --- a/src/main/java/jp/sf/fess/pager/RoleTypePager.java +++ b/src/main/java/org/codelibs/fess/pager/RoleTypePager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsRoleTypePager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsRoleTypePager; public class RoleTypePager extends BsRoleTypePager { diff --git a/src/main/java/jp/sf/fess/pager/ScheduledJobPager.java b/src/main/java/org/codelibs/fess/pager/ScheduledJobPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/ScheduledJobPager.java rename to src/main/java/org/codelibs/fess/pager/ScheduledJobPager.java index 1afb2ed71..c88798641 100644 --- a/src/main/java/jp/sf/fess/pager/ScheduledJobPager.java +++ b/src/main/java/org/codelibs/fess/pager/ScheduledJobPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsScheduledJobPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsScheduledJobPager; public class ScheduledJobPager extends BsScheduledJobPager { diff --git a/src/main/java/jp/sf/fess/pager/SearchLogPager.java b/src/main/java/org/codelibs/fess/pager/SearchLogPager.java similarity index 93% rename from src/main/java/jp/sf/fess/pager/SearchLogPager.java rename to src/main/java/org/codelibs/fess/pager/SearchLogPager.java index accb09b79..3c544e289 100644 --- a/src/main/java/jp/sf/fess/pager/SearchLogPager.java +++ b/src/main/java/org/codelibs/fess/pager/SearchLogPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsSearchLogPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsSearchLogPager; public class SearchLogPager extends BsSearchLogPager { diff --git a/src/main/java/jp/sf/fess/pager/StatsPager.java b/src/main/java/org/codelibs/fess/pager/StatsPager.java similarity index 76% rename from src/main/java/jp/sf/fess/pager/StatsPager.java rename to src/main/java/org/codelibs/fess/pager/StatsPager.java index eb35e5f16..deabc84a3 100644 --- a/src/main/java/jp/sf/fess/pager/StatsPager.java +++ b/src/main/java/org/codelibs/fess/pager/StatsPager.java @@ -14,19 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; import java.io.Serializable; -import java.sql.Timestamp; -import java.text.ParseException; -import java.util.Date; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.time.format.DateTimeParseException; import java.util.List; -import jp.sf.fess.Constants; - import org.codelibs.core.util.StringUtil; - -import com.ibm.icu.text.SimpleDateFormat; +import org.codelibs.fess.Constants; public class StatsPager implements Serializable { @@ -74,7 +71,7 @@ public class StatsPager implements Serializable { resetEndDate(); } - public Timestamp getFromRequestedTime() { + public LocalDateTime getFromRequestedTime() { if (StringUtil.isBlank(startDate)) { return null; } @@ -83,22 +80,20 @@ public class StatsPager implements Serializable { if (StringUtil.isBlank(startHour)) { startHour = null; startMin = null; - final Date date = new SimpleDateFormat(DATE_TIME_FORMAT) - .parse(startDate + " 00:00"); - if (date != null) { - return new Timestamp(date.getTime()); - } + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern(DATE_TIME_FORMAT); + return LocalDateTime.parse(startDate + " 00:00", formatter); + } else { if (StringUtil.isBlank(startMin)) { startMin = "0"; } - final Date date = new SimpleDateFormat(DATE_TIME_FORMAT) - .parse(startDate + " " + startHour + ":" + startMin); - if (date != null) { - return new Timestamp(date.getTime()); - } + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern(DATE_TIME_FORMAT); + return LocalDateTime.parse(startDate + " " + startHour + ":" + + startMin, formatter); } - } catch (final ParseException e) { + } catch (final DateTimeParseException e) { resetStartDate(); } return null; @@ -110,7 +105,7 @@ public class StatsPager implements Serializable { startMin = null; } - public Timestamp getToRequestedTime() { + public LocalDateTime getToRequestedTime() { if (StringUtil.isBlank(endDate)) { return null; } @@ -119,22 +114,20 @@ public class StatsPager implements Serializable { if (StringUtil.isBlank(endHour)) { endHour = null; endMin = null; - final Date date = new SimpleDateFormat(DATE_TIME_FORMAT) - .parse(endDate + " 00:00"); - if (date != null) { - return new Timestamp(date.getTime()); - } + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern(DATE_TIME_FORMAT); + return LocalDateTime.parse(endDate + " 00:00", formatter); + } else { if (StringUtil.isBlank(endMin)) { endMin = "0"; } - final Date date = new SimpleDateFormat(DATE_TIME_FORMAT) - .parse(endDate + " " + endHour + ":" + endMin); - if (date != null) { - return new Timestamp(date.getTime()); - } + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern(DATE_TIME_FORMAT); + return LocalDateTime.parse(endDate + " " + endHour + ":" + + endMin, formatter); } - } catch (final ParseException e) { + } catch (final DateTimeParseException e) { resetEndDate(); } return null; diff --git a/src/main/java/jp/sf/fess/pager/SuggestBadWordPager.java b/src/main/java/org/codelibs/fess/pager/SuggestBadWordPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/SuggestBadWordPager.java rename to src/main/java/org/codelibs/fess/pager/SuggestBadWordPager.java index f7f64b572..b500f406a 100644 --- a/src/main/java/jp/sf/fess/pager/SuggestBadWordPager.java +++ b/src/main/java/org/codelibs/fess/pager/SuggestBadWordPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsSuggestBadWordPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsSuggestBadWordPager; public class SuggestBadWordPager extends BsSuggestBadWordPager { diff --git a/src/main/java/jp/sf/fess/pager/SuggestElevateWordPager.java b/src/main/java/org/codelibs/fess/pager/SuggestElevateWordPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/SuggestElevateWordPager.java rename to src/main/java/org/codelibs/fess/pager/SuggestElevateWordPager.java index 78b4c0e7f..f33509391 100644 --- a/src/main/java/jp/sf/fess/pager/SuggestElevateWordPager.java +++ b/src/main/java/org/codelibs/fess/pager/SuggestElevateWordPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsSuggestElevateWordPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsSuggestElevateWordPager; public class SuggestElevateWordPager extends BsSuggestElevateWordPager { diff --git a/src/main/java/jp/sf/fess/pager/SynonymPager.java b/src/main/java/org/codelibs/fess/pager/SynonymPager.java similarity index 97% rename from src/main/java/jp/sf/fess/pager/SynonymPager.java rename to src/main/java/org/codelibs/fess/pager/SynonymPager.java index 7d01febb4..e4376892b 100644 --- a/src/main/java/jp/sf/fess/pager/SynonymPager.java +++ b/src/main/java/org/codelibs/fess/pager/SynonymPager.java @@ -14,12 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; import java.io.Serializable; import java.util.List; -import jp.sf.fess.Constants; +import org.codelibs.fess.Constants; public class SynonymPager implements Serializable { diff --git a/src/main/java/jp/sf/fess/pager/UserDictPager.java b/src/main/java/org/codelibs/fess/pager/UserDictPager.java similarity index 97% rename from src/main/java/jp/sf/fess/pager/UserDictPager.java rename to src/main/java/org/codelibs/fess/pager/UserDictPager.java index 4578c2a99..9646f6348 100644 --- a/src/main/java/jp/sf/fess/pager/UserDictPager.java +++ b/src/main/java/org/codelibs/fess/pager/UserDictPager.java @@ -14,12 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; import java.io.Serializable; import java.util.List; -import jp.sf.fess.Constants; +import org.codelibs.fess.Constants; public class UserDictPager implements Serializable { diff --git a/src/main/java/jp/sf/fess/pager/UserInfoPager.java b/src/main/java/org/codelibs/fess/pager/UserInfoPager.java similarity index 83% rename from src/main/java/jp/sf/fess/pager/UserInfoPager.java rename to src/main/java/org/codelibs/fess/pager/UserInfoPager.java index 8de17aa44..4017c42a0 100644 --- a/src/main/java/jp/sf/fess/pager/UserInfoPager.java +++ b/src/main/java/org/codelibs/fess/pager/UserInfoPager.java @@ -14,18 +14,18 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import java.sql.Timestamp; +import java.time.LocalDateTime; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsUserInfoPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsUserInfoPager; public class UserInfoPager extends BsUserInfoPager { private static final long serialVersionUID = 1L; - public Timestamp updatedTimeBefore; + public LocalDateTime updatedTimeBefore; public UserInfoPager() { super(); diff --git a/src/main/java/jp/sf/fess/pager/WebAuthenticationPager.java b/src/main/java/org/codelibs/fess/pager/WebAuthenticationPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/WebAuthenticationPager.java rename to src/main/java/org/codelibs/fess/pager/WebAuthenticationPager.java index ad4f0c09b..127655c0a 100644 --- a/src/main/java/jp/sf/fess/pager/WebAuthenticationPager.java +++ b/src/main/java/org/codelibs/fess/pager/WebAuthenticationPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsWebAuthenticationPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsWebAuthenticationPager; public class WebAuthenticationPager extends BsWebAuthenticationPager { diff --git a/src/main/java/jp/sf/fess/pager/WebCrawlingConfigPager.java b/src/main/java/org/codelibs/fess/pager/WebCrawlingConfigPager.java similarity index 88% rename from src/main/java/jp/sf/fess/pager/WebCrawlingConfigPager.java rename to src/main/java/org/codelibs/fess/pager/WebCrawlingConfigPager.java index d905acd97..82ed4bf9c 100644 --- a/src/main/java/jp/sf/fess/pager/WebCrawlingConfigPager.java +++ b/src/main/java/org/codelibs/fess/pager/WebCrawlingConfigPager.java @@ -14,10 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.pager; +package org.codelibs.fess.pager; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.pager.BsWebCrawlingConfigPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.pager.BsWebCrawlingConfigPager; public class WebCrawlingConfigPager extends BsWebCrawlingConfigPager { diff --git a/src/main/java/jp/sf/fess/robot/FessS2RobotThread.java b/src/main/java/org/codelibs/fess/robot/FessS2RobotThread.java similarity index 96% rename from src/main/java/jp/sf/fess/robot/FessS2RobotThread.java rename to src/main/java/org/codelibs/fess/robot/FessS2RobotThread.java index 76297a4d7..754019a86 100644 --- a/src/main/java/jp/sf/fess/robot/FessS2RobotThread.java +++ b/src/main/java/org/codelibs/fess/robot/FessS2RobotThread.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.robot; +package org.codelibs.fess.robot; import java.util.ArrayList; import java.util.Date; @@ -27,20 +27,20 @@ import java.util.Set; import jcifs.smb.ACE; import jcifs.smb.SID; -import jp.sf.fess.Constants; -import jp.sf.fess.db.exentity.CrawlingConfig; -import jp.sf.fess.helper.CrawlingConfigHelper; -import jp.sf.fess.helper.CrawlingSessionHelper; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.IndexingHelper; -import jp.sf.fess.helper.SambaHelper; -import jp.sf.fess.helper.SearchLogHelper; -import jp.sf.fess.util.ComponentUtil; import org.apache.commons.io.IOUtils; import org.apache.solr.common.SolrDocument; import org.apache.solr.common.SolrDocumentList; import org.codelibs.core.util.DynamicProperties; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.exentity.CrawlingConfig; +import org.codelibs.fess.helper.CrawlingConfigHelper; +import org.codelibs.fess.helper.CrawlingSessionHelper; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.IndexingHelper; +import org.codelibs.fess.helper.SambaHelper; +import org.codelibs.fess.helper.SearchLogHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.S2RobotThread; import org.codelibs.robot.builder.RequestDataBuilder; import org.codelibs.robot.client.S2RobotClient; diff --git a/src/main/java/jp/sf/fess/screenshot/ScreenShotGenerator.java b/src/main/java/org/codelibs/fess/screenshot/ScreenShotGenerator.java similarity index 95% rename from src/main/java/jp/sf/fess/screenshot/ScreenShotGenerator.java rename to src/main/java/org/codelibs/fess/screenshot/ScreenShotGenerator.java index a03b0825b..d1c9ce96c 100644 --- a/src/main/java/jp/sf/fess/screenshot/ScreenShotGenerator.java +++ b/src/main/java/org/codelibs/fess/screenshot/ScreenShotGenerator.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.screenshot; +package org.codelibs.fess.screenshot; import java.io.File; import java.util.Map; diff --git a/src/main/java/jp/sf/fess/screenshot/ScreenShotManager.java b/src/main/java/org/codelibs/fess/screenshot/ScreenShotManager.java similarity index 97% rename from src/main/java/jp/sf/fess/screenshot/ScreenShotManager.java rename to src/main/java/org/codelibs/fess/screenshot/ScreenShotManager.java index 59b6fd4a4..4307cbfee 100644 --- a/src/main/java/jp/sf/fess/screenshot/ScreenShotManager.java +++ b/src/main/java/org/codelibs/fess/screenshot/ScreenShotManager.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.screenshot; +package org.codelibs.fess.screenshot; import java.io.File; import java.util.ArrayList; @@ -28,12 +28,11 @@ import javax.annotation.Resource; import javax.servlet.ServletContext; import javax.servlet.http.HttpSession; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.util.ComponentUtil; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.util.LruHashMap; import org.seasar.framework.container.annotation.tiger.DestroyMethod; import org.seasar.framework.container.annotation.tiger.InitMethod; diff --git a/src/main/java/jp/sf/fess/screenshot/impl/BaseScreenShotGenerator.java b/src/main/java/org/codelibs/fess/screenshot/impl/BaseScreenShotGenerator.java similarity index 93% rename from src/main/java/jp/sf/fess/screenshot/impl/BaseScreenShotGenerator.java rename to src/main/java/org/codelibs/fess/screenshot/impl/BaseScreenShotGenerator.java index 1d187c562..42ca9594a 100644 --- a/src/main/java/jp/sf/fess/screenshot/impl/BaseScreenShotGenerator.java +++ b/src/main/java/org/codelibs/fess/screenshot/impl/BaseScreenShotGenerator.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.screenshot.impl; +package org.codelibs.fess.screenshot.impl; import java.util.HashMap; import java.util.Map; @@ -22,7 +22,7 @@ import java.util.Map; import javax.annotation.Resource; import javax.servlet.ServletContext; -import jp.sf.fess.screenshot.ScreenShotGenerator; +import org.codelibs.fess.screenshot.ScreenShotGenerator; public abstract class BaseScreenShotGenerator implements ScreenShotGenerator { diff --git a/src/main/java/jp/sf/fess/screenshot/impl/CommandGenerator.java b/src/main/java/org/codelibs/fess/screenshot/impl/CommandGenerator.java similarity index 99% rename from src/main/java/jp/sf/fess/screenshot/impl/CommandGenerator.java rename to src/main/java/org/codelibs/fess/screenshot/impl/CommandGenerator.java index 793e24b16..b4ca6b29d 100644 --- a/src/main/java/jp/sf/fess/screenshot/impl/CommandGenerator.java +++ b/src/main/java/org/codelibs/fess/screenshot/impl/CommandGenerator.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.screenshot.impl; +package org.codelibs.fess.screenshot.impl; import java.io.BufferedReader; import java.io.File; diff --git a/src/main/java/jp/sf/fess/screenshot/impl/WebDriverGenerator.java b/src/main/java/org/codelibs/fess/screenshot/impl/WebDriverGenerator.java similarity index 98% rename from src/main/java/jp/sf/fess/screenshot/impl/WebDriverGenerator.java rename to src/main/java/org/codelibs/fess/screenshot/impl/WebDriverGenerator.java index 91aa7e339..449b5dfe0 100644 --- a/src/main/java/jp/sf/fess/screenshot/impl/WebDriverGenerator.java +++ b/src/main/java/org/codelibs/fess/screenshot/impl/WebDriverGenerator.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.screenshot.impl; +package org.codelibs.fess.screenshot.impl; import java.awt.Image; import java.awt.image.BufferedImage; diff --git a/src/main/java/jp/sf/fess/service/BoostDocumentRuleService.java b/src/main/java/org/codelibs/fess/service/BoostDocumentRuleService.java similarity index 81% rename from src/main/java/jp/sf/fess/service/BoostDocumentRuleService.java rename to src/main/java/org/codelibs/fess/service/BoostDocumentRuleService.java index 47a543170..93f7ac3ad 100644 --- a/src/main/java/jp/sf/fess/service/BoostDocumentRuleService.java +++ b/src/main/java/org/codelibs/fess/service/BoostDocumentRuleService.java @@ -14,16 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.List; import java.util.Map; -import jp.sf.fess.crud.service.BsBoostDocumentRuleService; -import jp.sf.fess.db.cbean.BoostDocumentRuleCB; -import jp.sf.fess.db.exentity.BoostDocumentRule; -import jp.sf.fess.pager.BoostDocumentRulePager; +import org.codelibs.fess.crud.service.BsBoostDocumentRuleService; +import org.codelibs.fess.db.cbean.BoostDocumentRuleCB; +import org.codelibs.fess.db.exentity.BoostDocumentRule; +import org.codelibs.fess.pager.BoostDocumentRulePager; public class BoostDocumentRuleService extends BsBoostDocumentRuleService implements Serializable { @@ -70,10 +70,10 @@ public class BoostDocumentRuleService extends BsBoostDocumentRuleService } public List<BoostDocumentRule> getAvailableBoostDocumentRuleList() { - final BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - cb.query().setDeletedBy_IsNull(); - cb.query().addOrderBy_SortOrder_Asc(); - return boostDocumentRuleBhv.selectList(cb); + return boostDocumentRuleBhv.selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + cb.query().addOrderBy_SortOrder_Asc(); + }); } } diff --git a/src/main/java/jp/sf/fess/service/ClickLogService.java b/src/main/java/org/codelibs/fess/service/ClickLogService.java similarity index 67% rename from src/main/java/jp/sf/fess/service/ClickLogService.java rename to src/main/java/org/codelibs/fess/service/ClickLogService.java index fc60b3b56..5700d93b8 100644 --- a/src/main/java/jp/sf/fess/service/ClickLogService.java +++ b/src/main/java/org/codelibs/fess/service/ClickLogService.java @@ -14,25 +14,19 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.IOException; import java.io.Reader; import java.io.Serializable; import java.io.Writer; -import java.sql.Timestamp; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; import java.util.ArrayList; -import java.util.Date; import java.util.List; import javax.annotation.Resource; -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.exbhv.ClickLogBhv; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exentity.ClickLog; -import jp.sf.fess.db.exentity.SearchLog; import jp.sf.orangesignal.csv.CsvConfig; import jp.sf.orangesignal.csv.CsvReader; import jp.sf.orangesignal.csv.CsvWriter; @@ -41,9 +35,11 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.CoreLibConstants; import org.codelibs.core.util.StringUtil; -import org.seasar.dbflute.cbean.EntityRowHandler; - -import com.ibm.icu.text.SimpleDateFormat; +import org.codelibs.fess.db.exbhv.ClickLogBhv; +import org.codelibs.fess.db.exbhv.SearchLogBhv; +import org.codelibs.fess.db.exentity.ClickLog; +import org.codelibs.fess.db.exentity.SearchLog; +import org.dbflute.bhv.readable.EntityRowHandler; public class ClickLogService implements Serializable { @@ -59,25 +55,31 @@ public class ClickLogService implements Serializable { public void importCsv(final Reader reader) { final CsvReader csvReader = new CsvReader(reader, new CsvConfig()); - final SimpleDateFormat sdf = new SimpleDateFormat( - CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern(CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); try { List<String> list; csvReader.readValues(); // ignore header while ((list = csvReader.readValues()) != null) { try { - final SearchLogCB cb = new SearchLogCB(); - cb.query().setRequestedTime_Equal( - new Timestamp(sdf.parse(list.get(3)).getTime())); - cb.query().setUserSessionId_Equal(list.get(4)); - final SearchLog searchLog = searchLogBhv.selectEntity(cb); + final String dateStr = list.get(3); + final String userSessionId = list.get(4); + final SearchLog searchLog = searchLogBhv.selectEntity( + cb -> { + cb.query() + .setRequestedTime_Equal( + LocalDateTime.parse(dateStr, + formatter)); + cb.query() + .setUserSessionId_Equal(userSessionId); + }).orElse(null);//TODO if (searchLog != null) { final ClickLog entity = new ClickLog(); entity.setId(Long.parseLong(list.get(0))); entity.setSearchId(searchLog.getId()); entity.setUrl(list.get(1)); - entity.setRequestedTime(new Timestamp(sdf.parse( - list.get(2)).getTime())); + entity.setRequestedTime(LocalDateTime.parse( + list.get(2), formatter)); clickLogBhv.insert(entity); } else { log.warn("The search log is not found: " + list); @@ -96,10 +98,6 @@ public class ClickLogService implements Serializable { cfg.setEscapeDisabled(false); cfg.setQuoteDisabled(false); final CsvWriter csvWriter = new CsvWriter(writer, cfg); - final ClickLogCB cb = new ClickLogCB(); - cb.setupSelect_SearchLog(); - cb.specify().specifySearchLog().columnUserSessionId(); - cb.specify().specifySearchLog().columnRequestedTime(); try { final List<String> list = new ArrayList<String>(); list.add("SearchId"); @@ -108,17 +106,23 @@ public class ClickLogService implements Serializable { list.add("QueryRequestedTime"); list.add("UserSessionId"); csvWriter.writeValues(list); - final SimpleDateFormat sdf = new SimpleDateFormat( - CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); - clickLogBhv.selectCursor(cb, new EntityRowHandler<ClickLog>() { + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern(CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); + clickLogBhv.selectCursor(cb -> { + cb.setupSelect_SearchLog(); + cb.specify().specifySearchLog().columnUserSessionId(); + cb.specify().specifySearchLog().columnRequestedTime(); + }, new EntityRowHandler<ClickLog>() { @Override public void handle(final ClickLog entity) { final List<String> list = new ArrayList<String>(); addToList(list, entity.getSearchId()); addToList(list, entity.getUrl()); addToList(list, entity.getRequestedTime()); - addToList(list, entity.getSearchLog().getRequestedTime()); - addToList(list, entity.getSearchLog().getUserSessionId()); + entity.getSearchLog().ifPresent(searchLog -> { + addToList(list, searchLog.getRequestedTime()); + addToList(list, searchLog.getUserSessionId()); + }); try { csvWriter.writeValues(list); } catch (final IOException e) { @@ -130,8 +134,8 @@ public class ClickLogService implements Serializable { final Object value) { if (value == null) { list.add(StringUtil.EMPTY); - } else if (value instanceof Timestamp) { - list.add(sdf.format((Date) value)); + } else if (value instanceof LocalDateTime) { + list.add(((LocalDateTime) value).format(formatter)); } else { list.add(value.toString()); } diff --git a/src/main/java/org/codelibs/fess/service/CrawlingSessionService.java b/src/main/java/org/codelibs/fess/service/CrawlingSessionService.java new file mode 100644 index 000000000..095e972e6 --- /dev/null +++ b/src/main/java/org/codelibs/fess/service/CrawlingSessionService.java @@ -0,0 +1,312 @@ +/* + * Copyright 2009-2015 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 org.codelibs.fess.service; + +import java.io.IOException; +import java.io.Reader; +import java.io.Serializable; +import java.io.Writer; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Set; + +import javax.annotation.Resource; + +import jp.sf.orangesignal.csv.CsvConfig; +import jp.sf.orangesignal.csv.CsvReader; +import jp.sf.orangesignal.csv.CsvWriter; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.codelibs.core.CoreLibConstants; +import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.crud.service.BsCrawlingSessionService; +import org.codelibs.fess.db.cbean.CrawlingSessionCB; +import org.codelibs.fess.db.exbhv.CrawlingSessionInfoBhv; +import org.codelibs.fess.db.exentity.CrawlingSession; +import org.codelibs.fess.db.exentity.CrawlingSessionInfo; +import org.codelibs.fess.pager.CrawlingSessionPager; +import org.codelibs.fess.util.ComponentUtil; +import org.dbflute.bhv.readable.EntityRowHandler; +import org.dbflute.cbean.result.ListResultBean; + +public class CrawlingSessionService extends BsCrawlingSessionService implements + Serializable { + + private static final long serialVersionUID = 1L; + + private static final Log log = LogFactory + .getLog(CrawlingSessionService.class); + + @Resource + protected CrawlingSessionInfoBhv crawlingSessionInfoBhv; + + @Override + protected void setupListCondition(final CrawlingSessionCB cb, + final CrawlingSessionPager crawlingSessionPager) { + super.setupListCondition(cb, crawlingSessionPager); + if (StringUtil.isNotBlank(crawlingSessionPager.sessionId)) { + cb.query().setSessionId_LikeSearch(crawlingSessionPager.sessionId, + op -> { + op.likeContain(); + }); + } + cb.query().addOrderBy_CreatedTime_Desc(); + } + + @Override + protected void setupStoreCondition(final CrawlingSession crawlingSession) { + if (crawlingSession == null) { + throw new FessSystemException("Crawling Session is null."); + } + final LocalDateTime now = ComponentUtil.getSystemHelper() + .getCurrentTime(); + if (crawlingSession.getCreatedTime() == null) { + crawlingSession.setCreatedTime(now); + } + } + + @Override + protected void setupDeleteCondition(final CrawlingSession crawlingSession) { + crawlingSessionInfoBhv.varyingQueryDelete(cb -> { + cb.query().setCrawlingSessionId_Equal(crawlingSession.getId()); + }, op -> { + op.allowNonQueryDelete(); + }); + } + + public void deleteSessionIdsBefore(final String activeSessionId, + final String name, final LocalDateTime date) { + final List<CrawlingSession> crawlingSessionList = crawlingSessionBhv + .selectList(cb -> { + cb.query().setExpiredTime_LessEqual(date); + if (StringUtil.isNotBlank(name)) { + cb.query().setName_Equal(name); + } + if (activeSessionId != null) { + cb.query().setSessionId_NotEqual(activeSessionId); + } + cb.specify().columnId(); + }); + if (!crawlingSessionList.isEmpty()) { + final List<Long> crawlingSessionIdList = new ArrayList<Long>(); + for (final CrawlingSession cs : crawlingSessionList) { + crawlingSessionIdList.add(cs.getId()); + } + + crawlingSessionInfoBhv.varyingQueryDelete( + cb2 -> { + cb2.query().setCrawlingSessionId_InScope( + crawlingSessionIdList); + }, op -> { + op.allowNonQueryDelete(); + }); + + crawlingSessionBhv.batchDelete(crawlingSessionList); + } + } + + public CrawlingSession get(final String sessionId) { + return crawlingSessionBhv.selectEntity(cb -> { + cb.query().setSessionId_Equal(sessionId); + }).orElse(null);//TODO + } + + public void storeInfo( + final List<CrawlingSessionInfo> crawlingSessionInfoList) { + if (crawlingSessionInfoList == null) { + throw new FessSystemException("Crawling Session Info is null."); + } + + final LocalDateTime now = ComponentUtil.getSystemHelper() + .getCurrentTime(); + for (final CrawlingSessionInfo crawlingSessionInfo : crawlingSessionInfoList) { + if (crawlingSessionInfo.getCreatedTime() == null) { + crawlingSessionInfo.setCreatedTime(now); + } + } + crawlingSessionInfoBhv.batchInsert(crawlingSessionInfoList); + } + + public List<CrawlingSessionInfo> getCrawlingSessionInfoList(final Long id) { + return crawlingSessionInfoBhv.selectList(cb -> { + cb.query().queryCrawlingSession().setId_Equal(id); + cb.query().addOrderBy_Id_Asc(); + }); + } + + public List<CrawlingSessionInfo> getLastCrawlingSessionInfoList( + final String sessionId) { + final CrawlingSession crawlingSession = getLast(sessionId); + if (crawlingSession == null) { + return Collections.emptyList(); + } + return crawlingSessionInfoBhv.selectList(cb -> { + cb.query().setCrawlingSessionId_Equal(crawlingSession.getId()); + cb.query().addOrderBy_Id_Asc(); + }); + } + + public void deleteOldSessions(final Set<String> activeSessionId) { + crawlingSessionInfoBhv.varyingQueryDelete( + cb1 -> { + if (!activeSessionId.isEmpty()) { + cb1.query().queryCrawlingSession() + .setSessionId_NotInScope(activeSessionId); + } + }, op -> { + op.allowNonQueryDelete(); + }); + crawlingSessionBhv.varyingQueryDelete(cb2 -> { + if (!activeSessionId.isEmpty()) { + cb2.query().setSessionId_NotInScope(activeSessionId); + } + }, op -> { + op.allowNonQueryDelete(); + }); + } + + public void importCsv(final Reader reader) { + final CsvReader csvReader = new CsvReader(reader, new CsvConfig()); + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern(CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); + try { + List<String> list; + csvReader.readValues(); // ignore header + while ((list = csvReader.readValues()) != null) { + try { + final String sessionId = list.get(0); + CrawlingSession crawlingSession = crawlingSessionBhv + .selectEntity(cb -> { + cb.query().setSessionId_Equal(sessionId); + cb.specify().columnSessionId(); + }).orElse(null);//TODO + if (crawlingSession == null) { + crawlingSession = new CrawlingSession(); + crawlingSession.setSessionId(list.get(0)); + crawlingSession.setCreatedTime(LocalDateTime.parse( + list.get(1), formatter)); + crawlingSessionBhv.insert(crawlingSession); + } + + final CrawlingSessionInfo entity = new CrawlingSessionInfo(); + entity.setCrawlingSessionId(crawlingSession.getId()); + entity.setKey(list.get(2)); + entity.setValue(list.get(3)); + entity.setCreatedTime(LocalDateTime.parse(list.get(4), + formatter)); + crawlingSessionInfoBhv.insert(entity); + } catch (final Exception e) { + log.warn("Failed to read a click log: " + list, e); + } + } + } catch (final IOException e) { + log.warn("Failed to read a click log.", e); + } + } + + public void exportCsv(final Writer writer) { + final CsvConfig cfg = new CsvConfig(',', '"', '"'); + cfg.setEscapeDisabled(false); + cfg.setQuoteDisabled(false); + @SuppressWarnings("resource") + final CsvWriter csvWriter = new CsvWriter(writer, cfg); + try { + final List<String> list = new ArrayList<String>(); + list.add("SessionId"); + list.add("SessionCreatedTime"); + list.add("Key"); + list.add("Value"); + list.add("CreatedTime"); + csvWriter.writeValues(list); + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern(CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); + crawlingSessionInfoBhv.selectCursor(cb -> { + cb.setupSelect_CrawlingSession(); + }, new EntityRowHandler<CrawlingSessionInfo>() { + @Override + public void handle(final CrawlingSessionInfo entity) { + final List<String> list = new ArrayList<String>(); + entity.getCrawlingSession().ifPresent(crawlingSession -> { + addToList(list, crawlingSession.getSessionId()); + addToList(list, crawlingSession.getCreatedTime()); + }); + // TODO + if (!entity.getCrawlingSession().isPresent()) { + addToList(list, ""); + addToList(list, ""); + } + addToList(list, entity.getKey()); + addToList(list, entity.getValue()); + addToList(list, entity.getCreatedTime()); + try { + csvWriter.writeValues(list); + } catch (final IOException e) { + log.warn("Failed to write a crawling session info: " + + entity, e); + } + } + + private void addToList(final List<String> list, + final Object value) { + if (value == null) { + list.add(StringUtil.EMPTY); + } else if (value instanceof LocalDateTime) { + list.add(((LocalDateTime) value).format(formatter)); + } else { + list.add(value.toString()); + } + } + }); + csvWriter.flush(); + } catch (final IOException e) { + log.warn("Failed to write a crawling session info.", e); + } + } + + public void deleteBefore(final LocalDateTime date) { + crawlingSessionInfoBhv.varyingQueryDelete(cb1 -> { + cb1.setupSelect_CrawlingSession(); + cb1.query().queryCrawlingSession().setExpiredTime_LessThan(date); + }, op -> { + op.allowNonQueryDelete(); + }); + crawlingSessionBhv.varyingQueryDelete(cb2 -> { + cb2.query().setExpiredTime_LessThan(date); + }, op -> { + op.allowNonQueryDelete(); + }); + } + + public CrawlingSession getLast(final String sessionId) { + final ListResultBean<CrawlingSession> list = crawlingSessionBhv + .selectList(cb -> { + cb.query().setSessionId_Equal(sessionId); + cb.query().addOrderBy_CreatedTime_Desc(); + cb.fetchFirst(1); + }); + if (list.isEmpty()) { + return null; + } + return list.get(0); + } + +} diff --git a/src/main/java/jp/sf/fess/service/DataCrawlingConfigService.java b/src/main/java/org/codelibs/fess/service/DataCrawlingConfigService.java similarity index 73% rename from src/main/java/jp/sf/fess/service/DataCrawlingConfigService.java rename to src/main/java/org/codelibs/fess/service/DataCrawlingConfigService.java index c944031f4..dba960719 100644 --- a/src/main/java/jp/sf/fess/service/DataCrawlingConfigService.java +++ b/src/main/java/org/codelibs/fess/service/DataCrawlingConfigService.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.ArrayList; @@ -23,19 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.service.BsDataCrawlingConfigService; -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.DataCrawlingConfigCB; -import jp.sf.fess.db.exbhv.DataConfigToLabelTypeMappingBhv; -import jp.sf.fess.db.exbhv.DataConfigToRoleTypeMappingBhv; -import jp.sf.fess.db.exentity.DataConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.DataConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.pager.DataCrawlingConfigPager; - -import org.seasar.dbflute.bhv.ConditionBeanSetupper; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.service.BsDataCrawlingConfigService; +import org.codelibs.fess.db.cbean.DataCrawlingConfigCB; +import org.codelibs.fess.db.exbhv.DataConfigToLabelTypeMappingBhv; +import org.codelibs.fess.db.exbhv.DataConfigToRoleTypeMappingBhv; +import org.codelibs.fess.db.exentity.DataConfigToLabelTypeMapping; +import org.codelibs.fess.db.exentity.DataConfigToRoleTypeMapping; +import org.codelibs.fess.db.exentity.DataCrawlingConfig; +import org.codelibs.fess.pager.DataCrawlingConfigPager; public class DataCrawlingConfigService extends BsDataCrawlingConfigService implements Serializable { @@ -64,41 +60,30 @@ public class DataCrawlingConfigService extends BsDataCrawlingConfigService public List<DataCrawlingConfig> getAllDataCrawlingConfigList( final boolean withLabelType, final boolean withRoleType, final boolean available, final List<Long> idList) { - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.query().setDeletedBy_IsNull(); - if (available) { - cb.query().setAvailable_Equal(Constants.T); - } - if (idList != null) { - cb.query().setId_InScope(idList); - } final List<DataCrawlingConfig> list = dataCrawlingConfigBhv - .selectList(cb); + .selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + if (available) { + cb.query().setAvailable_Equal(Constants.T); + } + if (idList != null) { + cb.query().setId_InScope(idList); + } + }); if (withRoleType) { - final ConditionBeanSetupper<DataConfigToRoleTypeMappingCB> setupper2 = new ConditionBeanSetupper<DataConfigToRoleTypeMappingCB>() { - @Override - public void setup(final DataConfigToRoleTypeMappingCB cb) { - cb.setupSelect_RoleType(); - cb.query().queryRoleType().setDeletedBy_IsNull(); - cb.query().queryRoleType().addOrderBy_SortOrder_Asc(); - } - - }; - dataCrawlingConfigBhv.loadDataConfigToRoleTypeMappingList(list, - setupper2); + dataCrawlingConfigBhv.loadDataConfigToRoleTypeMapping(list, cb -> { + cb.setupSelect_RoleType(); + cb.query().queryRoleType().setDeletedBy_IsNull(); + cb.query().queryRoleType().addOrderBy_SortOrder_Asc(); + }); } if (withLabelType) { - final ConditionBeanSetupper<DataConfigToLabelTypeMappingCB> setupper3 = new ConditionBeanSetupper<DataConfigToLabelTypeMappingCB>() { - @Override - public void setup(final DataConfigToLabelTypeMappingCB cb) { - cb.setupSelect_LabelType(); - cb.query().queryLabelType().setDeletedBy_IsNull(); - cb.query().queryLabelType().addOrderBy_SortOrder_Asc(); - } - - }; - dataCrawlingConfigBhv.loadDataConfigToLabelTypeMappingList(list, - setupper3); + dataCrawlingConfigBhv.loadDataConfigToLabelTypeMapping(list, + cb -> { + cb.setupSelect_LabelType(); + cb.query().queryLabelType().setDeletedBy_IsNull(); + cb.query().queryLabelType().addOrderBy_SortOrder_Asc(); + }); } return list; } @@ -111,12 +96,14 @@ public class DataCrawlingConfigService extends BsDataCrawlingConfigService if (dataCrawlingConfig != null) { - final DataConfigToRoleTypeMappingCB fctrtmCb = new DataConfigToRoleTypeMappingCB(); - fctrtmCb.query().setDataConfigId_Equal(dataCrawlingConfig.getId()); - fctrtmCb.query().queryRoleType().setDeletedBy_IsNull(); - fctrtmCb.query().queryDataCrawlingConfig().setDeletedBy_IsNull(); final List<DataConfigToRoleTypeMapping> fctrtmList = dataConfigToRoleTypeMappingBhv - .selectList(fctrtmCb); + .selectList(fctrtmCb -> { + fctrtmCb.query().setDataConfigId_Equal( + dataCrawlingConfig.getId()); + fctrtmCb.query().queryRoleType().setDeletedBy_IsNull(); + fctrtmCb.query().queryDataCrawlingConfig() + .setDeletedBy_IsNull(); + }); if (!fctrtmList.isEmpty()) { final List<String> roleTypeIds = new ArrayList<String>( fctrtmList.size()); @@ -127,12 +114,14 @@ public class DataCrawlingConfigService extends BsDataCrawlingConfigService .toArray(new String[roleTypeIds.size()])); } - final DataConfigToLabelTypeMappingCB fctltmCb = new DataConfigToLabelTypeMappingCB(); - fctltmCb.query().setDataConfigId_Equal(dataCrawlingConfig.getId()); - fctltmCb.query().queryLabelType().setDeletedBy_IsNull(); - fctltmCb.query().queryDataCrawlingConfig().setDeletedBy_IsNull(); final List<DataConfigToLabelTypeMapping> fctltmList = dataConfigToLabelTypeMappingBhv - .selectList(fctltmCb); + .selectList(fctltmCb -> { + fctltmCb.query().setDataConfigId_Equal( + dataCrawlingConfig.getId()); + fctltmCb.query().queryLabelType().setDeletedBy_IsNull(); + fctltmCb.query().queryDataCrawlingConfig() + .setDeletedBy_IsNull(); + }); if (!fctltmList.isEmpty()) { final List<String> labelTypeIds = new ArrayList<String>( fctltmList.size()); @@ -180,10 +169,11 @@ public class DataCrawlingConfigService extends BsDataCrawlingConfigService } else { // Update if (labelTypeIds != null) { - final DataConfigToLabelTypeMappingCB fctltmCb = new DataConfigToLabelTypeMappingCB(); - fctltmCb.query().setDataConfigId_Equal(dataConfigId); final List<DataConfigToLabelTypeMapping> fctltmList = dataConfigToLabelTypeMappingBhv - .selectList(fctltmCb); + .selectList(fctltmCb -> { + fctltmCb.query() + .setDataConfigId_Equal(dataConfigId); + }); final List<DataConfigToLabelTypeMapping> newList = new ArrayList<DataConfigToLabelTypeMapping>(); final List<DataConfigToLabelTypeMapping> matchedList = new ArrayList<DataConfigToLabelTypeMapping>(); for (final String id : labelTypeIds) { @@ -209,10 +199,11 @@ public class DataCrawlingConfigService extends BsDataCrawlingConfigService dataConfigToLabelTypeMappingBhv.batchDelete(fctltmList); } if (roleTypeIds != null) { - final DataConfigToRoleTypeMappingCB fctrtmCb = new DataConfigToRoleTypeMappingCB(); - fctrtmCb.query().setDataConfigId_Equal(dataConfigId); final List<DataConfigToRoleTypeMapping> fctrtmList = dataConfigToRoleTypeMappingBhv - .selectList(fctrtmCb); + .selectList(fctrtmCb -> { + fctrtmCb.query() + .setDataConfigId_Equal(dataConfigId); + }); final List<DataConfigToRoleTypeMapping> newList = new ArrayList<DataConfigToRoleTypeMapping>(); final List<DataConfigToRoleTypeMapping> matchedList = new ArrayList<DataConfigToRoleTypeMapping>(); for (final String id : roleTypeIds) { @@ -282,10 +273,10 @@ public class DataCrawlingConfigService extends BsDataCrawlingConfigService } public DataCrawlingConfig getDataCrawlingConfig(final long id) { - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.query().setId_Equal(id); - cb.query().setDeletedBy_IsNull(); - return dataCrawlingConfigBhv.selectEntity(cb); + return dataCrawlingConfigBhv.selectEntity(cb -> { + cb.query().setId_Equal(id); + cb.query().setDeletedBy_IsNull(); + }).orElse(null);//TODO } } diff --git a/src/main/java/jp/sf/fess/service/DatabaseService.java b/src/main/java/org/codelibs/fess/service/DatabaseService.java similarity index 79% rename from src/main/java/jp/sf/fess/service/DatabaseService.java rename to src/main/java/org/codelibs/fess/service/DatabaseService.java index 38d8a4c1e..634ba5ce1 100644 --- a/src/main/java/jp/sf/fess/service/DatabaseService.java +++ b/src/main/java/org/codelibs/fess/service/DatabaseService.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.beans.PersistenceDelegate; import java.beans.XMLDecoder; @@ -35,86 +35,60 @@ import javax.ejb.TransactionAttribute; import javax.ejb.TransactionAttributeType; import javax.transaction.UserTransaction; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.db.cbean.BoostDocumentRuleCB; -import jp.sf.fess.db.cbean.CrawlingSessionCB; -import jp.sf.fess.db.cbean.CrawlingSessionInfoCB; -import jp.sf.fess.db.cbean.DataConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.DataConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.DataCrawlingConfigCB; -import jp.sf.fess.db.cbean.FileAuthenticationCB; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.cbean.KeyMatchCB; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.OverlappingHostCB; -import jp.sf.fess.db.cbean.PathMappingCB; -import jp.sf.fess.db.cbean.RequestHeaderCB; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.cbean.ScheduledJobCB; -import jp.sf.fess.db.cbean.SuggestBadWordCB; -import jp.sf.fess.db.cbean.SuggestElevateWordCB; -import jp.sf.fess.db.cbean.WebAuthenticationCB; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.exbhv.BoostDocumentRuleBhv; -import jp.sf.fess.db.exbhv.CrawlingSessionBhv; -import jp.sf.fess.db.exbhv.CrawlingSessionInfoBhv; -import jp.sf.fess.db.exbhv.DataConfigToLabelTypeMappingBhv; -import jp.sf.fess.db.exbhv.DataConfigToRoleTypeMappingBhv; -import jp.sf.fess.db.exbhv.DataCrawlingConfigBhv; -import jp.sf.fess.db.exbhv.FileAuthenticationBhv; -import jp.sf.fess.db.exbhv.FileConfigToLabelTypeMappingBhv; -import jp.sf.fess.db.exbhv.FileConfigToRoleTypeMappingBhv; -import jp.sf.fess.db.exbhv.FileCrawlingConfigBhv; -import jp.sf.fess.db.exbhv.KeyMatchBhv; -import jp.sf.fess.db.exbhv.LabelTypeBhv; -import jp.sf.fess.db.exbhv.LabelTypeToRoleTypeMappingBhv; -import jp.sf.fess.db.exbhv.OverlappingHostBhv; -import jp.sf.fess.db.exbhv.PathMappingBhv; -import jp.sf.fess.db.exbhv.RequestHeaderBhv; -import jp.sf.fess.db.exbhv.RoleTypeBhv; -import jp.sf.fess.db.exbhv.ScheduledJobBhv; -import jp.sf.fess.db.exbhv.SuggestBadWordBhv; -import jp.sf.fess.db.exbhv.SuggestElevateWordBhv; -import jp.sf.fess.db.exbhv.WebAuthenticationBhv; -import jp.sf.fess.db.exbhv.WebConfigToLabelTypeMappingBhv; -import jp.sf.fess.db.exbhv.WebConfigToRoleTypeMappingBhv; -import jp.sf.fess.db.exbhv.WebCrawlingConfigBhv; -import jp.sf.fess.db.exentity.BoostDocumentRule; -import jp.sf.fess.db.exentity.CrawlingSession; -import jp.sf.fess.db.exentity.CrawlingSessionInfo; -import jp.sf.fess.db.exentity.DataConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.DataConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.DataCrawlingConfig; -import jp.sf.fess.db.exentity.FileAuthentication; -import jp.sf.fess.db.exentity.FileConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.FileConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.db.exentity.KeyMatch; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping; -import jp.sf.fess.db.exentity.OverlappingHost; -import jp.sf.fess.db.exentity.PathMapping; -import jp.sf.fess.db.exentity.RequestHeader; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.db.exentity.ScheduledJob; -import jp.sf.fess.db.exentity.SuggestBadWord; -import jp.sf.fess.db.exentity.SuggestElevateWord; -import jp.sf.fess.db.exentity.WebAuthentication; -import jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; -import jp.sf.fess.helper.LabelTypeHelper; -import jp.sf.fess.util.ComponentUtil; - import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; -import org.seasar.dbflute.bhv.DeleteOption; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.db.exbhv.BoostDocumentRuleBhv; +import org.codelibs.fess.db.exbhv.CrawlingSessionBhv; +import org.codelibs.fess.db.exbhv.CrawlingSessionInfoBhv; +import org.codelibs.fess.db.exbhv.DataConfigToLabelTypeMappingBhv; +import org.codelibs.fess.db.exbhv.DataConfigToRoleTypeMappingBhv; +import org.codelibs.fess.db.exbhv.DataCrawlingConfigBhv; +import org.codelibs.fess.db.exbhv.FileAuthenticationBhv; +import org.codelibs.fess.db.exbhv.FileConfigToLabelTypeMappingBhv; +import org.codelibs.fess.db.exbhv.FileConfigToRoleTypeMappingBhv; +import org.codelibs.fess.db.exbhv.FileCrawlingConfigBhv; +import org.codelibs.fess.db.exbhv.KeyMatchBhv; +import org.codelibs.fess.db.exbhv.LabelTypeBhv; +import org.codelibs.fess.db.exbhv.LabelTypeToRoleTypeMappingBhv; +import org.codelibs.fess.db.exbhv.OverlappingHostBhv; +import org.codelibs.fess.db.exbhv.PathMappingBhv; +import org.codelibs.fess.db.exbhv.RequestHeaderBhv; +import org.codelibs.fess.db.exbhv.RoleTypeBhv; +import org.codelibs.fess.db.exbhv.ScheduledJobBhv; +import org.codelibs.fess.db.exbhv.SuggestBadWordBhv; +import org.codelibs.fess.db.exbhv.SuggestElevateWordBhv; +import org.codelibs.fess.db.exbhv.WebAuthenticationBhv; +import org.codelibs.fess.db.exbhv.WebConfigToLabelTypeMappingBhv; +import org.codelibs.fess.db.exbhv.WebConfigToRoleTypeMappingBhv; +import org.codelibs.fess.db.exbhv.WebCrawlingConfigBhv; +import org.codelibs.fess.db.exentity.BoostDocumentRule; +import org.codelibs.fess.db.exentity.CrawlingSession; +import org.codelibs.fess.db.exentity.CrawlingSessionInfo; +import org.codelibs.fess.db.exentity.DataConfigToLabelTypeMapping; +import org.codelibs.fess.db.exentity.DataConfigToRoleTypeMapping; +import org.codelibs.fess.db.exentity.DataCrawlingConfig; +import org.codelibs.fess.db.exentity.FileAuthentication; +import org.codelibs.fess.db.exentity.FileConfigToLabelTypeMapping; +import org.codelibs.fess.db.exentity.FileConfigToRoleTypeMapping; +import org.codelibs.fess.db.exentity.FileCrawlingConfig; +import org.codelibs.fess.db.exentity.KeyMatch; +import org.codelibs.fess.db.exentity.LabelType; +import org.codelibs.fess.db.exentity.LabelTypeToRoleTypeMapping; +import org.codelibs.fess.db.exentity.OverlappingHost; +import org.codelibs.fess.db.exentity.PathMapping; +import org.codelibs.fess.db.exentity.RequestHeader; +import org.codelibs.fess.db.exentity.RoleType; +import org.codelibs.fess.db.exentity.ScheduledJob; +import org.codelibs.fess.db.exentity.SuggestBadWord; +import org.codelibs.fess.db.exentity.SuggestElevateWord; +import org.codelibs.fess.db.exentity.WebAuthentication; +import org.codelibs.fess.db.exentity.WebConfigToLabelTypeMapping; +import org.codelibs.fess.db.exentity.WebConfigToRoleTypeMapping; +import org.codelibs.fess.db.exentity.WebCrawlingConfig; +import org.codelibs.fess.helper.LabelTypeHelper; +import org.codelibs.fess.util.ComponentUtil; import org.seasar.framework.beans.util.Beans; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -277,94 +251,115 @@ public class DatabaseService { dataSet.put(VERSION_KEY, Constants.FESS_VERSION); // scheduledJob - final ScheduledJobCB scheduledJobCB = new ScheduledJobCB(); - scheduledJobCB.query().setDeletedBy_IsNull(); dataSet.put(SCHEDULED_JOB_KEY + LIST_SUFFIX, - scheduledJobBhv.selectList(scheduledJobCB)); + scheduledJobBhv.selectList(scheduledJobCB -> { + scheduledJobCB.query().setDeletedBy_IsNull(); + })); // labelType - final LabelTypeCB labelTypeCB = new LabelTypeCB(); - labelTypeCB.query().setDeletedBy_IsNull(); dataSet.put(LABEL_TYPE_KEY + LIST_SUFFIX, - labelTypeBhv.selectList(labelTypeCB)); + labelTypeBhv.selectList(labelTypeCB -> { + labelTypeCB.query().setDeletedBy_IsNull(); + })); // roleType - final RoleTypeCB roleTypeCB = new RoleTypeCB(); - roleTypeCB.query().setDeletedBy_IsNull(); dataSet.put(ROLE_TYPE_KEY + LIST_SUFFIX, - roleTypeBhv.selectList(roleTypeCB)); + roleTypeBhv.selectList(roleTypeCB -> { + roleTypeCB.query().setDeletedBy_IsNull(); + })); // fileCrawlingConfig - final FileCrawlingConfigCB fileCrawlingConfigCB = new FileCrawlingConfigCB(); - fileCrawlingConfigCB.query().setDeletedBy_IsNull(); dataSet.put(FILE_CRAWLING_CONFIG_KEY + LIST_SUFFIX, - fileCrawlingConfigBhv.selectList(fileCrawlingConfigCB)); + fileCrawlingConfigBhv.selectList(fileCrawlingConfigCB -> { + fileCrawlingConfigCB.query().setDeletedBy_IsNull(); + })); // dataCrawlingConfig - final DataCrawlingConfigCB dataCrawlingConfigCB = new DataCrawlingConfigCB(); - dataCrawlingConfigCB.query().setDeletedBy_IsNull(); dataSet.put(DATA_CRAWLING_CONFIG_KEY + LIST_SUFFIX, - dataCrawlingConfigBhv.selectList(dataCrawlingConfigCB)); + dataCrawlingConfigBhv.selectList(dataCrawlingConfigCB -> { + dataCrawlingConfigCB.query().setDeletedBy_IsNull(); + })); // pathMapping - final PathMappingCB pathMappingCB = new PathMappingCB(); - pathMappingCB.query().setDeletedBy_IsNull(); dataSet.put(PATH_MAPPING_KEY + LIST_SUFFIX, - pathMappingBhv.selectList(pathMappingCB)); + pathMappingBhv.selectList(pathMappingCB -> { + pathMappingCB.query().setDeletedBy_IsNull(); + })); // overlappingHost - final OverlappingHostCB overlappingHostCB = new OverlappingHostCB(); - overlappingHostCB.query().setDeletedBy_IsNull(); dataSet.put(OVERLAPPING_HOST_KEY + LIST_SUFFIX, - overlappingHostBhv.selectList(overlappingHostCB)); + overlappingHostBhv.selectList(overlappingHostCB -> { + overlappingHostCB.query().setDeletedBy_IsNull(); + })); // webCrawlingConfig - final WebCrawlingConfigCB webCrawlingConfigCB = new WebCrawlingConfigCB(); - webCrawlingConfigCB.query().setDeletedBy_IsNull(); dataSet.put(WEB_CRAWLING_CONFIG_KEY + LIST_SUFFIX, - webCrawlingConfigBhv.selectList(webCrawlingConfigCB)); + webCrawlingConfigBhv.selectList(webCrawlingConfigCB -> { + webCrawlingConfigCB.query().setDeletedBy_IsNull(); + })); // fileConfigToLabelTypeMapping dataSet.put(FILE_CONFIG_TO_LABEL_TYPE_MAPPING_KEY + LIST_SUFFIX, fileConfigToLabelTypeMappingBhv - .selectList(new FileConfigToLabelTypeMappingCB())); + .selectList(fileConfigToLabelTypeMappingCB -> { + })); // dataConfigToLabelTypeMapping dataSet.put(DATA_CONFIG_TO_LABEL_TYPE_MAPPING_KEY + LIST_SUFFIX, dataConfigToLabelTypeMappingBhv - .selectList(new DataConfigToLabelTypeMappingCB())); + .selectList(dataConfigToLabelTypeMappingCB -> { + })); // webConfigToLabelTypeMapping dataSet.put(WEB_CONFIG_TO_LABEL_TYPE_MAPPING_KEY + LIST_SUFFIX, webConfigToLabelTypeMappingBhv - .selectList(new WebConfigToLabelTypeMappingCB())); + .selectList(webConfigToLabelTypeMappingCB -> { + })); // fileConfigToRoleTypeMapping dataSet.put(FILE_CONFIG_TO_ROLE_TYPE_MAPPING_KEY + LIST_SUFFIX, fileConfigToRoleTypeMappingBhv - .selectList(new FileConfigToRoleTypeMappingCB())); + .selectList(fileConfigToRoleTypeMappingCB -> { + })); // dataConfigToRoleTypeMapping dataSet.put(DATA_CONFIG_TO_ROLE_TYPE_MAPPING_KEY + LIST_SUFFIX, dataConfigToRoleTypeMappingBhv - .selectList(new DataConfigToRoleTypeMappingCB())); + .selectList(dataConfigToRoleTypeMappingCB -> { + })); // webConfigToRoleTypeMapping dataSet.put(WEB_CONFIG_TO_ROLE_TYPE_MAPPING_KEY + LIST_SUFFIX, webConfigToRoleTypeMappingBhv - .selectList(new WebConfigToRoleTypeMappingCB())); + .selectList(webConfigToRoleTypeMappingCB -> { + })); // webConfigToRoleTypeMapping dataSet.put(LABEL_TYPE_TO_ROLE_TYPE_MAPPING_KEY + LIST_SUFFIX, labelTypeToRoleTypeMappingBhv - .selectList(new LabelTypeToRoleTypeMappingCB())); + .selectList(labelTypeToRoleTypeMappingCB -> { + })); // webAuthentication dataSet.put(WEB_AUTHENTICATION_KEY + LIST_SUFFIX, - webAuthenticationBhv.selectList(new WebAuthenticationCB())); + webAuthenticationBhv.selectList(webAuthenticationCB -> { + webAuthenticationCB.query().setDeletedBy_IsNull(); + })); // fileAuthentication dataSet.put(FILE_AUTHENTICATION_KEY + LIST_SUFFIX, - fileAuthenticationBhv.selectList(new FileAuthenticationCB())); + fileAuthenticationBhv.selectList(fileAuthenticationCB -> { + fileAuthenticationCB.query().setDeletedBy_IsNull(); + })); // requestHeader dataSet.put(REQUEST_HEADER_KEY + LIST_SUFFIX, - requestHeaderBhv.selectList(new RequestHeaderCB())); + requestHeaderBhv.selectList(requestHeaderCB -> { + requestHeaderCB.query().setDeletedBy_IsNull(); + })); // keyMatch dataSet.put(KEY_MATCH_KEY + LIST_SUFFIX, - keyMatchBhv.selectList(new KeyMatchCB())); + keyMatchBhv.selectList(keyMatchCB -> { + keyMatchCB.query().setDeletedBy_IsNull(); + })); // boostDocumentRule dataSet.put(BOOST_DOCUMENT_RULE_KEY + LIST_SUFFIX, - boostDocumentRuleBhv.selectList(new BoostDocumentRuleCB())); + boostDocumentRuleBhv.selectList(boostDocumentRuleCB -> { + boostDocumentRuleCB.query().setDeletedBy_IsNull(); + })); // suggestElevateWord dataSet.put(SUGGEST_ELEVATE_WORD_KEY + LIST_SUFFIX, - suggestElevateWordBhv.selectList(new SuggestElevateWordCB())); + suggestElevateWordBhv.selectList(suggestElevateWordCB -> { + suggestElevateWordCB.query().setDeletedBy_IsNull(); + })); // suggestBadWord dataSet.put(SUGGEST_BAD_WORD_KEY + LIST_SUFFIX, - suggestBadWordBhv.selectList(new SuggestBadWordCB())); + suggestBadWordBhv.selectList(suggestBadWordCB -> { + suggestBadWordCB.query().setDeletedBy_IsNull(); + })); // crawlerProperties final Map<String, String> crawlerPropertyMap = new HashMap<String, String>(); @@ -444,11 +439,12 @@ public class DatabaseService { for (ScheduledJob scheduledJob : scheduledJobList) { final Long id = scheduledJob.getId(); - final ScheduledJobCB cb = new ScheduledJobCB(); - cb.query().setName_Equal(scheduledJob.getName()); - cb.query().setDeletedBy_IsNull(); + final String name = scheduledJob.getName(); final ScheduledJob entity = scheduledJobBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setName_Equal(name); + cb.query().setDeletedBy_IsNull(); + }).orElse(null);//TODO scheduledJob.setId(null); if (entity == null) { scheduledJobBhv.insert(scheduledJob); @@ -481,10 +477,12 @@ public class DatabaseService { for (LabelType labelType : labelTypeList) { final Long id = labelType.getId(); - final LabelTypeCB cb = new LabelTypeCB(); - cb.query().setValue_Equal(labelType.getValue()); - cb.query().setDeletedBy_IsNull(); - final LabelType entity = labelTypeBhv.selectEntity(cb); + final String value = labelType.getValue(); + final LabelType entity = labelTypeBhv.selectEntity( + cb -> { + cb.query().setValue_Equal(value); + cb.query().setDeletedBy_IsNull(); + }).orElse(null);//TODO labelType.setId(null); if (entity == null) { labelTypeBhv.insert(labelType); @@ -524,10 +522,12 @@ public class DatabaseService { for (RoleType roleType : roleTypeList) { final Long id = roleType.getId(); - final RoleTypeCB cb = new RoleTypeCB(); - cb.query().setValue_Equal(roleType.getValue()); - cb.query().setDeletedBy_IsNull(); - final RoleType entity = roleTypeBhv.selectEntity(cb); + final String value = roleType.getValue(); + final RoleType entity = roleTypeBhv.selectEntity( + cb -> { + cb.query().setValue_Equal(value); + cb.query().setDeletedBy_IsNull(); + }).orElse(null);//TODO roleType.setId(null); if (entity == null) { roleTypeBhv.insert(roleType); @@ -561,11 +561,11 @@ public class DatabaseService { for (CrawlingSession crawlingSession : crawlingSessionList) { final Long id = crawlingSession.getId(); - final CrawlingSessionCB cb = new CrawlingSessionCB(); - cb.query().setSessionId_Equal( - crawlingSession.getSessionId()); + final String sessionId = crawlingSession.getSessionId(); final CrawlingSession entity = crawlingSessionBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setSessionId_Equal(sessionId); + }).orElse(null);//TODO crawlingSession.setId(null); if (entity == null) { crawlingSessionBhv.insert(crawlingSession); @@ -574,13 +574,14 @@ public class DatabaseService { .execute(); crawlingSession = entity; crawlingSessionBhv.update(crawlingSession); + final Long crawlingSessionId = crawlingSession + .getId(); // delete info - final CrawlingSessionInfoCB cb2 = new CrawlingSessionInfoCB(); - cb2.query().setCrawlingSessionId_Equal( - crawlingSession.getId()); - crawlingSessionInfoBhv.varyingQueryDelete(cb2, - new DeleteOption<CrawlingSessionInfoCB>() - .allowNonQueryDelete()); + crawlingSessionInfoBhv.varyingQueryDelete( + cb2 -> { + cb2.query().setCrawlingSessionId_Equal( + crawlingSessionId); + }, op -> op.allowNonQueryDelete()); } idMap.put(CRAWLING_SESSION_KEY + ":" + id.toString(), crawlingSession.getId()); @@ -626,11 +627,12 @@ public class DatabaseService { for (FileCrawlingConfig fileCrawlingConfig : fileCrawlingConfigList) { final Long id = fileCrawlingConfig.getId(); - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.query().setName_Equal(fileCrawlingConfig.getName()); - cb.query().setDeletedBy_IsNull(); + final String name = fileCrawlingConfig.getName(); final FileCrawlingConfig entity = fileCrawlingConfigBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setName_Equal(name); + cb.query().setDeletedBy_IsNull(); + }).orElse(null);//TODO fileCrawlingConfig.setId(null); if (entity == null) { fileCrawlingConfigBhv.insert(fileCrawlingConfig); @@ -666,11 +668,12 @@ public class DatabaseService { for (DataCrawlingConfig dataCrawlingConfig : dataCrawlingConfigList) { final Long id = dataCrawlingConfig.getId(); - final DataCrawlingConfigCB cb = new DataCrawlingConfigCB(); - cb.query().setName_Equal(dataCrawlingConfig.getName()); - cb.query().setDeletedBy_IsNull(); + final String name = dataCrawlingConfig.getName(); final DataCrawlingConfig entity = dataCrawlingConfigBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setName_Equal(name); + cb.query().setDeletedBy_IsNull(); + }).orElse(null);//TODO dataCrawlingConfig.setId(null); if (entity == null) { dataCrawlingConfigBhv.insert(dataCrawlingConfig); @@ -706,11 +709,12 @@ public class DatabaseService { for (PathMapping pathMapping : pathMappingList) { final Long id = pathMapping.getId(); - final PathMappingCB cb = new PathMappingCB(); - cb.query().setRegex_Equal(pathMapping.getRegex()); - cb.query().setDeletedBy_IsNull(); - final PathMapping entity = pathMappingBhv - .selectEntity(cb); + final String regex = pathMapping.getRegex(); + final PathMapping entity = pathMappingBhv.selectEntity( + cb -> { + cb.query().setRegex_Equal(regex); + cb.query().setDeletedBy_IsNull(); + }).orElse(null);//TODO pathMapping.setId(null); if (pathMapping.getProcessType() == null) { pathMapping.setProcessType_Crawling(); @@ -746,14 +750,20 @@ public class DatabaseService { for (OverlappingHost overlappingHost : overlappingHostList) { final Long id = overlappingHost.getId(); - final OverlappingHostCB cb = new OverlappingHostCB(); - cb.query().setRegularName_Equal( - overlappingHost.getRegularName()); - cb.query().setOverlappingName_Equal( - overlappingHost.getOverlappingName()); - cb.query().setDeletedBy_IsNull(); + final String regularName = overlappingHost + .getRegularName(); + final String overlappingName = overlappingHost + .getOverlappingName(); final OverlappingHost entity = overlappingHostBhv - .selectEntity(cb); + .selectEntity( + cb -> { + cb.query().setRegularName_Equal( + regularName); + cb.query() + .setOverlappingName_Equal( + overlappingName); + cb.query().setDeletedBy_IsNull(); + }).orElse(null);//TODO overlappingHost.setId(null); if (entity == null) { overlappingHostBhv.insert(overlappingHost); @@ -786,11 +796,12 @@ public class DatabaseService { for (WebCrawlingConfig webCrawlingConfig : webCrawlingConfigList) { final Long id = webCrawlingConfig.getId(); - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.query().setName_Equal(webCrawlingConfig.getName()); - cb.query().setDeletedBy_IsNull(); + final String name = webCrawlingConfig.getName(); final WebCrawlingConfig entity = webCrawlingConfigBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setName_Equal(name); + cb.query().setDeletedBy_IsNull(); + }).orElse(null);//TODO webCrawlingConfig.setId(null); if (entity == null) { webCrawlingConfigBhv.insert(webCrawlingConfig); @@ -840,11 +851,14 @@ public class DatabaseService { continue; } - final FileConfigToLabelTypeMappingCB cb = new FileConfigToLabelTypeMappingCB(); - cb.query().setLabelTypeId_Equal(labelTypeId); - cb.query().setFileConfigId_Equal(fileConfigId); final FileConfigToLabelTypeMapping entity = fileConfigToLabelTypeMappingBhv - .selectEntity(cb); + .selectEntity( + cb -> { + cb.query().setLabelTypeId_Equal( + labelTypeId); + cb.query().setFileConfigId_Equal( + fileConfigId); + }).orElse(null);//TODO if (entity == null) { fileConfigToLabelTypeMapping = new FileConfigToLabelTypeMapping(); fileConfigToLabelTypeMapping @@ -889,11 +903,14 @@ public class DatabaseService { continue; } - final DataConfigToLabelTypeMappingCB cb = new DataConfigToLabelTypeMappingCB(); - cb.query().setLabelTypeId_Equal(labelTypeId); - cb.query().setDataConfigId_Equal(dataConfigId); final DataConfigToLabelTypeMapping entity = dataConfigToLabelTypeMappingBhv - .selectEntity(cb); + .selectEntity( + cb -> { + cb.query().setLabelTypeId_Equal( + labelTypeId); + cb.query().setDataConfigId_Equal( + dataConfigId); + }).orElse(null);//TODO if (entity == null) { dataConfigToLabelTypeMapping = new DataConfigToLabelTypeMapping(); dataConfigToLabelTypeMapping @@ -934,11 +951,14 @@ public class DatabaseService { continue; } - final WebConfigToLabelTypeMappingCB cb = new WebConfigToLabelTypeMappingCB(); - cb.query().setLabelTypeId_Equal(labelTypeId); - cb.query().setWebConfigId_Equal(webConfigId); final WebConfigToLabelTypeMapping entity = webConfigToLabelTypeMappingBhv - .selectEntity(cb); + .selectEntity( + cb -> { + cb.query().setLabelTypeId_Equal( + labelTypeId); + cb.query().setWebConfigId_Equal( + webConfigId); + }).orElse(null);//TODO if (entity == null) { webConfigToLabelTypeMapping = new WebConfigToLabelTypeMapping(); webConfigToLabelTypeMapping @@ -979,11 +999,14 @@ public class DatabaseService { continue; } - final FileConfigToRoleTypeMappingCB cb = new FileConfigToRoleTypeMappingCB(); - cb.query().setRoleTypeId_Equal(roleTypeId); - cb.query().setFileConfigId_Equal(fileConfigId); final FileConfigToRoleTypeMapping entity = fileConfigToRoleTypeMappingBhv - .selectEntity(cb); + .selectEntity( + cb -> { + cb.query().setRoleTypeId_Equal( + roleTypeId); + cb.query().setFileConfigId_Equal( + fileConfigId); + }).orElse(null);//TODO if (entity == null) { fileConfigToRoleTypeMapping = new FileConfigToRoleTypeMapping(); fileConfigToRoleTypeMapping @@ -1024,11 +1047,14 @@ public class DatabaseService { continue; } - final DataConfigToRoleTypeMappingCB cb = new DataConfigToRoleTypeMappingCB(); - cb.query().setRoleTypeId_Equal(roleTypeId); - cb.query().setDataConfigId_Equal(dataConfigId); final DataConfigToRoleTypeMapping entity = dataConfigToRoleTypeMappingBhv - .selectEntity(cb); + .selectEntity( + cb -> { + cb.query().setRoleTypeId_Equal( + roleTypeId); + cb.query().setDataConfigId_Equal( + dataConfigId); + }).orElse(null);//TODO if (entity == null) { dataConfigToRoleTypeMapping = new DataConfigToRoleTypeMapping(); dataConfigToRoleTypeMapping @@ -1069,11 +1095,14 @@ public class DatabaseService { continue; } - final WebConfigToRoleTypeMappingCB cb = new WebConfigToRoleTypeMappingCB(); - cb.query().setRoleTypeId_Equal(roleTypeId); - cb.query().setWebConfigId_Equal(webConfigId); final WebConfigToRoleTypeMapping entity = webConfigToRoleTypeMappingBhv - .selectEntity(cb); + .selectEntity( + cb -> { + cb.query().setRoleTypeId_Equal( + roleTypeId); + cb.query().setWebConfigId_Equal( + webConfigId); + }).orElse(null);//TODO if (entity == null) { webConfigToRoleTypeMapping = new WebConfigToRoleTypeMapping(); webConfigToRoleTypeMapping @@ -1111,11 +1140,14 @@ public class DatabaseService { continue; } - final LabelTypeToRoleTypeMappingCB cb = new LabelTypeToRoleTypeMappingCB(); - cb.query().setRoleTypeId_Equal(roleTypeId); - cb.query().setLabelTypeId_Equal(labelTypeId); final LabelTypeToRoleTypeMapping entity = labelTypeToRoleTypeMappingBhv - .selectEntity(cb); + .selectEntity( + cb -> { + cb.query().setRoleTypeId_Equal( + roleTypeId); + cb.query().setLabelTypeId_Equal( + labelTypeId); + }).orElse(null);//TODO if (entity == null) { labelTypeToRoleTypeMapping = new LabelTypeToRoleTypeMapping(); labelTypeToRoleTypeMapping @@ -1154,12 +1186,13 @@ public class DatabaseService { continue; } - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.query().setWebCrawlingConfigId_Equal(webConfigId); - cb.query().setDeletedBy_IsNull(); WebAuthentication entity = null; final List<WebAuthentication> list = webAuthenticationBhv - .selectList(cb); + .selectList(cb -> { + cb.query().setWebCrawlingConfigId_Equal( + webConfigId); + cb.query().setDeletedBy_IsNull(); + }); for (final WebAuthentication e : list) { if (StringUtil.equals( webAuthentication.getAuthRealm(), @@ -1219,12 +1252,13 @@ public class DatabaseService { continue; } - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.query().setFileCrawlingConfigId_Equal(fileConfigId); - cb.query().setDeletedBy_IsNull(); FileAuthentication entity = null; final List<FileAuthentication> list = fileAuthenticationBhv - .selectList(cb); + .selectList(cb -> { + cb.query().setFileCrawlingConfigId_Equal( + fileConfigId); + cb.query().setDeletedBy_IsNull(); + }); for (final FileAuthentication e : list) { if (StringUtil.equals( fileAuthentication.getHostname(), @@ -1285,12 +1319,13 @@ public class DatabaseService { continue; } - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.query().setWebCrawlingConfigId_Equal(webConfigId); - cb.query().setDeletedBy_IsNull(); RequestHeader entity = null; final List<RequestHeader> list = requestHeaderBhv - .selectList(cb); + .selectList(cb -> { + cb.query().setWebCrawlingConfigId_Equal( + webConfigId); + cb.query().setDeletedBy_IsNull(); + }); for (final RequestHeader e : list) { if (StringUtil.equals(requestHeader.getName(), e.getName())) { @@ -1330,10 +1365,11 @@ public class DatabaseService { for (KeyMatch keyMatch : keyMatchList) { final Long id = keyMatch.getId(); - final KeyMatchCB cb = new KeyMatchCB(); - cb.query().setTerm_Equal(keyMatch.getTerm()); - cb.query().setDeletedBy_IsNull(); - final KeyMatch entity = keyMatchBhv.selectEntity(cb); + final String term = keyMatch.getTerm(); + final KeyMatch entity = keyMatchBhv.selectEntity( + cb -> { + cb.query().setTerm_Equal(term); + }).orElse(null);//TODO keyMatch.setId(null); if (entity == null) { keyMatchBhv.insert(keyMatch); @@ -1366,12 +1402,11 @@ public class DatabaseService { for (BoostDocumentRule boostDocumentRule : boostDocumentRuleList) { final Long id = boostDocumentRule.getId(); - final BoostDocumentRuleCB cb = new BoostDocumentRuleCB(); - cb.query().setUrlExpr_Equal( - boostDocumentRule.getUrlExpr()); - cb.query().setDeletedBy_IsNull(); + final String urlExpr = boostDocumentRule.getUrlExpr(); final BoostDocumentRule entity = boostDocumentRuleBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setUrlExpr_Equal(urlExpr); + }).orElse(null);//TODO boostDocumentRule.setId(null); if (entity == null) { boostDocumentRuleBhv.insert(boostDocumentRule); @@ -1405,12 +1440,14 @@ public class DatabaseService { for (SuggestElevateWord suggestElevateWord : suggestElevateWordList) { final Long id = suggestElevateWord.getId(); - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - cb.query().setSuggestWord_Equal( - suggestElevateWord.getSuggestWord()); - cb.query().setDeletedBy_IsNull(); + final String suggestWord = suggestElevateWord + .getSuggestWord(); final SuggestElevateWord entity = suggestElevateWordBhv - .selectEntity(cb); + .selectEntity( + cb -> { + cb.query().setSuggestWord_Equal( + suggestWord); + }).orElse(null);//TODO suggestElevateWord.setId(null); if (entity == null) { suggestElevateWordBhv.insert(suggestElevateWord); @@ -1443,31 +1480,33 @@ public class DatabaseService { final List<SuggestBadWord> suggestNGWordList = (List<SuggestBadWord>) dataSet .get(SUGGEST_BAD_WORD_KEY + LIST_SUFFIX); if (suggestNGWordList != null) { - for (SuggestBadWord suggestNGWord : suggestNGWordList) { - final Long id = suggestNGWord.getId(); + for (SuggestBadWord suggestBadWord : suggestNGWordList) { + final Long id = suggestBadWord.getId(); - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.query().setSuggestWord_Equal( - suggestNGWord.getSuggestWord()); - cb.query().setDeletedBy_IsNull(); + final String suggestWord = suggestBadWord + .getSuggestWord(); final SuggestBadWord entity = suggestBadWordBhv - .selectEntity(cb); - suggestNGWord.setId(null); + .selectEntity( + cb -> { + cb.query().setSuggestWord_Equal( + suggestWord); + }).orElse(null);//TODO + suggestBadWord.setId(null); if (entity == null) { - suggestBadWordBhv.insert(suggestNGWord); + suggestBadWordBhv.insert(suggestBadWord); } else { if (overwrite) { - suggestNGWord.setVersionNo(null); - Beans.copy(suggestNGWord, entity) + suggestBadWord.setVersionNo(null); + Beans.copy(suggestBadWord, entity) .excludesNull().execute(); - suggestNGWord = entity; - suggestBadWordBhv.update(suggestNGWord); + suggestBadWord = entity; + suggestBadWordBhv.update(suggestBadWord); } else { - suggestBadWordBhv.insert(suggestNGWord); + suggestBadWordBhv.insert(suggestBadWord); } } idMap.put(SUGGEST_BAD_WORD_KEY + ":" + id.toString(), - suggestNGWord.getId()); + suggestBadWord.getId()); } } userTransaction.commit(); diff --git a/src/main/java/jp/sf/fess/service/FailureUrlService.java b/src/main/java/org/codelibs/fess/service/FailureUrlService.java similarity index 76% rename from src/main/java/jp/sf/fess/service/FailureUrlService.java rename to src/main/java/org/codelibs/fess/service/FailureUrlService.java index eeb78ee2f..eb403d75c 100644 --- a/src/main/java/jp/sf/fess/service/FailureUrlService.java +++ b/src/main/java/org/codelibs/fess/service/FailureUrlService.java @@ -14,12 +14,11 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.PrintWriter; import java.io.Serializable; import java.io.StringWriter; -import java.sql.Timestamp; import java.util.ArrayList; import java.util.List; import java.util.Map; @@ -27,22 +26,19 @@ import java.util.regex.Pattern; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.service.BsFailureUrlService; -import jp.sf.fess.db.cbean.FailureUrlCB; -import jp.sf.fess.db.exbhv.FailureUrlBhv; -import jp.sf.fess.db.exentity.CrawlingConfig; -import jp.sf.fess.db.exentity.FailureUrl; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.pager.FailureUrlPager; -import jp.sf.fess.util.ComponentUtil; - import org.apache.commons.lang.StringUtils; import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.service.BsFailureUrlService; +import org.codelibs.fess.db.cbean.FailureUrlCB; +import org.codelibs.fess.db.exbhv.FailureUrlBhv; +import org.codelibs.fess.db.exentity.CrawlingConfig; +import org.codelibs.fess.db.exentity.FailureUrl; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.pager.FailureUrlPager; +import org.codelibs.fess.util.ComponentUtil; +import org.dbflute.cbean.result.ListResultBean; import org.seasar.framework.container.SingletonS2Container; public class FailureUrlService extends BsFailureUrlService implements @@ -90,10 +86,11 @@ public class FailureUrlService extends BsFailureUrlService implements } public void deleteAll(final FailureUrlPager failureUrlPager) { - final FailureUrlCB cb = new FailureUrlCB(); - buildSearchCondition(failureUrlPager, cb); - failureUrlBhv.varyingQueryDelete(cb, - new DeleteOption<FailureUrlCB>().allowNonQueryDelete()); + failureUrlBhv.varyingQueryDelete(cb -> { + buildSearchCondition(failureUrlPager, cb); + }, op -> { + op.allowNonQueryDelete(); + }); } private void buildSearchCondition(final FailureUrlPager failureUrlPager, @@ -101,7 +98,7 @@ public class FailureUrlService extends BsFailureUrlService implements // search if (StringUtil.isNotBlank(failureUrlPager.url)) { cb.query().setUrl_LikeSearch(failureUrlPager.url, - new LikeSearchOption().likeContain()); + op -> op.likeContain()); } if (StringUtil.isNotBlank(failureUrlPager.errorCountMax)) { @@ -115,7 +112,7 @@ public class FailureUrlService extends BsFailureUrlService implements if (StringUtil.isNotBlank(failureUrlPager.errorName)) { cb.query().setErrorName_LikeSearch(failureUrlPager.errorName, - new LikeSearchOption().likeContain()); + op -> op.likeContain()); } } @@ -138,10 +135,12 @@ public class FailureUrlService extends BsFailureUrlService implements return null; } - final FailureUrlCB cb = new FailureUrlCB(); - cb.query().setConfigId_Equal(configId); - cb.query().setErrorCount_GreaterEqual(failureCount); - final ListResultBean<FailureUrl> list = failureUrlBhv.selectList(cb); + final int count = failureCount; + final ListResultBean<FailureUrl> list = failureUrlBhv + .selectList(cb -> { + cb.query().setConfigId_Equal(configId); + cb.query().setErrorCount_GreaterEqual(count); + }); if (list.isEmpty()) { return null; } @@ -164,22 +163,21 @@ public class FailureUrlService extends BsFailureUrlService implements } public void deleteByConfigId(final String configId) { - final FailureUrlCB cb = new FailureUrlCB(); - cb.query().setConfigId_Equal(configId); - failureUrlBhv.varyingQueryDelete(cb, - new DeleteOption<FailureUrlCB>().allowNonQueryDelete()); + failureUrlBhv.varyingQueryDelete(cb -> { + cb.query().setConfigId_Equal(configId); + }, op -> op.allowNonQueryDelete()); } public void store(final CrawlingConfig crawlingConfig, final String errorName, final String url, final Throwable e) { final FailureUrlBhv failureUrlBhv = SingletonS2Container .getComponent(FailureUrlBhv.class); - final FailureUrlCB cb = new FailureUrlCB(); - cb.query().setUrl_Equal(url); - if (crawlingConfig != null) { - cb.query().setConfigId_Equal(crawlingConfig.getConfigId()); - } - FailureUrl failureUrl = failureUrlBhv.selectEntity(cb); + FailureUrl failureUrl = failureUrlBhv.selectEntity(cb -> { + cb.query().setUrl_Equal(url); + if (crawlingConfig != null) { + cb.query().setConfigId_Equal(crawlingConfig.getConfigId()); + } + }).orElse(null);//TODO if (failureUrl != null) { failureUrl.setErrorCount(failureUrl.getErrorCount() + 1); @@ -195,7 +193,8 @@ public class FailureUrlService extends BsFailureUrlService implements failureUrl.setErrorName(errorName); failureUrl.setErrorLog(StringUtils.abbreviate(getStackTrace(e), 4000)); - failureUrl.setLastAccessTime(new Timestamp(System.currentTimeMillis())); + failureUrl.setLastAccessTime(ComponentUtil.getSystemHelper() + .getCurrentTime()); failureUrl.setThreadName(Thread.currentThread().getName()); failureUrlBhv.insertOrUpdate(failureUrl); diff --git a/src/main/java/jp/sf/fess/service/FavoriteLogService.java b/src/main/java/org/codelibs/fess/service/FavoriteLogService.java similarity index 61% rename from src/main/java/jp/sf/fess/service/FavoriteLogService.java rename to src/main/java/org/codelibs/fess/service/FavoriteLogService.java index fe6531518..2be96297a 100644 --- a/src/main/java/jp/sf/fess/service/FavoriteLogService.java +++ b/src/main/java/org/codelibs/fess/service/FavoriteLogService.java @@ -14,13 +14,15 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.IOException; import java.io.Serializable; import java.io.Writer; import java.sql.Timestamp; -import java.text.ParseException; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.time.format.DateTimeParseException; import java.util.ArrayList; import java.util.Collections; import java.util.Date; @@ -29,13 +31,6 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.service.BsFavoriteLogService; -import jp.sf.fess.db.cbean.FavoriteLogCB; -import jp.sf.fess.db.cbean.UserInfoCB; -import jp.sf.fess.db.exbhv.UserInfoBhv; -import jp.sf.fess.db.exentity.FavoriteLog; -import jp.sf.fess.db.exentity.UserInfo; -import jp.sf.fess.pager.FavoriteLogPager; import jp.sf.orangesignal.csv.CsvConfig; import jp.sf.orangesignal.csv.CsvWriter; @@ -43,9 +38,15 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.CoreLibConstants; import org.codelibs.core.util.StringUtil; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; +import org.codelibs.fess.crud.service.BsFavoriteLogService; +import org.codelibs.fess.db.cbean.FavoriteLogCB; +import org.codelibs.fess.db.exbhv.UserInfoBhv; +import org.codelibs.fess.db.exentity.FavoriteLog; +import org.codelibs.fess.db.exentity.UserInfo; +import org.codelibs.fess.pager.FavoriteLogPager; +import org.codelibs.fess.util.ComponentUtil; +import org.dbflute.bhv.readable.EntityRowHandler; +import org.dbflute.cbean.result.ListResultBean; import com.ibm.icu.text.SimpleDateFormat; @@ -98,16 +99,16 @@ public class FavoriteLogService extends BsFavoriteLogService implements } public boolean addUrl(final String userCode, final String url) { - final UserInfoCB cb = new UserInfoCB(); - cb.query().setCode_Equal(userCode); - final UserInfo userInfo = userInfoBhv.selectEntity(cb); + final UserInfo userInfo = userInfoBhv.selectEntity(cb -> { + cb.query().setCode_Equal(userCode); + }).orElse(null);//TODO if (userInfo != null) { final FavoriteLog favoriteLog = new FavoriteLog(); favoriteLog.setUserId(userInfo.getId()); favoriteLog.setUrl(url); - favoriteLog - .setCreatedTime(new Timestamp(System.currentTimeMillis())); + favoriteLog.setCreatedTime(ComponentUtil.getSystemHelper() + .getCurrentTime()); favoriteLogBhv.insert(favoriteLog); return true; } @@ -121,17 +122,16 @@ public class FavoriteLogService extends BsFavoriteLogService implements return urlList; } - final UserInfoCB cb = new UserInfoCB(); - cb.query().setCode_Equal(userCode); - final UserInfo userInfo = userInfoBhv.selectEntity(cb); + final UserInfo userInfo = userInfoBhv.selectEntity(cb -> { + cb.query().setCode_Equal(userCode); + }).orElse(null);//TODO if (userInfo != null) { - final FavoriteLogCB cb2 = new FavoriteLogCB(); - cb2.query().setUserId_Equal(userInfo.getId()); - cb2.query().setUrl_InScope(urlList); - final ListResultBean<FavoriteLog> list = favoriteLogBhv - .selectList(cb2); + .selectList(cb2 -> { + cb2.query().setUserId_Equal(userInfo.getId()); + cb2.query().setUrl_InScope(urlList); + }); if (!list.isEmpty()) { final List<String> newUrlList = new ArrayList<String>( list.size()); @@ -146,10 +146,9 @@ public class FavoriteLogService extends BsFavoriteLogService implements } public void deleteAll(final FavoriteLogPager favoriteLogPager) { - final FavoriteLogCB cb1 = new FavoriteLogCB(); - buildSearchCondition(favoriteLogPager, cb1); - favoriteLogBhv.varyingQueryDelete(cb1, - new DeleteOption<FavoriteLogCB>().allowNonQueryDelete()); + favoriteLogBhv.varyingQueryDelete(cb1 -> { + buildSearchCondition(favoriteLogPager, cb1); + }, op -> op.allowNonQueryDelete()); } private void buildSearchCondition(final FavoriteLogPager favoriteLogPager, @@ -176,13 +175,12 @@ public class FavoriteLogService extends BsFavoriteLogService implements buf.append("00"); } - final SimpleDateFormat sdf = new SimpleDateFormat( - "yyyy-MM-dd+HH:mm"); + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern("yyyy-MM-dd+HH:mm"); try { - final Date startDate = sdf.parse(buf.toString()); cb.query().setCreatedTime_GreaterEqual( - new Timestamp(startDate.getTime())); - } catch (final ParseException e) { + LocalDateTime.parse(buf.toString(), formatter)); + } catch (final DateTimeParseException e) { favoriteLogPager.startDate = null; favoriteLogPager.startHour = null; favoriteLogPager.startMin = null; @@ -205,13 +203,12 @@ public class FavoriteLogService extends BsFavoriteLogService implements buf.append("00"); } - final SimpleDateFormat sdf = new SimpleDateFormat( - "yyyy-MM-dd+HH:mm"); + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern("yyyy-MM-dd+HH:mm"); try { - final Date endDate = sdf.parse(buf.toString()); cb.query().setCreatedTime_LessThan( - new Timestamp(endDate.getTime())); - } catch (final ParseException e) { + LocalDateTime.parse(buf.toString(), formatter)); + } catch (final DateTimeParseException e) { favoriteLogPager.endDate = null; favoriteLogPager.endHour = null; favoriteLogPager.endMin = null; @@ -226,10 +223,6 @@ public class FavoriteLogService extends BsFavoriteLogService implements cfg.setEscapeDisabled(false); cfg.setQuoteDisabled(false); final CsvWriter csvWriter = new CsvWriter(writer, cfg); - final FavoriteLogCB cb = new FavoriteLogCB(); - if (favoriteLogPager != null) { - buildSearchCondition(favoriteLogPager, cb); - } try { final List<String> list = new ArrayList<String>(); list.add("UserCode"); @@ -238,44 +231,45 @@ public class FavoriteLogService extends BsFavoriteLogService implements csvWriter.writeValues(list); final SimpleDateFormat sdf = new SimpleDateFormat( CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); - favoriteLogBhv.selectCursor(cb, - new EntityRowHandler<FavoriteLog>() { - @Override - public void handle(final FavoriteLog entity) { - final UserInfoCB cb = new UserInfoCB(); - cb.query().setId_Equal(entity.getId()); - final UserInfo userInfo = userInfoBhv - .selectEntity(cb); - String userCode; - if (userInfo == null) { - userCode = StringUtil.EMPTY; - } else { - userCode = userInfo.getCode(); - } - - final List<String> list = new ArrayList<String>(); - addToList(list, userCode); - addToList(list, entity.getUrl()); - addToList(list, entity.getCreatedTime()); - try { - csvWriter.writeValues(list); - } catch (final IOException e) { - log.warn("Failed to write a search log: " - + entity, e); - } - } - - private void addToList(final List<String> list, - final Object value) { - if (value == null) { - list.add(StringUtil.EMPTY); - } else if (value instanceof Timestamp) { - list.add(sdf.format((Date) value)); - } else { - list.add(value.toString()); - } - } - }); + favoriteLogBhv.selectCursor(cb -> { + if (favoriteLogPager != null) { + buildSearchCondition(favoriteLogPager, cb); + } + }, new EntityRowHandler<FavoriteLog>() { + @Override + public void handle(final FavoriteLog entity) { + final UserInfo userInfo = userInfoBhv.selectEntity( + cb2 -> cb2.query().setId_Equal(entity.getId())) + .orElse(null);//TODO + String userCode; + if (userInfo == null) { + userCode = StringUtil.EMPTY; + } else { + userCode = userInfo.getCode(); + } + + final List<String> list = new ArrayList<String>(); + addToList(list, userCode); + addToList(list, entity.getUrl()); + addToList(list, entity.getCreatedTime()); + try { + csvWriter.writeValues(list); + } catch (final IOException e) { + log.warn("Failed to write a search log: " + entity, e); + } + } + + private void addToList(final List<String> list, + final Object value) { + if (value == null) { + list.add(StringUtil.EMPTY); + } else if (value instanceof Timestamp) { + list.add(sdf.format((Date) value)); + } else { + list.add(value.toString()); + } + } + }); csvWriter.flush(); } catch (final IOException e) { log.warn("Failed to write a favorite log.", e); diff --git a/src/main/java/jp/sf/fess/service/FileAuthenticationService.java b/src/main/java/org/codelibs/fess/service/FileAuthenticationService.java similarity index 83% rename from src/main/java/jp/sf/fess/service/FileAuthenticationService.java rename to src/main/java/org/codelibs/fess/service/FileAuthenticationService.java index 93078c602..218cd6eb1 100644 --- a/src/main/java/jp/sf/fess/service/FileAuthenticationService.java +++ b/src/main/java/org/codelibs/fess/service/FileAuthenticationService.java @@ -14,16 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.List; import java.util.Map; -import jp.sf.fess.crud.service.BsFileAuthenticationService; -import jp.sf.fess.db.cbean.FileAuthenticationCB; -import jp.sf.fess.db.exentity.FileAuthentication; -import jp.sf.fess.pager.FileAuthenticationPager; +import org.codelibs.fess.crud.service.BsFileAuthenticationService; +import org.codelibs.fess.db.cbean.FileAuthenticationCB; +import org.codelibs.fess.db.exentity.FileAuthentication; +import org.codelibs.fess.pager.FileAuthenticationPager; public class FileAuthenticationService extends BsFileAuthenticationService implements Serializable { @@ -75,8 +75,8 @@ public class FileAuthenticationService extends BsFileAuthenticationService public List<FileAuthentication> getFileAuthenticationList( final Long fileCrawlingConfigId) { - final FileAuthenticationCB cb = new FileAuthenticationCB(); - cb.query().setFileCrawlingConfigId_Equal(fileCrawlingConfigId); - return fileAuthenticationBhv.selectList(cb); + return fileAuthenticationBhv.selectList(cb -> { + cb.query().setFileCrawlingConfigId_Equal(fileCrawlingConfigId); + }); } } diff --git a/src/main/java/jp/sf/fess/service/FileCrawlingConfigService.java b/src/main/java/org/codelibs/fess/service/FileCrawlingConfigService.java similarity index 73% rename from src/main/java/jp/sf/fess/service/FileCrawlingConfigService.java rename to src/main/java/org/codelibs/fess/service/FileCrawlingConfigService.java index 65adaa3a7..a5ae54de8 100644 --- a/src/main/java/jp/sf/fess/service/FileCrawlingConfigService.java +++ b/src/main/java/org/codelibs/fess/service/FileCrawlingConfigService.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.ArrayList; @@ -23,19 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.service.BsFileCrawlingConfigService; -import jp.sf.fess.db.cbean.FileConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.FileConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.FileCrawlingConfigCB; -import jp.sf.fess.db.exbhv.FileConfigToLabelTypeMappingBhv; -import jp.sf.fess.db.exbhv.FileConfigToRoleTypeMappingBhv; -import jp.sf.fess.db.exentity.FileConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.FileConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.FileCrawlingConfig; -import jp.sf.fess.pager.FileCrawlingConfigPager; - -import org.seasar.dbflute.bhv.ConditionBeanSetupper; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.service.BsFileCrawlingConfigService; +import org.codelibs.fess.db.cbean.FileCrawlingConfigCB; +import org.codelibs.fess.db.exbhv.FileConfigToLabelTypeMappingBhv; +import org.codelibs.fess.db.exbhv.FileConfigToRoleTypeMappingBhv; +import org.codelibs.fess.db.exentity.FileConfigToLabelTypeMapping; +import org.codelibs.fess.db.exentity.FileConfigToRoleTypeMapping; +import org.codelibs.fess.db.exentity.FileCrawlingConfig; +import org.codelibs.fess.pager.FileCrawlingConfigPager; public class FileCrawlingConfigService extends BsFileCrawlingConfigService implements Serializable { @@ -64,41 +60,30 @@ public class FileCrawlingConfigService extends BsFileCrawlingConfigService public List<FileCrawlingConfig> getAllFileCrawlingConfigList( final boolean withLabelType, final boolean withRoleType, final boolean available, final List<Long> idList) { - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.query().setDeletedBy_IsNull(); - if (available) { - cb.query().setAvailable_Equal(Constants.T); - } - if (idList != null) { - cb.query().setId_InScope(idList); - } final List<FileCrawlingConfig> list = fileCrawlingConfigBhv - .selectList(cb); + .selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + if (available) { + cb.query().setAvailable_Equal(Constants.T); + } + if (idList != null) { + cb.query().setId_InScope(idList); + } + }); if (withRoleType) { - final ConditionBeanSetupper<FileConfigToRoleTypeMappingCB> setupper2 = new ConditionBeanSetupper<FileConfigToRoleTypeMappingCB>() { - @Override - public void setup(final FileConfigToRoleTypeMappingCB cb) { - cb.setupSelect_RoleType(); - cb.query().queryRoleType().setDeletedBy_IsNull(); - cb.query().queryRoleType().addOrderBy_SortOrder_Asc(); - } - - }; - fileCrawlingConfigBhv.loadFileConfigToRoleTypeMappingList(list, - setupper2); + fileCrawlingConfigBhv.loadFileConfigToRoleTypeMapping(list, cb -> { + cb.setupSelect_RoleType(); + cb.query().queryRoleType().setDeletedBy_IsNull(); + cb.query().queryRoleType().addOrderBy_SortOrder_Asc(); + }); } if (withLabelType) { - final ConditionBeanSetupper<FileConfigToLabelTypeMappingCB> setupper3 = new ConditionBeanSetupper<FileConfigToLabelTypeMappingCB>() { - @Override - public void setup(final FileConfigToLabelTypeMappingCB cb) { - cb.setupSelect_LabelType(); - cb.query().queryLabelType().setDeletedBy_IsNull(); - cb.query().queryLabelType().addOrderBy_SortOrder_Asc(); - } - - }; - fileCrawlingConfigBhv.loadFileConfigToLabelTypeMappingList(list, - setupper3); + fileCrawlingConfigBhv.loadFileConfigToLabelTypeMapping(list, + cb -> { + cb.setupSelect_LabelType(); + cb.query().queryLabelType().setDeletedBy_IsNull(); + cb.query().queryLabelType().addOrderBy_SortOrder_Asc(); + }); } return list; } @@ -111,12 +96,14 @@ public class FileCrawlingConfigService extends BsFileCrawlingConfigService if (fileCrawlingConfig != null) { - final FileConfigToRoleTypeMappingCB fctrtmCb = new FileConfigToRoleTypeMappingCB(); - fctrtmCb.query().setFileConfigId_Equal(fileCrawlingConfig.getId()); - fctrtmCb.query().queryRoleType().setDeletedBy_IsNull(); - fctrtmCb.query().queryFileCrawlingConfig().setDeletedBy_IsNull(); final List<FileConfigToRoleTypeMapping> fctrtmList = fileConfigToRoleTypeMappingBhv - .selectList(fctrtmCb); + .selectList(fctrtmCb -> { + fctrtmCb.query().setFileConfigId_Equal( + fileCrawlingConfig.getId()); + fctrtmCb.query().queryRoleType().setDeletedBy_IsNull(); + fctrtmCb.query().queryFileCrawlingConfig() + .setDeletedBy_IsNull(); + }); if (!fctrtmList.isEmpty()) { final List<String> roleTypeIds = new ArrayList<String>( fctrtmList.size()); @@ -127,12 +114,14 @@ public class FileCrawlingConfigService extends BsFileCrawlingConfigService .toArray(new String[roleTypeIds.size()])); } - final FileConfigToLabelTypeMappingCB fctltmCb = new FileConfigToLabelTypeMappingCB(); - fctltmCb.query().setFileConfigId_Equal(fileCrawlingConfig.getId()); - fctltmCb.query().queryLabelType().setDeletedBy_IsNull(); - fctltmCb.query().queryFileCrawlingConfig().setDeletedBy_IsNull(); final List<FileConfigToLabelTypeMapping> fctltmList = fileConfigToLabelTypeMappingBhv - .selectList(fctltmCb); + .selectList(fctltmCb -> { + fctltmCb.query().setFileConfigId_Equal( + fileCrawlingConfig.getId()); + fctltmCb.query().queryLabelType().setDeletedBy_IsNull(); + fctltmCb.query().queryFileCrawlingConfig() + .setDeletedBy_IsNull(); + }); if (!fctltmList.isEmpty()) { final List<String> labelTypeIds = new ArrayList<String>( fctltmList.size()); @@ -180,10 +169,11 @@ public class FileCrawlingConfigService extends BsFileCrawlingConfigService } else { // Update if (labelTypeIds != null) { - final FileConfigToLabelTypeMappingCB fctltmCb = new FileConfigToLabelTypeMappingCB(); - fctltmCb.query().setFileConfigId_Equal(fileConfigId); final List<FileConfigToLabelTypeMapping> fctltmList = fileConfigToLabelTypeMappingBhv - .selectList(fctltmCb); + .selectList(fctltmCb -> { + fctltmCb.query() + .setFileConfigId_Equal(fileConfigId); + }); final List<FileConfigToLabelTypeMapping> newList = new ArrayList<FileConfigToLabelTypeMapping>(); final List<FileConfigToLabelTypeMapping> matchedList = new ArrayList<FileConfigToLabelTypeMapping>(); for (final String id : labelTypeIds) { @@ -209,10 +199,11 @@ public class FileCrawlingConfigService extends BsFileCrawlingConfigService fileConfigToLabelTypeMappingBhv.batchDelete(fctltmList); } if (roleTypeIds != null) { - final FileConfigToRoleTypeMappingCB fctrtmCb = new FileConfigToRoleTypeMappingCB(); - fctrtmCb.query().setFileConfigId_Equal(fileConfigId); final List<FileConfigToRoleTypeMapping> fctrtmList = fileConfigToRoleTypeMappingBhv - .selectList(fctrtmCb); + .selectList(fctrtmCb -> { + fctrtmCb.query() + .setFileConfigId_Equal(fileConfigId); + }); final List<FileConfigToRoleTypeMapping> newList = new ArrayList<FileConfigToRoleTypeMapping>(); final List<FileConfigToRoleTypeMapping> matchedList = new ArrayList<FileConfigToRoleTypeMapping>(); for (final String id : roleTypeIds) { @@ -282,10 +273,10 @@ public class FileCrawlingConfigService extends BsFileCrawlingConfigService } public FileCrawlingConfig getFileCrawlingConfig(final long id) { - final FileCrawlingConfigCB cb = new FileCrawlingConfigCB(); - cb.query().setId_Equal(id); - cb.query().setDeletedBy_IsNull(); - return fileCrawlingConfigBhv.selectEntity(cb); + return fileCrawlingConfigBhv.selectEntity(cb -> { + cb.query().setId_Equal(id); + cb.query().setDeletedBy_IsNull(); + }).orElse(null);//TODO } } diff --git a/src/main/java/jp/sf/fess/service/JobLogService.java b/src/main/java/org/codelibs/fess/service/JobLogService.java similarity index 69% rename from src/main/java/jp/sf/fess/service/JobLogService.java rename to src/main/java/org/codelibs/fess/service/JobLogService.java index c389976b1..9656c1bcb 100644 --- a/src/main/java/jp/sf/fess/service/JobLogService.java +++ b/src/main/java/org/codelibs/fess/service/JobLogService.java @@ -14,19 +14,18 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; import java.util.Map; -import jp.sf.fess.crud.service.BsJobLogService; -import jp.sf.fess.db.cbean.JobLogCB; -import jp.sf.fess.db.exentity.JobLog; -import jp.sf.fess.pager.JobLogPager; - -import org.seasar.dbflute.bhv.DeleteOption; +import org.codelibs.fess.crud.service.BsJobLogService; +import org.codelibs.fess.db.cbean.JobLogCB; +import org.codelibs.fess.db.exentity.JobLog; +import org.codelibs.fess.pager.JobLogPager; +import org.codelibs.fess.util.ComponentUtil; public class JobLogService extends BsJobLogService implements Serializable { @@ -71,19 +70,17 @@ public class JobLogService extends BsJobLogService implements Serializable { } public void deleteBefore(final int days) { - final Timestamp targetTime = new Timestamp(System.currentTimeMillis() - - days * 24L * 60L * 60L * 1000L); - final JobLogCB cb = new JobLogCB(); - cb.query().setEndTime_LessThan(targetTime); - jobLogBhv.varyingQueryDelete(cb, - new DeleteOption<JobLogCB>().allowNonQueryDelete()); + final LocalDateTime targetTime = ComponentUtil.getSystemHelper() + .getCurrentTime().minusDays(days); + jobLogBhv.varyingQueryDelete(cb -> { + cb.query().setEndTime_LessThan(targetTime); + }, op -> op.allowNonQueryDelete()); } public void deleteByJobStatus(final List<String> jobStatusList) { - final JobLogCB cb = new JobLogCB(); - cb.query().setJobStatus_InScope(jobStatusList); - jobLogBhv.varyingQueryDelete(cb, - new DeleteOption<JobLogCB>().allowNonQueryDelete()); + jobLogBhv.varyingQueryDelete(cb -> { + cb.query().setJobStatus_InScope(jobStatusList); + }, op -> op.allowNonQueryDelete()); } } diff --git a/src/main/java/jp/sf/fess/service/KeyMatchService.java b/src/main/java/org/codelibs/fess/service/KeyMatchService.java similarity index 83% rename from src/main/java/jp/sf/fess/service/KeyMatchService.java rename to src/main/java/org/codelibs/fess/service/KeyMatchService.java index 36959678d..f2edd743d 100644 --- a/src/main/java/jp/sf/fess/service/KeyMatchService.java +++ b/src/main/java/org/codelibs/fess/service/KeyMatchService.java @@ -14,16 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.List; import java.util.Map; -import jp.sf.fess.crud.service.BsKeyMatchService; -import jp.sf.fess.db.cbean.KeyMatchCB; -import jp.sf.fess.db.exentity.KeyMatch; -import jp.sf.fess.pager.KeyMatchPager; +import org.codelibs.fess.crud.service.BsKeyMatchService; +import org.codelibs.fess.db.cbean.KeyMatchCB; +import org.codelibs.fess.db.exentity.KeyMatch; +import org.codelibs.fess.pager.KeyMatchPager; public class KeyMatchService extends BsKeyMatchService implements Serializable { @@ -68,9 +68,9 @@ public class KeyMatchService extends BsKeyMatchService implements Serializable { } public List<KeyMatch> getAvailableKeyMatchList() { - final KeyMatchCB cb = new KeyMatchCB(); - cb.query().setDeletedBy_IsNull(); - return keyMatchBhv.selectList(cb); + return keyMatchBhv.selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + }); } } diff --git a/src/main/java/jp/sf/fess/service/LabelTypeService.java b/src/main/java/org/codelibs/fess/service/LabelTypeService.java similarity index 73% rename from src/main/java/jp/sf/fess/service/LabelTypeService.java rename to src/main/java/org/codelibs/fess/service/LabelTypeService.java index b98b54a92..f2442dec8 100644 --- a/src/main/java/jp/sf/fess/service/LabelTypeService.java +++ b/src/main/java/org/codelibs/fess/service/LabelTypeService.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.ArrayList; @@ -23,18 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.service.BsLabelTypeService; -import jp.sf.fess.db.cbean.LabelTypeCB; -import jp.sf.fess.db.cbean.LabelTypeToRoleTypeMappingCB; -import jp.sf.fess.db.exbhv.LabelTypeToRoleTypeMappingBhv; -import jp.sf.fess.db.exentity.LabelType; -import jp.sf.fess.db.exentity.LabelTypeToRoleTypeMapping; -import jp.sf.fess.helper.LabelTypeHelper; -import jp.sf.fess.pager.LabelTypePager; -import jp.sf.fess.util.ComponentUtil; - -import org.seasar.dbflute.bhv.ConditionBeanSetupper; -import org.seasar.dbflute.cbean.ListResultBean; +import org.codelibs.fess.crud.service.BsLabelTypeService; +import org.codelibs.fess.db.cbean.LabelTypeCB; +import org.codelibs.fess.db.exbhv.LabelTypeToRoleTypeMappingBhv; +import org.codelibs.fess.db.exentity.LabelType; +import org.codelibs.fess.db.exentity.LabelTypeToRoleTypeMapping; +import org.codelibs.fess.helper.LabelTypeHelper; +import org.codelibs.fess.pager.LabelTypePager; +import org.codelibs.fess.util.ComponentUtil; +import org.dbflute.cbean.result.ListResultBean; public class LabelTypeService extends BsLabelTypeService implements Serializable { @@ -84,30 +81,26 @@ public class LabelTypeService extends BsLabelTypeService implements } public List<LabelType> getLabelTypeList() { - final LabelTypeCB cb = new LabelTypeCB(); - cb.query().setDeletedBy_IsNull(); - cb.query().addOrderBy_SortOrder_Asc(); - cb.query().addOrderBy_Name_Asc(); - return labelTypeBhv.selectList(cb); + return labelTypeBhv.selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + cb.query().addOrderBy_SortOrder_Asc(); + cb.query().addOrderBy_Name_Asc(); + }); } public List<LabelType> getLabelTypeListWithRoles() { - final LabelTypeCB cb = new LabelTypeCB(); - cb.query().setDeletedBy_IsNull(); - cb.query().addOrderBy_SortOrder_Asc(); - cb.query().addOrderBy_Name_Asc(); final ListResultBean<LabelType> labelTypeList = labelTypeBhv - .selectList(cb); - - labelTypeBhv.loadLabelTypeToRoleTypeMappingList(labelTypeList, - new ConditionBeanSetupper<LabelTypeToRoleTypeMappingCB>() { - @Override - public void setup(final LabelTypeToRoleTypeMappingCB cb) { - cb.setupSelect_RoleType(); - cb.query().queryRoleType().addOrderBy_Value_Asc(); - } + .selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + cb.query().addOrderBy_SortOrder_Asc(); + cb.query().addOrderBy_Name_Asc(); }); + labelTypeBhv.loadLabelTypeToRoleTypeMapping(labelTypeList, cb -> { + cb.setupSelect_RoleType(); + cb.query().queryRoleType().addOrderBy_Value_Asc(); + }); + return labelTypeList; } @@ -132,10 +125,10 @@ public class LabelTypeService extends BsLabelTypeService implements } else { // Update if (roleTypeIds != null) { - final LabelTypeToRoleTypeMappingCB lttrtmCb = new LabelTypeToRoleTypeMappingCB(); - lttrtmCb.query().setLabelTypeId_Equal(labelTypeId); final List<LabelTypeToRoleTypeMapping> list = labelTypeToRoleTypeMappingBhv - .selectList(lttrtmCb); + .selectList(lttrtmCb -> { + lttrtmCb.query().setLabelTypeId_Equal(labelTypeId); + }); final List<LabelTypeToRoleTypeMapping> newList = new ArrayList<LabelTypeToRoleTypeMapping>(); final List<LabelTypeToRoleTypeMapping> matchedList = new ArrayList<LabelTypeToRoleTypeMapping>(); for (final String id : roleTypeIds) { @@ -173,12 +166,13 @@ public class LabelTypeService extends BsLabelTypeService implements public LabelType getLabelType(final Map<String, String> keys) { final LabelType labelType = super.getLabelType(keys); if (labelType != null) { - final LabelTypeToRoleTypeMappingCB wctrtmCb = new LabelTypeToRoleTypeMappingCB(); - wctrtmCb.query().setLabelTypeId_Equal(labelType.getId()); - wctrtmCb.query().queryRoleType().setDeletedBy_IsNull(); - wctrtmCb.query().queryLabelType().setDeletedBy_IsNull(); final List<LabelTypeToRoleTypeMapping> wctrtmList = labelTypeToRoleTypeMappingBhv - .selectList(wctrtmCb); + .selectList(wctrtmCb -> { + wctrtmCb.query() + .setLabelTypeId_Equal(labelType.getId()); + wctrtmCb.query().queryRoleType().setDeletedBy_IsNull(); + wctrtmCb.query().queryLabelType().setDeletedBy_IsNull(); + }); if (!wctrtmList.isEmpty()) { final List<String> roleTypeIds = new ArrayList<String>( wctrtmList.size()); diff --git a/src/main/java/jp/sf/fess/service/OverlappingHostService.java b/src/main/java/org/codelibs/fess/service/OverlappingHostService.java similarity index 78% rename from src/main/java/jp/sf/fess/service/OverlappingHostService.java rename to src/main/java/org/codelibs/fess/service/OverlappingHostService.java index 5234a73f7..7bbe688aa 100644 --- a/src/main/java/jp/sf/fess/service/OverlappingHostService.java +++ b/src/main/java/org/codelibs/fess/service/OverlappingHostService.java @@ -14,16 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.List; import java.util.Map; -import jp.sf.fess.crud.service.BsOverlappingHostService; -import jp.sf.fess.db.cbean.OverlappingHostCB; -import jp.sf.fess.db.exentity.OverlappingHost; -import jp.sf.fess.pager.OverlappingHostPager; +import org.codelibs.fess.crud.service.BsOverlappingHostService; +import org.codelibs.fess.db.cbean.OverlappingHostCB; +import org.codelibs.fess.db.exentity.OverlappingHost; +import org.codelibs.fess.pager.OverlappingHostPager; public class OverlappingHostService extends BsOverlappingHostService implements Serializable { @@ -32,14 +32,12 @@ public class OverlappingHostService extends BsOverlappingHostService implements public List<OverlappingHost> getOverlappingHostList() { - final OverlappingHostCB cb = new OverlappingHostCB(); - - cb.query().setDeletedBy_IsNull(); - cb.query().addOrderBy_SortOrder_Asc(); - cb.query().addOrderBy_RegularName_Asc(); - cb.query().addOrderBy_OverlappingName_Asc(); - - return overlappingHostBhv.selectList(cb); + return overlappingHostBhv.selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + cb.query().addOrderBy_SortOrder_Asc(); + cb.query().addOrderBy_RegularName_Asc(); + cb.query().addOrderBy_OverlappingName_Asc(); + }); } @Override diff --git a/src/main/java/jp/sf/fess/service/PathMappingService.java b/src/main/java/org/codelibs/fess/service/PathMappingService.java similarity index 78% rename from src/main/java/jp/sf/fess/service/PathMappingService.java rename to src/main/java/org/codelibs/fess/service/PathMappingService.java index e771b37b4..9580cfa10 100644 --- a/src/main/java/jp/sf/fess/service/PathMappingService.java +++ b/src/main/java/org/codelibs/fess/service/PathMappingService.java @@ -14,18 +14,18 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.Collection; import java.util.List; import java.util.Map; -import jp.sf.fess.crud.service.BsPathMappingService; -import jp.sf.fess.db.allcommon.CDef; -import jp.sf.fess.db.cbean.PathMappingCB; -import jp.sf.fess.db.exentity.PathMapping; -import jp.sf.fess.pager.PathMappingPager; +import org.codelibs.fess.crud.service.BsPathMappingService; +import org.codelibs.fess.db.allcommon.CDef; +import org.codelibs.fess.db.cbean.PathMappingCB; +import org.codelibs.fess.db.exentity.PathMapping; +import org.codelibs.fess.pager.PathMappingPager; public class PathMappingService extends BsPathMappingService implements Serializable { @@ -35,13 +35,11 @@ public class PathMappingService extends BsPathMappingService implements public List<PathMapping> getPathMappingList( final Collection<CDef.ProcessType> cdefList) { - final PathMappingCB cb = new PathMappingCB(); - - cb.query().setDeletedBy_IsNull(); - cb.query().addOrderBy_SortOrder_Asc(); - cb.query().setProcessType_InScope_AsProcessType(cdefList); - - return pathMappingBhv.selectList(cb); + return pathMappingBhv.selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + cb.query().addOrderBy_SortOrder_Asc(); + cb.query().setProcessType_InScope_AsProcessType(cdefList); + }); } @Override diff --git a/src/main/java/jp/sf/fess/service/RequestHeaderService.java b/src/main/java/org/codelibs/fess/service/RequestHeaderService.java similarity index 82% rename from src/main/java/jp/sf/fess/service/RequestHeaderService.java rename to src/main/java/org/codelibs/fess/service/RequestHeaderService.java index 9e810e7c9..38fe8a233 100644 --- a/src/main/java/jp/sf/fess/service/RequestHeaderService.java +++ b/src/main/java/org/codelibs/fess/service/RequestHeaderService.java @@ -14,16 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.List; import java.util.Map; -import jp.sf.fess.crud.service.BsRequestHeaderService; -import jp.sf.fess.db.cbean.RequestHeaderCB; -import jp.sf.fess.db.exentity.RequestHeader; -import jp.sf.fess.pager.RequestHeaderPager; +import org.codelibs.fess.crud.service.BsRequestHeaderService; +import org.codelibs.fess.db.cbean.RequestHeaderCB; +import org.codelibs.fess.db.exentity.RequestHeader; +import org.codelibs.fess.pager.RequestHeaderPager; public class RequestHeaderService extends BsRequestHeaderService implements Serializable { @@ -73,10 +73,10 @@ public class RequestHeaderService extends BsRequestHeaderService implements public List<RequestHeader> getRequestHeaderList( final Long webCrawlingConfigId) { - final RequestHeaderCB cb = new RequestHeaderCB(); - cb.query().setWebCrawlingConfigId_Equal(webCrawlingConfigId); - cb.query().setDeletedBy_IsNull(); - return requestHeaderBhv.selectList(cb); + return requestHeaderBhv.selectList(cb -> { + cb.query().setWebCrawlingConfigId_Equal(webCrawlingConfigId); + cb.query().setDeletedBy_IsNull(); + }); } } diff --git a/src/main/java/jp/sf/fess/service/RoleTypeService.java b/src/main/java/org/codelibs/fess/service/RoleTypeService.java similarity index 80% rename from src/main/java/jp/sf/fess/service/RoleTypeService.java rename to src/main/java/org/codelibs/fess/service/RoleTypeService.java index ece2cc65d..fb9a07bad 100644 --- a/src/main/java/jp/sf/fess/service/RoleTypeService.java +++ b/src/main/java/org/codelibs/fess/service/RoleTypeService.java @@ -14,16 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.List; import java.util.Map; -import jp.sf.fess.crud.service.BsRoleTypeService; -import jp.sf.fess.db.cbean.RoleTypeCB; -import jp.sf.fess.db.exentity.RoleType; -import jp.sf.fess.pager.RoleTypePager; +import org.codelibs.fess.crud.service.BsRoleTypeService; +import org.codelibs.fess.db.cbean.RoleTypeCB; +import org.codelibs.fess.db.exentity.RoleType; +import org.codelibs.fess.pager.RoleTypePager; public class RoleTypeService extends BsRoleTypeService implements Serializable { @@ -69,11 +69,11 @@ public class RoleTypeService extends BsRoleTypeService implements Serializable { } public List<RoleType> getRoleTypeList() { - final RoleTypeCB cb = new RoleTypeCB(); - cb.query().setDeletedBy_IsNull(); - cb.query().addOrderBy_SortOrder_Asc(); - cb.query().addOrderBy_Name_Asc(); - return roleTypeBhv.selectList(cb); + return roleTypeBhv.selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + cb.query().addOrderBy_SortOrder_Asc(); + cb.query().addOrderBy_Name_Asc(); + }); } } diff --git a/src/main/java/jp/sf/fess/service/ScheduledJobService.java b/src/main/java/org/codelibs/fess/service/ScheduledJobService.java similarity index 75% rename from src/main/java/jp/sf/fess/service/ScheduledJobService.java rename to src/main/java/org/codelibs/fess/service/ScheduledJobService.java index 35bbe6d3b..871bcc364 100644 --- a/src/main/java/jp/sf/fess/service/ScheduledJobService.java +++ b/src/main/java/org/codelibs/fess/service/ScheduledJobService.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.List; @@ -22,12 +22,12 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.service.BsScheduledJobService; -import jp.sf.fess.db.cbean.ScheduledJobCB; -import jp.sf.fess.db.exentity.ScheduledJob; -import jp.sf.fess.job.JobScheduler; -import jp.sf.fess.pager.ScheduledJobPager; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.service.BsScheduledJobService; +import org.codelibs.fess.db.cbean.ScheduledJobCB; +import org.codelibs.fess.db.exentity.ScheduledJob; +import org.codelibs.fess.job.JobScheduler; +import org.codelibs.fess.pager.ScheduledJobPager; public class ScheduledJobService extends BsScheduledJobService implements Serializable { @@ -78,11 +78,11 @@ public class ScheduledJobService extends BsScheduledJobService implements } public List<ScheduledJob> getScheduledJobList() { - final ScheduledJobCB cb = new ScheduledJobCB(); - cb.query().setDeletedBy_IsNull(); - cb.query().addOrderBy_SortOrder_Asc(); - cb.query().addOrderBy_Name_Asc(); - return scheduledJobBhv.selectList(cb); + return scheduledJobBhv.selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + cb.query().addOrderBy_SortOrder_Asc(); + cb.query().addOrderBy_Name_Asc(); + }); } @Override @@ -99,12 +99,12 @@ public class ScheduledJobService extends BsScheduledJobService implements } public List<ScheduledJob> getCrawloerJobList() { - final ScheduledJobCB cb = new ScheduledJobCB(); - cb.query().setDeletedBy_IsNull(); - cb.query().setCrawler_Equal(Constants.T); - cb.query().addOrderBy_SortOrder_Asc(); - cb.query().addOrderBy_Name_Asc(); - return scheduledJobBhv.selectList(cb); + return scheduledJobBhv.selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + cb.query().setCrawler_Equal(Constants.T); + cb.query().addOrderBy_SortOrder_Asc(); + cb.query().addOrderBy_Name_Asc(); + }); } } diff --git a/src/main/java/jp/sf/fess/service/SearchFieldLogService.java b/src/main/java/org/codelibs/fess/service/SearchFieldLogService.java similarity index 80% rename from src/main/java/jp/sf/fess/service/SearchFieldLogService.java rename to src/main/java/org/codelibs/fess/service/SearchFieldLogService.java index d92c6b2ea..e1b730f85 100644 --- a/src/main/java/jp/sf/fess/service/SearchFieldLogService.java +++ b/src/main/java/org/codelibs/fess/service/SearchFieldLogService.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.ArrayList; @@ -22,12 +22,10 @@ import java.util.List; import javax.annotation.Resource; -import jp.sf.fess.db.bsbhv.BsSearchFieldLogBhv; -import jp.sf.fess.db.exbhv.SearchFieldLogBhv; -import jp.sf.fess.db.exbhv.pmbean.GroupedFieldNamePmb; -import jp.sf.fess.db.exentity.customize.GroupedFieldName; - -import org.seasar.dbflute.cbean.ListResultBean; +import org.codelibs.fess.db.exbhv.SearchFieldLogBhv; +import org.codelibs.fess.db.exbhv.pmbean.GroupedFieldNamePmb; +import org.codelibs.fess.db.exentity.customize.GroupedFieldName; +import org.dbflute.cbean.result.ListResultBean; import org.seasar.framework.container.annotation.tiger.InitMethod; public class SearchFieldLogService implements Serializable { @@ -46,9 +44,8 @@ public class SearchFieldLogService implements Serializable { public void updateFieldLabels() { final GroupedFieldNamePmb pmb = new GroupedFieldNamePmb(); - final String path = BsSearchFieldLogBhv.PATH_selectGroupedFieldName; final ListResultBean<GroupedFieldName> list = searchFieldLogBhv - .outsideSql().selectList(path, pmb, GroupedFieldName.class); + .outsideSql().selectList(pmb); final List<String> groupedFieldNameList = new ArrayList<String>(); for (final GroupedFieldName e : list) { final String name = e.getName(); diff --git a/src/main/java/jp/sf/fess/service/SearchLogService.java b/src/main/java/org/codelibs/fess/service/SearchLogService.java similarity index 54% rename from src/main/java/jp/sf/fess/service/SearchLogService.java rename to src/main/java/org/codelibs/fess/service/SearchLogService.java index 3f6663b35..63a8cd1dd 100644 --- a/src/main/java/jp/sf/fess/service/SearchLogService.java +++ b/src/main/java/org/codelibs/fess/service/SearchLogService.java @@ -14,14 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.IOException; import java.io.Reader; import java.io.Serializable; import java.io.Writer; import java.sql.Timestamp; -import java.text.ParseException; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.time.format.DateTimeParseException; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; @@ -30,16 +32,6 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.service.BsSearchLogService; -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.cbean.SearchFieldLogCB; -import jp.sf.fess.db.cbean.SearchLogCB; -import jp.sf.fess.db.exbhv.ClickLogBhv; -import jp.sf.fess.db.exbhv.SearchFieldLogBhv; -import jp.sf.fess.db.exentity.SearchFieldLog; -import jp.sf.fess.db.exentity.SearchLog; -import jp.sf.fess.pager.SearchLogPager; import jp.sf.orangesignal.csv.CsvConfig; import jp.sf.orangesignal.csv.CsvReader; import jp.sf.orangesignal.csv.CsvWriter; @@ -49,11 +41,19 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.CoreLibConstants; import org.codelibs.core.util.StringUtil; -import org.seasar.dbflute.bhv.DeleteOption; -import org.seasar.dbflute.cbean.EntityRowHandler; -import org.seasar.dbflute.cbean.ListResultBean; -import org.seasar.dbflute.cbean.coption.LikeSearchOption; -import org.seasar.framework.container.SingletonS2Container; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.service.BsSearchLogService; +import org.codelibs.fess.db.allcommon.CDef.AccessType; +import org.codelibs.fess.db.cbean.ClickLogCB; +import org.codelibs.fess.db.cbean.SearchLogCB; +import org.codelibs.fess.db.exbhv.ClickLogBhv; +import org.codelibs.fess.db.exbhv.SearchFieldLogBhv; +import org.codelibs.fess.db.exentity.SearchFieldLog; +import org.codelibs.fess.db.exentity.SearchLog; +import org.codelibs.fess.pager.SearchLogPager; +import org.codelibs.fess.util.ComponentUtil; +import org.dbflute.bhv.readable.EntityRowHandler; +import org.dbflute.cbean.result.ListResultBean; import com.ibm.icu.text.SimpleDateFormat; @@ -119,9 +119,9 @@ public class SearchLogService extends BsSearchLogService implements public SearchLog getSearchLog(final Map<String, String> keys) { final SearchLog searchLog = super.getSearchLog(keys); if (searchLog != null) { - final ClickLogCB cb = new ClickLogCB(); - cb.query().setSearchId_Equal(searchLog.getId()); - searchLog.setClickLogList(clickLogBhv.selectList(cb)); + searchLog.setClickLogList(clickLogBhv.selectList(cb -> { + cb.query().setSearchId_Equal(searchLog.getId()); + })); } return searchLog; } @@ -154,24 +154,166 @@ public class SearchLogService extends BsSearchLogService implements @Override public void delete(final SearchLog searchLog) { clickLogBhv.batchDelete(searchLog.getClickLogList()); - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.query().setSearchId_Equal(searchLog.getId()); - searchFieldLogBhv.varyingQueryDelete(cb, - new DeleteOption<SearchFieldLogCB>().allowNonQueryDelete()); + searchFieldLogBhv.varyingQueryDelete(cb -> { + cb.query().setSearchId_Equal(searchLog.getId()); + }, op -> op.allowNonQueryDelete()); super.delete(searchLog); } public void deleteAll(final SearchLogPager searchLogPager) { - final SearchLogCB cb1 = new SearchLogCB(); - final SearchFieldLogCB cb2 = new SearchFieldLogCB(); - final ClickLogCB cb3 = new ClickLogCB(); - buildSearchCondition(searchLogPager, cb1, cb3); - clickLogBhv.varyingQueryDelete(cb3, - new DeleteOption<ClickLogCB>().allowNonQueryDelete()); - searchFieldLogBhv.varyingQueryDelete(cb2, - new DeleteOption<SearchFieldLogCB>().allowNonQueryDelete()); - searchLogBhv.varyingQueryDelete(cb1, - new DeleteOption<SearchLogCB>().allowNonQueryDelete()); + clickLogBhv.varyingQueryDelete( + cb2 -> { + if (StringUtil.isNotBlank(searchLogPager.searchWord)) { + cb2.query() + .querySearchLog() + .setSearchWord_LikeSearch( + searchLogPager.searchWord, + op -> op.likeContain()); + } + + if (StringUtil.isNotBlank(searchLogPager.startDate)) { + final StringBuilder buf = new StringBuilder(20); + buf.append(searchLogPager.startDate); + buf.append('+'); + if (StringUtil.isNotBlank(searchLogPager.startHour)) { + buf.append(searchLogPager.startHour); + } else { + buf.append("00"); + } + buf.append(':'); + if (StringUtil.isNotBlank(searchLogPager.startMin)) { + buf.append(searchLogPager.startMin); + } else { + buf.append("00"); + } + + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern("yyyy-MM-dd+HH:mm"); + try { + final LocalDateTime startDate = LocalDateTime + .parse(buf.toString(), formatter); + cb2.query().querySearchLog() + .setRequestedTime_GreaterEqual(startDate); + } catch (final DateTimeParseException e) { + searchLogPager.startDate = null; + searchLogPager.startHour = null; + searchLogPager.startMin = null; + } + } + + if (StringUtil.isNotBlank(searchLogPager.endDate)) { + final StringBuilder buf = new StringBuilder(20); + buf.append(searchLogPager.endDate); + buf.append('+'); + if (StringUtil.isNotBlank(searchLogPager.endHour)) { + buf.append(searchLogPager.endHour); + } else { + buf.append("00"); + } + buf.append(':'); + if (StringUtil.isNotBlank(searchLogPager.endMin)) { + buf.append(searchLogPager.endMin); + } else { + buf.append("00"); + } + + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern("yyyy-MM-dd+HH:mm"); + try { + final LocalDateTime endDate = LocalDateTime.parse( + buf.toString(), formatter); + cb2.query().querySearchLog() + .setRequestedTime_LessThan(endDate); + } catch (final DateTimeParseException e) { + searchLogPager.endDate = null; + searchLogPager.endHour = null; + searchLogPager.endMin = null; + } + } + + if (StringUtil.isNotBlank(searchLogPager.startPage)) { + cb2.query().querySearchLog().setQueryOffset_Equal(0); + } + }, op -> op.allowNonQueryDelete()); + searchFieldLogBhv.varyingQueryDelete(cb2 -> { + }, op -> op.allowNonQueryDelete()); + searchLogBhv.varyingQueryDelete( + cb1 -> { + if (StringUtil.isNotBlank(searchLogPager.searchWord)) { + cb1.query().setSearchWord_LikeSearch( + searchLogPager.searchWord, + op -> op.likeContain()); + } + + if (StringUtil.isNotBlank(searchLogPager.userCode)) { + cb1.setupSelect_UserInfo(); + cb1.query().queryUserInfo() + .setCode_Equal(searchLogPager.userCode); + } + + if (StringUtil.isNotBlank(searchLogPager.startDate)) { + final StringBuilder buf = new StringBuilder(20); + buf.append(searchLogPager.startDate); + buf.append('+'); + if (StringUtil.isNotBlank(searchLogPager.startHour)) { + buf.append(searchLogPager.startHour); + } else { + buf.append("00"); + } + buf.append(':'); + if (StringUtil.isNotBlank(searchLogPager.startMin)) { + buf.append(searchLogPager.startMin); + } else { + buf.append("00"); + } + + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern("yyyy-MM-dd+HH:mm"); + try { + final LocalDateTime startDate = LocalDateTime + .parse(buf.toString(), formatter); + cb1.query() + .setRequestedTime_GreaterEqual(startDate); + } catch (final DateTimeParseException e) { + searchLogPager.startDate = null; + searchLogPager.startHour = null; + searchLogPager.startMin = null; + } + } + + if (StringUtil.isNotBlank(searchLogPager.endDate)) { + final StringBuilder buf = new StringBuilder(20); + buf.append(searchLogPager.endDate); + buf.append('+'); + if (StringUtil.isNotBlank(searchLogPager.endHour)) { + buf.append(searchLogPager.endHour); + } else { + buf.append("00"); + } + buf.append(':'); + if (StringUtil.isNotBlank(searchLogPager.endMin)) { + buf.append(searchLogPager.endMin); + } else { + buf.append("00"); + } + + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern("yyyy-MM-dd+HH:mm"); + try { + final LocalDateTime endDate = LocalDateTime.parse( + buf.toString(), formatter); + cb1.query().setRequestedTime_LessThan(endDate); + } catch (final DateTimeParseException e) { + searchLogPager.endDate = null; + searchLogPager.endHour = null; + searchLogPager.endMin = null; + } + } + + if (StringUtil.isNotBlank(searchLogPager.startPage)) { + cb1.query().setQueryOffset_Equal(0); + } + }, op -> op.allowNonQueryDelete()); } public void exportCsv(final Writer writer) { @@ -180,8 +322,8 @@ public class SearchLogService extends BsSearchLogService implements public void importCsv(final Reader reader) { final CsvReader csvReader = new CsvReader(reader, new CsvConfig()); - final SimpleDateFormat sdf = new SimpleDateFormat( - CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern(CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); try { List<String> list; csvReader.readValues(); // ignore header @@ -191,8 +333,8 @@ public class SearchLogService extends BsSearchLogService implements entity.setSearchWord(list.get(0)); entity.setSearchQuery(list.get(1)); entity.setSolrQuery(list.get(2)); - entity.setRequestedTime(new Timestamp(sdf - .parse(list.get(3)).getTime())); + entity.setRequestedTime(LocalDateTime.parse(list.get(3), + formatter)); entity.setResponseTime(Integer.parseInt(list.get(4))); entity.setHitCount(Long.parseLong(list.get(5))); entity.setQueryOffset(Integer.parseInt(list.get(6))); @@ -201,7 +343,8 @@ public class SearchLogService extends BsSearchLogService implements entity.setReferer(list.get(9)); entity.setClientIp(list.get(10)); entity.setUserSessionId(list.get(11)); - entity.setAccessType(list.get(12)); + entity.setAccessTypeAsAccessType(AccessType.valueOf(list + .get(12))); if (list.size() >= 14) { final String jsonStr = list.get(13); @SuppressWarnings("rawtypes") @@ -229,10 +372,6 @@ public class SearchLogService extends BsSearchLogService implements cfg.setEscapeDisabled(false); cfg.setQuoteDisabled(false); final CsvWriter csvWriter = new CsvWriter(writer, cfg); - final SearchLogCB cb = new SearchLogCB(); - if (searchLogPager != null) { - buildSearchCondition(searchLogPager, cb); - } try { final List<String> list = new ArrayList<String>(); list.add("SearchWord"); @@ -252,15 +391,19 @@ public class SearchLogService extends BsSearchLogService implements csvWriter.writeValues(list); final SimpleDateFormat sdf = new SimpleDateFormat( CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND); - searchLogBhv.selectCursor(cb, new EntityRowHandler<SearchLog>() { + searchLogBhv.selectCursor(cb -> { + if (searchLogPager != null) { + buildSearchCondition(searchLogPager, cb); + } + }, new EntityRowHandler<SearchLog>() { @Override public void handle(final SearchLog entity) { - - final SearchFieldLogCB cb = new SearchFieldLogCB(); - cb.query().setSearchId_Equal(entity.getId()); - final ListResultBean<SearchFieldLog> fieldLogList = SingletonS2Container + final ListResultBean<SearchFieldLog> fieldLogList = ComponentUtil .getComponent(SearchFieldLogBhv.class).selectList( - cb); + cb2 -> { + cb2.query().setSearchId_Equal( + entity.getId()); + }); String query = StringUtil.EMPTY; String solrQuery = StringUtil.EMPTY; final List<Map<String, String>> jsonObjList = new ArrayList<Map<String, String>>( @@ -331,12 +474,12 @@ public class SearchLogService extends BsSearchLogService implements final SearchLogCB cb1, final ClickLogCB cb2) { if (StringUtil.isNotBlank(searchLogPager.searchWord)) { cb1.query().setSearchWord_LikeSearch(searchLogPager.searchWord, - new LikeSearchOption().likeContain()); + op -> op.likeContain()); if (cb2 != null) { cb2.query() .querySearchLog() .setSearchWord_LikeSearch(searchLogPager.searchWord, - new LikeSearchOption().likeContain()); + op -> op.likeContain()); } } @@ -361,19 +504,17 @@ public class SearchLogService extends BsSearchLogService implements buf.append("00"); } - final SimpleDateFormat sdf = new SimpleDateFormat( - "yyyy-MM-dd+HH:mm"); + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern("yyyy-MM-dd+HH:mm"); try { - final Date startDate = sdf.parse(buf.toString()); - cb1.query().setRequestedTime_GreaterEqual( - new Timestamp(startDate.getTime())); + final LocalDateTime startDate = LocalDateTime.parse( + buf.toString(), formatter); + cb1.query().setRequestedTime_GreaterEqual(startDate); if (cb2 != null) { - cb2.query() - .querySearchLog() - .setRequestedTime_GreaterEqual( - new Timestamp(startDate.getTime())); + cb2.query().querySearchLog() + .setRequestedTime_GreaterEqual(startDate); } - } catch (final ParseException e) { + } catch (final DateTimeParseException e) { searchLogPager.startDate = null; searchLogPager.startHour = null; searchLogPager.startMin = null; @@ -396,19 +537,17 @@ public class SearchLogService extends BsSearchLogService implements buf.append("00"); } - final SimpleDateFormat sdf = new SimpleDateFormat( - "yyyy-MM-dd+HH:mm"); + final DateTimeFormatter formatter = DateTimeFormatter + .ofPattern("yyyy-MM-dd+HH:mm"); try { - final Date endDate = sdf.parse(buf.toString()); - cb1.query().setRequestedTime_LessThan( - new Timestamp(endDate.getTime())); + final LocalDateTime endDate = LocalDateTime.parse( + buf.toString(), formatter); + cb1.query().setRequestedTime_LessThan(endDate); if (cb2 != null) { - cb2.query() - .querySearchLog() - .setRequestedTime_LessThan( - new Timestamp(endDate.getTime())); + cb2.query().querySearchLog() + .setRequestedTime_LessThan(endDate); } - } catch (final ParseException e) { + } catch (final DateTimeParseException e) { searchLogPager.endDate = null; searchLogPager.endHour = null; searchLogPager.endMin = null; @@ -424,48 +563,47 @@ public class SearchLogService extends BsSearchLogService implements } public void deleteBefore(final int days) { - final Timestamp targetTime = new Timestamp(System.currentTimeMillis() - - days * 24L * 60L * 60L * 1000L); - final ClickLogCB cb2 = new ClickLogCB(); - cb2.query().querySearchLog().setRequestedTime_LessThan(targetTime); - clickLogBhv.varyingQueryDelete(cb2, - new DeleteOption<ClickLogCB>().allowNonQueryDelete()); - final SearchFieldLogCB cb3 = new SearchFieldLogCB(); - cb3.query().querySearchLog().setRequestedTime_LessThan(targetTime); - searchFieldLogBhv.varyingQueryDelete(cb3, - new DeleteOption<SearchFieldLogCB>().allowNonQueryDelete()); - final SearchLogCB cb1 = new SearchLogCB(); - cb1.query().setRequestedTime_LessThan(targetTime); - searchLogBhv.varyingQueryDelete(cb1, - new DeleteOption<SearchLogCB>().allowNonQueryDelete()); + final LocalDateTime targetTime = LocalDateTime.now().minusDays(days); + clickLogBhv.varyingQueryDelete(cb2 -> { + cb2.query().querySearchLog().setRequestedTime_LessThan(targetTime); + }, op -> op.allowNonQueryDelete()); + searchFieldLogBhv.varyingQueryDelete(cb3 -> { + cb3.query().querySearchLog().setRequestedTime_LessThan(targetTime); + }, op -> op.allowNonQueryDelete()); + searchLogBhv.varyingQueryDelete(cb1 -> { + cb1.query().setRequestedTime_LessThan(targetTime); + }, op -> op.allowNonQueryDelete()); } public void deleteBotsLog(final String[] bots) { - final Timestamp now = new Timestamp(System.currentTimeMillis()); - for (String userAgent : bots) { - userAgent = userAgent.trim(); - final ClickLogCB cb2 = new ClickLogCB(); - cb2.query().querySearchLog().setRequestedTime_LessThan(now); - cb2.query() - .querySearchLog() - .setUserAgent_LikeSearch(userAgent, - new LikeSearchOption().likeContain()); - clickLogBhv.varyingQueryDelete(cb2, - new DeleteOption<ClickLogCB>().allowNonQueryDelete()); - final SearchFieldLogCB cb3 = new SearchFieldLogCB(); - cb3.query().querySearchLog().setRequestedTime_LessThan(now); - cb3.query() - .querySearchLog() - .setUserAgent_LikeSearch(userAgent, - new LikeSearchOption().likeContain()); - searchFieldLogBhv.varyingQueryDelete(cb3, - new DeleteOption<SearchFieldLogCB>().allowNonQueryDelete()); - final SearchLogCB cb1 = new SearchLogCB(); - cb1.query().setRequestedTime_LessThan(now); - cb1.query().setUserAgent_LikeSearch(userAgent, - new LikeSearchOption().likeContain()); - searchLogBhv.varyingQueryDelete(cb1, - new DeleteOption<SearchLogCB>().allowNonQueryDelete()); + final LocalDateTime now = ComponentUtil.getSystemHelper() + .getCurrentTime(); + for (final String value : bots) { + final String userAgent = value.trim(); + clickLogBhv.varyingQueryDelete( + cb2 -> { + cb2.query().querySearchLog() + .setRequestedTime_LessThan(now); + cb2.query() + .querySearchLog() + .setUserAgent_LikeSearch(userAgent, + op -> op.likeContain()); + }, op -> op.allowNonQueryDelete()); + searchFieldLogBhv.varyingQueryDelete( + cb3 -> { + cb3.query().querySearchLog() + .setRequestedTime_LessThan(now); + cb3.query() + .querySearchLog() + .setUserAgent_LikeSearch(userAgent, + op -> op.likeContain()); + }, op -> op.allowNonQueryDelete()); + searchLogBhv.varyingQueryDelete( + cb1 -> { + cb1.query().setRequestedTime_LessThan(now); + cb1.query().setUserAgent_LikeSearch(userAgent, + op -> op.likeContain()); + }, op -> op.allowNonQueryDelete()); } } diff --git a/src/main/java/jp/sf/fess/service/SearchService.java b/src/main/java/org/codelibs/fess/service/SearchService.java similarity index 94% rename from src/main/java/jp/sf/fess/service/SearchService.java rename to src/main/java/org/codelibs/fess/service/SearchService.java index 397a43cc0..cd21f45c0 100644 --- a/src/main/java/jp/sf/fess/service/SearchService.java +++ b/src/main/java/org/codelibs/fess/service/SearchService.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.Collections; @@ -25,28 +25,27 @@ import java.util.Set; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.ResultOffsetExceededException; -import jp.sf.fess.entity.FacetInfo; -import jp.sf.fess.entity.FieldAnalysisResponse; -import jp.sf.fess.entity.GeoInfo; -import jp.sf.fess.entity.MoreLikeThisInfo; -import jp.sf.fess.entity.PingResponse; -import jp.sf.fess.entity.SearchQuery; -import jp.sf.fess.entity.SearchQuery.SortField; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.QueryHelper; -import jp.sf.fess.helper.RoleQueryHelper; -import jp.sf.fess.solr.FessSolrQueryException; -import jp.sf.fess.util.ComponentUtil; -import jp.sf.fess.util.QueryResponseList; - import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrRequest; import org.apache.solr.client.solrj.request.FieldAnalysisRequest; import org.apache.solr.client.solrj.response.QueryResponse; import org.apache.solr.common.util.NamedList; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.ResultOffsetExceededException; +import org.codelibs.fess.entity.FacetInfo; +import org.codelibs.fess.entity.FieldAnalysisResponse; +import org.codelibs.fess.entity.GeoInfo; +import org.codelibs.fess.entity.MoreLikeThisInfo; +import org.codelibs.fess.entity.PingResponse; +import org.codelibs.fess.entity.SearchQuery; +import org.codelibs.fess.entity.SearchQuery.SortField; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.QueryHelper; +import org.codelibs.fess.helper.RoleQueryHelper; +import org.codelibs.fess.solr.FessSolrQueryException; +import org.codelibs.fess.util.ComponentUtil; +import org.codelibs.fess.util.QueryResponseList; import org.codelibs.solr.lib.SolrGroup; import org.codelibs.solr.lib.SolrGroupManager; import org.codelibs.solr.lib.policy.QueryType; diff --git a/src/main/java/jp/sf/fess/service/StatsService.java b/src/main/java/org/codelibs/fess/service/StatsService.java similarity index 70% rename from src/main/java/jp/sf/fess/service/StatsService.java rename to src/main/java/org/codelibs/fess/service/StatsService.java index 941435118..2db559409 100644 --- a/src/main/java/jp/sf/fess/service/StatsService.java +++ b/src/main/java/org/codelibs/fess/service/StatsService.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.ArrayList; @@ -24,34 +24,33 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.db.bsbhv.BsClickLogBhv; -import jp.sf.fess.db.bsbhv.BsFavoriteLogBhv; -import jp.sf.fess.db.bsbhv.BsSearchLogBhv; -import jp.sf.fess.db.exbhv.ClickLogBhv; -import jp.sf.fess.db.exbhv.FavoriteLogBhv; -import jp.sf.fess.db.exbhv.SearchLogBhv; -import jp.sf.fess.db.exbhv.pmbean.ClickUrlRankingPmb; -import jp.sf.fess.db.exbhv.pmbean.ClientIpRankingPmb; -import jp.sf.fess.db.exbhv.pmbean.FavoriteUrlRankingPmb; -import jp.sf.fess.db.exbhv.pmbean.RefererRankingPmb; -import jp.sf.fess.db.exbhv.pmbean.SearchFieldRankingPmb; -import jp.sf.fess.db.exbhv.pmbean.SearchQueryRankingPmb; -import jp.sf.fess.db.exbhv.pmbean.SearchWordRankingPmb; -import jp.sf.fess.db.exbhv.pmbean.SolrQueryRankingPmb; -import jp.sf.fess.db.exbhv.pmbean.UserAgentRankingPmb; -import jp.sf.fess.db.exentity.customize.ClickUrlRanking; -import jp.sf.fess.db.exentity.customize.ClientIpRanking; -import jp.sf.fess.db.exentity.customize.FavoriteUrlRanking; -import jp.sf.fess.db.exentity.customize.RefererRanking; -import jp.sf.fess.db.exentity.customize.SearchFieldRanking; -import jp.sf.fess.db.exentity.customize.SearchQueryRanking; -import jp.sf.fess.db.exentity.customize.SearchWordRanking; -import jp.sf.fess.db.exentity.customize.SolrQueryRanking; -import jp.sf.fess.db.exentity.customize.UserAgentRanking; -import jp.sf.fess.pager.StatsPager; - -import org.seasar.dbflute.cbean.PagingResultBean; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.db.bsbhv.BsClickLogBhv; +import org.codelibs.fess.db.bsbhv.BsFavoriteLogBhv; +import org.codelibs.fess.db.bsbhv.BsSearchLogBhv; +import org.codelibs.fess.db.exbhv.ClickLogBhv; +import org.codelibs.fess.db.exbhv.FavoriteLogBhv; +import org.codelibs.fess.db.exbhv.SearchLogBhv; +import org.codelibs.fess.db.exbhv.pmbean.ClickUrlRankingPmb; +import org.codelibs.fess.db.exbhv.pmbean.ClientIpRankingPmb; +import org.codelibs.fess.db.exbhv.pmbean.FavoriteUrlRankingPmb; +import org.codelibs.fess.db.exbhv.pmbean.RefererRankingPmb; +import org.codelibs.fess.db.exbhv.pmbean.SearchFieldRankingPmb; +import org.codelibs.fess.db.exbhv.pmbean.SearchQueryRankingPmb; +import org.codelibs.fess.db.exbhv.pmbean.SearchWordRankingPmb; +import org.codelibs.fess.db.exbhv.pmbean.SolrQueryRankingPmb; +import org.codelibs.fess.db.exbhv.pmbean.UserAgentRankingPmb; +import org.codelibs.fess.db.exentity.customize.ClickUrlRanking; +import org.codelibs.fess.db.exentity.customize.ClientIpRanking; +import org.codelibs.fess.db.exentity.customize.FavoriteUrlRanking; +import org.codelibs.fess.db.exentity.customize.RefererRanking; +import org.codelibs.fess.db.exentity.customize.SearchFieldRanking; +import org.codelibs.fess.db.exentity.customize.SearchQueryRanking; +import org.codelibs.fess.db.exentity.customize.SearchWordRanking; +import org.codelibs.fess.db.exentity.customize.SolrQueryRanking; +import org.codelibs.fess.db.exentity.customize.UserAgentRanking; +import org.codelibs.fess.pager.StatsPager; +import org.dbflute.cbean.result.PagingResultBean; import org.seasar.framework.beans.util.Beans; public class StatsService implements Serializable { @@ -109,23 +108,21 @@ public class StatsService implements Serializable { final SearchWordRankingPmb pmb = new SearchWordRankingPmb(); - pmb.fetchFirst(statsPager.getPageSize()); - pmb.fetchPage(statsPager.getCurrentPageNumber()); + pmb.paging(statsPager.getPageSize(), statsPager.getCurrentPageNumber()); pmb.setFromRequestedTime(statsPager.getFromRequestedTime()); pmb.setToRequestedTime(statsPager.getToRequestedTime()); final String path = BsSearchLogBhv.PATH_selectSearchWordRanking; final PagingResultBean<SearchWordRanking> statsList = searchLogBhv - .outsideSql().autoPaging() - .selectPage(path, pmb, SearchWordRanking.class); + .outsideSql().selectPage(pmb); // update pager Beans.copy(statsList, statsPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - statsList.setPageRangeSize(5); - statsPager.setPageNumberList(statsList.pageRange() - .createPageNumberList()); + statsPager.setPageNumberList(statsList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); final List<Map<String, Object>> mapList = new ArrayList<Map<String, Object>>(); for (final SearchWordRanking entity : statsList) { @@ -142,23 +139,21 @@ public class StatsService implements Serializable { final SearchQueryRankingPmb pmb = new SearchQueryRankingPmb(); - pmb.fetchFirst(statsPager.getPageSize()); - pmb.fetchPage(statsPager.getCurrentPageNumber()); + pmb.paging(statsPager.getPageSize(), statsPager.getCurrentPageNumber()); pmb.setFromRequestedTime(statsPager.getFromRequestedTime()); pmb.setToRequestedTime(statsPager.getToRequestedTime()); final String path = BsSearchLogBhv.PATH_selectSearchQueryRanking; final PagingResultBean<SearchQueryRanking> statsList = searchLogBhv - .outsideSql().autoPaging() - .selectPage(path, pmb, SearchQueryRanking.class); + .outsideSql().selectPage(pmb); // update pager Beans.copy(statsList, statsPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - statsList.setPageRangeSize(5); - statsPager.setPageNumberList(statsList.pageRange() - .createPageNumberList()); + statsPager.setPageNumberList(statsList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); final List<Map<String, Object>> mapList = new ArrayList<Map<String, Object>>(); for (final SearchQueryRanking entity : statsList) { @@ -175,23 +170,21 @@ public class StatsService implements Serializable { final SolrQueryRankingPmb pmb = new SolrQueryRankingPmb(); - pmb.fetchFirst(statsPager.getPageSize()); - pmb.fetchPage(statsPager.getCurrentPageNumber()); + pmb.paging(statsPager.getPageSize(), statsPager.getCurrentPageNumber()); pmb.setFromRequestedTime(statsPager.getFromRequestedTime()); pmb.setToRequestedTime(statsPager.getToRequestedTime()); final String path = BsSearchLogBhv.PATH_selectSolrQueryRanking; final PagingResultBean<SolrQueryRanking> statsList = searchLogBhv - .outsideSql().autoPaging() - .selectPage(path, pmb, SolrQueryRanking.class); + .outsideSql().selectPage(pmb); // update pager Beans.copy(statsList, statsPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - statsList.setPageRangeSize(5); - statsPager.setPageNumberList(statsList.pageRange() - .createPageNumberList()); + statsPager.setPageNumberList(statsList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); final List<Map<String, Object>> mapList = new ArrayList<Map<String, Object>>(); for (final SolrQueryRanking entity : statsList) { @@ -208,23 +201,21 @@ public class StatsService implements Serializable { final UserAgentRankingPmb pmb = new UserAgentRankingPmb(); - pmb.fetchFirst(statsPager.getPageSize()); - pmb.fetchPage(statsPager.getCurrentPageNumber()); + pmb.paging(statsPager.getPageSize(), statsPager.getCurrentPageNumber()); pmb.setFromRequestedTime(statsPager.getFromRequestedTime()); pmb.setToRequestedTime(statsPager.getToRequestedTime()); final String path = BsSearchLogBhv.PATH_selectUserAgentRanking; final PagingResultBean<UserAgentRanking> statsList = searchLogBhv - .outsideSql().autoPaging() - .selectPage(path, pmb, UserAgentRanking.class); + .outsideSql().selectPage(pmb); // update pager Beans.copy(statsList, statsPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - statsList.setPageRangeSize(5); - statsPager.setPageNumberList(statsList.pageRange() - .createPageNumberList()); + statsPager.setPageNumberList(statsList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); final List<Map<String, Object>> mapList = new ArrayList<Map<String, Object>>(); for (final UserAgentRanking entity : statsList) { @@ -241,23 +232,21 @@ public class StatsService implements Serializable { final RefererRankingPmb pmb = new RefererRankingPmb(); - pmb.fetchFirst(statsPager.getPageSize()); - pmb.fetchPage(statsPager.getCurrentPageNumber()); + pmb.paging(statsPager.getPageSize(), statsPager.getCurrentPageNumber()); pmb.setFromRequestedTime(statsPager.getFromRequestedTime()); pmb.setToRequestedTime(statsPager.getToRequestedTime()); final String path = BsSearchLogBhv.PATH_selectRefererRanking; final PagingResultBean<RefererRanking> statsList = searchLogBhv - .outsideSql().autoPaging() - .selectPage(path, pmb, RefererRanking.class); + .outsideSql().selectPage(pmb); // update pager Beans.copy(statsList, statsPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - statsList.setPageRangeSize(5); - statsPager.setPageNumberList(statsList.pageRange() - .createPageNumberList()); + statsPager.setPageNumberList(statsList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); final List<Map<String, Object>> mapList = new ArrayList<Map<String, Object>>(); for (final RefererRanking entity : statsList) { @@ -274,23 +263,21 @@ public class StatsService implements Serializable { final ClientIpRankingPmb pmb = new ClientIpRankingPmb(); - pmb.fetchFirst(statsPager.getPageSize()); - pmb.fetchPage(statsPager.getCurrentPageNumber()); + pmb.paging(statsPager.getPageSize(), statsPager.getCurrentPageNumber()); pmb.setFromRequestedTime(statsPager.getFromRequestedTime()); pmb.setToRequestedTime(statsPager.getToRequestedTime()); final String path = BsSearchLogBhv.PATH_selectClientIpRanking; final PagingResultBean<ClientIpRanking> statsList = searchLogBhv - .outsideSql().autoPaging() - .selectPage(path, pmb, ClientIpRanking.class); + .outsideSql().selectPage(pmb); // update pager Beans.copy(statsList, statsPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - statsList.setPageRangeSize(5); - statsPager.setPageNumberList(statsList.pageRange() - .createPageNumberList()); + statsPager.setPageNumberList(statsList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); final List<Map<String, Object>> mapList = new ArrayList<Map<String, Object>>(); for (final ClientIpRanking entity : statsList) { @@ -307,23 +294,21 @@ public class StatsService implements Serializable { final ClickUrlRankingPmb pmb = new ClickUrlRankingPmb(); - pmb.fetchFirst(statsPager.getPageSize()); - pmb.fetchPage(statsPager.getCurrentPageNumber()); + pmb.paging(statsPager.getPageSize(), statsPager.getCurrentPageNumber()); pmb.setFromRequestedTime(statsPager.getFromRequestedTime()); pmb.setToRequestedTime(statsPager.getToRequestedTime()); final String path = BsClickLogBhv.PATH_selectClickUrlRanking; final PagingResultBean<ClickUrlRanking> statsList = clicklogBhv - .outsideSql().autoPaging() - .selectPage(path, pmb, ClickUrlRanking.class); + .outsideSql().selectPage(pmb); // update pager Beans.copy(statsList, statsPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - statsList.setPageRangeSize(5); - statsPager.setPageNumberList(statsList.pageRange() - .createPageNumberList()); + statsPager.setPageNumberList(statsList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); final List<Map<String, Object>> mapList = new ArrayList<Map<String, Object>>(); for (final ClickUrlRanking entity : statsList) { @@ -340,23 +325,21 @@ public class StatsService implements Serializable { final FavoriteUrlRankingPmb pmb = new FavoriteUrlRankingPmb(); - pmb.fetchFirst(statsPager.getPageSize()); - pmb.fetchPage(statsPager.getCurrentPageNumber()); + pmb.paging(statsPager.getPageSize(), statsPager.getCurrentPageNumber()); pmb.setFromCreatedTime(statsPager.getFromRequestedTime()); pmb.setToCreatedTime(statsPager.getToRequestedTime()); final String path = BsFavoriteLogBhv.PATH_selectFavoriteUrlRanking; final PagingResultBean<FavoriteUrlRanking> statsList = favoriteLogBhv - .outsideSql().autoPaging() - .selectPage(path, pmb, FavoriteUrlRanking.class); + .outsideSql().selectPage(pmb); // update pager Beans.copy(statsList, statsPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - statsList.setPageRangeSize(5); - statsPager.setPageNumberList(statsList.pageRange() - .createPageNumberList()); + statsPager.setPageNumberList(statsList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); final List<Map<String, Object>> mapList = new ArrayList<Map<String, Object>>(); for (final FavoriteUrlRanking entity : statsList) { @@ -373,8 +356,7 @@ public class StatsService implements Serializable { final SearchFieldRankingPmb pmb = new SearchFieldRankingPmb(); - pmb.fetchFirst(statsPager.getPageSize()); - pmb.fetchPage(statsPager.getCurrentPageNumber()); + pmb.paging(statsPager.getPageSize(), statsPager.getCurrentPageNumber()); pmb.setSearchFieldName(statsPager.reportType); pmb.setFromRequestedTime(statsPager.getFromRequestedTime()); @@ -382,15 +364,14 @@ public class StatsService implements Serializable { final String path = BsSearchLogBhv.PATH_selectSearchFieldRanking; final PagingResultBean<SearchFieldRanking> statsList = searchLogBhv - .outsideSql().autoPaging() - .selectPage(path, pmb, SearchFieldRanking.class); + .outsideSql().selectPage(pmb); // update pager Beans.copy(statsList, statsPager) .includes(CommonConstants.PAGER_CONVERSION_RULE).execute(); - statsList.setPageRangeSize(5); - statsPager.setPageNumberList(statsList.pageRange() - .createPageNumberList()); + statsPager.setPageNumberList(statsList.pageRange(op -> { + op.rangeSize(5); + }).createPageNumberList()); final List<Map<String, Object>> mapList = new ArrayList<Map<String, Object>>(); for (final SearchFieldRanking entity : statsList) { diff --git a/src/main/java/jp/sf/fess/service/SuggestBadWordService.java b/src/main/java/org/codelibs/fess/service/SuggestBadWordService.java similarity index 70% rename from src/main/java/jp/sf/fess/service/SuggestBadWordService.java rename to src/main/java/org/codelibs/fess/service/SuggestBadWordService.java index 68ab40813..3025fab8f 100644 --- a/src/main/java/jp/sf/fess/service/SuggestBadWordService.java +++ b/src/main/java/org/codelibs/fess/service/SuggestBadWordService.java @@ -14,21 +14,17 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.IOException; import java.io.Reader; import java.io.Serializable; import java.io.Writer; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; import java.util.Map; -import jp.sf.fess.crud.service.BsSuggestBadWordService; -import jp.sf.fess.db.cbean.SuggestBadWordCB; -import jp.sf.fess.db.exentity.SuggestBadWord; -import jp.sf.fess.pager.SuggestBadWordPager; import jp.sf.orangesignal.csv.CsvConfig; import jp.sf.orangesignal.csv.CsvReader; import jp.sf.orangesignal.csv.CsvWriter; @@ -36,7 +32,12 @@ import jp.sf.orangesignal.csv.CsvWriter; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.util.StringUtil; -import org.seasar.dbflute.cbean.EntityRowHandler; +import org.codelibs.fess.crud.service.BsSuggestBadWordService; +import org.codelibs.fess.db.cbean.SuggestBadWordCB; +import org.codelibs.fess.db.exentity.SuggestBadWord; +import org.codelibs.fess.pager.SuggestBadWordPager; +import org.codelibs.fess.util.ComponentUtil; +import org.dbflute.bhv.readable.EntityRowHandler; public class SuggestBadWordService extends BsSuggestBadWordService implements Serializable { @@ -103,26 +104,26 @@ public class SuggestBadWordService extends BsSuggestBadWordService implements isDelete = true; badWord = badWord.substring(2); } - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.query().setSuggestWord_Equal(badWord); + final String target = badWord; SuggestBadWord suggestBadWord = suggestBadWordBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setSuggestWord_Equal(target); + }).orElse(null);//TODO + final LocalDateTime now = ComponentUtil.getSystemHelper() + .getCurrentTime(); if (isDelete) { suggestBadWord.setDeletedBy("system"); - suggestBadWord.setDeletedTime(new Timestamp(System - .currentTimeMillis())); + suggestBadWord.setDeletedTime(now); suggestBadWordBhv.update(suggestBadWord); } else if (suggestBadWord == null) { suggestBadWord = new SuggestBadWord(); suggestBadWord.setSuggestWord(badWord); suggestBadWord.setCreatedBy("system"); - suggestBadWord.setCreatedTime(new Timestamp(System - .currentTimeMillis())); + suggestBadWord.setCreatedTime(now); suggestBadWordBhv.insert(suggestBadWord); } else { suggestBadWord.setUpdatedBy("system"); - suggestBadWord.setUpdatedTime(new Timestamp(System - .currentTimeMillis())); + suggestBadWord.setUpdatedTime(now); suggestBadWordBhv.update(suggestBadWord); } } catch (final Exception e) { @@ -145,31 +146,31 @@ public class SuggestBadWordService extends BsSuggestBadWordService implements list.add("BadWord"); csvWriter.writeValues(list); - final SuggestBadWordCB cb = new SuggestBadWordCB(); - cb.query().setDeletedBy_IsNull(); - suggestBadWordBhv.selectCursor(cb, - new EntityRowHandler<SuggestBadWord>() { - @Override - public void handle(final SuggestBadWord entity) { - final List<String> list = new ArrayList<String>(); - addToList(list, entity.getSuggestWord()); - try { - csvWriter.writeValues(list); - } catch (final IOException e) { - log.warn("Failed to write a sugget bad word: " - + entity, e); - } - } - - private void addToList(final List<String> list, - final Object value) { - if (value == null) { - list.add(StringUtil.EMPTY); - } else { - list.add(value.toString()); - } - } - }); + suggestBadWordBhv.selectCursor(cb -> { + cb.query().setDeletedBy_IsNull(); + }, new EntityRowHandler<SuggestBadWord>() { + @Override + public void handle(final SuggestBadWord entity) { + final List<String> list = new ArrayList<String>(); + addToList(list, entity.getSuggestWord()); + try { + csvWriter.writeValues(list); + } catch (final IOException e) { + log.warn( + "Failed to write a sugget bad word: " + entity, + e); + } + } + + private void addToList(final List<String> list, + final Object value) { + if (value == null) { + list.add(StringUtil.EMPTY); + } else { + list.add(value.toString()); + } + } + }); csvWriter.flush(); } catch (final IOException e) { diff --git a/src/main/java/jp/sf/fess/service/SuggestElevateWordService.java b/src/main/java/org/codelibs/fess/service/SuggestElevateWordService.java similarity index 69% rename from src/main/java/jp/sf/fess/service/SuggestElevateWordService.java rename to src/main/java/org/codelibs/fess/service/SuggestElevateWordService.java index de6297035..8609169a9 100644 --- a/src/main/java/jp/sf/fess/service/SuggestElevateWordService.java +++ b/src/main/java/org/codelibs/fess/service/SuggestElevateWordService.java @@ -14,22 +14,18 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.IOException; import java.io.Reader; import java.io.Serializable; import java.io.Writer; import java.math.BigDecimal; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; import java.util.Map; -import jp.sf.fess.crud.service.BsSuggestElevateWordService; -import jp.sf.fess.db.cbean.SuggestElevateWordCB; -import jp.sf.fess.db.exentity.SuggestElevateWord; -import jp.sf.fess.pager.SuggestElevateWordPager; import jp.sf.orangesignal.csv.CsvConfig; import jp.sf.orangesignal.csv.CsvReader; import jp.sf.orangesignal.csv.CsvWriter; @@ -37,7 +33,12 @@ import jp.sf.orangesignal.csv.CsvWriter; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelibs.core.util.StringUtil; -import org.seasar.dbflute.cbean.EntityRowHandler; +import org.codelibs.fess.crud.service.BsSuggestElevateWordService; +import org.codelibs.fess.db.cbean.SuggestElevateWordCB; +import org.codelibs.fess.db.exentity.SuggestElevateWord; +import org.codelibs.fess.pager.SuggestElevateWordPager; +import org.codelibs.fess.util.ComponentUtil; +import org.dbflute.bhv.readable.EntityRowHandler; public class SuggestElevateWordService extends BsSuggestElevateWordService implements Serializable { @@ -99,20 +100,22 @@ public class SuggestElevateWordService extends BsSuggestElevateWordService continue; } try { - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); final String role = getValue(list, 2); final String label = getValue(list, 3); - cb.query().setSuggestWord_Equal(suggestWord); - if (StringUtil.isNotBlank(role)) { - cb.query().setTargetRole_Equal(role); - } - if (StringUtil.isNotBlank(label)) { - cb.query().setTargetLabel_Equal(label); - } SuggestElevateWord suggestElevateWord = suggestElevateWordBhv - .selectEntity(cb); + .selectEntity(cb -> { + cb.query().setSuggestWord_Equal(suggestWord); + if (StringUtil.isNotBlank(role)) { + cb.query().setTargetRole_Equal(role); + } + if (StringUtil.isNotBlank(label)) { + cb.query().setTargetLabel_Equal(label); + } + }).orElse(null);//TODO final String reading = getValue(list, 1); final String boost = getValue(list, 4); + final LocalDateTime now = ComponentUtil.getSystemHelper() + .getCurrentTime(); if (suggestElevateWord == null) { suggestElevateWord = new SuggestElevateWord(); suggestElevateWord.setSuggestWord(suggestWord); @@ -123,14 +126,12 @@ public class SuggestElevateWordService extends BsSuggestElevateWordService .setBoost(StringUtil.isBlank(boost) ? BigDecimal.ONE : new BigDecimal(boost)); suggestElevateWord.setCreatedBy("system"); - suggestElevateWord.setCreatedTime(new Timestamp(System - .currentTimeMillis())); + suggestElevateWord.setCreatedTime(now); suggestElevateWordBhv.insert(suggestElevateWord); } else if (StringUtil.isBlank(reading) && StringUtil.isBlank(boost)) { suggestElevateWord.setDeletedBy("system"); - suggestElevateWord.setDeletedTime(new Timestamp(System - .currentTimeMillis())); + suggestElevateWord.setDeletedTime(now); suggestElevateWordBhv.update(suggestElevateWord); } else { suggestElevateWord.setReading(reading); @@ -138,8 +139,7 @@ public class SuggestElevateWordService extends BsSuggestElevateWordService .setBoost(StringUtil.isBlank(boost) ? BigDecimal.ONE : new BigDecimal(boost)); suggestElevateWord.setUpdatedBy("system"); - suggestElevateWord.setUpdatedTime(new Timestamp(System - .currentTimeMillis())); + suggestElevateWord.setUpdatedTime(now); suggestElevateWordBhv.update(suggestElevateWord); } } catch (final Exception e) { @@ -166,36 +166,34 @@ public class SuggestElevateWordService extends BsSuggestElevateWordService list.add("Boost"); csvWriter.writeValues(list); - final SuggestElevateWordCB cb = new SuggestElevateWordCB(); - cb.query().setDeletedBy_IsNull(); - suggestElevateWordBhv.selectCursor(cb, - new EntityRowHandler<SuggestElevateWord>() { - @Override - public void handle(final SuggestElevateWord entity) { - final List<String> list = new ArrayList<String>(); - addToList(list, entity.getSuggestWord()); - addToList(list, entity.getReading()); - addToList(list, entity.getTargetRole()); - addToList(list, entity.getTargetLabel()); - addToList(list, entity.getBoost()); - try { - csvWriter.writeValues(list); - } catch (final IOException e) { - log.warn( - "Failed to write a sugget elevate word: " - + entity, e); - } - } - - private void addToList(final List<String> list, - final Object value) { - if (value == null) { - list.add(StringUtil.EMPTY); - } else { - list.add(value.toString()); - } - } - }); + suggestElevateWordBhv.selectCursor(cb -> { + cb.query().setDeletedBy_IsNull(); + }, new EntityRowHandler<SuggestElevateWord>() { + @Override + public void handle(final SuggestElevateWord entity) { + final List<String> list = new ArrayList<String>(); + addToList(list, entity.getSuggestWord()); + addToList(list, entity.getReading()); + addToList(list, entity.getTargetRole()); + addToList(list, entity.getTargetLabel()); + addToList(list, entity.getBoost()); + try { + csvWriter.writeValues(list); + } catch (final IOException e) { + log.warn("Failed to write a sugget elevate word: " + + entity, e); + } + } + + private void addToList(final List<String> list, + final Object value) { + if (value == null) { + list.add(StringUtil.EMPTY); + } else { + list.add(value.toString()); + } + } + }); csvWriter.flush(); } catch (final IOException e) { diff --git a/src/main/java/jp/sf/fess/service/SynonymService.java b/src/main/java/org/codelibs/fess/service/SynonymService.java similarity index 86% rename from src/main/java/jp/sf/fess/service/SynonymService.java rename to src/main/java/org/codelibs/fess/service/SynonymService.java index 9b1b05c79..de5de0e05 100644 --- a/src/main/java/jp/sf/fess/service/SynonymService.java +++ b/src/main/java/org/codelibs/fess/service/SynonymService.java @@ -14,23 +14,22 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.dict.DictionaryExpiredException; -import jp.sf.fess.dict.DictionaryFile; -import jp.sf.fess.dict.DictionaryFile.PagingList; -import jp.sf.fess.dict.DictionaryManager; -import jp.sf.fess.dict.synonym.SynonymFile; -import jp.sf.fess.dict.synonym.SynonymItem; -import jp.sf.fess.pager.SynonymPager; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.dict.DictionaryExpiredException; +import org.codelibs.fess.dict.DictionaryFile; +import org.codelibs.fess.dict.DictionaryFile.PagingList; +import org.codelibs.fess.dict.DictionaryManager; +import org.codelibs.fess.dict.synonym.SynonymFile; +import org.codelibs.fess.dict.synonym.SynonymItem; +import org.codelibs.fess.pager.SynonymPager; import org.seasar.framework.beans.util.Beans; public class SynonymService { diff --git a/src/main/java/jp/sf/fess/service/UserDictService.java b/src/main/java/org/codelibs/fess/service/UserDictService.java similarity index 87% rename from src/main/java/jp/sf/fess/service/UserDictService.java rename to src/main/java/org/codelibs/fess/service/UserDictService.java index 6b469678e..838a54a0f 100644 --- a/src/main/java/jp/sf/fess/service/UserDictService.java +++ b/src/main/java/org/codelibs/fess/service/UserDictService.java @@ -14,23 +14,22 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.util.List; import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.crud.CommonConstants; -import jp.sf.fess.dict.DictionaryExpiredException; -import jp.sf.fess.dict.DictionaryFile; -import jp.sf.fess.dict.DictionaryFile.PagingList; -import jp.sf.fess.dict.DictionaryManager; -import jp.sf.fess.dict.userdict.UserDictFile; -import jp.sf.fess.dict.userdict.UserDictItem; -import jp.sf.fess.pager.UserDictPager; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.crud.CommonConstants; +import org.codelibs.fess.dict.DictionaryExpiredException; +import org.codelibs.fess.dict.DictionaryFile; +import org.codelibs.fess.dict.DictionaryFile.PagingList; +import org.codelibs.fess.dict.DictionaryManager; +import org.codelibs.fess.dict.userdict.UserDictFile; +import org.codelibs.fess.dict.userdict.UserDictItem; +import org.codelibs.fess.pager.UserDictPager; import org.seasar.framework.beans.util.Beans; public class UserDictService { diff --git a/src/main/java/org/codelibs/fess/service/UserInfoService.java b/src/main/java/org/codelibs/fess/service/UserInfoService.java new file mode 100644 index 000000000..a67eef728 --- /dev/null +++ b/src/main/java/org/codelibs/fess/service/UserInfoService.java @@ -0,0 +1,193 @@ +/* + * Copyright 2009-2015 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 org.codelibs.fess.service; + +import java.io.Serializable; +import java.util.Map; + +import javax.annotation.Resource; + +import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.crud.service.BsUserInfoService; +import org.codelibs.fess.db.cbean.UserInfoCB; +import org.codelibs.fess.db.exbhv.FavoriteLogBhv; +import org.codelibs.fess.db.exbhv.SearchLogBhv; +import org.codelibs.fess.db.exentity.SearchLog; +import org.codelibs.fess.db.exentity.UserInfo; +import org.codelibs.fess.pager.UserInfoPager; +import org.codelibs.fess.util.ComponentUtil; + +public class UserInfoService extends BsUserInfoService implements Serializable { + + private static final long serialVersionUID = 1L; + + @Resource + protected SearchLogBhv searchLogBhv; + + @Resource + protected FavoriteLogBhv favoriteLogBhv; + + @Override + protected void setupListCondition(final UserInfoCB cb, + final UserInfoPager userInfoPager) { + // setup condition + cb.query().addOrderBy_UpdatedTime_Desc(); + + // search + if (StringUtil.isNotBlank(userInfoPager.code)) { + cb.query().setCode_Equal(userInfoPager.code); + } + } + + @Override + protected void setupEntityCondition(final UserInfoCB cb, + final Map<String, String> keys) { + super.setupEntityCondition(cb, keys); + + // setup condition + + } + + @Override + protected void setupStoreCondition(final UserInfo userInfo) { + super.setupStoreCondition(userInfo); + + // setup condition + + } + + @Override + protected void setupDeleteCondition(final UserInfo userInfo) { + final Long userInfoId = userInfo.getId(); + final SearchLog searchLog = new SearchLog(); + searchLog.setUserId(null); + searchLogBhv.queryUpdate(searchLog, cb1 -> { + cb1.query().setUserId_Equal(userInfoId); + }); + + favoriteLogBhv.queryDelete(cb2 -> { + cb2.query().setUserId_Equal(userInfoId); + }); + + super.setupDeleteCondition(userInfo); + + // setup condition + + } + + public UserInfo getUserInfo(final String userCode) { + return userInfoBhv.selectEntity(cb -> { + cb.query().setCode_Equal(userCode); + }).orElse(null);//TODO + } + + public void deleteAll(final UserInfoPager userInfoPager) { + deleteInternal(userInfoPager); + } + + public void deleteBefore(final int days) { + final UserInfoPager userInfoPager = new UserInfoPager(); + userInfoPager.updatedTimeBefore = ComponentUtil.getSystemHelper() + .getCurrentTime().minusDays(days); + deleteInternal(userInfoPager); + } + + protected void deleteInternal(final UserInfoPager userInfoPager) { + + final boolean hasCb = StringUtil.isNotBlank(userInfoPager.code) + || userInfoPager.updatedTimeBefore != null; + + if (hasCb) { + final SearchLog searchLog = new SearchLog(); + searchLog.setUserId(null); + searchLogBhv.queryUpdate( + searchLog, + cb1 -> { + if (StringUtil.isNotBlank(userInfoPager.code)) { + cb1.query().queryUserInfo() + .setCode_Equal(userInfoPager.code); + } + + if (userInfoPager.updatedTimeBefore != null) { + cb1.query() + .queryUserInfo() + .setUpdatedTime_LessEqual( + userInfoPager.updatedTimeBefore); + } + }); + + favoriteLogBhv.queryDelete(cb2 -> { + if (StringUtil.isNotBlank(userInfoPager.code)) { + cb2.query().queryUserInfo() + .setCode_Equal(userInfoPager.code); + } + + if (userInfoPager.updatedTimeBefore != null) { + cb2.query() + .queryUserInfo() + .setUpdatedTime_LessEqual( + userInfoPager.updatedTimeBefore); + } + }); + } else { + final SearchLog searchLog = new SearchLog(); + searchLog.setUserId(null); + searchLogBhv.varyingQueryUpdate( + searchLog, + cb1 -> { + if (StringUtil.isNotBlank(userInfoPager.code)) { + cb1.query().queryUserInfo() + .setCode_Equal(userInfoPager.code); + } + + if (userInfoPager.updatedTimeBefore != null) { + cb1.query() + .queryUserInfo() + .setUpdatedTime_LessEqual( + userInfoPager.updatedTimeBefore); + } + }, op -> op.allowNonQueryUpdate()); + + favoriteLogBhv.varyingQueryDelete( + cb2 -> { + if (StringUtil.isNotBlank(userInfoPager.code)) { + cb2.query().queryUserInfo() + .setCode_Equal(userInfoPager.code); + } + + if (userInfoPager.updatedTimeBefore != null) { + cb2.query() + .queryUserInfo() + .setUpdatedTime_LessEqual( + userInfoPager.updatedTimeBefore); + } + }, op -> op.allowNonQueryDelete()); + } + + userInfoBhv.varyingQueryDelete( + cb -> { + if (StringUtil.isNotBlank(userInfoPager.code)) { + cb.query().setCode_Equal(userInfoPager.code); + } + + if (userInfoPager.updatedTimeBefore != null) { + cb.query().setUpdatedTime_LessEqual( + userInfoPager.updatedTimeBefore); + } + }, op -> op.allowNonQueryDelete()); + } +} diff --git a/src/main/java/jp/sf/fess/service/WebAuthenticationService.java b/src/main/java/org/codelibs/fess/service/WebAuthenticationService.java similarity index 83% rename from src/main/java/jp/sf/fess/service/WebAuthenticationService.java rename to src/main/java/org/codelibs/fess/service/WebAuthenticationService.java index 27bd9a1fb..60d1eb25f 100644 --- a/src/main/java/jp/sf/fess/service/WebAuthenticationService.java +++ b/src/main/java/org/codelibs/fess/service/WebAuthenticationService.java @@ -14,16 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.List; import java.util.Map; -import jp.sf.fess.crud.service.BsWebAuthenticationService; -import jp.sf.fess.db.cbean.WebAuthenticationCB; -import jp.sf.fess.db.exentity.WebAuthentication; -import jp.sf.fess.pager.WebAuthenticationPager; +import org.codelibs.fess.crud.service.BsWebAuthenticationService; +import org.codelibs.fess.db.cbean.WebAuthenticationCB; +import org.codelibs.fess.db.exentity.WebAuthentication; +import org.codelibs.fess.pager.WebAuthenticationPager; public class WebAuthenticationService extends BsWebAuthenticationService implements Serializable { @@ -74,9 +74,9 @@ public class WebAuthenticationService extends BsWebAuthenticationService public List<WebAuthentication> getWebAuthenticationList( final Long webCrawlingConfigId) { - final WebAuthenticationCB cb = new WebAuthenticationCB(); - cb.query().setWebCrawlingConfigId_Equal(webCrawlingConfigId); - return webAuthenticationBhv.selectList(cb); + return webAuthenticationBhv.selectList(cb -> { + cb.query().setWebCrawlingConfigId_Equal(webCrawlingConfigId); + }); } } diff --git a/src/main/java/jp/sf/fess/service/WebCrawlingConfigService.java b/src/main/java/org/codelibs/fess/service/WebCrawlingConfigService.java similarity index 72% rename from src/main/java/jp/sf/fess/service/WebCrawlingConfigService.java rename to src/main/java/org/codelibs/fess/service/WebCrawlingConfigService.java index dbeada2fb..a4b5a1bb1 100644 --- a/src/main/java/jp/sf/fess/service/WebCrawlingConfigService.java +++ b/src/main/java/org/codelibs/fess/service/WebCrawlingConfigService.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.service; +package org.codelibs.fess.service; import java.io.Serializable; import java.util.ArrayList; @@ -23,19 +23,15 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.crud.service.BsWebCrawlingConfigService; -import jp.sf.fess.db.cbean.WebConfigToLabelTypeMappingCB; -import jp.sf.fess.db.cbean.WebConfigToRoleTypeMappingCB; -import jp.sf.fess.db.cbean.WebCrawlingConfigCB; -import jp.sf.fess.db.exbhv.WebConfigToLabelTypeMappingBhv; -import jp.sf.fess.db.exbhv.WebConfigToRoleTypeMappingBhv; -import jp.sf.fess.db.exentity.WebConfigToLabelTypeMapping; -import jp.sf.fess.db.exentity.WebConfigToRoleTypeMapping; -import jp.sf.fess.db.exentity.WebCrawlingConfig; -import jp.sf.fess.pager.WebCrawlingConfigPager; - -import org.seasar.dbflute.bhv.ConditionBeanSetupper; +import org.codelibs.fess.Constants; +import org.codelibs.fess.crud.service.BsWebCrawlingConfigService; +import org.codelibs.fess.db.cbean.WebCrawlingConfigCB; +import org.codelibs.fess.db.exbhv.WebConfigToLabelTypeMappingBhv; +import org.codelibs.fess.db.exbhv.WebConfigToRoleTypeMappingBhv; +import org.codelibs.fess.db.exentity.WebConfigToLabelTypeMapping; +import org.codelibs.fess.db.exentity.WebConfigToRoleTypeMapping; +import org.codelibs.fess.db.exentity.WebCrawlingConfig; +import org.codelibs.fess.pager.WebCrawlingConfigPager; public class WebCrawlingConfigService extends BsWebCrawlingConfigService implements Serializable { @@ -64,41 +60,29 @@ public class WebCrawlingConfigService extends BsWebCrawlingConfigService public List<WebCrawlingConfig> getAllWebCrawlingConfigList( final boolean withLabelType, final boolean withRoleType, final boolean available, final List<Long> idList) { - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.query().setDeletedBy_IsNull(); - if (available) { - cb.query().setAvailable_Equal(Constants.T); - } - if (idList != null) { - cb.query().setId_InScope(idList); - } final List<WebCrawlingConfig> list = webCrawlingConfigBhv - .selectList(cb); + .selectList(cb -> { + cb.query().setDeletedBy_IsNull(); + if (available) { + cb.query().setAvailable_Equal(Constants.T); + } + if (idList != null) { + cb.query().setId_InScope(idList); + } + }); if (withLabelType) { - final ConditionBeanSetupper<WebConfigToLabelTypeMappingCB> setupper = new ConditionBeanSetupper<WebConfigToLabelTypeMappingCB>() { - @Override - public void setup(final WebConfigToLabelTypeMappingCB cb) { - cb.setupSelect_LabelType(); - cb.query().queryLabelType().setDeletedBy_IsNull(); - cb.query().queryLabelType().addOrderBy_SortOrder_Asc(); - } - - }; - webCrawlingConfigBhv.loadWebConfigToLabelTypeMappingList(list, - setupper); + webCrawlingConfigBhv.loadWebConfigToLabelTypeMapping(list, cb -> { + cb.setupSelect_LabelType(); + cb.query().queryLabelType().setDeletedBy_IsNull(); + cb.query().queryLabelType().addOrderBy_SortOrder_Asc(); + }); } if (withRoleType) { - final ConditionBeanSetupper<WebConfigToRoleTypeMappingCB> setupper = new ConditionBeanSetupper<WebConfigToRoleTypeMappingCB>() { - @Override - public void setup(final WebConfigToRoleTypeMappingCB cb) { - cb.setupSelect_RoleType(); - cb.query().queryRoleType().setDeletedBy_IsNull(); - cb.query().queryRoleType().addOrderBy_SortOrder_Asc(); - } - - }; - webCrawlingConfigBhv.loadWebConfigToRoleTypeMappingList(list, - setupper); + webCrawlingConfigBhv.loadWebConfigToRoleTypeMapping(list, cb -> { + cb.setupSelect_RoleType(); + cb.query().queryRoleType().setDeletedBy_IsNull(); + cb.query().queryRoleType().addOrderBy_SortOrder_Asc(); + }); } return list; } @@ -109,13 +93,14 @@ public class WebCrawlingConfigService extends BsWebCrawlingConfigService .getWebCrawlingConfig(keys); if (webCrawlingConfig != null) { - - final WebConfigToLabelTypeMappingCB wctltmCb = new WebConfigToLabelTypeMappingCB(); - wctltmCb.query().setWebConfigId_Equal(webCrawlingConfig.getId()); - wctltmCb.query().queryLabelType().setDeletedBy_IsNull(); - wctltmCb.query().queryWebCrawlingConfig().setDeletedBy_IsNull(); final List<WebConfigToLabelTypeMapping> wctltmList = webConfigToLabelTypeMappingBhv - .selectList(wctltmCb); + .selectList(wctltmCb -> { + wctltmCb.query().setWebConfigId_Equal( + webCrawlingConfig.getId()); + wctltmCb.query().queryLabelType().setDeletedBy_IsNull(); + wctltmCb.query().queryWebCrawlingConfig() + .setDeletedBy_IsNull(); + }); if (!wctltmList.isEmpty()) { final List<String> labelTypeIds = new ArrayList<String>( wctltmList.size()); @@ -126,12 +111,14 @@ public class WebCrawlingConfigService extends BsWebCrawlingConfigService .toArray(new String[labelTypeIds.size()])); } - final WebConfigToRoleTypeMappingCB wctrtmCb = new WebConfigToRoleTypeMappingCB(); - wctrtmCb.query().setWebConfigId_Equal(webCrawlingConfig.getId()); - wctrtmCb.query().queryRoleType().setDeletedBy_IsNull(); - wctrtmCb.query().queryWebCrawlingConfig().setDeletedBy_IsNull(); final List<WebConfigToRoleTypeMapping> wctrtmList = webConfigToRoleTypeMappingBhv - .selectList(wctrtmCb); + .selectList(wctrtmCb -> { + wctrtmCb.query().setWebConfigId_Equal( + webCrawlingConfig.getId()); + wctrtmCb.query().queryRoleType().setDeletedBy_IsNull(); + wctrtmCb.query().queryWebCrawlingConfig() + .setDeletedBy_IsNull(); + }); if (!wctrtmList.isEmpty()) { final List<String> roleTypeIds = new ArrayList<String>( wctrtmList.size()); @@ -178,10 +165,10 @@ public class WebCrawlingConfigService extends BsWebCrawlingConfigService } else { // Update if (labelTypeIds != null) { - final WebConfigToLabelTypeMappingCB wctltmCb = new WebConfigToLabelTypeMappingCB(); - wctltmCb.query().setWebConfigId_Equal(webConfigId); final List<WebConfigToLabelTypeMapping> list = webConfigToLabelTypeMappingBhv - .selectList(wctltmCb); + .selectList(wctltmCb -> { + wctltmCb.query().setWebConfigId_Equal(webConfigId); + }); final List<WebConfigToLabelTypeMapping> newList = new ArrayList<WebConfigToLabelTypeMapping>(); final List<WebConfigToLabelTypeMapping> matchedList = new ArrayList<WebConfigToLabelTypeMapping>(); for (final String id : labelTypeIds) { @@ -207,10 +194,10 @@ public class WebCrawlingConfigService extends BsWebCrawlingConfigService webConfigToLabelTypeMappingBhv.batchDelete(list); } if (roleTypeIds != null) { - final WebConfigToRoleTypeMappingCB wctrtmCb = new WebConfigToRoleTypeMappingCB(); - wctrtmCb.query().setWebConfigId_Equal(webConfigId); final List<WebConfigToRoleTypeMapping> list = webConfigToRoleTypeMappingBhv - .selectList(wctrtmCb); + .selectList(wctrtmCb -> { + wctrtmCb.query().setWebConfigId_Equal(webConfigId); + }); final List<WebConfigToRoleTypeMapping> newList = new ArrayList<WebConfigToRoleTypeMapping>(); final List<WebConfigToRoleTypeMapping> matchedList = new ArrayList<WebConfigToRoleTypeMapping>(); for (final String id : roleTypeIds) { @@ -280,9 +267,9 @@ public class WebCrawlingConfigService extends BsWebCrawlingConfigService } public WebCrawlingConfig getWebCrawlingConfig(final long id) { - final WebCrawlingConfigCB cb = new WebCrawlingConfigCB(); - cb.query().setId_Equal(id); - cb.query().setDeletedBy_IsNull(); - return webCrawlingConfigBhv.selectEntity(cb); + return webCrawlingConfigBhv.selectEntity(cb -> { + cb.query().setId_Equal(id); + cb.query().setDeletedBy_IsNull(); + }).orElse(null);//TODO } } diff --git a/src/main/java/jp/sf/fess/servlet/H2ConfigServlet.java b/src/main/java/org/codelibs/fess/servlet/H2ConfigServlet.java similarity index 98% rename from src/main/java/jp/sf/fess/servlet/H2ConfigServlet.java rename to src/main/java/org/codelibs/fess/servlet/H2ConfigServlet.java index 8d0183762..93375ae24 100644 --- a/src/main/java/jp/sf/fess/servlet/H2ConfigServlet.java +++ b/src/main/java/org/codelibs/fess/servlet/H2ConfigServlet.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.servlet; +package org.codelibs.fess.servlet; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/jp/sf/fess/servlet/Tomcat6ConfigServlet.java b/src/main/java/org/codelibs/fess/servlet/Tomcat6ConfigServlet.java similarity index 99% rename from src/main/java/jp/sf/fess/servlet/Tomcat6ConfigServlet.java rename to src/main/java/org/codelibs/fess/servlet/Tomcat6ConfigServlet.java index d46a8c261..379cba199 100644 --- a/src/main/java/jp/sf/fess/servlet/Tomcat6ConfigServlet.java +++ b/src/main/java/org/codelibs/fess/servlet/Tomcat6ConfigServlet.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.servlet; +package org.codelibs.fess.servlet; import java.lang.ref.Reference; import java.lang.reflect.Field; diff --git a/src/main/java/jp/sf/fess/servlet/Tomcat7ConfigServlet.java b/src/main/java/org/codelibs/fess/servlet/Tomcat7ConfigServlet.java similarity index 97% rename from src/main/java/jp/sf/fess/servlet/Tomcat7ConfigServlet.java rename to src/main/java/org/codelibs/fess/servlet/Tomcat7ConfigServlet.java index 07cd2f626..01c7c6023 100644 --- a/src/main/java/jp/sf/fess/servlet/Tomcat7ConfigServlet.java +++ b/src/main/java/org/codelibs/fess/servlet/Tomcat7ConfigServlet.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.servlet; +package org.codelibs.fess.servlet; import java.lang.reflect.Method; diff --git a/src/main/java/jp/sf/fess/solr/BoostDocumentRule.java b/src/main/java/org/codelibs/fess/solr/BoostDocumentRule.java similarity index 95% rename from src/main/java/jp/sf/fess/solr/BoostDocumentRule.java rename to src/main/java/org/codelibs/fess/solr/BoostDocumentRule.java index 42ab21faf..c4b981978 100644 --- a/src/main/java/jp/sf/fess/solr/BoostDocumentRule.java +++ b/src/main/java/org/codelibs/fess/solr/BoostDocumentRule.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.solr; +package org.codelibs.fess.solr; import java.util.Map; @@ -34,7 +34,8 @@ public class BoostDocumentRule { // nothing } - public BoostDocumentRule(final jp.sf.fess.db.exentity.BoostDocumentRule rule) { + public BoostDocumentRule( + final org.codelibs.fess.db.exentity.BoostDocumentRule rule) { matchExpression = rule.getUrlExpr(); boostExpression = rule.getBoostExpr(); } diff --git a/src/main/java/jp/sf/fess/solr/FessSolrQueryException.java b/src/main/java/org/codelibs/fess/solr/FessSolrQueryException.java similarity index 96% rename from src/main/java/jp/sf/fess/solr/FessSolrQueryException.java rename to src/main/java/org/codelibs/fess/solr/FessSolrQueryException.java index 85f9d1395..0d1c58fba 100644 --- a/src/main/java/jp/sf/fess/solr/FessSolrQueryException.java +++ b/src/main/java/org/codelibs/fess/solr/FessSolrQueryException.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.solr; +package org.codelibs.fess.solr; import org.codelibs.solr.lib.exception.SolrLibQueryException; diff --git a/src/main/java/jp/sf/fess/solr/IndexUpdater.java b/src/main/java/org/codelibs/fess/solr/IndexUpdater.java similarity index 96% rename from src/main/java/jp/sf/fess/solr/IndexUpdater.java rename to src/main/java/org/codelibs/fess/solr/IndexUpdater.java index 28c34afe3..123d54475 100644 --- a/src/main/java/jp/sf/fess/solr/IndexUpdater.java +++ b/src/main/java/org/codelibs/fess/solr/IndexUpdater.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.solr; +package org.codelibs.fess.solr; import java.util.ArrayList; import java.util.HashMap; @@ -23,22 +23,19 @@ import java.util.Map; import javax.annotation.Resource; -import jp.sf.fess.Constants; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.db.bsbhv.BsFavoriteLogBhv; -import jp.sf.fess.db.cbean.ClickLogCB; -import jp.sf.fess.db.exbhv.ClickLogBhv; -import jp.sf.fess.db.exbhv.FavoriteLogBhv; -import jp.sf.fess.db.exbhv.pmbean.FavoriteUrlCountPmb; -import jp.sf.fess.db.exentity.customize.FavoriteUrlCount; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.IndexingHelper; -import jp.sf.fess.helper.IntervalControlHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.util.ComponentUtil; - import org.apache.solr.common.SolrInputDocument; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.db.exbhv.ClickLogBhv; +import org.codelibs.fess.db.exbhv.FavoriteLogBhv; +import org.codelibs.fess.db.exbhv.pmbean.FavoriteUrlCountPmb; +import org.codelibs.fess.db.exentity.customize.FavoriteUrlCount; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.IndexingHelper; +import org.codelibs.fess.helper.IntervalControlHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.S2Robot; import org.codelibs.robot.db.cbean.AccessResultCB; import org.codelibs.robot.db.exbhv.AccessResultBhv; @@ -52,7 +49,6 @@ import org.codelibs.robot.service.UrlQueueService; import org.codelibs.robot.transformer.Transformer; import org.codelibs.solr.lib.SolrGroup; import org.codelibs.solr.lib.exception.SolrLibException; -import org.seasar.dbflute.cbean.ListResultBean; import org.seasar.framework.container.SingletonS2Container; import org.seasar.framework.container.annotation.tiger.Binding; import org.seasar.framework.container.annotation.tiger.BindingType; @@ -491,9 +487,9 @@ public class IndexUpdater extends Thread { final SolrInputDocument doc) { final String url = (String) map.get(fieldHelper.urlField); if (StringUtil.isNotBlank(url)) { - final ClickLogCB cb = new ClickLogCB(); - cb.query().setUrl_Equal(url); - final int count = clickLogBhv.selectCount(cb); + final int count = clickLogBhv.selectCount(cb -> { + cb.query().setUrl_Equal(url); + }); doc.addField(fieldHelper.clickCountField, count); map.put(fieldHelper.clickCountField, count); if (logger.isDebugEnabled()) { @@ -508,9 +504,8 @@ public class IndexUpdater extends Thread { if (StringUtil.isNotBlank(url)) { final FavoriteUrlCountPmb pmb = new FavoriteUrlCountPmb(); pmb.setUrl(url); - final String path = BsFavoriteLogBhv.PATH_selectFavoriteUrlCount; - final ListResultBean<FavoriteUrlCount> list = favoriteLogBhv - .outsideSql().selectList(path, pmb, FavoriteUrlCount.class); + final List<FavoriteUrlCount> list = favoriteLogBhv.outsideSql() + .selectList(pmb); long count = 0; if (!list.isEmpty()) { diff --git a/src/main/java/jp/sf/fess/solr/policy/FessStatusPolicy.java b/src/main/java/org/codelibs/fess/solr/policy/FessStatusPolicy.java similarity index 97% rename from src/main/java/jp/sf/fess/solr/policy/FessStatusPolicy.java rename to src/main/java/org/codelibs/fess/solr/policy/FessStatusPolicy.java index 0a7891aa4..141dd7f19 100644 --- a/src/main/java/jp/sf/fess/solr/policy/FessStatusPolicy.java +++ b/src/main/java/org/codelibs/fess/solr/policy/FessStatusPolicy.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.solr.policy; +package org.codelibs.fess.solr.policy; import java.io.File; import java.net.InetAddress; @@ -22,13 +22,12 @@ import java.net.UnknownHostException; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.Constants; -import jp.sf.fess.helper.MailHelper; -import jp.sf.fess.util.ComponentUtil; -import jp.sf.fess.util.ResourceUtil; - import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.helper.MailHelper; +import org.codelibs.fess.util.ComponentUtil; +import org.codelibs.fess.util.ResourceUtil; import org.codelibs.solr.lib.policy.QueryType; import org.codelibs.solr.lib.policy.impl.StatusPolicyImpl; import org.slf4j.Logger; diff --git a/src/main/java/jp/sf/fess/struts/action/FessRequestProcessor.java b/src/main/java/org/codelibs/fess/struts/action/FessRequestProcessor.java similarity index 83% rename from src/main/java/jp/sf/fess/struts/action/FessRequestProcessor.java rename to src/main/java/org/codelibs/fess/struts/action/FessRequestProcessor.java index ff874f91c..c2f61a578 100644 --- a/src/main/java/jp/sf/fess/struts/action/FessRequestProcessor.java +++ b/src/main/java/org/codelibs/fess/struts/action/FessRequestProcessor.java @@ -14,15 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.struts.action; +package org.codelibs.fess.struts.action; import java.util.Map; -import jp.sf.fess.util.SearchParamMap; +import org.codelibs.fess.util.SearchParamMap; +import org.dbflute.saflute.web.action.processor.ActionRequestProcessor; -import org.codelibs.sastruts.core.struts.action.SSCRequestProcessor; - -public class FessRequestProcessor extends SSCRequestProcessor { +public class FessRequestProcessor extends ActionRequestProcessor { @Override @SuppressWarnings("unchecked") protected void setMapProperty(final Map map, final String name, diff --git a/src/main/java/jp/sf/fess/taglib/FessFunctions.java b/src/main/java/org/codelibs/fess/taglib/FessFunctions.java similarity index 93% rename from src/main/java/jp/sf/fess/taglib/FessFunctions.java rename to src/main/java/org/codelibs/fess/taglib/FessFunctions.java index 9c32f1423..6c199aa86 100644 --- a/src/main/java/jp/sf/fess/taglib/FessFunctions.java +++ b/src/main/java/org/codelibs/fess/taglib/FessFunctions.java @@ -14,27 +14,29 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.taglib; +package org.codelibs.fess.taglib; import java.text.ParseException; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; import java.util.Collections; import java.util.Date; import java.util.Enumeration; import java.util.List; +import java.util.Locale; import java.util.Map; import javax.servlet.http.HttpServletRequest; -import jp.sf.fess.Constants; -import jp.sf.fess.entity.FacetQueryView; -import jp.sf.fess.helper.HotSearchWordHelper; -import jp.sf.fess.helper.HotSearchWordHelper.Range; -import jp.sf.fess.helper.ViewHelper; -import jp.sf.fess.util.ComponentUtil; - import org.apache.commons.lang.StringEscapeUtils; import org.apache.solr.common.util.DateUtil; import org.codelibs.core.util.DynamicProperties; +import org.codelibs.fess.Constants; +import org.codelibs.fess.entity.FacetQueryView; +import org.codelibs.fess.helper.HotSearchWordHelper; +import org.codelibs.fess.helper.HotSearchWordHelper.Range; +import org.codelibs.fess.helper.ViewHelper; +import org.codelibs.fess.util.ComponentUtil; import org.seasar.struts.util.RequestUtil; import org.seasar.struts.util.URLEncoderUtil; @@ -158,6 +160,11 @@ public class FessFunctions { return DateUtil.getThreadLocalDateFormat().format(date); } + public static String formatDate(final LocalDateTime date) { + return date.format(DateTimeFormatter.ofPattern( + "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.ROOT)); + } + public static String facetQuery() { return createQuery(Constants.FACET_QUERY, FACET_PREFIX); } diff --git a/src/main/java/jp/sf/fess/transformer/AbstractFessFileTransformer.java b/src/main/java/org/codelibs/fess/transformer/AbstractFessFileTransformer.java similarity index 96% rename from src/main/java/jp/sf/fess/transformer/AbstractFessFileTransformer.java rename to src/main/java/org/codelibs/fess/transformer/AbstractFessFileTransformer.java index 8a4767b56..76429ed27 100644 --- a/src/main/java/jp/sf/fess/transformer/AbstractFessFileTransformer.java +++ b/src/main/java/org/codelibs/fess/transformer/AbstractFessFileTransformer.java @@ -14,14 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.transformer; +package org.codelibs.fess.transformer; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.Collections; -import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -30,18 +30,6 @@ import java.util.Set; import jcifs.smb.ACE; import jcifs.smb.SID; -import jp.sf.fess.Constants; -import jp.sf.fess.db.exentity.CrawlingConfig; -import jp.sf.fess.db.exentity.CrawlingConfig.ConfigName; -import jp.sf.fess.helper.CrawlingConfigHelper; -import jp.sf.fess.helper.CrawlingSessionHelper; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.FileTypeHelper; -import jp.sf.fess.helper.LabelTypeHelper; -import jp.sf.fess.helper.PathMappingHelper; -import jp.sf.fess.helper.SambaHelper; -import jp.sf.fess.taglib.FessFunctions; -import jp.sf.fess.util.ComponentUtil; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; @@ -49,6 +37,18 @@ import org.apache.tika.metadata.HttpHeaders; import org.apache.tika.metadata.TikaMetadataKeys; import org.codelibs.core.util.DynamicProperties; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.exentity.CrawlingConfig; +import org.codelibs.fess.db.exentity.CrawlingConfig.ConfigName; +import org.codelibs.fess.helper.CrawlingConfigHelper; +import org.codelibs.fess.helper.CrawlingSessionHelper; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.FileTypeHelper; +import org.codelibs.fess.helper.LabelTypeHelper; +import org.codelibs.fess.helper.PathMappingHelper; +import org.codelibs.fess.helper.SambaHelper; +import org.codelibs.fess.taglib.FessFunctions; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.RobotCrawlAccessException; import org.codelibs.robot.RobotSystemException; import org.codelibs.robot.client.smb.SmbClient; @@ -169,7 +169,8 @@ public abstract class AbstractFessFileTransformer extends .getCrawlingSessionHelper(); final String sessionId = crawlingSessionHelper .getCanonicalSessionId(responseData.getSessionId()); - final Date documentExpires = crawlingSessionHelper.getDocumentExpires(); + final LocalDateTime documentExpires = crawlingSessionHelper + .getDocumentExpires(); final PathMappingHelper pathMappingHelper = ComponentUtil .getPathMappingHelper(); final SambaHelper sambaHelper = ComponentUtil.getSambaHelper(); diff --git a/src/main/java/jp/sf/fess/transformer/AbstractFessXpathTransformer.java b/src/main/java/org/codelibs/fess/transformer/AbstractFessXpathTransformer.java similarity index 98% rename from src/main/java/jp/sf/fess/transformer/AbstractFessXpathTransformer.java rename to src/main/java/org/codelibs/fess/transformer/AbstractFessXpathTransformer.java index 597e803ab..72c9306b1 100644 --- a/src/main/java/jp/sf/fess/transformer/AbstractFessXpathTransformer.java +++ b/src/main/java/org/codelibs/fess/transformer/AbstractFessXpathTransformer.java @@ -14,18 +14,17 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.transformer; +package org.codelibs.fess.transformer; import java.net.URLDecoder; import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.util.ComponentUtil; - import org.apache.commons.lang.StringUtils; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.transformer.impl.XpathTransformer; import org.seasar.framework.util.OgnlUtil; import org.slf4j.Logger; diff --git a/src/main/java/jp/sf/fess/transformer/FessFileTransformer.java b/src/main/java/org/codelibs/fess/transformer/FessFileTransformer.java similarity index 92% rename from src/main/java/jp/sf/fess/transformer/FessFileTransformer.java rename to src/main/java/org/codelibs/fess/transformer/FessFileTransformer.java index e8801edfd..40e65892f 100644 --- a/src/main/java/jp/sf/fess/transformer/FessFileTransformer.java +++ b/src/main/java/org/codelibs/fess/transformer/FessFileTransformer.java @@ -14,11 +14,10 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.transformer; - -import jp.sf.fess.FessSystemException; -import jp.sf.fess.util.ComponentUtil; +package org.codelibs.fess.transformer; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.entity.ResponseData; import org.codelibs.robot.extractor.Extractor; import org.codelibs.robot.extractor.ExtractorFactory; diff --git a/src/main/java/jp/sf/fess/transformer/FessTikaTransformer.java b/src/main/java/org/codelibs/fess/transformer/FessTikaTransformer.java similarity index 93% rename from src/main/java/jp/sf/fess/transformer/FessTikaTransformer.java rename to src/main/java/org/codelibs/fess/transformer/FessTikaTransformer.java index f6f52c744..d19e8d652 100644 --- a/src/main/java/jp/sf/fess/transformer/FessTikaTransformer.java +++ b/src/main/java/org/codelibs/fess/transformer/FessTikaTransformer.java @@ -14,10 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.transformer; - -import jp.sf.fess.FessSystemException; +package org.codelibs.fess.transformer; +import org.codelibs.fess.FessSystemException; import org.codelibs.robot.entity.ResponseData; import org.codelibs.robot.extractor.Extractor; import org.seasar.framework.container.SingletonS2Container; diff --git a/src/main/java/jp/sf/fess/transformer/FessXpathTransformer.java b/src/main/java/org/codelibs/fess/transformer/FessXpathTransformer.java similarity index 96% rename from src/main/java/jp/sf/fess/transformer/FessXpathTransformer.java rename to src/main/java/org/codelibs/fess/transformer/FessXpathTransformer.java index 28821e0e0..a8b02cfa8 100644 --- a/src/main/java/jp/sf/fess/transformer/FessXpathTransformer.java +++ b/src/main/java/org/codelibs/fess/transformer/FessXpathTransformer.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.transformer; +package org.codelibs.fess.transformer; import java.io.BufferedInputStream; import java.io.File; @@ -22,8 +22,8 @@ import java.io.FileInputStream; import java.io.FileNotFoundException; import java.net.MalformedURLException; import java.net.URL; +import java.time.LocalDateTime; import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -32,24 +32,23 @@ import java.util.Set; import javax.xml.transform.TransformerException; -import jp.sf.fess.Constants; -import jp.sf.fess.db.exentity.CrawlingConfig; -import jp.sf.fess.db.exentity.CrawlingConfig.ConfigName; -import jp.sf.fess.helper.CrawlingConfigHelper; -import jp.sf.fess.helper.CrawlingSessionHelper; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.FileTypeHelper; -import jp.sf.fess.helper.LabelTypeHelper; -import jp.sf.fess.helper.OverlappingHostHelper; -import jp.sf.fess.helper.PathMappingHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.taglib.FessFunctions; -import jp.sf.fess.util.ComponentUtil; - import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; import org.apache.xpath.objects.XObject; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.Constants; +import org.codelibs.fess.db.exentity.CrawlingConfig; +import org.codelibs.fess.db.exentity.CrawlingConfig.ConfigName; +import org.codelibs.fess.helper.CrawlingConfigHelper; +import org.codelibs.fess.helper.CrawlingSessionHelper; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.FileTypeHelper; +import org.codelibs.fess.helper.LabelTypeHelper; +import org.codelibs.fess.helper.OverlappingHostHelper; +import org.codelibs.fess.helper.PathMappingHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.taglib.FessFunctions; +import org.codelibs.fess.util.ComponentUtil; import org.codelibs.robot.RobotCrawlAccessException; import org.codelibs.robot.RobotSystemException; import org.codelibs.robot.builder.RequestDataBuilder; @@ -215,7 +214,8 @@ public class FessXpathTransformer extends AbstractFessXpathTransformer { .getCrawlingSessionHelper(); final String sessionId = crawlingSessionHelper .getCanonicalSessionId(responseData.getSessionId()); - final Date documentExpires = crawlingSessionHelper.getDocumentExpires(); + final LocalDateTime documentExpires = crawlingSessionHelper + .getDocumentExpires(); final PathMappingHelper pathMappingHelper = ComponentUtil .getPathMappingHelper(); final CrawlingConfigHelper crawlingConfigHelper = ComponentUtil diff --git a/src/main/java/jp/sf/fess/util/ComponentUtil.java b/src/main/java/org/codelibs/fess/util/ComponentUtil.java similarity index 84% rename from src/main/java/jp/sf/fess/util/ComponentUtil.java rename to src/main/java/org/codelibs/fess/util/ComponentUtil.java index f466f17d8..9d0282d7d 100644 --- a/src/main/java/jp/sf/fess/util/ComponentUtil.java +++ b/src/main/java/org/codelibs/fess/util/ComponentUtil.java @@ -14,38 +14,37 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; - -import jp.sf.fess.api.WebApiManagerFactory; -import jp.sf.fess.ds.DataStoreFactory; -import jp.sf.fess.helper.AdRoleHelper; -import jp.sf.fess.helper.CrawlingConfigHelper; -import jp.sf.fess.helper.CrawlingSessionHelper; -import jp.sf.fess.helper.DatabaseHelper; -import jp.sf.fess.helper.DocumentHelper; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.FileTypeHelper; -import jp.sf.fess.helper.HotSearchWordHelper; -import jp.sf.fess.helper.IndexingHelper; -import jp.sf.fess.helper.IntervalControlHelper; -import jp.sf.fess.helper.JobHelper; -import jp.sf.fess.helper.KeyMatchHelper; -import jp.sf.fess.helper.LabelTypeHelper; -import jp.sf.fess.helper.MailHelper; -import jp.sf.fess.helper.OverlappingHostHelper; -import jp.sf.fess.helper.PathMappingHelper; -import jp.sf.fess.helper.QueryHelper; -import jp.sf.fess.helper.SambaHelper; -import jp.sf.fess.helper.SearchLogHelper; -import jp.sf.fess.helper.SystemHelper; -import jp.sf.fess.helper.UserAgentHelper; -import jp.sf.fess.helper.ViewHelper; -import jp.sf.fess.job.JobExecutor; -import jp.sf.fess.service.SearchService; -import jp.sf.fess.solr.IndexUpdater; +package org.codelibs.fess.util; import org.codelibs.core.crypto.CachedCipher; import org.codelibs.core.util.DynamicProperties; +import org.codelibs.fess.api.WebApiManagerFactory; +import org.codelibs.fess.ds.DataStoreFactory; +import org.codelibs.fess.helper.AdRoleHelper; +import org.codelibs.fess.helper.CrawlingConfigHelper; +import org.codelibs.fess.helper.CrawlingSessionHelper; +import org.codelibs.fess.helper.DatabaseHelper; +import org.codelibs.fess.helper.DocumentHelper; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.FileTypeHelper; +import org.codelibs.fess.helper.HotSearchWordHelper; +import org.codelibs.fess.helper.IndexingHelper; +import org.codelibs.fess.helper.IntervalControlHelper; +import org.codelibs.fess.helper.JobHelper; +import org.codelibs.fess.helper.KeyMatchHelper; +import org.codelibs.fess.helper.LabelTypeHelper; +import org.codelibs.fess.helper.MailHelper; +import org.codelibs.fess.helper.OverlappingHostHelper; +import org.codelibs.fess.helper.PathMappingHelper; +import org.codelibs.fess.helper.QueryHelper; +import org.codelibs.fess.helper.SambaHelper; +import org.codelibs.fess.helper.SearchLogHelper; +import org.codelibs.fess.helper.SystemHelper; +import org.codelibs.fess.helper.UserAgentHelper; +import org.codelibs.fess.helper.ViewHelper; +import org.codelibs.fess.job.JobExecutor; +import org.codelibs.fess.service.SearchService; +import org.codelibs.fess.solr.IndexUpdater; import org.codelibs.robot.extractor.ExtractorFactory; import org.codelibs.solr.lib.SolrGroupManager; import org.seasar.framework.container.SingletonS2Container; @@ -256,4 +255,8 @@ public final class ComponentUtil { public static FieldHelper getFieldHelper() { return SingletonS2Container.getComponent(FIELD_HELPER); } + + public static <T> T getComponent(Class<T> clazz) { + return SingletonS2Container.getComponent(clazz); + } } diff --git a/src/main/java/jp/sf/fess/util/FacetResponse.java b/src/main/java/org/codelibs/fess/util/FacetResponse.java similarity index 98% rename from src/main/java/jp/sf/fess/util/FacetResponse.java rename to src/main/java/org/codelibs/fess/util/FacetResponse.java index 76dfa05c5..2736088b3 100644 --- a/src/main/java/jp/sf/fess/util/FacetResponse.java +++ b/src/main/java/org/codelibs/fess/util/FacetResponse.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; +package org.codelibs.fess.util; import java.util.ArrayList; import java.util.LinkedHashMap; diff --git a/src/main/java/jp/sf/fess/util/FessBeans.java b/src/main/java/org/codelibs/fess/util/FessBeans.java similarity index 96% rename from src/main/java/jp/sf/fess/util/FessBeans.java rename to src/main/java/org/codelibs/fess/util/FessBeans.java index 298d3ad5e..220aabfd0 100644 --- a/src/main/java/jp/sf/fess/util/FessBeans.java +++ b/src/main/java/org/codelibs/fess/util/FessBeans.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; +package org.codelibs.fess.util; public class FessBeans { protected FessBeans() { diff --git a/src/main/java/jp/sf/fess/util/FessCopy.java b/src/main/java/org/codelibs/fess/util/FessCopy.java similarity index 96% rename from src/main/java/jp/sf/fess/util/FessCopy.java rename to src/main/java/org/codelibs/fess/util/FessCopy.java index 6224f9b9d..b491a1942 100644 --- a/src/main/java/jp/sf/fess/util/FessCopy.java +++ b/src/main/java/org/codelibs/fess/util/FessCopy.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; +package org.codelibs.fess.util; import java.util.ArrayList; import java.util.List; -import jp.sf.fess.Constants; - +import org.codelibs.fess.Constants; import org.seasar.framework.beans.util.Copy; public class FessCopy extends Copy { diff --git a/src/main/java/jp/sf/fess/util/InputStreamThread.java b/src/main/java/org/codelibs/fess/util/InputStreamThread.java similarity index 97% rename from src/main/java/jp/sf/fess/util/InputStreamThread.java rename to src/main/java/org/codelibs/fess/util/InputStreamThread.java index 6608fa0d3..ec5dfdce7 100644 --- a/src/main/java/jp/sf/fess/util/InputStreamThread.java +++ b/src/main/java/org/codelibs/fess/util/InputStreamThread.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; +package org.codelibs.fess.util; import java.io.BufferedReader; import java.io.InputStream; @@ -23,8 +23,7 @@ import java.io.UnsupportedEncodingException; import java.util.LinkedList; import java.util.List; -import jp.sf.fess.FessSystemException; - +import org.codelibs.fess.FessSystemException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/util/JobProcess.java b/src/main/java/org/codelibs/fess/util/JobProcess.java similarity index 94% rename from src/main/java/jp/sf/fess/util/JobProcess.java rename to src/main/java/org/codelibs/fess/util/JobProcess.java index b5ae85151..8eea66171 100644 --- a/src/main/java/jp/sf/fess/util/JobProcess.java +++ b/src/main/java/org/codelibs/fess/util/JobProcess.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; +package org.codelibs.fess.util; -import jp.sf.fess.Constants; +import org.codelibs.fess.Constants; public class JobProcess { protected Process process; diff --git a/src/main/java/jp/sf/fess/util/MoreLikeThisResponse.java b/src/main/java/org/codelibs/fess/util/MoreLikeThisResponse.java similarity index 96% rename from src/main/java/jp/sf/fess/util/MoreLikeThisResponse.java rename to src/main/java/org/codelibs/fess/util/MoreLikeThisResponse.java index b77d795d3..78158bcba 100644 --- a/src/main/java/jp/sf/fess/util/MoreLikeThisResponse.java +++ b/src/main/java/org/codelibs/fess/util/MoreLikeThisResponse.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; +package org.codelibs.fess.util; import java.util.LinkedHashMap; import java.util.List; diff --git a/src/main/java/jp/sf/fess/util/ParameterUtil.java b/src/main/java/org/codelibs/fess/util/ParameterUtil.java similarity index 97% rename from src/main/java/jp/sf/fess/util/ParameterUtil.java rename to src/main/java/org/codelibs/fess/util/ParameterUtil.java index 15de1cb28..2252d285f 100644 --- a/src/main/java/jp/sf/fess/util/ParameterUtil.java +++ b/src/main/java/org/codelibs/fess/util/ParameterUtil.java @@ -14,15 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; +package org.codelibs.fess.util; import java.util.HashMap; import java.util.Map; -import jp.sf.fess.FessSystemException; -import jp.sf.fess.db.exentity.CrawlingConfig.ConfigName; - import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.FessSystemException; +import org.codelibs.fess.db.exentity.CrawlingConfig.ConfigName; public class ParameterUtil { protected static final String XPATH_PREFIX = "field.xpath."; diff --git a/src/main/java/jp/sf/fess/util/QueryResponseList.java b/src/main/java/org/codelibs/fess/util/QueryResponseList.java similarity index 98% rename from src/main/java/jp/sf/fess/util/QueryResponseList.java rename to src/main/java/org/codelibs/fess/util/QueryResponseList.java index 524cf648c..1bec876b2 100644 --- a/src/main/java/jp/sf/fess/util/QueryResponseList.java +++ b/src/main/java/org/codelibs/fess/util/QueryResponseList.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; +package org.codelibs.fess.util; import java.util.ArrayList; import java.util.Collection; @@ -24,10 +24,6 @@ import java.util.List; import java.util.ListIterator; import java.util.Map; -import jp.sf.fess.helper.FieldHelper; -import jp.sf.fess.helper.QueryHelper; -import jp.sf.fess.helper.ViewHelper; - import org.apache.commons.lang.StringUtils; import org.apache.solr.client.solrj.response.FacetField; import org.apache.solr.client.solrj.response.QueryResponse; @@ -35,6 +31,9 @@ import org.apache.solr.common.SolrDocument; import org.apache.solr.common.SolrDocumentList; import org.apache.solr.common.util.SimpleOrderedMap; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.helper.FieldHelper; +import org.codelibs.fess.helper.QueryHelper; +import org.codelibs.fess.helper.ViewHelper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/jp/sf/fess/util/QueryUtil.java b/src/main/java/org/codelibs/fess/util/QueryUtil.java similarity index 95% rename from src/main/java/jp/sf/fess/util/QueryUtil.java rename to src/main/java/org/codelibs/fess/util/QueryUtil.java index 70bbfbe91..eea5cf17c 100644 --- a/src/main/java/jp/sf/fess/util/QueryUtil.java +++ b/src/main/java/org/codelibs/fess/util/QueryUtil.java @@ -14,9 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; +package org.codelibs.fess.util; -import jp.sf.fess.Constants; +import org.codelibs.fess.Constants; public class QueryUtil { protected QueryUtil() { diff --git a/src/main/java/jp/sf/fess/util/ResourceUtil.java b/src/main/java/org/codelibs/fess/util/ResourceUtil.java similarity index 99% rename from src/main/java/jp/sf/fess/util/ResourceUtil.java rename to src/main/java/org/codelibs/fess/util/ResourceUtil.java index aa10910a2..a0ec9abe5 100644 --- a/src/main/java/jp/sf/fess/util/ResourceUtil.java +++ b/src/main/java/org/codelibs/fess/util/ResourceUtil.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; +package org.codelibs.fess.util; import java.io.File; import java.io.FilenameFilter; diff --git a/src/main/java/jp/sf/fess/util/SearchParamMap.java b/src/main/java/org/codelibs/fess/util/SearchParamMap.java similarity index 89% rename from src/main/java/jp/sf/fess/util/SearchParamMap.java rename to src/main/java/org/codelibs/fess/util/SearchParamMap.java index 5eadb0d78..78776aed4 100644 --- a/src/main/java/jp/sf/fess/util/SearchParamMap.java +++ b/src/main/java/org/codelibs/fess/util/SearchParamMap.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; +package org.codelibs.fess.util; import java.util.HashMap; @@ -24,7 +24,7 @@ public class SearchParamMap extends HashMap<String, String[]> { private static final long serialVersionUID = 1L; - public static final String CLASS_NAME = "jp.sf.fess.util.SearchParamMap"; + public static final String CLASS_NAME = "org.codelibs.fess.util.SearchParamMap"; @Override public String[] get(final Object key) { diff --git a/src/main/java/jp/sf/fess/util/WebApiUtil.java b/src/main/java/org/codelibs/fess/util/WebApiUtil.java similarity index 96% rename from src/main/java/jp/sf/fess/util/WebApiUtil.java rename to src/main/java/org/codelibs/fess/util/WebApiUtil.java index 587186b0c..205518a76 100644 --- a/src/main/java/jp/sf/fess/util/WebApiUtil.java +++ b/src/main/java/org/codelibs/fess/util/WebApiUtil.java @@ -14,10 +14,9 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.util; - -import jp.sf.fess.WebApiException; +package org.codelibs.fess.util; +import org.codelibs.fess.WebApiException; import org.seasar.struts.util.RequestUtil; public final class WebApiUtil { diff --git a/src/main/java/jp/sf/fess/validator/CronExpressionChecks.java b/src/main/java/org/codelibs/fess/validator/CronExpressionChecks.java similarity index 97% rename from src/main/java/jp/sf/fess/validator/CronExpressionChecks.java rename to src/main/java/org/codelibs/fess/validator/CronExpressionChecks.java index 6c0bde17c..94e8546c2 100644 --- a/src/main/java/jp/sf/fess/validator/CronExpressionChecks.java +++ b/src/main/java/org/codelibs/fess/validator/CronExpressionChecks.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.validator; +package org.codelibs.fess.validator; import javax.servlet.http.HttpServletRequest; diff --git a/src/main/java/jp/sf/fess/validator/UriTypeChecks.java b/src/main/java/org/codelibs/fess/validator/UriTypeChecks.java similarity index 96% rename from src/main/java/jp/sf/fess/validator/UriTypeChecks.java rename to src/main/java/org/codelibs/fess/validator/UriTypeChecks.java index 032995044..a1ac205d2 100644 --- a/src/main/java/jp/sf/fess/validator/UriTypeChecks.java +++ b/src/main/java/org/codelibs/fess/validator/UriTypeChecks.java @@ -14,17 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.validator; +package org.codelibs.fess.validator; import javax.servlet.http.HttpServletRequest; -import jp.sf.fess.FessSystemException; - import org.apache.commons.validator.Field; import org.apache.commons.validator.Validator; import org.apache.commons.validator.ValidatorAction; import org.apache.struts.action.ActionMessages; import org.codelibs.core.util.StringUtil; +import org.codelibs.fess.FessSystemException; import org.seasar.struts.validator.S2FieldChecks; public class UriTypeChecks extends S2FieldChecks { diff --git a/src/main/mysql/webapp/WEB-INF/cmd/resources/app.dicon b/src/main/mysql/webapp/WEB-INF/cmd/resources/app.dicon index a2b9bbe35..c667af237 100644 --- a/src/main/mysql/webapp/WEB-INF/cmd/resources/app.dicon +++ b/src/main/mysql/webapp/WEB-INF/cmd/resources/app.dicon @@ -10,17 +10,17 @@ <include path="s2robot_db.dicon" /> - <component name="indexingHelper" class="jp.sf.fess.helper.IndexingHelper"> + <component name="indexingHelper" class="org.codelibs.fess.helper.IndexingHelper"> </component> - <component name="labelTypeHelper" class="jp.sf.fess.helper.LabelTypeHelper"> + <component name="labelTypeHelper" class="org.codelibs.fess.helper.LabelTypeHelper"> </component> - <component name="webFsIndexHelper" class="jp.sf.fess.helper.WebFsIndexHelper"> + <component name="webFsIndexHelper" class="org.codelibs.fess.helper.WebFsIndexHelper"> </component> - <component name="dataIndexHelper" class="jp.sf.fess.helper.DataIndexHelper"> + <component name="dataIndexHelper" class="org.codelibs.fess.helper.DataIndexHelper"> </component> - <component name="overlappingHostHelper" class="jp.sf.fess.helper.OverlappingHostHelper"> + <component name="overlappingHostHelper" class="org.codelibs.fess.helper.OverlappingHostHelper"> </component> - <component name="intervalControlHelper" class="jp.sf.fess.helper.IntervalControlHelper"> + <component name="intervalControlHelper" class="org.codelibs.fess.helper.IntervalControlHelper"> <!-- <initMethod name="addIntervalRule"> <arg>"5:00"</arg> @@ -30,9 +30,9 @@ </initMethod> --> </component> - <component name="sambaHelper" class="jp.sf.fess.helper.SambaHelper"> + <component name="sambaHelper" class="org.codelibs.fess.helper.SambaHelper"> </component> - <component name="indexUpdater" class="jp.sf.fess.solr.IndexUpdater" + <component name="indexUpdater" class="org.codelibs.fess.solr.IndexUpdater" instance="prototype"> <!-- <property name="maxDocumentCacheSize">5</property> @@ -40,7 +40,7 @@ <property name="threadDump">false</property> <initMethod name="addBoostDocumentRule"> <arg> - <component class="jp.sf.fess.solr.BoostDocumentRule"> + <component class="org.codelibs.fess.solr.BoostDocumentRule"> <property name="matchExpression">"url.matches(\".*fess.*\")"</property> <property name="boostExpression">"1000.0"</property> </component> @@ -52,7 +52,7 @@ </initMethod> --> </component> - <component name="fileTypeHelper" class="jp.sf.fess.helper.FileTypeHelper"> + <component name="fileTypeHelper" class="org.codelibs.fess.helper.FileTypeHelper"> <initMethod name="add"> <arg>"text/html"</arg> <arg>"html"</arg> @@ -86,12 +86,12 @@ <arg>"pdf"</arg> </initMethod> </component> - <component name="databaseHelper" class="jp.sf.fess.helper.impl.DatabaseHelperImpl"> + <component name="databaseHelper" class="org.codelibs.fess.helper.impl.DatabaseHelperImpl"> <aspect pointcut="optimize"> j2ee.requiresNewTx </aspect> </component> - <component name="fessCrawler" class="jp.sf.fess.exec.Crawler" + <component name="fessCrawler" class="org.codelibs.fess.exec.Crawler" instance="prototype"> </component> diff --git a/src/main/mysql/webapp/WEB-INF/web.xml b/src/main/mysql/webapp/WEB-INF/web.xml index 2ef6fee95..5ce2e3273 100644 --- a/src/main/mysql/webapp/WEB-INF/web.xml +++ b/src/main/mysql/webapp/WEB-INF/web.xml @@ -27,7 +27,7 @@ <filter> <filter-name>encodingfilter</filter-name> - <filter-class>jp.sf.fess.filter.FessEncodingFilter</filter-class> + <filter-class>org.codelibs.fess.filter.FessEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> @@ -50,7 +50,7 @@ <filter> <filter-name>authenticationFilter</filter-name> - <filter-class>jp.sf.fess.filter.AdminAuthFilter</filter-class> + <filter-class>org.codelibs.fess.filter.AdminAuthFilter</filter-class> <init-param> <param-name>urlPatterns</param-name> <param-value>/fess/admin.*</param-value> @@ -67,7 +67,7 @@ <filter> <filter-name>webApiFilter</filter-name> - <filter-class>jp.sf.fess.filter.WebApiFilter</filter-class> + <filter-class>org.codelibs.fess.filter.WebApiFilter</filter-class> </filter> <filter> @@ -82,7 +82,7 @@ <!-- <filter> <filter-name>adLoginInfoFilter</filter-name> - <filter-class>jp.sf.fess.filter.AdLoginInfoFilter</filter-class> + <filter-class>org.codelibs.fess.filter.AdLoginInfoFilter</filter-class> <init-param> <param-name>redirectLoginError</param-name> <param-value>true</param-value> @@ -231,7 +231,7 @@ <!-- <servlet> <servlet-name>h2ConfigServlet</servlet-name> - <servlet-class>jp.sf.fess.servlet.H2ConfigServlet</servlet-class> + <servlet-class>org.codelibs.fess.servlet.H2ConfigServlet</servlet-class> <init-param> <param-name>tcpPort</param-name> <param-value>19092</param-value> @@ -242,7 +242,7 @@ <servlet> <servlet-name>tomcat7ConfigServlet</servlet-name> - <servlet-class>jp.sf.fess.servlet.Tomcat7ConfigServlet</servlet-class> + <servlet-class>org.codelibs.fess.servlet.Tomcat7ConfigServlet</servlet-class> <load-on-startup>3</load-on-startup> </servlet> diff --git a/src/main/oracle/resources/jdbc.dicon b/src/main/oracle/resources/jdbc.dicon deleted file mode 100644 index 248c89b6f..000000000 --- a/src/main/oracle/resources/jdbc.dicon +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE components PUBLIC "-//SEASAR2.1//DTD S2Container//EN" - "http://www.seasar.org/dtd/components21.dtd"> -<components namespace="jdbc"> - <include path="jta.dicon"/> - - <!-- for Oracle --> - <component name="xaDataSource" - class="org.seasar.extension.dbcp.impl.XADataSourceImpl"> - <property name="driverClassName"> - "oracle.jdbc.driver.OracleDriver" - </property> - <property name="URL"> - "jdbc:oracle:thin:@localhost:1521:XE" - </property> - <property name="user">"fess"</property> - <property name="password">"fess"</property> - </component> - - <component name="connectionPool" - class="org.seasar.extension.dbcp.impl.ConnectionPoolImpl"> - <property name="timeout">600</property> - <property name="maxPoolSize">10</property> - <property name="allowLocalTx">true</property> - <destroyMethod name="close"/> - </component> - - <component name="DataSource" - class="org.seasar.extension.dbcp.impl.DataSourceImpl" - /> - - <!-- from JNDI --> - <!-- - <component name="DataSource" - class="javax.sql.DataSource"> - @org.seasar.extension.j2ee.JndiResourceLocator@lookup("java:comp/env/jdbc/DataSource") - </component> - --> - - <!-- - <component name="dataSource" - class="org.seasar.extension.datasource.impl.SelectableDataSourceProxy"/> - --> -</components> diff --git a/src/main/oracle/resources/s2robot_jdbc.dicon b/src/main/oracle/resources/s2robot_jdbc.dicon deleted file mode 100644 index b5bbf16a4..000000000 --- a/src/main/oracle/resources/s2robot_jdbc.dicon +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE components PUBLIC "-//SEASAR2.1//DTD S2Container//EN" - "http://www.seasar.org/dtd/components21.dtd"> -<components namespace="s2robot_jdbc_mysql"> - <include path="jta.dicon"/> - - <!-- for Oracle --> - <component name="xaDataSource" - class="org.seasar.extension.dbcp.impl.XADataSourceImpl"> - <property name="driverClassName"> - "oracle.jdbc.driver.OracleDriver" - </property> - <property name="URL"> - "jdbc:oracle:thin:@localhost:1521:XE" - </property> - <property name="user">"s2robot"</property> - <property name="password">"s2robot"</property> - </component> - - <component name="connectionPool" - class="org.seasar.extension.dbcp.impl.ConnectionPoolImpl"> - <property name="timeout">600</property> - <property name="maxPoolSize">10</property> - <property name="allowLocalTx">true</property> - <destroyMethod name="close"/> - </component> - - <component name="DataSource" - class="org.seasar.extension.dbcp.impl.DataSourceImpl" - /> - - <!-- from JNDI --> - <!-- - <component name="DataSource" - class="javax.sql.DataSource"> - @org.seasar.extension.j2ee.JndiResourceLocator@lookup("java:comp/env/jdbc/DataSource") - </component> - --> - - <!-- - <component name="dataSource" - class="org.seasar.extension.datasource.impl.SelectableDataSourceProxy"/> - --> -</components> diff --git a/src/main/oracle/webapp/WEB-INF/cmd/resources/app.dicon b/src/main/oracle/webapp/WEB-INF/cmd/resources/app.dicon deleted file mode 100644 index a2b9bbe35..000000000 --- a/src/main/oracle/webapp/WEB-INF/cmd/resources/app.dicon +++ /dev/null @@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" - "http://www.seasar.org/dtd/components24.dtd"> -<components> - <include path="convention.dicon" /> - <include path="aop.dicon" /> - <include path="dbflute.dicon" /> - <include path="fess.dicon" /> - <include path="fess_suggest.dicon"/> - - <include path="s2robot_db.dicon" /> - - <component name="indexingHelper" class="jp.sf.fess.helper.IndexingHelper"> - </component> - <component name="labelTypeHelper" class="jp.sf.fess.helper.LabelTypeHelper"> - </component> - <component name="webFsIndexHelper" class="jp.sf.fess.helper.WebFsIndexHelper"> - </component> - <component name="dataIndexHelper" class="jp.sf.fess.helper.DataIndexHelper"> - </component> - <component name="overlappingHostHelper" class="jp.sf.fess.helper.OverlappingHostHelper"> - </component> - <component name="intervalControlHelper" class="jp.sf.fess.helper.IntervalControlHelper"> - <!-- - <initMethod name="addIntervalRule"> - <arg>"5:00"</arg> - <arg>"10:00"</arg> - <arg>"2,3,4,5,6"</arg> - <arg>3600000</arg> - </initMethod> - --> - </component> - <component name="sambaHelper" class="jp.sf.fess.helper.SambaHelper"> - </component> - <component name="indexUpdater" class="jp.sf.fess.solr.IndexUpdater" - instance="prototype"> - <!-- - <property name="maxDocumentCacheSize">5</property> - <property name="unprocessedDocumentSize">100</property> - <property name="threadDump">false</property> - <initMethod name="addBoostDocumentRule"> - <arg> - <component class="jp.sf.fess.solr.BoostDocumentRule"> - <property name="matchExpression">"url.matches(\".*fess.*\")"</property> - <property name="boostExpression">"1000.0"</property> - </component> - </arg> - </initMethod> - <initMethod name="addDefaultDocValue"> - <arg>"FieldName"</arg> - <arg>"VALUE"</arg> - </initMethod> - --> - </component> - <component name="fileTypeHelper" class="jp.sf.fess.helper.FileTypeHelper"> - <initMethod name="add"> - <arg>"text/html"</arg> - <arg>"html"</arg> - </initMethod> - <initMethod name="add"> - <arg>"application/msword"</arg> - <arg>"word"</arg> - </initMethod> - <initMethod name="add"> - <arg>"application/vnd.openxmlformats-officedocument.wordprocessingml.document"</arg> - <arg>"word"</arg> - </initMethod> - <initMethod name="add"> - <arg>"application/vnd.ms-excel"</arg> - <arg>"excel"</arg> - </initMethod> - <initMethod name="add"> - <arg>"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"</arg> - <arg>"excel"</arg> - </initMethod> - <initMethod name="add"> - <arg>"application/vnd.ms-powerpoint"</arg> - <arg>"powerpoint"</arg> - </initMethod> - <initMethod name="add"> - <arg>"application/vnd.openxmlformats-officedocument.presentationml.presentation"</arg> - <arg>"powerpoint"</arg> - </initMethod> - <initMethod name="add"> - <arg>"application/pdf"</arg> - <arg>"pdf"</arg> - </initMethod> - </component> - <component name="databaseHelper" class="jp.sf.fess.helper.impl.DatabaseHelperImpl"> - <aspect pointcut="optimize"> - j2ee.requiresNewTx - </aspect> - </component> - <component name="fessCrawler" class="jp.sf.fess.exec.Crawler" - instance="prototype"> - </component> - -</components> diff --git a/src/main/oracle/webapp/WEB-INF/web.xml b/src/main/oracle/webapp/WEB-INF/web.xml deleted file mode 100644 index 2ef6fee95..000000000 --- a/src/main/oracle/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,338 +0,0 @@ -<?xml version="1.0"?> -<!-- - * Copyright 2004-2006 the Seasar Foundation 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. ---> -<web-app - xmlns="http://java.sun.com/xml/ns/j2ee" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" - version="2.4"> - - <context-param> - <param-name>sastruts.VIEW_PREFIX</param-name> - <param-value>/WEB-INF/view</param-value> - </context-param> - - <filter> - <filter-name>encodingfilter</filter-name> - <filter-class>jp.sf.fess.filter.FessEncodingFilter</filter-class> - <init-param> - <param-name>encoding</param-name> - <param-value>UTF-8</param-value> - </init-param> - <init-param> - <param-name>encodingRules</param-name> - <param-value>sjis:Shift_JIS,eucjp:EUC-JP</param-value> - </init-param> - </filter> - - <filter> - <filter-name>s2filter</filter-name> - <filter-class>org.seasar.framework.container.filter.S2ContainerFilter</filter-class> - </filter> - - <filter> - <filter-name>hotdeployfilter</filter-name> - <filter-class>org.seasar.framework.container.hotdeploy.HotdeployFilter</filter-class> - </filter> - - <filter> - <filter-name>authenticationFilter</filter-name> - <filter-class>jp.sf.fess.filter.AdminAuthFilter</filter-class> - <init-param> - <param-name>urlPatterns</param-name> - <param-value>/fess/admin.*</param-value> - </init-param> - <init-param> - <param-name>loginPath</param-name> - <param-value>/fess/login/</param-value> - </init-param> - <init-param> - <param-name>cipherName</param-name> - <param-value>authenticationCipher</param-value> - </init-param> - </filter> - - <filter> - <filter-name>webApiFilter</filter-name> - <filter-class>jp.sf.fess.filter.WebApiFilter</filter-class> - </filter> - - <filter> - <filter-name>routingfilter</filter-name> - <filter-class>org.seasar.struts.filter.RoutingFilter</filter-class> - <init-param> - <param-name>jspDirectAccess</param-name> - <param-value>false</param-value> - </init-param> - </filter> - - <!-- - <filter> - <filter-name>adLoginInfoFilter</filter-name> - <filter-class>jp.sf.fess.filter.AdLoginInfoFilter</filter-class> - <init-param> - <param-name>redirectLoginError</param-name> - <param-value>true</param-value> - </init-param> - <init-param> - <param-name>useTestUser</param-name> - <param-value>false</param-value> - </init-param> - <init-param> - <param-name>testUserName</param-name> - <param-value>testUser</param-value> - </init-param> - </filter> - --> - - <!-- SPNEGO --> - <!-- - <filter> - <filter-name>SpnegoHttpFilter</filter-name> - <filter-class>net.sourceforge.spnego.SpnegoHttpFilter</filter-class> - - <init-param> - <param-name>spnego.allow.basic</param-name> - <param-value>false</param-value> - </init-param> - - <init-param> - <param-name>spnego.allow.localhost</param-name> - <param-value>true</param-value> - </init-param> - - <init-param> - <param-name>spnego.allow.unsecure.basic</param-name> - <param-value>false</param-value> - </init-param> - - <init-param> - <param-name>spnego.login.client.module</param-name> - <param-value>spnego-client</param-value> - </init-param> - - <init-param> - <param-name>spnego.krb5.conf</param-name> - <param-value>krb5.conf</param-value> - </init-param> - - <init-param> - <param-name>spnego.login.conf</param-name> - <param-value>login.conf</param-value> - </init-param> - - <init-param> - <param-name>spnego.preauth.username</param-name> - <param-value>knldguser</param-value> - </init-param> - - <init-param> - <param-name>spnego.preauth.password</param-name> - <param-value>zaq12wsx</param-value> - </init-param> - - <init-param> - <param-name>spnego.login.server.module</param-name> - <param-value>spnego-server</param-value> - </init-param> - - <init-param> - <param-name>spnego.prompt.ntlm</param-name> - <param-value>false</param-value> - </init-param> - - <init-param> - <param-name>spnego.logger.level</param-name> - <param-value>1</param-value> - </init-param> - </filter> ---> - - <filter-mapping> - <filter-name>encodingfilter</filter-name> - <url-pattern>/*</url-pattern> - <dispatcher>REQUEST</dispatcher> - <dispatcher>FORWARD</dispatcher> - </filter-mapping> - - <filter-mapping> - <filter-name>s2filter</filter-name> - <url-pattern>/*</url-pattern> - <dispatcher>REQUEST</dispatcher> - <dispatcher>FORWARD</dispatcher> - <dispatcher>INCLUDE</dispatcher> - </filter-mapping> - - <filter-mapping> - <filter-name>hotdeployfilter</filter-name> - <url-pattern>/*</url-pattern> - <dispatcher>REQUEST</dispatcher> - <dispatcher>FORWARD</dispatcher> - <dispatcher>INCLUDE</dispatcher> - </filter-mapping> - - <filter-mapping> - <filter-name>authenticationFilter</filter-name> - <url-pattern>/*</url-pattern> - </filter-mapping> - - <filter-mapping> - <filter-name>webApiFilter</filter-name> - <url-pattern>/*</url-pattern> - <dispatcher>REQUEST</dispatcher> - </filter-mapping> - - <filter-mapping> - <filter-name>routingfilter</filter-name> - <url-pattern>/*</url-pattern> - <dispatcher>REQUEST</dispatcher> - </filter-mapping> - - <!-- - <filter-mapping> - <filter-name>SpnegoHttpFilter</filter-name> - <url-pattern>/*</url-pattern> - </filter-mapping> - <filter-mapping> - <filter-name>adLoginInfoFilter</filter-name> - <url-pattern>*.do</url-pattern> - <dispatcher>REQUEST</dispatcher> - <dispatcher>FORWARD</dispatcher> - </filter-mapping> ---> - - <servlet> - <servlet-name>action</servlet-name> - <servlet-class>org.codelibs.sastruts.core.servlet.SSCActionServlet</servlet-class> - <init-param> - <param-name>config</param-name> - <param-value>/WEB-INF/struts-config.xml</param-value> - </init-param> - <init-param> - <param-name>configFactory</param-name> - <param-value>org.seasar.struts.config.S2ModuleConfigFactory</param-value> - </init-param> - <load-on-startup>1</load-on-startup> - </servlet> - - <!-- - <servlet> - <servlet-name>h2ConfigServlet</servlet-name> - <servlet-class>jp.sf.fess.servlet.H2ConfigServlet</servlet-class> - <init-param> - <param-name>tcpPort</param-name> - <param-value>19092</param-value> - </init-param> - <load-on-startup>2</load-on-startup> - </servlet> - --> - - <servlet> - <servlet-name>tomcat7ConfigServlet</servlet-name> - <servlet-class>jp.sf.fess.servlet.Tomcat7ConfigServlet</servlet-class> - <load-on-startup>3</load-on-startup> - </servlet> - - <servlet> - <servlet-name>s2container</servlet-name> - <servlet-class>org.seasar.framework.container.servlet.S2ContainerServlet</servlet-class> - <load-on-startup>4</load-on-startup> - </servlet> - - <servlet-mapping> - <servlet-name>action</servlet-name> - <url-pattern>*.do</url-pattern> - </servlet-mapping> - -<!-- - <servlet-mapping> - <servlet-name>s2container</servlet-name> - <url-pattern>/s2container</url-pattern> - </servlet-mapping> ---> - - <listener> - <listener-class>org.apache.commons.fileupload.servlet.FileCleanerCleanup</listener-class> - </listener> - -<!-- - <session-config> - <session-timeout>1</session-timeout> - </session-config> - --> - -<!-- - <welcome-file-list> - </welcome-file-list> - --> - - <jsp-config> - <jsp-property-group> - <url-pattern>*.jsp</url-pattern> - <el-ignored>false</el-ignored> - <page-encoding>UTF-8</page-encoding> - <scripting-invalid>false</scripting-invalid> - <include-prelude>/WEB-INF/view/common/common.jsp</include-prelude> - </jsp-property-group> - </jsp-config> - - <security-constraint> - <web-resource-collection> - <web-resource-name>Fess Authentication</web-resource-name> - <url-pattern>/login/login</url-pattern> - </web-resource-collection> - <auth-constraint> - <role-name>fess</role-name> - <!-- - <role-name>role1</role-name> - --> - </auth-constraint> - </security-constraint> - - <security-role> - <role-name>fess</role-name> - </security-role> - - <login-config> - <auth-method>FORM</auth-method> - <form-login-config> - <form-login-page>/WEB-INF/view/login/index.jsp</form-login-page> - <form-error-page>/WEB-INF/view/login/error.jsp</form-error-page> - </form-login-config> - </login-config> - - <error-page> - <error-code>400</error-code> - <location>/WEB-INF/view/error/redirect.jsp?type=badRequest</location> - </error-page> - <error-page> - <error-code>403</error-code> - <location>/WEB-INF/view/error/redirect.jsp?type=logOut</location> - </error-page> - <error-page> - <error-code>404</error-code> - <location>/WEB-INF/view/error/redirect.jsp?type=notFound</location> - </error-page> - <error-page> - <error-code>408</error-code> - <location>/WEB-INF/view/error/redirect.jsp?type=logOut</location> - </error-page> - <error-page> - <error-code>500</error-code> - <location>/WEB-INF/view/error/redirect.jsp?type=systemError</location> - </error-page> - -</web-app> diff --git a/src/main/resources/app.dicon b/src/main/resources/app.dicon index c7f8c4f6e..db1540c4f 100644 --- a/src/main/resources/app.dicon +++ b/src/main/resources/app.dicon @@ -4,6 +4,7 @@ <components> <include path="convention.dicon"/> <include path="aop.dicon"/> + <include path="saflute.dicon"/> <include path="dbflute.dicon"/> <include path="fess.dicon"/> @@ -14,19 +15,19 @@ <include path="s2robot_client.dicon" /> <include path="s2robot_mimetype.dicon" /> - <component name="actionMessagesThrowsInterceptor" class="jp.sf.fess.interceptor.FessActionMessagesThrowsInterceptor"/> + <component name="actionMessagesThrowsInterceptor" class="org.codelibs.fess.interceptor.FessActionMessagesThrowsInterceptor"/> <component name="authenticationCipher" class="org.codelibs.core.crypto.CachedCipher"> <!-- CHANGE THE FOLLOWING KEY --> <property name="key">"1234567890123456"</property> </component> - <component name="labelTypeHelper" class="jp.sf.fess.helper.LabelTypeHelper"> + <component name="labelTypeHelper" class="org.codelibs.fess.helper.LabelTypeHelper"> </component> - <component name="keyMatchHelper" class="jp.sf.fess.helper.KeyMatchHelper"> + <component name="keyMatchHelper" class="org.codelibs.fess.helper.KeyMatchHelper"> </component> - <component name="queryHelper" class="jp.sf.fess.helper.QueryHelper"> + <component name="queryHelper" class="org.codelibs.fess.helper.QueryHelper"> <property name="defaultFacetInfo"> - <component class="jp.sf.fess.entity.FacetInfo"> + <component class="org.codelibs.fess.entity.FacetInfo"> <property name="minCount">1</property> <property name="field">new String[] {"label"}</property> <property name="query">new String[] { @@ -119,10 +120,10 @@ </initMethod> --> </component> - <component name="viewHelper" class="jp.sf.fess.helper.ViewHelper"> + <component name="viewHelper" class="org.codelibs.fess.helper.ViewHelper"> <initMethod name="addFacetQueryView"> <arg> - <component class="jp.sf.fess.entity.FacetQueryView"> + <component class="org.codelibs.fess.entity.FacetQueryView"> <property name="title">"label.facet_lastModified_title"</property> <initMethod name="addQuery"> <arg>"label.facet_lastModified_1day"</arg> @@ -145,7 +146,7 @@ </initMethod> <initMethod name="addFacetQueryView"> <arg> - <component class="jp.sf.fess.entity.FacetQueryView"> + <component class="org.codelibs.fess.entity.FacetQueryView"> <property name="title">"label.facet_contentLength_title"</property> <initMethod name="addQuery"> <arg>"label.facet_contentLength_10k"</arg> @@ -172,7 +173,7 @@ </initMethod> <initMethod name="addFacetQueryView"> <arg> - <component class="jp.sf.fess.entity.FacetQueryView"> + <component class="org.codelibs.fess.entity.FacetQueryView"> <property name="title">"label.facet_filetype_title"</property> <initMethod name="addQuery"> <arg>"label.facet_filetype_html"</arg> @@ -214,12 +215,12 @@ </initMethod> --> </component> - <component name="userAgentHelper" class="jp.sf.fess.helper.UserAgentHelper"> + <component name="userAgentHelper" class="org.codelibs.fess.helper.UserAgentHelper"> </component> - <component name="webManagementHelper" class="jp.sf.fess.helper.impl.TomcatManagementHelperImpl"> + <component name="webManagementHelper" class="org.codelibs.fess.helper.impl.TomcatManagementHelperImpl"> <initMethod name="addSolrInstance"> <arg> - <component class="jp.sf.fess.helper.impl.TomcatManagementHelperImpl$SolrInstance"> + <component class="org.codelibs.fess.helper.impl.TomcatManagementHelperImpl$SolrInstance"> <property name="name">"solrServer1"</property> <property name="managerUrl">"http://localhost:8080/manager/text/"</property> <property name="contextPath">"/solr"</property> @@ -229,13 +230,13 @@ </arg> </initMethod> </component> - <component name="hotSearchWordHelper" class="jp.sf.fess.helper.HotSearchWordHelper"> + <component name="hotSearchWordHelper" class="org.codelibs.fess.helper.HotSearchWordHelper"> <property name="excludedWordPattern">@java.util.regex.Pattern@compile(".*[a-zA-Z0-9_]+:.*")</property> <!-- <property name="size">10</property> --> </component> - <component name="userInfoHelper" class="jp.sf.fess.helper.impl.CookieUserInfoHelperImpl"> + <component name="userInfoHelper" class="org.codelibs.fess.helper.impl.CookieUserInfoHelperImpl"> <!-- <property name="cookieName">"fu"</property> <property name="cookieDomain">""</property> @@ -244,16 +245,16 @@ <property name="cookieSecure">false</property> --> </component> - <component name="openSearchHelper" class="jp.sf.fess.helper.OpenSearchHelper"> + <component name="openSearchHelper" class="org.codelibs.fess.helper.OpenSearchHelper"> <property name="osddPath">"/WEB-INF/orig/open-search/osdd.xml"</property> <property name="encoding">"UTF-8"</property> </component> - <component name="documentHelper" class="jp.sf.fess.helper.DocumentHelper"> + <component name="documentHelper" class="org.codelibs.fess.helper.DocumentHelper"> </component> - <component name="queryResponseList" class="jp.sf.fess.util.QueryResponseList" instance="prototype"> + <component name="queryResponseList" class="org.codelibs.fess.util.QueryResponseList" instance="prototype"> </component> <component name="userAgentName" class="java.lang.String"> - <arg>"Mozilla/5.0 (compatible; Fess/" + @jp.sf.fess.Constants@FESS_VERSION + "; +http://fess.codelibs.org/bot.html)"</arg> + <arg>"Mozilla/5.0 (compatible; Fess/" + @org.codelibs.fess.Constants@FESS_VERSION + "; +http://fess.codelibs.org/bot.html)"</arg> </component> <component name="adProperties" class="java.util.Properties"> @@ -291,13 +292,13 @@ </initMethod> </component> - <component name="adRoleHelper" class="jp.sf.fess.helper.AdRoleHelper"> + <component name="adRoleHelper" class="org.codelibs.fess.helper.AdRoleHelper"> <initMethod name="setAdProperties"> <arg>adProperties</arg> </initMethod> </component> - <component name="suggestHelper" class="jp.sf.fess.helper.SuggestHelper"> + <component name="suggestHelper" class="org.codelibs.fess.helper.SuggestHelper"> <initMethod name="init"> </initMethod> </component> diff --git a/src/main/resources/convention.dicon b/src/main/resources/convention.dicon index 03ce016b0..3542cbb1f 100644 --- a/src/main/resources/convention.dicon +++ b/src/main/resources/convention.dicon @@ -4,7 +4,7 @@ <components> <component class="org.seasar.framework.convention.impl.NamingConventionImpl"> <initMethod name="addRootPackageName"> - <arg>"jp.sf.fess"</arg> + <arg>"org.codelibs.fess"</arg> </initMethod> <initMethod name="addRootPackageName"> <arg>"org.codelibs.sastruts.core"</arg> diff --git a/src/main/resources/creator.dicon b/src/main/resources/creator.dicon index 1313682a1..2a24e4d0f 100644 --- a/src/main/resources/creator.dicon +++ b/src/main/resources/creator.dicon @@ -10,5 +10,5 @@ <component class="org.seasar.framework.container.creator.ServiceCreator"/> <component class="org.seasar.framework.container.creator.DtoCreator"/> <component class="org.seasar.framework.container.creator.InterceptorCreator"/> - <component class="jp.sf.fess.crud.creator.PagerCreator"/> + <component class="org.codelibs.fess.crud.creator.PagerCreator"/> </components> diff --git a/src/main/resources/dbflute.dicon b/src/main/resources/dbflute.dicon deleted file mode 100644 index 86b8fb860..000000000 --- a/src/main/resources/dbflute.dicon +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE components PUBLIC "-//SEASAR2.1//DTD S2Container//EN" - "http://www.seasar.org/dtd/components21.dtd"> - -<components namespace="dbflute"> - <include path="j2ee.dicon"/> - - <!-- The components of DBFlute Runtime. --> - <component name="introduction" class="jp.sf.fess.db.allcommon.DBFluteInitializer"/> - <component name="invokerAssistant" class="jp.sf.fess.db.allcommon.ImplementedInvokerAssistant"/> - <component name="commonColumnAutoSetupper" class="jp.sf.fess.db.allcommon.ImplementedCommonColumnAutoSetupper"/> - <component name="behaviorSelector" class="jp.sf.fess.db.allcommon.ImplementedBehaviorSelector"/> - <component name="behaviorCommandInvoker" class="org.seasar.dbflute.bhv.core.BehaviorCommandInvoker"/> - - <!-- The components of Behavior. --> - <component name="boostDocumentRuleBhv" class="jp.sf.fess.db.exbhv.BoostDocumentRuleBhv"/> - <component name="clickLogBhv" class="jp.sf.fess.db.exbhv.ClickLogBhv"/> - <component name="crawlingSessionBhv" class="jp.sf.fess.db.exbhv.CrawlingSessionBhv"/> - <component name="crawlingSessionInfoBhv" class="jp.sf.fess.db.exbhv.CrawlingSessionInfoBhv"/> - <component name="dataConfigToLabelTypeMappingBhv" class="jp.sf.fess.db.exbhv.DataConfigToLabelTypeMappingBhv"/> - <component name="dataConfigToRoleTypeMappingBhv" class="jp.sf.fess.db.exbhv.DataConfigToRoleTypeMappingBhv"/> - <component name="dataCrawlingConfigBhv" class="jp.sf.fess.db.exbhv.DataCrawlingConfigBhv"/> - <component name="failureUrlBhv" class="jp.sf.fess.db.exbhv.FailureUrlBhv"/> - <component name="favoriteLogBhv" class="jp.sf.fess.db.exbhv.FavoriteLogBhv"/> - <component name="fileAuthenticationBhv" class="jp.sf.fess.db.exbhv.FileAuthenticationBhv"/> - <component name="fileConfigToLabelTypeMappingBhv" class="jp.sf.fess.db.exbhv.FileConfigToLabelTypeMappingBhv"/> - <component name="fileConfigToRoleTypeMappingBhv" class="jp.sf.fess.db.exbhv.FileConfigToRoleTypeMappingBhv"/> - <component name="fileCrawlingConfigBhv" class="jp.sf.fess.db.exbhv.FileCrawlingConfigBhv"/> - <component name="jobLogBhv" class="jp.sf.fess.db.exbhv.JobLogBhv"/> - <component name="keyMatchBhv" class="jp.sf.fess.db.exbhv.KeyMatchBhv"/> - <component name="labelTypeBhv" class="jp.sf.fess.db.exbhv.LabelTypeBhv"/> - <component name="labelTypeToRoleTypeMappingBhv" class="jp.sf.fess.db.exbhv.LabelTypeToRoleTypeMappingBhv"/> - <component name="overlappingHostBhv" class="jp.sf.fess.db.exbhv.OverlappingHostBhv"/> - <component name="pathMappingBhv" class="jp.sf.fess.db.exbhv.PathMappingBhv"/> - <component name="requestHeaderBhv" class="jp.sf.fess.db.exbhv.RequestHeaderBhv"/> - <component name="roleTypeBhv" class="jp.sf.fess.db.exbhv.RoleTypeBhv"/> - <component name="scheduledJobBhv" class="jp.sf.fess.db.exbhv.ScheduledJobBhv"/> - <component name="searchFieldLogBhv" class="jp.sf.fess.db.exbhv.SearchFieldLogBhv"/> - <component name="searchLogBhv" class="jp.sf.fess.db.exbhv.SearchLogBhv"/> - <component name="suggestBadWordBhv" class="jp.sf.fess.db.exbhv.SuggestBadWordBhv"/> - <component name="suggestElevateWordBhv" class="jp.sf.fess.db.exbhv.SuggestElevateWordBhv"/> - <component name="userInfoBhv" class="jp.sf.fess.db.exbhv.UserInfoBhv"/> - <component name="webAuthenticationBhv" class="jp.sf.fess.db.exbhv.WebAuthenticationBhv"/> - <component name="webConfigToLabelTypeMappingBhv" class="jp.sf.fess.db.exbhv.WebConfigToLabelTypeMappingBhv"/> - <component name="webConfigToRoleTypeMappingBhv" class="jp.sf.fess.db.exbhv.WebConfigToRoleTypeMappingBhv"/> - <component name="webCrawlingConfigBhv" class="jp.sf.fess.db.exbhv.WebCrawlingConfigBhv"/> -</components> diff --git a/src/main/resources/fess.dicon b/src/main/resources/fess.dicon index d504c2716..08660ec7e 100644 --- a/src/main/resources/fess.dicon +++ b/src/main/resources/fess.dicon @@ -8,25 +8,25 @@ <component name="crawlerProperties" class="org.codelibs.core.util.DynamicProperties"> <arg> - @jp.sf.fess.util.ResourceUtil@getConfPath("crawler.properties") + @org.codelibs.fess.util.ResourceUtil@getConfPath("crawler.properties") </arg> </component> - <component name="searchLogHelper" class="jp.sf.fess.helper.impl.SearchLogHelperImpl"> + <component name="searchLogHelper" class="org.codelibs.fess.helper.impl.SearchLogHelperImpl"> <!-- <property name="userCheckInterval">5 * 60 * 1000</property> <property name="userInfoCacheSize">1000</property> --> </component> - <component name="crawlingConfigHelper" class="jp.sf.fess.helper.CrawlingConfigHelper"> + <component name="crawlingConfigHelper" class="org.codelibs.fess.helper.CrawlingConfigHelper"> </component> - <component name="pathMappingHelper" class="jp.sf.fess.helper.PathMappingHelper"> + <component name="pathMappingHelper" class="org.codelibs.fess.helper.PathMappingHelper"> </component> - <component name="jobHelper" class="jp.sf.fess.helper.JobHelper"> + <component name="jobHelper" class="org.codelibs.fess.helper.JobHelper"> </component> - <component name="fieldHelper" class="jp.sf.fess.helper.FieldHelper"> + <component name="fieldHelper" class="org.codelibs.fess.helper.FieldHelper"> </component> - <component name="systemHelper" class="jp.sf.fess.helper.SystemHelper"> + <component name="systemHelper" class="org.codelibs.fess.helper.SystemHelper"> <!-- <property name="javaCommandPath">"java"</property> <property name="filterPathEncoding">"UTF-8"</property> @@ -143,9 +143,9 @@ new String[] { <arg>"cache.hbs"</arg> </initMethod> </component> - <component name="crawlingSessionHelper" class="jp.sf.fess.helper.CrawlingSessionHelper"> + <component name="crawlingSessionHelper" class="org.codelibs.fess.helper.CrawlingSessionHelper"> </component> - <component name="mailHelper" class="jp.sf.fess.helper.MailHelper"> + <component name="mailHelper" class="org.codelibs.fess.helper.MailHelper"> <initMethod name="addProperty"> <arg>"mail.smtp.host"</arg> <arg>"localhost"</arg> @@ -154,7 +154,7 @@ new String[] { <property name="from">"Administrator <root@localhost>"</property> --> </component> - <component name="roleQueryHelper" class="jp.sf.fess.helper.impl.RoleQueryHelperImpl"> + <component name="roleQueryHelper" class="org.codelibs.fess.helper.impl.RoleQueryHelperImpl"> <!-- ex. parameter: fessRoles=123%0aadmin --> <!-- <property name="parameterKey">"fessRoles"</property> @@ -176,7 +176,7 @@ new String[] { --> </component> <!-- - <component name="screenShotManager" class="jp.sf.fess.screenshot.ScreenShotManager"> + <component name="screenShotManager" class="org.codelibs.fess.screenshot.ScreenShotManager"> <initMethod name="add"> <arg>htmlScreenShotGenerator</arg> </initMethod> @@ -192,7 +192,7 @@ new String[] { </arg> <destroyMethod name="quit"></destroyMethod> </component> - <component name="htmlScreenShotGenerator" class="jp.sf.fess.screenshot.impl.WebDriverGenerator"> + <component name="htmlScreenShotGenerator" class="org.codelibs.fess.screenshot.impl.WebDriverGenerator"> <property name="webDriver">webDriver</property> <initMethod name="addCondition"> <arg>"mimetype"</arg> @@ -201,7 +201,7 @@ new String[] { </component> --> <!-- - <component name="htmlScreenShotGenerator" class="jp.sf.fess.screenshot.impl.CommandGenerator"> + <component name="htmlScreenShotGenerator" class="org.codelibs.fess.screenshot.impl.CommandGenerator"> <property name="commandList"> {"bash", "/opt/fess/bin/html-screenshot.sh", diff --git a/src/main/resources/fess_api.dicon b/src/main/resources/fess_api.dicon index 33cff2d8d..63b219eb0 100644 --- a/src/main/resources/fess_api.dicon +++ b/src/main/resources/fess_api.dicon @@ -2,7 +2,7 @@ <!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" "http://www.seasar.org/dtd/components24.dtd"> <components> - <component name="webApiManagerFactory" class="jp.sf.fess.api.WebApiManagerFactory"> + <component name="webApiManagerFactory" class="org.codelibs.fess.api.WebApiManagerFactory"> <initMethod name="add"> <arg>xmlApiManager</arg> </initMethod> @@ -11,9 +11,9 @@ </initMethod> </component> - <component name="xmlApiManager" class="jp.sf.fess.api.xml.XmlApiManager"> + <component name="xmlApiManager" class="org.codelibs.fess.api.xml.XmlApiManager"> </component> - <component name="jsonApiManager" class="jp.sf.fess.api.json.JsonApiManager"> + <component name="jsonApiManager" class="org.codelibs.fess.api.json.JsonApiManager"> </component> </components> diff --git a/src/main/resources/fess_dict.dicon b/src/main/resources/fess_dict.dicon index 6029e6a6b..78647dabf 100644 --- a/src/main/resources/fess_dict.dicon +++ b/src/main/resources/fess_dict.dicon @@ -2,7 +2,7 @@ <!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" "http://www.seasar.org/dtd/components24.dtd"> <components> - <component name="dictionaryManager" class="jp.sf.fess.dict.DictionaryManager"> + <component name="dictionaryManager" class="org.codelibs.fess.dict.DictionaryManager"> <initMethod name="addLocator"> <arg>userDictLocator</arg> </initMethod> @@ -11,7 +11,7 @@ </initMethod> </component> - <component name="synonymLocator" class="jp.sf.fess.dict.synonym.SynonymLocator"> + <component name="synonymLocator" class="org.codelibs.fess.dict.synonym.SynonymLocator"> <property name="excludedSynonymList">{"data", "txlog", "lib", "bin", "contrib"}</property> <initMethod name="addSearchPath"> @@ -19,7 +19,7 @@ </initMethod> </component> - <component name="userDictLocator" class="jp.sf.fess.dict.userdict.UserDictLocator"> + <component name="userDictLocator" class="org.codelibs.fess.dict.userdict.UserDictLocator"> <property name="excludedUserDictList">{"data", "txlog", "lib", "bin", "contrib"}</property> <initMethod name="addSearchPath"> diff --git a/src/main/resources/fess_ds.dicon b/src/main/resources/fess_ds.dicon index 19d334f78..8d23f2300 100644 --- a/src/main/resources/fess_ds.dicon +++ b/src/main/resources/fess_ds.dicon @@ -2,7 +2,7 @@ <!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" "http://www.seasar.org/dtd/components24.dtd"> <components> - <component name="dataStoreFactory" class="jp.sf.fess.ds.DataStoreFactory"> + <component name="dataStoreFactory" class="org.codelibs.fess.ds.DataStoreFactory"> <initMethod name="add"> <arg>"DatabaseDataStore"</arg> <arg>databaseDataStore</arg> @@ -17,17 +17,17 @@ </initMethod> </component> - <component name="databaseDataStore" class="jp.sf.fess.ds.impl.DatabaseDataStoreImpl"> + <component name="databaseDataStore" class="org.codelibs.fess.ds.impl.DatabaseDataStoreImpl"> </component> - <component name="csvDataStore" class="jp.sf.fess.ds.impl.CsvDataStoreImpl"> + <component name="csvDataStore" class="org.codelibs.fess.ds.impl.CsvDataStoreImpl"> <!-- <property name="csvFileSuffixs">new String[] { ".csv", ".tsv" }</property> --> </component> - <component name="fileListDataStore" class="jp.sf.fess.ds.impl.FileListDataStoreImpl"> + <component name="fileListDataStore" class="org.codelibs.fess.ds.impl.FileListDataStoreImpl"> </component> - <component name="indexUpdateCallback" class="jp.sf.fess.ds.impl.IndexUpdateCallbackImpl" instance="prototype"> + <component name="indexUpdateCallback" class="org.codelibs.fess.ds.impl.IndexUpdateCallbackImpl" instance="prototype"> <!-- <property name="maxDocumentCacheSize">10</property> --> diff --git a/src/main/resources/fess_job.dicon b/src/main/resources/fess_job.dicon index 31cd85917..f1c4b00e7 100644 --- a/src/main/resources/fess_job.dicon +++ b/src/main/resources/fess_job.dicon @@ -2,27 +2,20 @@ <!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" "http://www.seasar.org/dtd/components24.dtd"> <components> - <component name="jobScheduler" class="jp.sf.fess.job.JobScheduler"> + <component name="jobScheduler" class="org.codelibs.fess.job.JobScheduler"> </component> - <component name="groovyJobExecutor" class="jp.sf.fess.job.impl.GroovyExecutor" instance="prototype"> + <component name="groovyJobExecutor" class="org.codelibs.fess.job.impl.GroovyExecutor" instance="prototype"> </component> <!-- Jobs --> - <component name="crawlJob" class="jp.sf.fess.job.CrawlJob" instance="prototype"> + <component name="crawlJob" class="org.codelibs.fess.job.CrawlJob" instance="prototype"> </component> - <component name="aggregateLogJob" class="jp.sf.fess.job.AggregateLogJob" instance="prototype"> + <component name="aggregateLogJob" class="org.codelibs.fess.job.AggregateLogJob" instance="prototype"> </component> - <component name="purgeLogJob" class="jp.sf.fess.job.PurgeLogJob" instance="prototype"> + <component name="purgeLogJob" class="org.codelibs.fess.job.PurgeLogJob" instance="prototype"> </component> - <component name="updateHotWordJob" class="jp.sf.fess.job.UpdateHotWordJob" instance="prototype"> + <component name="updateHotWordJob" class="org.codelibs.fess.job.UpdateHotWordJob" instance="prototype"> </component> - <component name="updateStatsJob" class="jp.sf.fess.job.UpdateStatsJob" instance="prototype"> - </component> - <!-- Deprecated --> - <component name="minutelyJob" class="jp.sf.fess.job.MinutelyJob" instance="prototype"> - </component> - <component name="hourlyJob" class="jp.sf.fess.job.HourlyJob" instance="prototype"> - </component> - <component name="dailyJob" class="jp.sf.fess.job.DailyJob" instance="prototype"> + <component name="updateStatsJob" class="org.codelibs.fess.job.UpdateStatsJob" instance="prototype"> </component> </components> diff --git a/src/main/resources/fess_suggest.dicon b/src/main/resources/fess_suggest.dicon index adc0024dc..e5960072e 100644 --- a/src/main/resources/fess_suggest.dicon +++ b/src/main/resources/fess_suggest.dicon @@ -2,23 +2,23 @@ <!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" "http://www.seasar.org/dtd/components24.dtd"> <components> - <component name="suggestIntegrateConverter" class="jp.sf.fess.suggest.converter.SuggestIntegrateConverter"> + <component name="suggestIntegrateConverter" class="org.codelibs.fess.suggest.converter.SuggestIntegrateConverter"> <initMethod name="addConverter"> <arg> - <component name="alphabetConverter" class="jp.sf.fess.suggest.converter.AlphabetConverter" /> + <component name="alphabetConverter" class="org.codelibs.fess.suggest.converter.AlphabetConverter" /> </arg> </initMethod> <initMethod name="start"/> </component> - <component name="suggestIntegrateNormalizer" class="jp.sf.fess.suggest.normalizer.SuggestIntegrateNormalizer"> + <component name="suggestIntegrateNormalizer" class="org.codelibs.fess.suggest.normalizer.SuggestIntegrateNormalizer"> <initMethod name="addNormalizer"> <arg> - <component name="fullWidthToHalfWidthAlphabetNormalizer" class="jp.sf.fess.suggest.normalizer.FullWidthToHalfWidthAlphabetNormalizer" /> + <component name="fullWidthToHalfWidthAlphabetNormalizer" class="org.codelibs.fess.suggest.normalizer.FullWidthToHalfWidthAlphabetNormalizer" /> </arg> </initMethod> <initMethod name="addNormalizer"> <arg> - <component name="icuNormalizer" class="jp.sf.fess.suggest.normalizer.ICUNormalizer"> + <component name="icuNormalizer" class="org.codelibs.fess.suggest.normalizer.ICUNormalizer"> <property name="transliteratorId">"Any-Lower"</property> </component> </arg> @@ -26,7 +26,7 @@ <initMethod name="start"/> </component> - <component name="suggester" class="jp.sf.fess.suggest.Suggester"> + <component name="suggester" class="org.codelibs.fess.suggest.Suggester"> <initMethod name="setConverter"> <arg>suggestIntegrateConverter</arg> </initMethod> @@ -35,7 +35,7 @@ </initMethod> </component> - <component name="spellchecker" class="jp.sf.fess.suggest.SpellChecker"> + <component name="spellchecker" class="org.codelibs.fess.suggest.SpellChecker"> <property name="fuzzyValue">0.5</property> <initMethod name="setConverter"> <arg>suggestIntegrateConverter</arg> @@ -73,12 +73,12 @@ </component> - <component name="suggestSolrServer" class="jp.sf.fess.suggest.server.SuggestSolrServer"> + <component name="suggestSolrServer" class="org.codelibs.fess.suggest.server.SuggestSolrServer"> <arg> suggestSolrLibSolrServer </arg> </component> - <component name="suggestService" class="jp.sf.fess.suggest.service.SuggestService"> + <component name="suggestService" class="org.codelibs.fess.suggest.service.SuggestService"> <arg> suggester </arg> <arg> spellchecker </arg> <arg> suggestSolrServer </arg> diff --git a/src/main/resources/jp/sf/fess/db/exbhv/ClickLogBhv_selectClickUrlRanking.sql b/src/main/resources/jp/sf/fess/db/exbhv/ClickLogBhv_selectClickUrlRanking.sql deleted file mode 100644 index bbe14980d..000000000 --- a/src/main/resources/jp/sf/fess/db/exbhv/ClickLogBhv_selectClickUrlRanking.sql +++ /dev/null @@ -1,26 +0,0 @@ --- #df:entity# - --- !df:pmb extends SPB! --- !!Timestamp fromRequestedTime!! --- !!Timestamp toRequestedTime!! - -/*IF pmb.isPaging()*/ -select --- ELSE select count(*) from (select -/*END*/ - URL as name, - count(URL) as cnt - from CLICK_LOG - /*BEGIN*/where - /*IF pmb.fromRequestedTime != null*/ - REQUESTED_TIME >= /*pmb.fromRequestedTime*/'2009-10-26 00:00:00' - /*END*/ - /*IF pmb.toRequestedTime != null*/ - and REQUESTED_TIME < /*pmb.toRequestedTime*/'2009-10-30 00:00:00' - /*END*/ - /*END*/ - group by URL -/*IF pmb.isPaging()*/ - order by count(URL) desc --- ELSE ) as tb1 -/*END*/ diff --git a/src/main/resources/jp/sf/fess/db/exbhv/FavoriteLogBhv_selectFavoriteUrlCount.sql b/src/main/resources/jp/sf/fess/db/exbhv/FavoriteLogBhv_selectFavoriteUrlCount.sql deleted file mode 100644 index 7dc8422c5..000000000 --- a/src/main/resources/jp/sf/fess/db/exbhv/FavoriteLogBhv_selectFavoriteUrlCount.sql +++ /dev/null @@ -1,22 +0,0 @@ --- #df:entity# - --- !df:pmb extends SPB! --- !!String url!! - -/*IF pmb.isPaging()*/ -select --- ELSE select count(*) from (select -/*END*/ - URL as name, - count(URL) as cnt - from FAVORITE_LOG - /*BEGIN*/where - /*IF pmb.url != null*/ - URL = /*pmb.url*/'http://' - /*END*/ - /*END*/ - group by URL -/*IF pmb.isPaging()*/ - order by count(URL) desc --- ELSE ) as tb1 -/*END*/ diff --git a/src/main/resources/jp/sf/fess/db/exbhv/FavoriteLogBhv_selectFavoriteUrlRanking.sql b/src/main/resources/jp/sf/fess/db/exbhv/FavoriteLogBhv_selectFavoriteUrlRanking.sql deleted file mode 100644 index 5f38b4a76..000000000 --- a/src/main/resources/jp/sf/fess/db/exbhv/FavoriteLogBhv_selectFavoriteUrlRanking.sql +++ /dev/null @@ -1,26 +0,0 @@ --- #df:entity# - --- !df:pmb extends SPB! --- !!Timestamp fromCreatedTime!! --- !!Timestamp toCreatedTime!! - -/*IF pmb.isPaging()*/ -select --- ELSE select count(*) from (select -/*END*/ - URL as name, - count(URL) as cnt - from FAVORITE_LOG - /*BEGIN*/where - /*IF pmb.fromCreatedTime != null*/ - CREATED_TIME >= /*pmb.fromCreatedTime*/'2009-10-26 00:00:00' - /*END*/ - /*IF pmb.toCreatedTime != null*/ - and CREATED_TIME < /*pmb.toCreatedTime*/'2009-10-30 00:00:00' - /*END*/ - /*END*/ - group by URL -/*IF pmb.isPaging()*/ - order by count(URL) desc --- ELSE ) as tb1 -/*END*/ diff --git a/src/main/resources/jp/sf/fess/db/exbhv/SearchFieldLogBhv_selectGroupedFieldName.sql b/src/main/resources/jp/sf/fess/db/exbhv/SearchFieldLogBhv_selectGroupedFieldName.sql deleted file mode 100644 index f336656ec..000000000 --- a/src/main/resources/jp/sf/fess/db/exbhv/SearchFieldLogBhv_selectGroupedFieldName.sql +++ /dev/null @@ -1,15 +0,0 @@ --- #df:entity# - --- !df:pmb extends SPB! - -/*IF pmb.isPaging()*/ -select --- ELSE select count(*) from (select -/*END*/ - NAME as name - from SEARCH_FIELD_LOG - group by NAME -/*IF pmb.isPaging()*/ - order by NAME desc --- ELSE ) as tb1 -/*END*/ diff --git a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectClientIpRanking.sql b/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectClientIpRanking.sql deleted file mode 100644 index 36609d23c..000000000 --- a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectClientIpRanking.sql +++ /dev/null @@ -1,26 +0,0 @@ --- #df:entity# - --- !df:pmb extends SPB! --- !!Timestamp fromRequestedTime!! --- !!Timestamp toRequestedTime!! - -/*IF pmb.isPaging()*/ -select --- ELSE select count(*) from (select -/*END*/ - CLIENT_IP as name, - count(CLIENT_IP) as cnt - from SEARCH_LOG - /*BEGIN*/where - /*IF pmb.fromRequestedTime != null*/ - REQUESTED_TIME >= /*pmb.fromRequestedTime*/'2009-10-26 00:00:00' - /*END*/ - /*IF pmb.toRequestedTime != null*/ - and REQUESTED_TIME < /*pmb.toRequestedTime*/'2009-10-30 00:00:00' - /*END*/ - /*END*/ - group by CLIENT_IP -/*IF pmb.isPaging()*/ - order by count(CLIENT_IP) desc --- ELSE ) as tb1 -/*END*/ diff --git a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectHotSearchWord.sql b/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectHotSearchWord.sql deleted file mode 100644 index bbef7c024..000000000 --- a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectHotSearchWord.sql +++ /dev/null @@ -1,26 +0,0 @@ --- #df:entity# - --- !df:pmb extends SPB! --- !!Timestamp fromRequestedTime!! --- !!Timestamp toRequestedTime!! - -/*IF pmb.isPaging()*/ -select --- ELSE select count(*) from (select -/*END*/ - SEARCH_WORD as name - from SEARCH_LOG - /*BEGIN*/where - /*IF pmb.fromRequestedTime != null*/ - REQUESTED_TIME >= /*pmb.fromRequestedTime*/'2009-10-26 00:00:00' - /*END*/ - /*IF pmb.toRequestedTime != null*/ - and REQUESTED_TIME < /*pmb.toRequestedTime*/'2009-10-30 00:00:00' - /*END*/ - and HIT_COUNT != 0 - /*END*/ - group by SEARCH_WORD -/*IF pmb.isPaging()*/ - order by count(SEARCH_WORD) desc --- ELSE ) as tb1 -/*END*/ diff --git a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectRefererRanking.sql b/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectRefererRanking.sql deleted file mode 100644 index 8663b8d32..000000000 --- a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectRefererRanking.sql +++ /dev/null @@ -1,26 +0,0 @@ --- #df:entity# - --- !df:pmb extends SPB! --- !!Timestamp fromRequestedTime!! --- !!Timestamp toRequestedTime!! - -/*IF pmb.isPaging()*/ -select --- ELSE select count(*) from (select -/*END*/ - REFERER as name, - count(REFERER) as cnt - from SEARCH_LOG - /*BEGIN*/where - /*IF pmb.fromRequestedTime != null*/ - REQUESTED_TIME >= /*pmb.fromRequestedTime*/'2009-10-26 00:00:00' - /*END*/ - /*IF pmb.toRequestedTime != null*/ - and REQUESTED_TIME < /*pmb.toRequestedTime*/'2009-10-30 00:00:00' - /*END*/ - /*END*/ - group by REFERER -/*IF pmb.isPaging()*/ - order by count(REFERER) desc --- ELSE ) as tb1 -/*END*/ diff --git a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSearchFieldRanking.sql b/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSearchFieldRanking.sql deleted file mode 100644 index db6dca281..000000000 --- a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSearchFieldRanking.sql +++ /dev/null @@ -1,27 +0,0 @@ --- #df:entity# - --- !df:pmb extends SPB! --- !!String searchFieldName!! --- !!Timestamp fromRequestedTime!! --- !!Timestamp toRequestedTime!! - -/*IF pmb.isPaging()*/ -select --- ELSE select count(*) from (select -/*END*/ - SEARCH_FIELD_LOG.VALUE as name, - count(SEARCH_FIELD_LOG.VALUE) as cnt - from SEARCH_FIELD_LOG inner join SEARCH_LOG on SEARCH_FIELD_LOG.SEARCH_ID = SEARCH_LOG.ID - where - SEARCH_FIELD_LOG.NAME = /*pmb.searchFieldName*/'solrQuery' - /*IF pmb.fromRequestedTime != null*/ - and SEARCH_LOG.REQUESTED_TIME >= /*pmb.fromRequestedTime*/'2009-10-26 00:00:00' - /*END*/ - /*IF pmb.toRequestedTime != null*/ - and SEARCH_LOG.REQUESTED_TIME < /*pmb.toRequestedTime*/'2009-10-30 00:00:00' - /*END*/ - group by SEARCH_FIELD_LOG.VALUE -/*IF pmb.isPaging()*/ - order by count(SEARCH_FIELD_LOG.VALUE) desc --- ELSE ) as tb1 -/*END*/ diff --git a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSearchQueryRanking.sql b/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSearchQueryRanking.sql deleted file mode 100644 index b2ec000f2..000000000 --- a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSearchQueryRanking.sql +++ /dev/null @@ -1,26 +0,0 @@ --- #df:entity# - --- !df:pmb extends SPB! --- !!Timestamp fromRequestedTime!! --- !!Timestamp toRequestedTime!! - -/*IF pmb.isPaging()*/ -select --- ELSE select count(*) from (select -/*END*/ - SEARCH_FIELD_LOG.VALUE as name, - count(SEARCH_FIELD_LOG.VALUE) as cnt - from SEARCH_FIELD_LOG inner join SEARCH_LOG on SEARCH_FIELD_LOG.SEARCH_ID = SEARCH_LOG.ID - where - SEARCH_FIELD_LOG.NAME = 'query' - /*IF pmb.fromRequestedTime != null*/ - and SEARCH_LOG.REQUESTED_TIME >= /*pmb.fromRequestedTime*/'2009-10-26 00:00:00' - /*END*/ - /*IF pmb.toRequestedTime != null*/ - and SEARCH_LOG.REQUESTED_TIME < /*pmb.toRequestedTime*/'2009-10-30 00:00:00' - /*END*/ - group by SEARCH_FIELD_LOG.VALUE -/*IF pmb.isPaging()*/ - order by count(SEARCH_FIELD_LOG.VALUE) desc --- ELSE ) as tb1 -/*END*/ \ No newline at end of file diff --git a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSearchWordRanking.sql b/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSearchWordRanking.sql deleted file mode 100644 index 07d0f84ef..000000000 --- a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSearchWordRanking.sql +++ /dev/null @@ -1,26 +0,0 @@ --- #df:entity# - --- !df:pmb extends SPB! --- !!Timestamp fromRequestedTime!! --- !!Timestamp toRequestedTime!! - -/*IF pmb.isPaging()*/ -select --- ELSE select count(*) from (select -/*END*/ - SEARCH_WORD as name, - count(SEARCH_WORD) as cnt - from SEARCH_LOG - /*BEGIN*/where - /*IF pmb.fromRequestedTime != null*/ - REQUESTED_TIME >= /*pmb.fromRequestedTime*/'2009-10-26 00:00:00' - /*END*/ - /*IF pmb.toRequestedTime != null*/ - and REQUESTED_TIME < /*pmb.toRequestedTime*/'2009-10-30 00:00:00' - /*END*/ - /*END*/ - group by SEARCH_WORD -/*IF pmb.isPaging()*/ - order by count(SEARCH_WORD) desc --- ELSE ) as tb1 -/*END*/ diff --git a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSolrQueryRanking.sql b/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSolrQueryRanking.sql deleted file mode 100644 index a78a1000b..000000000 --- a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectSolrQueryRanking.sql +++ /dev/null @@ -1,26 +0,0 @@ --- #df:entity# - --- !df:pmb extends SPB! --- !!Timestamp fromRequestedTime!! --- !!Timestamp toRequestedTime!! - -/*IF pmb.isPaging()*/ -select --- ELSE select count(*) from (select -/*END*/ - SEARCH_FIELD_LOG.VALUE as name, - count(SEARCH_FIELD_LOG.VALUE) as cnt - from SEARCH_FIELD_LOG inner join SEARCH_LOG on SEARCH_FIELD_LOG.SEARCH_ID = SEARCH_LOG.ID - where - SEARCH_FIELD_LOG.NAME = 'solrQuery' - /*IF pmb.fromRequestedTime != null*/ - and SEARCH_LOG.REQUESTED_TIME >= /*pmb.fromRequestedTime*/'2009-10-26 00:00:00' - /*END*/ - /*IF pmb.toRequestedTime != null*/ - and SEARCH_LOG.REQUESTED_TIME < /*pmb.toRequestedTime*/'2009-10-30 00:00:00' - /*END*/ - group by SEARCH_FIELD_LOG.VALUE -/*IF pmb.isPaging()*/ - order by count(SEARCH_FIELD_LOG.VALUE) desc --- ELSE ) as tb1 -/*END*/ diff --git a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectUserAgentRanking.sql b/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectUserAgentRanking.sql deleted file mode 100644 index f537b3fcc..000000000 --- a/src/main/resources/jp/sf/fess/db/exbhv/SearchLogBhv_selectUserAgentRanking.sql +++ /dev/null @@ -1,26 +0,0 @@ --- #df:entity# - --- !df:pmb extends SPB! --- !!Timestamp fromRequestedTime!! --- !!Timestamp toRequestedTime!! - -/*IF pmb.isPaging()*/ -select --- ELSE select count(*) from (select -/*END*/ - USER_AGENT as name, - count(USER_AGENT) as cnt - from SEARCH_LOG - /*BEGIN*/where - /*IF pmb.fromRequestedTime != null*/ - REQUESTED_TIME >= /*pmb.fromRequestedTime*/'2009-10-26 00:00:00' - /*END*/ - /*IF pmb.toRequestedTime != null*/ - and REQUESTED_TIME < /*pmb.toRequestedTime*/'2009-10-30 00:00:00' - /*END*/ - /*END*/ - group by USER_AGENT -/*IF pmb.isPaging()*/ - order by count(USER_AGENT) desc --- ELSE ) as tb1 -/*END*/ diff --git a/src/main/resources/log4j.xml b/src/main/resources/log4j.xml index fdc58b09e..55d153c96 100644 --- a/src/main/resources/log4j.xml +++ b/src/main/resources/log4j.xml @@ -27,7 +27,7 @@ <logger name="org.seasar" > <level value ="debug" /> </logger> - <logger name="jp.sf.fess" > + <logger name="org.codelibs.fess" > <level value ="debug" /> </logger> <logger name="org.codelibs.robot" > diff --git a/src/main/resources/s2robot_db.dicon b/src/main/resources/s2robot_db.dicon index 7ac5e4c5a..8a13a5437 100644 --- a/src/main/resources/s2robot_db.dicon +++ b/src/main/resources/s2robot_db.dicon @@ -19,7 +19,7 @@ </component> <!-- Robot Thread --> - <component name="robotThread" class="jp.sf.fess.robot.FessS2RobotThread" instance="prototype" > + <component name="robotThread" class="org.codelibs.fess.robot.FessS2RobotThread" instance="prototype" > <property name="noWaitOnFolder">true</property> </component> diff --git a/src/main/resources/s2robot_interval.dicon b/src/main/resources/s2robot_interval.dicon index 4e6070df8..200967f42 100644 --- a/src/main/resources/s2robot_interval.dicon +++ b/src/main/resources/s2robot_interval.dicon @@ -2,6 +2,6 @@ <!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" "http://www.seasar.org/dtd/components24.dtd"> <components> - <component name="intervalController" class="jp.sf.fess.interval.FessIntervalController" instance="prototype"> + <component name="intervalController" class="org.codelibs.fess.interval.FessIntervalController" instance="prototype"> </component> </components> diff --git a/src/main/resources/s2robot_jdbc.dicon b/src/main/resources/s2robot_jdbc.dicon index 1b7d0d743..287255e92 100644 --- a/src/main/resources/s2robot_jdbc.dicon +++ b/src/main/resources/s2robot_jdbc.dicon @@ -12,7 +12,7 @@ </property> <property name="URL"> "jdbc:h2:file:" - + @jp.sf.fess.util.ResourceUtil@getDbPath("robot") + + @org.codelibs.fess.util.ResourceUtil@getDbPath("robot") + ";DB_CLOSE_ON_EXIT=FALSE;LOG=2;MVCC=true" </property> <property name="user">"sa"</property> diff --git a/src/main/resources/s2robot_log.dicon b/src/main/resources/s2robot_log.dicon index 6b536f71f..4cbdcf3a6 100644 --- a/src/main/resources/s2robot_log.dicon +++ b/src/main/resources/s2robot_log.dicon @@ -2,6 +2,6 @@ <!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" "http://www.seasar.org/dtd/components24.dtd"> <components> - <component name="logHelper" class="jp.sf.fess.helper.RobotLogHelper"> + <component name="logHelper" class="org.codelibs.fess.helper.RobotLogHelper"> </component> </components> diff --git a/src/main/resources/s2robot_transformer.dicon b/src/main/resources/s2robot_transformer.dicon index f0320046a..537628289 100644 --- a/src/main/resources/s2robot_transformer.dicon +++ b/src/main/resources/s2robot_transformer.dicon @@ -4,7 +4,7 @@ <components> <include path="s2robot_transformer_basic.dicon"/> - <component name="fessXpathTransformer" class="jp.sf.fess.transformer.FessXpathTransformer" instance="singleton"> + <component name="fessXpathTransformer" class="org.codelibs.fess.transformer.FessXpathTransformer" instance="singleton"> <property name="name">"fessXpathTransformer"</property> <property name="featureMap">defaultFeatureMap</property> <property name="propertyMap">defaultPropertyMap</property> @@ -36,7 +36,7 @@ </initMethod> </component> - <component name="fessFileTransformer" class="jp.sf.fess.transformer.FessFileTransformer" instance="singleton"> + <component name="fessFileTransformer" class="org.codelibs.fess.transformer.FessFileTransformer" instance="singleton"> <property name="name">"fessFileTransformer"</property> <property name="replaceSiteEncodingWhenEnglish">true</property> <property name="siteEncoding">"UTF-8"</property> @@ -57,7 +57,7 @@ --> </component> - <component name="fessTikaTransformer" class="jp.sf.fess.transformer.FessTikaTransformer" instance="singleton"> + <component name="fessTikaTransformer" class="org.codelibs.fess.transformer.FessTikaTransformer" instance="singleton"> <property name="name">"fessTikaTransformer"</property> <property name="replaceSiteEncodingWhenEnglish">true</property> <property name="siteEncoding">"UTF-8"</property> diff --git a/src/main/resources/solrlib.dicon b/src/main/resources/solrlib.dicon index 61703a35c..dd5dd8e14 100644 --- a/src/main/resources/solrlib.dicon +++ b/src/main/resources/solrlib.dicon @@ -6,12 +6,12 @@ <!-- Properties Files (solr.properties and [groupName].properties) --> <component name="solrProperties" class="org.codelibs.core.util.DynamicProperties"> <arg> - @jp.sf.fess.util.ResourceUtil@getConfPath("solr.properties") + @org.codelibs.fess.util.ResourceUtil@getConfPath("solr.properties") </arg> </component> <component name="solrGroup1Properties" class="org.codelibs.core.util.DynamicProperties"> <arg> - @jp.sf.fess.util.ResourceUtil@getConfPath("solrGroup1.properties") + @org.codelibs.fess.util.ResourceUtil@getConfPath("solrGroup1.properties") </arg> </component> @@ -31,7 +31,7 @@ <!-- Note: groupName cannot include ".". --> <property name="groupName">"solrGroup1"</property> <property name="statusPolicy"> - <component class="jp.sf.fess.solr.policy.FessStatusPolicy"> + <component class="org.codelibs.fess.solr.policy.FessStatusPolicy"> <property name="solrGroupProperties">solrGroup1Properties</property> <property name="minSelectServer">1</property> <property name="minUpdateServer">1</property> diff --git a/src/main/webapp/WEB-INF/cmd/resources/app.dicon b/src/main/webapp/WEB-INF/cmd/resources/app.dicon index 9801c481d..2d6b29f47 100644 --- a/src/main/webapp/WEB-INF/cmd/resources/app.dicon +++ b/src/main/webapp/WEB-INF/cmd/resources/app.dicon @@ -10,17 +10,17 @@ <include path="s2robot_db.dicon" /> - <component name="indexingHelper" class="jp.sf.fess.helper.IndexingHelper"> + <component name="indexingHelper" class="org.codelibs.fess.helper.IndexingHelper"> </component> - <component name="labelTypeHelper" class="jp.sf.fess.helper.LabelTypeHelper"> + <component name="labelTypeHelper" class="org.codelibs.fess.helper.LabelTypeHelper"> </component> - <component name="webFsIndexHelper" class="jp.sf.fess.helper.WebFsIndexHelper"> + <component name="webFsIndexHelper" class="org.codelibs.fess.helper.WebFsIndexHelper"> </component> - <component name="dataIndexHelper" class="jp.sf.fess.helper.DataIndexHelper"> + <component name="dataIndexHelper" class="org.codelibs.fess.helper.DataIndexHelper"> </component> - <component name="overlappingHostHelper" class="jp.sf.fess.helper.OverlappingHostHelper"> + <component name="overlappingHostHelper" class="org.codelibs.fess.helper.OverlappingHostHelper"> </component> - <component name="intervalControlHelper" class="jp.sf.fess.helper.IntervalControlHelper"> + <component name="intervalControlHelper" class="org.codelibs.fess.helper.IntervalControlHelper"> <!-- <initMethod name="addIntervalRule"> <arg>"5:00"</arg> @@ -30,9 +30,9 @@ </initMethod> --> </component> - <component name="sambaHelper" class="jp.sf.fess.helper.SambaHelper"> + <component name="sambaHelper" class="org.codelibs.fess.helper.SambaHelper"> </component> - <component name="indexUpdater" class="jp.sf.fess.solr.IndexUpdater" + <component name="indexUpdater" class="org.codelibs.fess.solr.IndexUpdater" instance="prototype"> <!-- <property name="maxDocumentCacheSize">5</property> @@ -40,7 +40,7 @@ <property name="threadDump">false</property> <initMethod name="addBoostDocumentRule"> <arg> - <component class="jp.sf.fess.solr.BoostDocumentRule"> + <component class="org.codelibs.fess.solr.BoostDocumentRule"> <property name="matchExpression">"url.matches(\".*fess.*\")"</property> <property name="boostExpression">"1000.0"</property> </component> @@ -52,7 +52,7 @@ </initMethod> --> </component> - <component name="fileTypeHelper" class="jp.sf.fess.helper.FileTypeHelper"> + <component name="fileTypeHelper" class="org.codelibs.fess.helper.FileTypeHelper"> <initMethod name="add"> <arg>"text/html"</arg> <arg>"html"</arg> @@ -87,15 +87,15 @@ </initMethod> </component> <!-- for H2 --> - <component name="databaseHelper" class="jp.sf.fess.helper.impl.H2DatabaseHelperImpl"> + <component name="databaseHelper" class="org.codelibs.fess.helper.impl.H2DatabaseHelperImpl"> <!-- - <component name="databaseHelper" class="jp.sf.fess.helper.impl.DatabaseHelperImpl"> + <component name="databaseHelper" class="org.codelibs.fess.helper.impl.DatabaseHelperImpl"> --> <aspect pointcut="optimize"> j2ee.requiresNewTx </aspect> </component> - <component name="fessCrawler" class="jp.sf.fess.exec.Crawler" + <component name="fessCrawler" class="org.codelibs.fess.exec.Crawler" instance="prototype"> </component> diff --git a/src/main/webapp/WEB-INF/cmd/resources/creator.dicon b/src/main/webapp/WEB-INF/cmd/resources/creator.dicon index 8ff75a9b1..5735dc84c 100644 --- a/src/main/webapp/WEB-INF/cmd/resources/creator.dicon +++ b/src/main/webapp/WEB-INF/cmd/resources/creator.dicon @@ -15,6 +15,6 @@ <!-- <component class="org.seasar.chronos.core.creator.TaskCreator"/> <component class="org.seasar.chronos.core.creator.TriggerCreator"/> - <component class="jp.sf.fess.crud.creator.PagerCreator"/> + <component class="org.codelibs.fess.crud.creator.PagerCreator"/> --> </components> diff --git a/src/main/webapp/WEB-INF/fe.tld b/src/main/webapp/WEB-INF/fe.tld index f85063754..2aabcd03e 100644 --- a/src/main/webapp/WEB-INF/fe.tld +++ b/src/main/webapp/WEB-INF/fe.tld @@ -16,7 +16,7 @@ Returns a label name. </description> <name>labelexists</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.lang.Boolean labelExists(java.lang.String)</function-signature> <example> ${fe:labelexists("value")} @@ -28,7 +28,7 @@ Returns a label name. </description> <name>label</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.lang.String label(java.lang.String)</function-signature> <example> ${fe:label("value")} @@ -40,7 +40,7 @@ Returns a list of hot search words. </description> <name>hsw</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.util.List hsw(java.lang.String, java.lang.Integer)</function-signature> <example> ${fe:hsw("week", 5)} @@ -52,7 +52,7 @@ Returns a size of hot search words. </description> <name>hswsize</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.lang.Integer hswsize(java.lang.String)</function-signature> <example> ${fe:hswsize("week")} @@ -64,7 +64,7 @@ Returns Date from a given value. </description> <name>date</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.util.Date date(java.lang.Long)</function-signature> <example> ${fe:date(doc.tstamp)} @@ -76,7 +76,7 @@ Returns Date from a given value. </description> <name>parseDate</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.util.Date parseDate(java.lang.String)</function-signature> <example> ${fe:parseDate(doc.tstamp)} @@ -88,7 +88,7 @@ Returns query parameters for Facet. </description> <name>facetQuery</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.lang.String facetQuery()</function-signature> <example> ${fe:facetQuery()} @@ -100,7 +100,7 @@ Returns query parameters for More Like This. </description> <name>mltQuery</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.lang.String mltQuery()</function-signature> <example> ${fe:mltQuery()} @@ -112,7 +112,7 @@ Returns query parameters for Geo. </description> <name>geoQuery</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.lang.String geoQuery()</function-signature> <example> ${fe:geoQuery()} @@ -124,7 +124,7 @@ Returns a hidden form for Facet. </description> <name>facetForm</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.lang.String facetForm()</function-signature> <example> ${fe:facetForm()} @@ -136,7 +136,7 @@ Returns a hidden form for More Like This. </description> <name>mltForm</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.lang.String mltForm()</function-signature> <example> ${fe:mltForm()} @@ -148,7 +148,7 @@ Returns a hidden form for Geo. </description> <name>geoForm</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.lang.String geoForm()</function-signature> <example> ${fe:geoForm()} @@ -160,7 +160,7 @@ Returns a list of FacetQueryView. </description> <name>facetQueryViewList</name> - <function-class>jp.sf.fess.taglib.FessFunctions</function-class> + <function-class>org.codelibs.fess.taglib.FessFunctions</function-class> <function-signature>java.util.List facetQueryViewList()</function-signature> <example> ${fe:facetQueryViewList()} diff --git a/src/main/webapp/WEB-INF/struts-config.xml b/src/main/webapp/WEB-INF/struts-config.xml index 4d8cfffe6..659c291c0 100644 --- a/src/main/webapp/WEB-INF/struts-config.xml +++ b/src/main/webapp/WEB-INF/struts-config.xml @@ -32,18 +32,15 @@ <controller maxFileSize="10M" bufferSize="1024" - processorClass="jp.sf.fess.struts.action.FessRequestProcessor" - multipartClass="org.codelibs.sastruts.core.upload.SSCMultipartRequestHandler"/> - + processorClass="org.codelibs.fess.struts.action.FessRequestProcessor" + multipartClass="org.dbflute.saflute.web.action.processor.ActionMultipartRequestHandler"/> <!-- ================================ Message Resources Definitions --> <message-resources parameter="application" - factory="org.seasar.struts.util.S2PropertyMessageResourcesFactory"> - <set-property property="escape" value="false"/> + factory="org.dbflute.saflute.web.action.message.PropertiesMessageResourcesFactory"> </message-resources> - <!-- ======================================= Plug Ins Configuration --> <plug-in className="org.seasar.struts.validator.S2ValidatorPlugIn"> diff --git a/src/main/webapp/WEB-INF/validator-rules.xml b/src/main/webapp/WEB-INF/validator-rules.xml index f0c63d43a..2ae38f1c0 100644 --- a/src/main/webapp/WEB-INF/validator-rules.xml +++ b/src/main/webapp/WEB-INF/validator-rules.xml @@ -336,7 +336,7 @@ msg="errors.range"/> <validator name="cronExpression" - classname="jp.sf.fess.validator.CronExpressionChecks" + classname="org.codelibs.fess.validator.CronExpressionChecks" method="validateCronExpression" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, @@ -348,7 +348,7 @@ msg="errors.cronexpression"/> <validator name="uriType" - classname="jp.sf.fess.validator.UriTypeChecks" + classname="org.codelibs.fess.validator.UriTypeChecks" method="validateUriType" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, diff --git a/src/main/webapp/WEB-INF/view/login/error.jsp b/src/main/webapp/WEB-INF/view/login/error.jsp index 00d6d5b3a..68e30edf0 100644 --- a/src/main/webapp/WEB-INF/view/login/error.jsp +++ b/src/main/webapp/WEB-INF/view/login/error.jsp @@ -1,3 +1 @@ -<% -jp.sf.fess.crud.util.SAStrutsUtil.addSessionMessage(request, "error.login_error"); - %><c:redirect url="/login/login?msgs=error.login_error" /> \ No newline at end of file +<%org.codelibs.fess.crud.util.SAStrutsUtil.addSessionMessage(request, "error.login_error");%><c:redirect url="/login/login?msgs=error.login_error" /> \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 0052e62da..a331d7d5c 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -27,7 +27,7 @@ <filter> <filter-name>encodingfilter</filter-name> - <filter-class>jp.sf.fess.filter.FessEncodingFilter</filter-class> + <filter-class>org.codelibs.fess.filter.FessEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> @@ -50,7 +50,7 @@ <filter> <filter-name>authenticationFilter</filter-name> - <filter-class>jp.sf.fess.filter.AdminAuthFilter</filter-class> + <filter-class>org.codelibs.fess.filter.AdminAuthFilter</filter-class> <init-param> <param-name>urlPatterns</param-name> <param-value>/fess/admin.*</param-value> @@ -67,12 +67,12 @@ <filter> <filter-name>webApiFilter</filter-name> - <filter-class>jp.sf.fess.filter.WebApiFilter</filter-class> + <filter-class>org.codelibs.fess.filter.WebApiFilter</filter-class> </filter> <filter> <filter-name>routingfilter</filter-name> - <filter-class>org.seasar.struts.filter.RoutingFilter</filter-class> + <filter-class>org.dbflute.saflute.web.servlet.filter.RequestRoutingFilter</filter-class> <init-param> <param-name>jspDirectAccess</param-name> <param-value>false</param-value> @@ -82,7 +82,7 @@ <!-- <filter> <filter-name>adLoginInfoFilter</filter-name> - <filter-class>jp.sf.fess.filter.AdLoginInfoFilter</filter-class> + <filter-class>org.codelibs.fess.filter.AdLoginInfoFilter</filter-class> <init-param> <param-name>redirectLoginError</param-name> <param-value>true</param-value> @@ -231,7 +231,7 @@ <!-- BEGIN: H2 --> <servlet> <servlet-name>h2ConfigServlet</servlet-name> - <servlet-class>jp.sf.fess.servlet.H2ConfigServlet</servlet-class> + <servlet-class>org.codelibs.fess.servlet.H2ConfigServlet</servlet-class> <init-param> <param-name>tcpPort</param-name> <param-value>19092</param-value> @@ -242,7 +242,7 @@ <servlet> <servlet-name>tomcat7ConfigServlet</servlet-name> - <servlet-class>jp.sf.fess.servlet.Tomcat7ConfigServlet</servlet-class> + <servlet-class>org.codelibs.fess.servlet.Tomcat7ConfigServlet</servlet-class> <load-on-startup>3</load-on-startup> </servlet> diff --git a/src/test/java/jp/sf/fess/FessClass.java b/src/test/java/org/codelibs/fess/FessClass.java similarity index 96% rename from src/test/java/jp/sf/fess/FessClass.java rename to src/test/java/org/codelibs/fess/FessClass.java index 8d4ee62b8..69a3bcef4 100644 --- a/src/test/java/jp/sf/fess/FessClass.java +++ b/src/test/java/org/codelibs/fess/FessClass.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess; +package org.codelibs.fess; public class FessClass { } diff --git a/src/test/java/jp/sf/fess/dict/DictionaryManagerTest.java b/src/test/java/org/codelibs/fess/dict/DictionaryManagerTest.java similarity index 95% rename from src/test/java/jp/sf/fess/dict/DictionaryManagerTest.java rename to src/test/java/org/codelibs/fess/dict/DictionaryManagerTest.java index 74566227e..466098805 100644 --- a/src/test/java/jp/sf/fess/dict/DictionaryManagerTest.java +++ b/src/test/java/org/codelibs/fess/dict/DictionaryManagerTest.java @@ -14,15 +14,14 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict; +package org.codelibs.fess.dict; import java.io.File; import java.util.ArrayList; -import jp.sf.fess.Constants; -import jp.sf.fess.dict.synonym.SynonymLocator; - import org.apache.commons.io.FileUtils; +import org.codelibs.fess.Constants; +import org.codelibs.fess.dict.synonym.SynonymLocator; import org.seasar.extension.unit.S2TestCase; import org.seasar.framework.util.FileUtil; diff --git a/src/test/java/jp/sf/fess/dict/synonym/SynonymFileTest.java b/src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java similarity index 98% rename from src/test/java/jp/sf/fess/dict/synonym/SynonymFileTest.java rename to src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java index 316d6bedb..61f33d234 100644 --- a/src/test/java/jp/sf/fess/dict/synonym/SynonymFileTest.java +++ b/src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java @@ -14,13 +14,12 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict.synonym; +package org.codelibs.fess.dict.synonym; import java.io.File; -import jp.sf.fess.Constants; -import jp.sf.fess.dict.DictionaryFile.PagingList; - +import org.codelibs.fess.Constants; +import org.codelibs.fess.dict.DictionaryFile.PagingList; import org.seasar.extension.unit.S2TestCase; import org.seasar.framework.util.FileUtil; diff --git a/src/test/java/jp/sf/fess/dict/synonym/SynonymItemTest.java b/src/test/java/org/codelibs/fess/dict/synonym/SynonymItemTest.java similarity index 99% rename from src/test/java/jp/sf/fess/dict/synonym/SynonymItemTest.java rename to src/test/java/org/codelibs/fess/dict/synonym/SynonymItemTest.java index b6224d1c9..d1d8cbd42 100644 --- a/src/test/java/jp/sf/fess/dict/synonym/SynonymItemTest.java +++ b/src/test/java/org/codelibs/fess/dict/synonym/SynonymItemTest.java @@ -14,7 +14,7 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict.synonym; +package org.codelibs.fess.dict.synonym; import org.seasar.extension.unit.S2TestCase; diff --git a/src/test/java/jp/sf/fess/dict/synonym/SynonymLocatorTest.java b/src/test/java/org/codelibs/fess/dict/synonym/SynonymLocatorTest.java similarity index 95% rename from src/test/java/jp/sf/fess/dict/synonym/SynonymLocatorTest.java rename to src/test/java/org/codelibs/fess/dict/synonym/SynonymLocatorTest.java index a7fec5b33..58a692437 100644 --- a/src/test/java/jp/sf/fess/dict/synonym/SynonymLocatorTest.java +++ b/src/test/java/org/codelibs/fess/dict/synonym/SynonymLocatorTest.java @@ -14,17 +14,16 @@ * governing permissions and limitations under the License. */ -package jp.sf.fess.dict.synonym; +package org.codelibs.fess.dict.synonym; import java.io.File; import java.util.ArrayList; import java.util.List; -import jp.sf.fess.Constants; -import jp.sf.fess.dict.DictionaryFile; -import jp.sf.fess.dict.DictionaryItem; - import org.a